Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob

AN2131 UART Function

AN2131 UART Function

Anonymous
Not applicable
Question: Why does the UART continuously shift out the same data byte until a new byte is loaded?

 

Answer:

The UART will only transmit one byte for each write to the SBUFx SFR. The only way the UART would continually send the same byte over and over would be for the firmware to continually load the SBUFx SFR with the same byte.

Make sure the firmware is not in a loop that continually writes the same byte to the SBUFx SFR.

Please refer to:
EZ-USB Baud Generator: 115,200 bps

0 Likes
162 Views
Contributors