Problem with 16F737


Closed Thread
Results 1 to 10 of 10

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    You need to write to the OSCCON register to select 4MHz. The default value of OSCCON at
    power-up is all 0's. That sets the internal osc at 31.5kHz by default.

    OSCCON = %xxxxxxxx (replace x's with value shown in data sheet for selecting 4MHz)

    Edit: Nice work. It's not that hard is it...;o}

    Not bad for your first PIC project.
    Last edited by Bruce; - 29th October 2007 at 03:56. Reason: You're fast.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  2. #2


    Did you find this post helpful? Yes | No

    Default Voila

    I think Bruce nailed it. Good answer Bruce.

    I have 2 questions concerning that. 1st one I already asked.

    1. Are the internal oscillators precise enough to do serial communication?

    2. Do all chips have OSCCON? I search the 16F676 PDF... nothing

    hmm??????????

  3. #3
    Join Date
    Jul 2003
    Posts
    2,405


    Did you find this post helpful? Yes | No

    Default

    1. Are the internal oscillators precise enough to do serial communication?
    Yep. Newer parts with 1% internal oscillators are.

    As long as the PIC will operate in a moderate environment like indoors. If you plan to use
    it outdoors in extreme heat or cold, go with an external crystal. The internal osc will drift
    when exposed to extreme temperatures.

    2. Do all chips have OSCCON? I search the 16F676 PDF... nothing
    No not all of them have an OSCCON register. Most of them with an internal oscillator that
    offers various speeds do. So you can select or change internal osc speeds.

    The 16F676 doesn't have an OSCCON register. Its internal osc is fixed at 4MHz. It does
    however have a factory calibration value tucked away in the last program memory space.
    You tell PBP to fetch & load this into the OSCCAL register with the DEFINE OSCCAL_1K 1
    option.
    Regards,

    -Bruce
    tech at rentron.com
    http://www.rentron.com

  4. #4


    Did you find this post helpful? Yes | No

    Smile You da man Bruce

    Many Thanx to you.

Similar Threads

  1. problem using GOSUB under interrupt
    By fobya71 in forum mel PIC BASIC Pro
    Replies: 10
    Last Post: - 5th March 2010, 19:52
  2. USART Problem , but don't know where, in pc? or in PIC?
    By precision in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 15th July 2007, 08:12
  3. Microcode Studio 18f2455 problem?????
    By volkan in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 21st May 2007, 21:04
  4. 1 slave 1 master 1 MAX232 1 problem ?
    By SuB-ZeRo in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 31st July 2005, 22:59
  5. weird 12F629/675 problem
    By peterdeco1 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 7th October 2004, 01:08

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