Ok, no I changed the pic to a 16F84A, and connetced a Xtal and two caps, still doesnt work
Very strange.
Now I test with:
Code:@ device HS_OSC,WDT_OFF,PROTECT_OFF DEFINE OSC 4 ' Lets work at 4MHz DEFINE LCD_DREG PORTB DEFINE LCD_DBIT 4 DEFINE LCD_RSREG PORTB DEFINE LCD_RSBIT 1 DEFINE LCD_EREG PORTB DEFINE LCD_EBIT 0 DEFINE LCD_BITS 4 DEFINE LCD_LINES 2 DEFINE LCD_COMMANDUS 2000 DEFINE LCD_DATAUS 50 pause 500 ' grace time for the LCD to initialize. main: LCDOUT $FE, 1, "Hello world" ' Clear display and show text high portb.0 ' Turn the LED on. pause 1000 ' Wait 1s low portb.0 ' Turn the LED off. pause 1000 ' Wait 1s goto main ' Go back





Bookmarks