Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
10/16/07 10:09
Read: times


 
Msg Score: +1
 +1 Good Answer/Helpful
#145800 - the working of the UART
Responding to: ???'s previous message
UART clock is running at 16x the bit rate, i.e. 16 ticks in each bit.

This is insignificant in the transmitter (that simply divides this clock by 16 to get the bit clock), but the receiver needs to sample ("look at") the input really fast to catch the startbit high-to-low going edge soon enough; and then takes 3 samples at the 7-8-9th clock from the beginning of bit and uses a majority vote to determine the bit value - this is to suppress random spike noise. This procedure is in detail described in the "bible".

The another factor of 2 is just a divider and can be switched off using the SMOD bit (bit 7 in PCON SFR).

JW


List of 3 messages in thread
TopicAuthorDate
Baud rate setting in 8051            01/01/70 00:00      
   the working of the UART            01/01/70 00:00      
      Jan answered all - in addition            01/01/70 00:00      

Back to Subject List