I am new to embedded c programing ,and have come up with this code
to interface my hc05 with
my AT89s52 . After programming this and burning it to my AT89s52 it
is not doing anything irrespective of
what i send to my Bluetooth module help.
#include<stdio.h>
#include<reg51.h>
sbit x=P2^0;
sbit y=P2^1;
sbit z=P2^2;
char read[5];
void uart()
{ SCON=0x50; TMOD=0x20; TH1=0xFd; TR1=1;
} void feedback()
{ if(x==1) {SBUF='A' whi
↧