• AVR Freaks

Hot!Why does my PIC16F886 does't run after programming without doing hard reset at MCLR pin?

Author
BetaEngineer
New Member
  • Total Posts : 1
  • Reward points : 0
  • Joined: 2018/03/16 21:09:33
  • Location: 0
  • Status: offline
2019/09/17 03:13:35 (permalink)
0

Why does my PIC16F886 does't run after programming without doing hard reset at MCLR pin?

Hello,
 I am trying to program PIC16F886 using MPLAB X IDE (v4.05) and Pickit-2 Programmer. 
I have a piece of hardware (PCB) that embed PIC16F886.
 
The problem I am facing is that, when I program the chip, it successfully writes the code without errors or warnings. But it doesn't run the chip in real-time or hardware. But after programming, I had to a hardware reset (through '0' at MCLR) to run the MCU.
 
Actually this same piece of hardware was running smoothly for PIC18F2550, then I used the same hardware for PIC16F886 just a few modifications for PGM pin. At first, it was working fine, but after a lot of writing/programming, suddenly it started showing this behavior in which the MCU doesn't run unless I do hardware reset manually after programming.
 
I think I changed some settings of project unintentionally which I am not aware of. 
So kindly help me with this.
 
Thanks and best regards.
#1

1 Reply Related Threads

    ric
    Super Member
    • Total Posts : 23893
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: Why does my PIC16F886 does't run after programming without doing hard reset at MCLR p 2019/09/17 13:17:57 (permalink)
    +1 (1)
    What "modifications" did you do for the PGM pin?
    Have you turned off the "LVP" bit in your CONFIG word?

    I also post at: PicForum
    Links to useful PIC information: http://picforum.ric323.co...opic.php?f=59&t=15
    NEW USERS: Posting images, links and code - workaround for restrictions.
    To get a useful answer, always state which PIC you are using!
    #2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5