when i said ive changed it, i didn't mean make it better, i meant change it for my board, i haven't got a buzzer, so i removed that part of the code,
and i changed the configuration bits to
__config H'0FFD' & H'0FFB' & H'0FFF'
because i couldn't get them to work as
__config _XT_OSC & _WDT_OFF & _CP_OFF
but then i noticed that they weren't in capitals.,
I also understand the author's code included the line:
Code:
include "c:\pic\p16c5x.inc"
Your PC might have a different MPLAB directory installation. You should have corrected that line of code instead.
nope.....i made sure that it links, and i also had to change the line to
include "c:\pic\p16f5x.inc" ,
now heres my next query,
the program only seems to work if i have the _HS_OSC set to either HS or RC, it wont work with XT, which is what the author has the code set at,
any ideas why?
i have looked at the 16f54 manual it says,
RC: Low-cost RC oscillator
- XT: Standard crystal/resonator
- HS: High-speed crystal/resonator
- LP: Power-saving, low-frequency crystal
and my picdem has a 4mhz crystal onboard,