How to config 18LF2620 to work at 3.3v?


Closed Thread
Results 1 to 9 of 9
  1. #1
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    17

    Talking How to config 18LF2620 to work at 3.3v?

    Hello !

    I have an 18LF2620 which works correct at 5v, but don't work at 3.3v

    I don't use any fuse configuration on my program, and the *.inc is original.

    I use MPASM v5.20, and pbp 2.5

    Some body can help me to do the right config?

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    What frequency is the main oscillator running at?

    4Mhz will get you down to 2.0V, but at 40Mhz you have to stay above 4.2V
    <br>
    DT

  3. #3
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    17


    Did you find this post helpful? Yes | No

    Default

    I working with 20 MHz resonator.

  4. #4
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    > I don't use any fuse configuration on my program, and the *.inc is original.
    > I use MPASM v5.20, and pbp 2.5
    > I working with 20 MHz resonator.


    PBP 2.50 defaults to the XT oscillator for the 18LF2620.
    At 20Mhz you would need the HS oscillator.

    If you have not used any configs, and the .inc is original, I don't see how it could work at 5V either.

    According to the datasheet, you can go down to 3.0V with a 20Mhz OSC. So that's probably not the problem.

    The only other configs that could affect the operation at low voltage is the Brown Out Detecter. But it defaults to 2V. So I don't think that's it either.
    <br>
    DT

  5. #5
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    17


    Did you find this post helpful? Yes | No

    Cool

    I have try with:
    @ DEVICE BOD_OFF
    but don't work.

    Have you an correct sample?
    May be I will need to rewrite some other times the PIC.
    It's right to set LVP_ON?

  6. #6
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Again. You need the HS oscillator.

    Quote Originally Posted by edysan View Post
    I have try with:
    @ DEVICE BOD_OFF
    but don't work.
    Since you are using an 18F, you must be using MPASM as the assembler, and MPASM uses __CONFIG instead of DEVICE.

    You should probably read this thread.

    Presetting Configuration Fuses (PIC Defines) into your Program
    http://www.picbasic.co.uk/forum/showthread.php?t=543

    It's right to set LVP_ON?
    NO! Bad idea, unless you have a special programmer.
    <br>
    DT

  7. #7


    Did you find this post helpful? Yes | No

    Default low voltage operation

    I routinely use the PIC 18LF4620 at 3.7 down to 2.5 volts. I run at 4 MHz and the config data I load into the Melabs USB serial programmer is:-
    Code:
    '************* Config Register setup for USB programmer ****************
    ' OSC = HS,  FSCM = En, IESO = En, PwrupTmr = En, BrownOut = Dis
    ' BOR Volts = 2, WDT = Off, WDTPS = 1:512, CCP2 mux = RB3, 
    ' PortB rst = Digital, LPT1Osc = Low, MCLR = Reset, LVP = Dis
    ' Enhanced CPU = Dis, All memory = Not Protected
    ' Note re power consumption.    PBP assumes the WDTPS is set to 512.
    ' SLEEP draws 2.5 uA in this system.  Each time sleep times out there
    ' is a current pulse for 2.5 mSecs at 600 uA.  Setting WDTPS = 1024 extends
    ' the SLEEP internal period by 2 and so the average power drops BUT
    ' PBP will get the sleep times wrong by the factor of chosen WDTPS:512
    '************************************************************
    Do NOT enable LVP which is the short life option - you will go mad and die young trying to find intermittent programming problems.

    Even when the WDT is disabled, the WDT post scaler is active and to get the sleep times right you must set the WDTPS to 512.

    Enabling the WDT adds 2 uA to the sleep current.
    Enabling the BOD also adds about 2 uA to the sleep current.

    HTH
    BrianT

  8. #8
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    17


    Did you find this post helpful? Yes | No

    Thumbs up

    I have change the ceramic oscillator with an quartz oscillator.
    I am not shure if is an HS, but now works!

    Thanks for your suggestion.

    Have a nice day.

  9. #9
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by edysan View Post
    I have change the ceramic oscillator with an quartz oscillator.
    I am not shure if is an HS, but now works!

    Thanks for your suggestion.

    Have a nice day.
    If you mean you are using an external oscillator . .
    Well that is a little like buying a new car because you forgot to hook up the battery in the old one. If you mean you substituted a crystal and capacitors for a ceramic resonator, then the problem is probably still there, and you are operating at the fringe of the oscillator's ability.<br>

    Config fuses, are instructions to the programmer software, you set in your code, to tell the programmer how you want the pic to do things. <b> XT, HS . . . </b> explains to the programmer what level or power to allocate to the PIC's Oscillator, the higher the frequency the oscillator operates at, the more power it requires, which is why 20mhz requires HS and 4mhz gets by with XT. Go back to Darrel's post and follow the link he posted to see how to do it. If you get stuck, come back and seek further help.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

Similar Threads

  1. A/D conversion with PIC18F67J50
    By ScaleRobotics in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 8th May 2009, 01:48
  2. 18F4550 Bootloader enter via eeprom setting
    By bradb in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 22nd November 2008, 23:51
  3. Error 0X0000008E when connecting a 18F2550 USB HID
    By FranciscoMartin in forum USB
    Replies: 8
    Last Post: - 16th October 2008, 17:20
  4. PortE problems (PIC18F4455)
    By RubenR in forum mel PIC BASIC Pro
    Replies: 15
    Last Post: - 12th July 2006, 15:26
  5. Installation sequence
    By Demon in forum General
    Replies: 23
    Last Post: - 11th July 2006, 03:56

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