Quote Originally Posted by Ryan7777 View Post
So where does bit 14 fit into 1000000? or are we looking at the last 7 bits of 14? and please SOMEONE who can offer some "on the topic" advice chime in?
You're right. I don't have a clue. Or do I?
Was I 'On Topic' or not?
You be the judge...

From the book-
Mode is used to specify the baud rate and operating parameters of the
serial transfer. The low order 13 bits select the baud rate. Bit 13 selects
parity or no parity. Bit 14 selects inverted or true level. Bit 15 is not
used.
The baud rate bits specify the bit time in microseconds - 20. To find the
value for a given baud rate, use the equation:
(1000000 / baud) - 20
See those references to Bit 13, Bit 14, Bit 15?
Do you still think that the MODE parameter used with SERIN2/SEROUT2 is limited to 8 bits?

So, if you want this 520.83 baud (1,000,000 / baud = 1920.x) - 20 = 1900 = %0000 0111 0110 1100, to work with 'true levels', you have the number already. If you want it to work with 'inverted levels', you set bit 14, just like the book says. %0000 0111 0110 1100 becomes % 0100 0111 0110 1100.

Sorry. Am I still 'Off-Topic'?