MCLR causing trouble . .


Closed Thread
Results 1 to 11 of 11

Hybrid View

  1. #1
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136

    Question MCLR causing trouble . .

    MCLR pin of 16F84A too sensitive.
    I've explained the problem on the post linked below . . .
    http://picbasic.co.uk/forum/showpost...1&postcount=32
    Now i think its the MCLR pin of the IC that is causing trouble.
    I've given this pin to a 10k resistor and then to Vcc.
    Now even if touch the Vcc grid, the IC resets or 'locks up'.
    How can i resolve this ? ? ?

  2. #2
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default

    shahidali55, What type of filtering do you have on the VCC and VDD lines to the processor? Also is brown out detect enabled?

    Dave Purola,
    N8NTA

  3. #3
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Post

    Hello Dave
    F84 does not have BOD . . .
    I have used a 100uF cap at the input of 7805 and a 1uF at output.
    The schematic is like the one below
    <center><img src="http://josepino.com/pic_projects/led_clock/JP6282.gif" alt=" Led Clock Schematic "></center>
    The processor resets randomly or just locks up . . .
    I'm using a electronic 12v adapter to power it (SMPS type).

  4. #4
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Because you don't have Resistors to the Common Anodes, if you switch-ON any LED segment for more than a few mS, the current draw will be sufficient to deplete the 1uF Capacitor and your supply will be marginal for operating the PIC.

    I suggest three changes...

    1. Increase the 1uF to 10uF
    2. Put 180R Resistor in each Common Anode
    3. Put a 100nF Capacitor between Vss and Vdd as close to the PIC as possible.

  5. #5
    Join Date
    Nov 2005
    Location
    Bombay, India
    Posts
    966


    Did you find this post helpful? Yes | No

    Default

    The schematic has some serious flaws as I can see

    1) As it stands, the switches can seriously damage the A & B segment outputs as the supply is directly connected to the port. If the segment is logic 0, it directly shorts the supply to the port pin which may blow the pin or simply short the supply (your reset issue lies here).

    Way out?
    1) The cathodes need series resistors of around 100 Ohms.
    2) A 100n capacitor between VDD and VSS directly across the PIC
    3) Lots of b/cheer ?

  6. #6
    Join Date
    Jun 2006
    Location
    Bangalore, India
    Posts
    136


    Did you find this post helpful? Yes | No

    Default

    Ok, now i have a 100uF capacitor at output of 7805, .1uF directly on to PCB between Vcc and GND. I have already put 120ohm resistors in series with common anodes, the anodes and cathodes are being driven with transistor buffers.
    The PIC resets if i just touch any part of the Vcc grid with a screwdriver in my hand.
    (Also kept it running and it reset after around 3 hours)
    I tried using a 16f628A, same problem even if i disable MCLR at programming...
    Last edited by shahidali55; - 17th December 2007 at 12:21.

Similar Threads

  1. How to MCLR by code for 16F877
    By fbestepe in forum mel PIC BASIC Pro
    Replies: 11
    Last Post: - 26th November 2014, 00:51
  2. More trouble - Just can't figure it out.
    By kevj in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 29th August 2007, 11:45
  3. 16F688 Internal clock and MCLR
    By manxman in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 18th August 2007, 18:38
  4. What does this MCLR instruction mean?
    By bartman in forum General
    Replies: 16
    Last Post: - 30th November 2004, 00:32
  5. I/O pin and MCLR
    By Dwayne in forum FAQ - Frequently Asked Questions
    Replies: 1
    Last Post: - 15th July 2004, 10:52

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