To confirm the pic is programmed try reading it back and dumping the HEX to a file, and then read that file in notepad. If that's fine then as Steve has varified the code works it must be hardware related
1) - check that you are using the correct crystal for timing
2) - check that the two capacitors are the correct values for that crystal (33pf - 22pf)
3) - check that the supply voltage is regulated to 5v (5.5v max)
4) - place a 0.1uF decoupling capacitor accross the supply as close to the PIC as possible.






Bookmarks