• AVR Freaks

Hot!PIC12F1840 not starting up

Author
dgossa
New Member
  • Total Posts : 5
  • Reward points : 0
  • Joined: 2019/11/27 15:10:24
  • Location: 0
  • Status: offline
2020/09/22 08:55:01 (permalink)
0

PIC12F1840 not starting up

Produced a batch of boards using PIC12f1840 MCU's after successful testing of a prototype. About half of them work while the other half don't. Regular expected operation is for the device to send SPI messages continuously after boot. However, the PIC seems stuck and no messages are being sent for half the devices. Here are the troubleshooting tests I performed.
1) MCLR = enabled
- When powered up MCLR pin is low when measured with DMM. (On the good devices, the pin however, its high).
- Connecting Pickit3 makes it start working. Continues to work normally after removal of Pickit3. MCLR pin stays high after removing Pickit3 and everything seems normal.
2) MCLR = Disabled (set as input with internal weak pull up)
- When powered, it still doesn't work. MCLR pin is low when measured with DMM.
- Connecting Pickit3 makes it start working. Continues to work normally after removal of Pickit3. MCLR pin stays high after removing Pickit3.
3) MCLR = Disabled (set as input with internal weak pull up) AND connected MCLR(RA3) pin to VDD.
- When powered, its till doesn't work. MCLR pin is HIGH when measured with DMM.
- While its still powered up, disconnecting MCLR pin from VDD does nothing but MCLR pin goes low when measured with DMM.
- While its still powered up, disconnecting then reconnecting the MCLR pin from VDD makes it start working again and MCLR pin goes HIGH. MCLR pin stay high at this point even after disconnecting it from VDD.
4) Created a dummy test program with everything disabled and code to toggle each of the pins. However, I experience the same issues as above. the toggling of the pins only works when toggling the MCLR pin. Therefore, I'm ruling out SPI issues.
5) Replaced the bad MCU's with a new one and it started working normally.
6) Another major issue is some of the good working MCU's start behaving this way after some time and never to return to their good working condition.
 
-----
In all cases a momentary short between MCLR and VDD causes a "reset" where the device starts to operate normally. There is a weak internal pull-up which doesn't help. I even pulled MCLR to VDD directly, but device doesn't start at power up. Only when I toggle MCLR does it start working after power up.
 
Am I missing something in hardware or software setup?
Could there be ESD damage?
These components were procured and assembled by an assembler in China. Could they be counterfeit MCU's?
Is my Pickit3 causing the damage/issue?
 

Attached Image(s)

#1

5 Replies Related Threads

    upand_at_them
    Super Member
    • Total Posts : 681
    • Reward points : 0
    • Joined: 2005/05/16 07:02:38
    • Location: Pennsylvania
    • Status: offline
    Re: PIC12F1840 not starting up 2020/09/22 12:04:03 (permalink)
    +2 (2)
    How many times are you going to post this?
    #2
    dgossa
    New Member
    • Total Posts : 5
    • Reward points : 0
    • Joined: 2019/11/27 15:10:24
    • Location: 0
    • Status: offline
    Re: PIC12F1840 not starting up 2020/09/22 12:40:38 (permalink)
    +2 (2)
    I had tried posting for the last couple of days and I was getting an error. All of a sudden they all came up today. I could not delete the duplicate posts.
     
    I have also found the solution. The device was held in reset due to BOR. The VDD measured was dipping to to 2.4 volts. Will need to use a higher voltage supply. Sorry about the multiple posts.
    #3
    ric
    Super Member
    • Total Posts : 28660
    • Reward points : 0
    • Joined: 2003/11/07 12:41:26
    • Location: Australia, Melbourne
    • Status: online
    Re: PIC12F1840 not starting up 2020/09/22 14:14:31 (permalink)
    +1 (1)
    n.b. it would have been helpful to post ALL your config settings.
    If you have LVP enabled, that overrides MCLRE, so the MCLR pin is always active.
    If you don't have a pullup on MCLR, then the weak internal one might help, but you have to be carefulk how you measure the pin voltage, it is a WEAK pullup.
    The BOR/voltage problem will have been confusing the issue of course.

    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!
    #4
    PStechPaul
    Super Member
    • Total Posts : 2950
    • Reward points : 0
    • Joined: 2006/06/27 16:11:32
    • Location: Cockeysville, MD, USA
    • Status: offline
    Re: PIC12F1840 not starting up 2020/09/22 19:18:51 (permalink)
    +2 (2)
    Power On Reset may help also. Again, CONFIG bits should be provided.

     
    #5
    NorthGuy
    Super Member
    • Total Posts : 6349
    • Reward points : 0
    • Joined: 2014/02/23 14:23:23
    • Location: Northern Canada
    • Status: offline
    Re: PIC12F1840 not starting up 2020/09/23 11:00:39 (permalink)
    +2 (2)
    Try PIC16LF1840. It is the same as PIC16F1840, but works down to 1.8V. You'll still need 2.5V+ to program it.
    #6
    Jump to:
    © 2020 APG vNext Commercial Version 4.5