bimalkamal
Member level 1
I am trying to send a character from At89S52 mc to my PC through com1 port. All I am getting is garbage. My schematic, code, screen shots of output (both putty and Hyper Terminal), picture of DB9 female port is given. (The com1 port of PC is working fine as I use that port for my pic programmer.)
Thanks in advance
#include<8051.h>
main(){
Hyperterminal settings:-
Bits per Sec:4800
Data bits:8
H/W Flowcontrol:none
Pairty:none
Stop bits:1
Thanks in advance
#include<8051.h>
main(){
TMOD=0x20;
TH1=0xFA;
SCON=0x50;
TR1=1;
TH1=0xFA;
SCON=0x50;
TR1=1;
while(1){
SBUF='M';
while(TI==0);
TI=0;
}
}SBUF='M';
while(TI==0);
TI=0;
}
Hyperterminal settings:-
Bits per Sec:4800
Data bits:8
H/W Flowcontrol:none
Pairty:none
Stop bits:1
Last edited: