U1brg Register Setting
Up to M16C
How can I do u1brg register setting?
for example , u1brg = 0x6E (bit rate 19200)
0x6E or 19200 .. where is it from?
I look datasheet,but I didn't understand..
Thanks.
Well, all is clear in the datasheet, when i look in "62eum.pdf" it says i 2.5.1 that the UART clock is based on CPU-clock divided by 1, 8 or 32, then divided by 16 and last divided by the BRG. In figure 2.5.8 the exact formula is shown in the notes.
So, as with som much else: read the datasheet, it's in there!
Powered by
Ploneboard

