Pages: [1]   Go Down
Author Topic: Arduino Mega hardware serial  (Read 263 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 21
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello,

1. Is there any equivalent to the SoftwareSerial inverse_logic function in the hardware serial? [Eg. SoftwareSerial mySerial(2,3,true);]
2. As I see it, in order to change an hardware-serial from 8-N-1 to 8-O-1, all I've got to do is adding:

Code:
UCSR1C= UCSR1C | B00110000;

after:
Code:
Serial1.begin(9600);

right? anything else I should add?

Thanks!
 
Logged

nr Bundaberg, Australia
Offline Offline
Tesla Member
***
Karma: 121
Posts: 8452
Scattered showers my arse -- Noah, 2348BC.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Quote
As I see it, in order to change an hardware-serial from 8-N-1 to 8-O-1, all I've got to do is adding:
Seems right, unless the library dicks with the register at a later date although

UCSR1C |= B00110000;

is neater.

Quote
Is there any equivalent to the SoftwareSerial inverse_logic function in the hardware serial?
No, unless you count using an external inverter.

______
Rob
« Last Edit: October 30, 2012, 07:08:31 am by Graynomad » Logged

Rob Gray aka the GRAYnomad www.robgray.com

Pages: [1]   Go Up
Jump to: