Description: we ll start timer #1 in 16 bit mode at the transition between the
start bit and the LSB and stop it between the MBS and stop bit.
That will give approx the number of cpu cycles for 8 bits. Divide
by 8 for one bit and by 16 since the built-in UART takes 16 timer
overflows for each bit. We need to be careful about roundoff during
division and the result has to be inverted since timer #1 counts up. Of
course, timer #1 gets used in 8-bit auto reload mode for generating the
built-in UART s baud rate once we know what the reload value should be.
To Search:
File list (Check if you may need any files):
Filename | Size | Date |
---|
autobaud\autobaud.zip |
........\crystals.zip |
........\Paul's 8051 Code Library | Auto Baud Detection.pdf |
autobaud |