Oscillator Troubles


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

    Default Oscillator Troubles

    This is baffling me to know end. I have a circuit that used the internal oscillator and now I wish to put in an external one instead. After adding the external oscillator the circuit will not work at all. If I revert the code back to using the internal one it works fine. I checked the output from the oscillator and its showing me a nice square wave running at 4 MHz. Any ideas? The pic is the 16F628A. Could it possibly be a bad oscillator?

    Code:
    orignial internal oscillator config fuses
    @ __CONFIG _BOREN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON & _LVP_OFF & _WDT_ON & _INTOSC_OSC_NOCLKOUT & _MCLRE_OFF
    
    external oscillator config fuses
    @ __CONFIG _BOREN_ON & _CP_OFF & _DATA_CP_OFF & _PWRTE_ON & _LVP_OFF & _WDT_ON & _XT_OSC & _MCLRE_OFF

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    CocaColaKid , What are you using for a crystal? Does it have the right caps? Do you have a 1 Meg resistor across the crystal?

    Dave Purola,
    N8NTA

  3. #3


    Did you find this post helpful? Yes | No

    Default

    I found the source of my problem. It appears this chip requires an external source setting for its oscillator type when a TTL oscillator is used. Learned something new today Switch to using _EXTCLK_OSC and all is well.

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