Hi pr2don,
Looks like a few typos and omissions
Your defines:
Define LCD_DBIT 4
Define LCD_RSREG PORTB
Define LCD_RSBIT 3
Define LCD_EREG PORTB
Define LCD_EBIT 2
Define LCD_EBITS 4
Define LCD_LINES 2
Try changing your defines to these
Define LCD_DREG PORTB
Define LCD_DBIT 4
Define LCD_RSREG PORTB
Define LCD_RSBIT 3
Define LCD_EREG PORTB
Define LCD_EBIT 2
Define LCD_BITS 4
Define LCD_LINES 2
Define LCD_COMMANDUS 2000
Define LCD_DATAUS 50
Also on your subroutine "ADC" you need to add a colon after ADC:
Hope this helps




Bookmarks