18f2320


Closed Thread
Results 1 to 10 of 10

Thread: 18f2320

Hybrid View

  1. #1
    Join Date
    Jul 2008
    Posts
    9

    Default 18f2320

    has anyone used this chip on hspll
    need to run at 40 meg
    using ext 10 meg
    set osc to hspll
    will run for a moment (1sec) and lockup
    same simple code on 20 meg osc (hs) runs no problem
    all i change is from hs to hspll
    is there something else i need to change in config
    thanks

  2. #2
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    And again, don't have any code.

  3. #3
    Join Date
    Jul 2008
    Posts
    9


    Did you find this post helpful? Yes | No

    Default 18f2320

    sorry here is code

    INCLUDE "P18F2320.INC"
    LIST R=DEC
    LIST P=18F2320

    __CONFIG _CONFIG1H, _IESO_ON_1H & _FSCM_OFF_1H & _HS_OSC_1H
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_20_2L
    __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_32K_2H
    __CONFIG _CONFIG3H, _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _DEBUG_OFF_4L & _LVP_ON_4L & _STVR_ON_4L

    __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
    __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
    __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
    __CONFIG _CONFIG7H, _EBTRB_OFF_7H


    works no problem



    INCLUDE "P18F2320.INC"
    LIST R=DEC
    LIST P=18F2320

    __CONFIG _CONFIG1H, _IESO_ON_1H & _FSCM_OFF_1H & _HSPLL_OSC_1H
    __CONFIG _CONFIG2L, _PWRT_ON_2L & _BOR_OFF_2L & _BORV_20_2L
    __CONFIG _CONFIG2H, _WDT_OFF_2H & _WDTPS_32K_2H
    __CONFIG _CONFIG3H, _MCLRE_ON_3H
    __CONFIG _CONFIG4L, _DEBUG_OFF_4L & _LVP_ON_4L & _STVR_ON_4L

    __CONFIG _CONFIG5L, _CP0_OFF_5L & _CP1_OFF_5L
    __CONFIG _CONFIG5H, _CPB_OFF_5H & _CPD_OFF_5H
    __CONFIG _CONFIG6L, _WRT0_OFF_6L & _WRT1_OFF_6L
    __CONFIG _CONFIG6H, _WRTC_OFF_6H & _WRTB_OFF_6H & _WRTD_OFF_6H
    __CONFIG _CONFIG7L, _EBTR0_OFF_7L & _EBTR1_OFF_7L
    __CONFIG _CONFIG7H, _EBTRB_OFF_7H

    DOES NO WORK

    THANKS
    MIKE

  4. #4
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Well, that code doesn't do ANYTHING!!!
    I use the 4xPLL almost exclusively on the 18F series. Haven't had a problem with it.
    Good cap's across on Vdd/Vss, decent ramp up on the power supply, pullup on MCLR?

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


    Did you find this post helpful? Yes | No

    Default

    Do you have the extended or industrial version of the 18F2320?
    Regards,

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

  6. #6
    Join Date
    Jul 2008
    Posts
    9


    Did you find this post helpful? Yes | No

    Default 18f2320

    i wii check what version i have
    what is the right one
    reason i did not include code as i tested it with simple led on wait led off
    works on all speeds except hspll will try again
    what ramp speed do you use?

    thanks

Similar Threads

  1. 18F2320 and sleep function
    By Brian in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 10th March 2005, 13:11
  2. 18F2320 and "fuse" settings
    By Brian in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 15th February 2005, 20:55

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