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 from this blog

Installing ns3 in Ubuntu 22.04 | Complete Instructions

Installation of NS2 in Ubuntu 22.04 | NS2 Tutorial 2

How to Create Ubuntu 24.04 Bootable USB Using Rufus [Step-by-Step Guide]