Oscillator/Hserout woes


Results 1 to 9 of 9

Threaded View

  1. #5
    Join Date
    Feb 2006
    Location
    Gilroy, CA
    Posts
    1,530


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by HankMcSpank View Post
    Having got the define correct. (define osc 4 ....4Mhz)

    The OSCCON still needs setting? (bear with me here - I seldom change this stuff.....if OSCCON still needs setting what's the purpose of the DEFINE command?)

    I tried getting the interal oscillator presented on the associated IO pins (to see if I could scop them - failed! IS there something unique about the clock that makes it invisible? lol)

    I tried a whole heap of permutations - the Hserout settings I posted were derived from Mr E's calculator.
    No, you were correct, it defaults to 4 mhz, and should not need to be set, unless you want to try 8 mhz. Which, maybe you should, just for fun. But try what Henrik suggested with verifying your osc speed by toggling an led, and see what you get, just to be sure.
    Last edited by ScaleRobotics; - 10th October 2010 at 17:43.
    http://www.scalerobotics.com

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