16F876 : settings for 40Mhz


Results 1 to 20 of 20

Threaded View

  1. #17
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    It really looks like your programmer don't set the configuration fuses...

    i don't have any 18F252, but this one is tested with a 18F452
    Code:
    @ __CONFIG _CONFIG1H, _OSCS_OFF_1H & _HSPLL_OSC_1H
        ' Oscillator switch OFF
        ' Use HSPLL (fosc X 4) oscillator  (10mhz here)
        '
    @ __CONFIG _CONFIG2L, _BOR_ON_2L & _PWRT_ON_2L & _BORV_45_2L
        ' Brown out reset ON @ 4.5Volts
        ' Power-up timer ON
        '
    @ __CONFIG _CONFIG2H, _WDT_ON_2H 
        ' Watch dog timer ON
        '
    @ __CONFIG _CONFIG4L, _STVR_ON_4L & _LVP_OFF_4L & _DEBUG_OFF_4L
        ' Stack over/underflow ON
        ' Low Voltage programming OFF
        ' Background debugger OFF
        
    Define OSC 40
    Start:
          Toggle PORTC.3
          pauseus 100
          goto start
    if you change the DEFINE OSC 40 to DEFINE OSC 10 you'll get 25uSec pulses. So PLL is working very well.

    Look into your Melabs programmer setings, must have a place to configure programmer options.

    If you can't find something like that, send an e-mail to BRUCE from Reynolds Electronics. [email protected] For sure he know the solution for that.
    Last edited by mister_e; - 4th April 2005 at 20:31.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

Similar Threads

  1. 16F876 ADCON,CMcon,Tris settings
    By RFsolution in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th March 2010, 20:32
  2. Config settings
    By Adrian in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 12th December 2007, 18:24
  3. 16F876 Usart Receive
    By syscoder in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 21st March 2007, 15:43
  4. Changing Settings ???
    By tico in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 28th December 2006, 03:10
  5. Need help with migration 16F876 -> 18F252
    By NavMicroSystems in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 24th February 2004, 16:22

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