I am using the internal oscillator which defaults to 8MHz
I also tried the program with
DEFINE OSC 8
preceeding the LCD definition statements, all to no avail 
I was even more disappointed that my Blinky LED program didn't work
Code:
TRISA = 0 ' Set PORTA as output
LED VAR PORTA.0 ' Assign name "LED" to PORTA.0
mainloop:
High LED ' Turn on LED connected to PORTA.0
Pause 500 ' Delay for .5 seconds
Low LED ' Turn off LED connected to PORTA.0
Pause 500 ' Delay for .5 seconds
Goto mainloop ' Go back to loop and blink LED forever
End
I have +5V connecteds to pins 7 and 20 (AVdd and Vdd) and 0V connected to pins 8 and 19 (AVss and Vss). I have a 10k pull-up resistor from MCLR (Pin 1) to +5V and 330R in series with LED connected from RA0 (Pin 2) to 0V. I even tried fliping the LED just in case I put it in backwards!
Any ideas on why this thing won't work as expected?
Perhaps the default for RA0/AN0 is an analog input pin? I thought the TRISA = 0 statement would overide...
Cheers
Barry
VK2XBP
Bookmarks