18f2320


Closed Thread
Results 1 to 10 of 10

Thread: 18f2320

  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

  7. #7
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mikeh View Post
    what ramp speed do you use?
    Sorry...I don't have enough money to buy a power supply with a programmable power on ramp up...

    Just a clean power supply, decent design, make sure the config bits are set right, try a slower crystal while still using 4xPLL (i.e. 4Mhz xtal gives you 16Mhz, etc)...and so on...

  8. #8
    Join Date
    Jul 2008
    Posts
    9


    Did you find this post helpful? Yes | No

    Default 18f2320

    ok
    so how do you know if you have extended or industrial
    spec are not clear on this ?

    mike

  9. #9
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    The next to the last page of the data sheet tells how to identify the chip.
    18Fxxx = normal voltage
    18LFxxx= extended voltage

    If there is an "I" near the end of the number (I/P) it is industrial.
    Dave
    Always wear safety glasses while programming.

  10. #10
    Join Date
    Jul 2008
    Posts
    9


    Did you find this post helpful? Yes | No

    Default 18f2320

    thanks for info
    i am using 18f2320 (i/sp)

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