• AVR Freaks

Hot!Program LVP off on PIC16F145x

Author
dginlon
New Member
  • Total Posts : 16
  • Reward points : 0
  • Joined: 2010/05/11 01:43:02
  • Location: 0
  • Status: offline
2019/01/17 08:31:07 (permalink)
0

Program LVP off on PIC16F145x

Hi All:
I'm using PIC16F1459  in my project,
I found I must set LVP bit ON in configuration word , and program using LVP mode,
I know LVP will taking MLCR input pin , but PCB is ready.
Can someone can tell me, how to program LVP bit off,
MPLAB X IPE 5.0.x
PICKIT 3
PIC16F1459 Device rev A6
thanks a lot.
Alex 
#1

10 Replies Related Threads

    NorthGuy
    Super Member
    • Total Posts : 5492
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 08:50:36 (permalink)
    0
    There are two methods of programming LVP and HVP. LVP programming cannot program LVP bit to OFF. Only HVP programming can. Therefore, to program LVP to OFF you must make sure that your programmer is configured to use HVP. MPLAB X should have a setting for this.
    #2
    dginlon
    New Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/05/11 01:43:02
    • Location: 0
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 09:16:44 (permalink)
    0
    But PIC16F145x some different from other PIC ,the LVP enable is 1, 
    If erase /program chip will cause chip force to LVP mode,
    What ever I try to using HVP , device will not found.
    #3
    jack@kksound
    code tags!
    • Total Posts : 3198
    • Reward points : 0
    • Joined: 2014/05/14 10:03:19
    • Location: 0
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 10:20:36 (permalink)
    0
    What ever I try to using HVP , device will not found.

    More detail here: what error message are you getting when you try to program the pic in HVP mode? And what are the programmer connections to the pic?
    #4
    Ian.M
    Super Member
    • Total Posts : 13225
    • Reward points : 0
    • Joined: 2009/07/23 07:02:40
    • Location: UK
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 10:44:28 (permalink)
    0
    The PIC16F145x family are a little bit odd - although they have two sets of ICSP pins (sharing /MCLR), the RA0 ICSPDAT, and RA1 ICSPCLK pins, at the usual positions for those pins in low pin count parts, are for LVP mode only.   The RC0 ICSPDAT, and RC1 ICSPCLK pins support HVP and to disable LVP mode you *must* use HVP.

    --
    NEW USERS: Posting images, links and code - workaround for restrictions.
    I also support http://picforum.ric323.com because this forum is sometimes too broken to use!
    #5
    Mysil
    Super Member
    • Total Posts : 3325
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 10:47:17 (permalink)
    0
    Hi,
    These USB devices have different pins for LVP and HVP programming,
    have you tried the other pair of pins?
     
        Mysil
    #6
    dginlon
    New Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/05/11 01:43:02
    • Location: 0
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 17:01:53 (permalink)
    0
    Yes,I will try rc0 rc1 program report later.
    #7
    dginlon
    New Member
    • Total Posts : 16
    • Reward points : 0
    • Joined: 2010/05/11 01:43:02
    • Location: 0
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/01/17 18:30:00 (permalink)
    0
    Just like Lan.M Said, i succeed program LVP OFF,
    Thanks 
    #8
    kjo
    Starting Member
    • Total Posts : 72
    • Reward points : 0
    • Joined: 2006/07/11 15:11:02
    • Location: 0
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/03/23 08:00:58 (permalink)
    0
    Just found this thread after starting a new one in MPLABX section.
    I have this exact problem with this device. I can program using the LVP pins. When I switch to the HVP pins MPLABX always gives me device 0x0 and fails to program. I’m obviously doing something wrong.
    #9
    Mysil
    Super Member
    • Total Posts : 3325
    • Reward points : 0
    • Joined: 2012/07/01 04:19:50
    • Location: Norway
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/03/23 08:45:52 (permalink)
    0
    Hi,
    It could be that you have either swapped the pin connections,
    or have something else connected to the same pins.
    Also, What programmer tool are you using, and have MPLAB X 'Project properties' been changed to use HVP programming?
     
        Mysil
    #10
    NorthGuy
    Super Member
    • Total Posts : 5492
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: Program LVP off on PIC16F145x 2019/03/23 15:49:58 (permalink)
    0
    RA0/RA1 are for LVP only. Moreover, they're not 5V tolerant.
     
    RC0/RC1 can be programmed with either LVP or HVP.
    #11
    Jump to:
    © 2019 APG vNext Commercial Version 4.5