Jump to content
43oh

Recommended Posts

I was trying to port a sketch that used the Serial port with non standard UART parity and character length to Energia.  I noticed that the UART port isn't setup to handle anything except 8-N-1.  While the code below can't do all the combinations that are available to the atmega, it can do 7/8 bit, even/odd parity and 1/2 stop bits.  I created a patch that will at least fix it for the chip I am using (msp430g2553).  It will need some work for other chips. Apply the attached patch to the source of the latest Energia source tree. (as of 11/11/2015)

 

-rick

 

(See new optional second parameter https://www.arduino.cc/en/Serial/Begin )

parity.patch

Link to post
Share on other sites
  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...