Baud Rate generation using 89s52

Status
Not open for further replies.

Pady

New Member
Hi everyone,

How to generate baudrate (i.e. 9600 or 19200) using 89S52 in C langauge.
plz suggest me.
 
I m using 11.0592 MHz clock. So, plz suggest me code for that in C langauge. For this i m using Keil complier.
 
Then read the datasheet for your chip, specifically the UART section, it will contain all the information you need on what you need your system clock to be for acceptable baud rate error and how to set the various prescalers to get the baud rates you need from the clock you have, or at the very least you'll be able to figure out what clock rate you actually need for that baud rate.
 
Everything you need to know about that is here. **broken link removed**

Have a read and make an attempt yourself, then post the code here and someone will tell you what's wrong with it.
 
Last edited:
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…