PIC doesn't start witout scope


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1

    Default PIC doesn't start witout scope

    16F876A, I have a 1500 uf cap in front of an AP1084 5v regulator. On the 5v side, I have a 470uf cap. There are 24 1/4hp motors on the 12v side. They create alot noise so thats why I run the large value caps. Here is the deal, on power-up, quite often a PIC doesn't start. I couldn't figure out what was going on. Then I thought I needed to reprogram PIC, as soon as I connected the programmer, the PIC started. The next time it happened, I thought I would trace things out with my scope. As soon as I touch the scope lead to the MCLR pin, the PIC started again. Once it starts, it will keep going. I would say 75% of the time, I need to jump start with my scope.

    Any ideas? What is happening to MCLR when I touch it with my scope? Maybe a cap on the MCLR line?
    Thanks
    Toby

  2. #2
    Join Date
    Jan 2007
    Location
    Portland Oregon
    Posts
    15


    Did you find this post helpful? Yes | No

    Default

    Schematic?

  3. #3


    Did you find this post helpful? Yes | No

    Default

    Here you go
    Attached Images Attached Images

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


    Did you find this post helpful? Yes | No

    Default

    What happens if you turn the MCLR diode around?
    Dave
    Always wear safety glasses while programming.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    What happens if you turn the MCLR diode around?
    Good call Dave. Is MCLR even a needed function ? Perhaps turn it off in the configs. . . just thinking out loud, if you are controlling motors, maybe an E-STOP and full reset would be safer ?
    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.

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


    Did you find this post helpful? Yes | No

    Default

    MCLR OFF is not an option for that part. Would be nice if it was...

    Agreed about the full reset. Could save some problems down the road.
    Dave
    Always wear safety glasses while programming.

  7. #7
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Joe S. View Post
    Good call Dave. Is MCLR even a needed function ? Perhaps turn it off in the configs. . . just thinking out loud, if you are controlling motors, maybe an E-STOP and full reset would be safer ?

    Good catch. Yes, Tobias definetely needs to turn that diode around or it won't work. He can even damage other components in his circuit with the ~12V going to Vpp from the programmer.

    I have a design with a 16F727 where I use a diode and a 4.7k resistor connected to MCRL. Now, reading Joe_S post I just realized that I don't really need this two extra components in my design. In the 16F727 you can configure pin 1 as MCRL or as RE3.

    Robert

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