Arduino Forum
>
Products
>
Arduino Due
>
Serial 8N2?
Print
Go Down
Pages:
[1]
Topic: Serial 8N2?
(Read 2087 times)
previous topic
-
next topic
ChrisLewis
Newbie
Posts: 16
Karma: 4
[add]
Serial 8N2?
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
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
oqibidipo
Edison Member
Posts: 1,171
Karma: 306
[add]
Re: Serial 8N2?
#1
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.
ChrisLewis
Newbie
Posts: 16
Karma: 4
[add]
Re: Serial 8N2?
#2
Oct 06, 2016, 02:09 pm
Ah, OK thanks. I'll have a look at using different pins.
Print
Go Up
Pages:
[1]
Loading...