Maverickmax
Advanced Member level 1
![Advanced Member level 1](/styles/images/ranks/glevel1.gif)
8051 baud rate calculator
Hi
Specification for AT89C51
Baud rate - 9600
Clock - 12MHz
SMOD - 1
TH1 - 0xF9
so is my code correct?
Maverick Max
Hi
Specification for AT89C51
Baud rate - 9600
Clock - 12MHz
SMOD - 1
TH1 - 0xF9
so is my code correct?
Code:
void serial_send()
{
SCON=0x50;
TMOD=0x20;
TH1=0xF9;
TR1=1;
TI=1;
}
Maverick Max