02GF74
- 29th November 2006, 11:08
I have bought a USB PIC prgrammer and want to verify that I have programmed a 16F676 device successfully.
So my program initially was to toggle one line on port C and device configrued to use internal osciallator.
that didn't work so I removed the int. osc code and wired up a 10 MHz crystal and capacitors but no difference - I'm pretty sure the device needs to be configured so it knows there is an external clock souce but ain't figure that one out yet - which may explain why that failed too.
So in short, in both cases the device did not do what I expected so I have a plea for some sample code as follows:
1. configure device to use internal oscillator
2. config device to use external crystal
3. some code to toggle a line on Port C at say every second so I can measure using DVM.
I'm going trhough the device spec. sheet but is it rather hard going - any links to beginners programming guide, idealy specific to 676 device would be muchly appreciated. :)
So my program initially was to toggle one line on port C and device configrued to use internal osciallator.
that didn't work so I removed the int. osc code and wired up a 10 MHz crystal and capacitors but no difference - I'm pretty sure the device needs to be configured so it knows there is an external clock souce but ain't figure that one out yet - which may explain why that failed too.
So in short, in both cases the device did not do what I expected so I have a plea for some sample code as follows:
1. configure device to use internal oscillator
2. config device to use external crystal
3. some code to toggle a line on Port C at say every second so I can measure using DVM.
I'm going trhough the device spec. sheet but is it rather hard going - any links to beginners programming guide, idealy specific to 676 device would be muchly appreciated. :)