PDA

View Full Version : '[HD44780] Controller received data whist busy' error while simulating



financecatalyst
- 15th February 2014, 01:04
I am getting '[HD44780] Controller received data whist busy' error while simulating in proteus. Is there any delay I should consider, if then when and how much? Thanks

code:


Gosub clear lcd

main:
' other calculations
LCDOUT $FE,$80,"P>",DEC P1,".",DEC P2,DEC P3," ","CURRENT"
LCDOUT $FE,$C0,"I>",DEC I1,".",DEC I2,DEC I3," ","TEM>",DEC S1,DEC S2,".",DEC S3
LCDOUT $FE,$90,"D>",DEC D1,".",DEC D2,DEC D3 ;," ", DEC DEL
LCDOUT $FE,$D0,"SET TEMP>",DEC T1,DEC T2,".",DEC T3
goto main

clear_lcd:
LCDOUT $FE,$01,$02
return

AvionicsMaster1
- 15th February 2014, 03:15
Well the most obvious thing is your calling a sub that doesn't exist.

Second would be better if you showed all your code as it's not obvious where the snippet shown fits.

Just sayin'.

towlerg
- 15th February 2014, 09:54
According to the data sheet most instructions take 3 cycles except "Clear display" which takes 165. Suggest you explicitly declare the defines related to LCD operation and specifically LCD_COMMANDUS and LCD_DATAUS. Play with these values till Proteus is happy or turn off the warning if it works in your real world config.

George