12f509 and OSCCAL


Closed Thread
Results 1 to 8 of 8

Hybrid View

  1. #1
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    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.

  2. #2
    Join Date
    Sep 2005
    Posts
    16


    Did you find this post helpful? Yes | No

    Default

    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

  3. #3


    Did you find this post helpful? Yes | No

    Exclamation programmer erasing osccal

    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.

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    as most of you pros use commercial programmers and software,
    Yep, that is why I recommend the PICKIT2 and MPLAB.
    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.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts