Try this;
Code:
@ DEVICE MCLR_OFF, INTRC_OSC, WDT_ON, LVP_OFF, BOD_OFF, PWRT_ON, PROTECT_OFF
OSCCON = %01100000 'set int osc to 4mhz
ANSEL = 0 'ALL DIGITAL
CMCON = 7 'COMPARATORS OFF
TRISA = %00000000 'ALL OUTPUTS
TRISB = %00000000 'ALL OUTPUTS
PORTA = 0 'PORTA LOW
Pause 100 'SETTLE DOWN
START:
High PORTA.6 'ON LED
High PORTA.7
Pause 1000
Low PORTA.6 'OFF LED
Low PORTA.7
Pause 1000
GoTo START 'REPEAT FOREVER
end
Compile & program with your setup. If it doesn't work, try the attached .hex file. It's the
same thing as above. Make sure the config settings are the same as shown in the code
before programming the part.
The .hex file attached was compiled with 2.47, and verified working on an F88.
Bookmarks