So when I turn on my debugger (pic kit 3) and set a break point next to delay_ms() the expected delay is 10s but when I run the program the delay is atleast 4 times bigger. I exchange the quartz and it`s almost the same.
What am I doing wrong or where could be the error?
Thanks!
Ttelmah
Joined: 11 Mar 2010 Posts: 19363
Posted: Thu May 30, 2013 7:53 am
Almost certainly means your oscillator is not starting. You need to add 'PR' to your fuses to turn on the primary oscillator, or the chip will wake using the FRC oscillator, and you can then switch it later. The 'default' is for the primary to be off....
On these later chips several of the 'defaults', are perhaps not what you may expect.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum