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-
See those references to Bit 13, Bit 14, Bit 15?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
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'?





Bookmarks