|
|||||||||||
Technical Support Support Resources
Product Information |
C51: Calculating Timer Settings for Serial I/OInformation in this article applies to:
QUESTIONWhere can I find examples of source code for compilation-time calculation of 8052 timer setting for timeout and serial communication? ANSWERThe following code calculates and sets the baudrate for a standard 8051. Note that TCLK is defined as 12000000UL in this example.
MORE INFORMATIONSimilar code may be found in the Interrupt-Driven Serial I/O example for printf (INTSIO2.ZIP). SEE ALSOLast Reviewed: Thursday, February 25, 2021 | ||||||||||
|
Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.