I am trying to send data serially from AT89s52 to PC using hyperterminal. But nothing is being displayed on the hyperterminal screen.
The code with which i've programmed the uc is:
MOV TMOD,20H
MOV TH1,#-3
MOV SCON,#50H
SETB TR1
AGAIN: MOV SBUF,#'Y'
HERE: JNB TI,HERE
CLR TI
SJMP AGAIN
The baud rate of PC is 9600 and i have used MAX232 IC for RS232 to TTL conversion.
My doubts are:
-Can I use normal single strand wires for connecting PC and MAX232.
-In the hyperterminal window i am getting Auto detect instead of 9600 8-n-1
my cnxns are:
8051 max232 RS232
11 to 11-14 to 2
10 to 12-13 to 3
pin no 5of RS232 to gnd
The code with which i've programmed the uc is:
MOV TMOD,20H
MOV TH1,#-3
MOV SCON,#50H
SETB TR1
AGAIN: MOV SBUF,#'Y'
HERE: JNB TI,HERE
CLR TI
SJMP AGAIN
The baud rate of PC is 9600 and i have used MAX232 IC for RS232 to TTL conversion.
My doubts are:
-Can I use normal single strand wires for connecting PC and MAX232.
-In the hyperterminal window i am getting Auto detect instead of 9600 8-n-1
my cnxns are:
8051 max232 RS232
11 to 11-14 to 2
10 to 12-13 to 3
pin no 5of RS232 to gnd