what does OSCCON = $60 mean exactly?


Closed Thread
Results 1 to 3 of 3
  1. #1

    Default what does OSCCON = $60 mean exactly?

    I've been using 16F818 parts for a while with it's internal 4MHZ oscillator with no problems. The PBP manual lists OSCCON values for different speeds. OSCCON = $60 sets it to 4MHZ. But what does $60 mean? The datasheet shows the OSCCON register bits with, I think, bits 6 & 5 as 1, rest 0 @ 4MHZ. How does $60 enter the equation? Thank you. - Peter

  2. #2
    Join Date
    Aug 2005
    Posts
    57


    Did you find this post helpful? Yes | No

    Default

    $60 is a hex representation.If you have Windows Xp,start the calculator application,set for scientific view,select hex and enter 60,then select bin.

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Thank you. It all makes sense to me now. $60 = 96. I replaced OSCCON = $60 with OSCCON = 96 and it compiled without errors. I haven't tried it yet but it should work the same right?

Similar Threads

  1. Conway's Game Of Life
    By wellyboot in forum mel PIC BASIC Pro
    Replies: 45
    Last Post: - 28th May 2020, 06:14
  2. Thermo 7 segments - little problem
    By fratello in forum mel PIC BASIC Pro
    Replies: 49
    Last Post: - 27th July 2013, 07:31
  3. Delayed output 10 secs
    By lilimike in forum mel PIC BASIC Pro
    Replies: 37
    Last Post: - 14th October 2011, 06:28
  4. RS485 bus - starting probem
    By wurm in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 27th January 2010, 13:35
  5. Working with indivividual bytes of an array
    By J_norrie in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 22nd January 2007, 19:16

Members who have read this thread : 1

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