Quote Originally Posted by manwolf View Post
So far I have been able to run most ME stuff on the EP5, that is until I tried the first LCD example. SO far I have not been able to get either board to display a thing.
Code:
DEFINE      LCD_DREG    PORTD
DEFINE      LCD_RSREG   PORTE
DEFINE      LCD_RSBIT   0
DEFINE      LCD_EREG    PORTE
DEFINE      LCD_EBIT    1
DEFINE      LCD_RWREG   PORTE
DEFINE      LCD_RWBIT   2
DEFINE      LCD_BITS    8
DEFINE      LCD_LINES   2
DEFINE      LCD_COMMANDUS   2000
DEFINE      LCD_DATAUS      20
That's because the LCD on the EP5 uses port B not port E. Try
Code:
DEFINE LCD_DREG PORTB
DEFINE LCD_DBIT 0
DEFINE LCD_RSREG PORTB
DEFINE LCD_RSBIT 4
DEFINE LCD_EREG PORTB
DEFINE LCD_EBIT 5
DEFINE LCD_BITS 4
DEFINE LCD_LINES 2
DEFINE LCD_COMMANDUS 2000
DEFINE LCD_DATAUS 50
This works with the 2 x 16 LCD that MikroElectronica supply with the EP5