Step 6Programming
When the device is reset or first powered up, each LED should be lit up in turn. When this sequence is finished the RTC is activated and the crystal starts oscillating.
If you modify the code, add new functions etc you may note that initially the next program may have troubles communicating. This might happen if your programmer doesn't wait long enough after resetting the device before trying to communicate to the chip to program it and the oscillator is still oscillating on PGD/PGC.
Just fire a second attempt at programming the device before the powerup sequence finishes.
If you've done major mods to the code and you still can't get a new program in to the chip, you may have inadvertantly disabled MCLR....in this case you'll need to connect the Vdd pin from your programmer to the device, disconnect seperate power supply in this case).
| « Previous Step | Download PDFView All Steps | Next Step » |
![]() |
Add Comment
|











































