beyondH
Member level 5
hellow experts,,
kindly help me(i think i have gt confused..)
My program:
org 0023h
jb ti,transmit
jb ri,recieve
then doing
mov sbuf,#'A'
acall delay
mainloop:
sjmp mainloop
transmit:
mov a,sbuf
acall senddata
acall sdelay
clr ti
reti
recieve:
mov a,sbuf
acall senddata
acall sdelay
clr ri
reti
the moment i put 'A' into the sbuf, interrupt is called but "corrupted data" is displayed on lcd....(means something wrong with transmit subroutine)
while
if I connect with serial port of computer and sends characters through keyboard,, they are clearly shown on lcd...(means recieve routine is correct)
kindly point out the possible errors...
hardware is OK(lcd in initiallised as recieve subroutine is perfectly running)
https://www.edaboard.com/threads/229264/
(by mistake, I posted this into another thread......)
initial letters are those which i have encoded into the program..i.e.
mov sbuf,'A'
mov sbuf,'B'
and afterwards the letters are from the keyboard(after connecting to pc serial port) which is working fine....
kindly help me(i think i have gt confused..)
My program:
org 0023h
jb ti,transmit
jb ri,recieve
then doing
mov sbuf,#'A'
acall delay
mainloop:
sjmp mainloop
transmit:
mov a,sbuf
acall senddata
acall sdelay
clr ti
reti
recieve:
mov a,sbuf
acall senddata
acall sdelay
clr ri
reti
the moment i put 'A' into the sbuf, interrupt is called but "corrupted data" is displayed on lcd....(means something wrong with transmit subroutine)
while
if I connect with serial port of computer and sends characters through keyboard,, they are clearly shown on lcd...(means recieve routine is correct)
kindly point out the possible errors...
hardware is OK(lcd in initiallised as recieve subroutine is perfectly running)
https://www.edaboard.com/threads/229264/
(by mistake, I posted this into another thread......)
initial letters are those which i have encoded into the program..i.e.
mov sbuf,'A'
mov sbuf,'B'
and afterwards the letters are from the keyboard(after connecting to pc serial port) which is working fine....