itchy_frog
New Member
Hi Folks,
I hope someone can help with this. I'm running code on a 12F675 that uses the SLEEP command, then the device is woken from sleep by a reset on the MCLR pin. When I use the standard code to get the OSCCAL value (CALL 0x3FF), the program runs fine but on wake from sleep, the device runs for a second or so then dies/sleeps. If I read the OSCCAL value and hard-write it into the program, the whole thing runs as it should and wakes properly from SLEEP. I'm programming with the K8048 using PicProg2009, which I think might be part of the problem - certainly there is only one shot at programming then it deletes the OSCCAL value (however I now know to always record it first).
I'd also welcome advice on a more robust, cost effective programmer.
Kind regards,
Andrew
I hope someone can help with this. I'm running code on a 12F675 that uses the SLEEP command, then the device is woken from sleep by a reset on the MCLR pin. When I use the standard code to get the OSCCAL value (CALL 0x3FF), the program runs fine but on wake from sleep, the device runs for a second or so then dies/sleeps. If I read the OSCCAL value and hard-write it into the program, the whole thing runs as it should and wakes properly from SLEEP. I'm programming with the K8048 using PicProg2009, which I think might be part of the problem - certainly there is only one shot at programming then it deletes the OSCCAL value (however I now know to always record it first).
I'd also welcome advice on a more robust, cost effective programmer.
Kind regards,
Andrew