I am using a LCD that is connected to my Due using the RX1 pin. The LCD specifications state that while using the serial connection at 9600 baud that it takes 8 data bits and 2 stops bits with no parity. I am using IDE 1.5.2 to program my Due and based on my research I have found that I need to set this information using the Serial1.begin command. However, I have found 2 methods for setting data and neither one is accepted by the complier as valid.
Using:
Serial1.begin(9600, SERIAL_8N2);
Gives the error:
WireTester.ino: In function 'void setup()':
WireTester:18: error: 'SERIAL_8N2' was not declared in this scope
Using:
Serial1.begin(9600, 8, 2, N);
Gives the error:
WireTester.ino: In function 'void setup()':
WireTester:18: error: 'N' was not declared in this scope
What is the proper method for setting this information?
Unfortunately the processor UART serial does not support anything other than 1 stop bit.
You'll have to change to one of the available USART ports which are full featured and support 1, 1.5 and 2 stop bits.