Im back to LCD's again. I have an ASM routine working with lots of help from this forum. I now wanted to have a go at doing a similar thing with picbasic and the oshon simulator. This is mainly because im writing a menu and basic makes it much easier.
Can anyone tell me why this simple code doesn't work - it keeps reporting the delays aren't long enough. Does anyone know what the default values are for setup with 'busy handshaking'
Define LCD_BITS = 8
Define LCD_DREG = PORTB
Define LCD_DBIT = 0
Define LCD_RSREG = PORTA
Define LCD_RSBIT = 0
Define LCD_EREG = PORTA
Define LCD_EBIT = 2
Define LCD_RWREG = PORTA
Define LCD_RWBIT = 1
Define LCD_READ_BUSY_FLAG = 1
Define LCD_COMMANDUS = 5000 'delay after LCDCMDOUT, default value is 5000
Define LCD_DATAUS = 200 'delay after LCDOUT, default value is 100
Define LCD_INITMS = 500
Lcdinit LcdCurBlink
loop:
Lcdout "Hello world!"
WaitMs 1000
Lcdcmdout LcdClear
WaitMs 1000
Goto loop
Many thanks
Regards - Paul