Microcontroller › 8051 › RFID interfacing › Hi, The above code is only to
April 14, 2014 at 11:29 am
#11550
SHAH DISHANT H.
Participant
Hi,
The above code is only to initialise serial communication at 9600 baudrate.
To receive data use following function…
void main()
{
int a;
a=receivedataserially();
}
int receivedataserially()
{
while(RI==0);
RI=0;
return SBUF;
}
From above code, you will get data in variable a.