I would like to speed up my UART communication.
actually it looks like this:
I would like to increase the time between the bits where nothing happens.
I'm using a Bluepill Board with the offical core.
My Code looks like this:
Code: Select all
#define SAMPLERATE 2000000
HardwareSerial mySerial(PA3, PA2); // RX, TX
int i = 64;
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
// set the data rate for the HardwareSerial port
mySerial.begin(SAMPLERATE);
}
void loop() { // run over and over
mySerial.write("<");
mySerial.write("ABCDEFGHIJKLMNOPQRSTUVWXYZ");
// while (i <(94))
// {
// mySerial.write(i);
// i++;
// }
mySerial.write(">");
delay(10); // wait for a second
digitalWrite(LED_BUILTIN, !digitalRead(LED_BUILTIN));
i = 64;
}
Is there any possibility?
Greetings,
Jens