Quantcast
Channel: Keil Discussion Forum RSS Feed
Viewing all articles
Browse latest Browse all 3049

C51: interfacing at89s52 with bluetooth

$
0
0
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

Viewing all articles
Browse latest Browse all 3049

Trending Articles