Serial Communication using UART

#include reg51.h>
void main()
{
TMOD = 0x20;
TH1=-3;
SCON = 0x50;
TR1 = 1;
while(1)
{
SBUF = 'ABCD';
while(TI=1)
{
TI=0;
}
}
}

Comments

Popular Posts