Arduino Forum

Products => Arduino Due => Topic started by: ChrisLewis on Oct 06, 2016, 11:14 am

Title: Serial 8N2?
Post by: ChrisLewis on Oct 06, 2016, 11:14 am
Hi

I'm tyring to start the serial comms on a Due with 8N2 config.  The link here https://www.arduino.cc/en/Serial/Begin (https://www.arduino.cc/en/Serial/Begin) implies that i should be able to do

Code: [Select]
Serial.begin(speed, config)

with speed = 115200 and config = SERIAL_8N2


Unfortunately this wont compile.  Is there a simple way to achieve this?

Chris
Title: Re: Serial 8N2?
Post by: oqibidipo on Oct 06, 2016, 12:49 pm
You can do it with Serial1..Serial3, but not with Serial.
Serial is an UART and the rest are USARTs, which have more features.
Title: Re: Serial 8N2?
Post by: ChrisLewis on Oct 06, 2016, 02:09 pm
Ah, OK thanks.  I'll have a look at using different pins.