微波EDA网,见证研发工程师的成长!
首页 > 研发问答 > 微波和射频技术 > 天线设计和射频技术 > corrupt data on lcd from serial interrupt

corrupt data on lcd from serial interrupt

时间:04-07 整理:3721RD 点击:
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....

hi, you'd better post your question in the following forum

Microcontrollers - 8051, avr, embedded, arm, software, microchip, spi, jtag, programmer, i2c, interf

Copyright © 2017-2020 微波EDA网 版权所有

网站地图

Top