Page 1 of 1
19200bd with Softwareserial ?
Posted: 12 Feb 2019 17:23
by sil
Hi,
I need 2 UARTs but no one is lower than 19200bd. Is there any hope to get 19200bd with Softwareserial ?
Thanks
Re: 19200bd with Softwareserial ?
Posted: 14 Feb 2019 23:01
by PoltoS
I think, yes. You can try it with a PC on the other side.
Re: 19200bd with Softwareserial ?
Posted: 16 Feb 2019 18:18
by sil
Tx at 19200 is working fine. But strangely Rx at this speed is not working or my sketch is not correct ?
Code: Select all
#include "SoftwareSerial.h"
SoftwareSerial swserial(11, 12); // duplex mode on pins 11 and 12
void setup() {
swserial.begin(19200);
Serial.begin();
}
void loop() {
while(swserial.available())
{
char c = swserial.read();
Serial.print(c);
}
}
Thanks