Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

corrupt data on lcd from serial interrupt

Status
Not open for further replies.

beyondH

Member level 5
Joined
Oct 21, 2011
Messages
91
Helped
17
Reputation
34
Reaction score
15
Trophy points
1,288
Location
delhi
Activity points
1,960
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)


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....
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top