i bought a pickit 3,having a chip 18f45k20.
i have asked for help on the config bits and i got this reply
@ __config _config1h,fosc_hspll1h
@ __config _config2h, _wdten_on_2h & wdtps_5122h
@__config _config3h, _mclre_off_3h & _pbaden_off_3h
@__config _config4l, _lvp_off_4l & _xinst_off_4l
non of the above seems to work.i get a code 118 error.
i want to get the leds on portd to work ,with internal osc
buying the pickit 3 was a cool thing for me but i never guessed that the chip could be so mind boggling.
i have tried to read the data sheet,but i just need a kick start.
this is the code i have,but i am sure there is still code missing
' config bits which don't seem to work
DEFINE OSC 16
PORTD=%00000000 ' all pins on port d are outputs
Led var portd.7 '
GO:
high led
pause 500
low led
goto GO
end
from the above code i know i am missing code.
can someone please help me out of my dillemma.
maybe i should rather have bought C and not pbp
Bookmarks