Bruce explains it here for the 629 http://www.picbasic.co.uk/forum/show...SCCAL+register
I do not have the data sheet here for the 509 but it should be pretty much the same.
Slow connection while Bruce posted![]()
Bruce explains it here for the 629 http://www.picbasic.co.uk/forum/show...SCCAL+register
I do not have the data sheet here for the 509 but it should be pretty much the same.
Slow connection while Bruce posted![]()
Last edited by mackrackit; - 18th October 2007 at 19:05. Reason: Slow connection while Bruce posted:)
Dave
Always wear safety glasses while programming.
I guess I was making it a lot harder than I thought it really was! I did not think I could write directly to the OSCCAL register. Many thanks to everyone. I will try the simple way this afternoon when I get back on that project.
73, Mark
After reading this and many other osccal posts, i thought i should mention an observation. as a newbie using a jdm programmer and free software off the net, i've found that several of these free software packages do NOT copy and restore the osccal! they simply erase it. as most of you pros use commercial programmers and software, you may not have noticed. the very first thing i did with my new programmer to the free 12f629 that came with it was erase it. figured it was new, nothing on it, safe move. lol yes, it erased the osccal value. when i get home next week i think i'll go through all those programs i tried and make a list of which ones erase osccal.
Yep, that is why I recommend the PICKIT2 and MPLAB.as most of you pros use commercial programmers and software,
I know, $50 US is high with freight to some places in the world...
Maybe one of the moderators could put a "sticky" in the FAQ section warning about this?
Dave
Always wear safety glasses while programming.
Bookmarks