PIC12f683 GPIO.0 Trouble


Closed Thread
Results 1 to 12 of 12

Hybrid View

  1. #1
    Join Date
    Dec 2010
    Posts
    409


    Did you find this post helpful? Yes | No

    Default Re: PIC12f683 GPIO.0 Trouble

    Your problem description sounds like the transistor is in backwards. A word of caution about 2222A pin order - MPS2222A is EBC but 2N2222A is CBE.
    Last edited by Charlie; - 9th February 2014 at 15:19.

  2. #2


    Did you find this post helpful? Yes | No

    Default Re: PIC12f683 GPIO.0 Trouble

    At a quick glance I think your circuit has some GOTCHAS in it.

    You can supply a HI to the transistor, but you cannot send a LO to it, (diode blocking it) so the transistor base is floating.

    Unsure as to your reason for feeding your ground through a diode.

    You have no decoupling or smoothing caps in the 5V line

    Also think that your 10K pull down should be on the other side of the diode as when the controller reset is LO the pic is not able to see it as it will not pass through the diode.

  3. #3
    Join Date
    Sep 2010
    Location
    Las Vegas, NV
    Posts
    305


    Did you find this post helpful? Yes | No

    Default Re: PIC12f683 GPIO.0 Trouble

    Well the biggest issue I see is GPIO.3 MCLR needs to be pulled high unless you disable it in your configs.

    I agree with previous about diodes. Remove them especially on the power pins and add the decoupling caps. They are not really necessary in light of the slow speed of your program.

    If PIC is getting hot it's sinking/sourcing too much current. Usually to the base of the transistor you'd use a 10K but if you look at datasheet of 2222A you can calculate the right size to get the transistor to saturation. Diodes to transistor isn't necessary and should be removed.

    Resistor to GPIO.1 should be at pin to pull pin low when circuit is not setting it high. You can ditch the diode there also.

    Since you're doing all that shifting I'd suggest you not use GPIO.0 and GPIO.1. They are the ICSP pins and with out a switch to isolate circuit use of those pins as shown will not allow you to do ICSP. Don't forget GPIO.3 is an input only when configured properly and your controller reset input is the best use of that pin.

    I suspect it will work as drawn once you fix the MCLR pin and transistor orientation if incorrect.
    Last edited by AvionicsMaster1; - 9th February 2014 at 18:30. Reason: oopse

Similar Threads

  1. 12F683: I change GPIO.5 but GPIO.0 also changes...why?
    By chicowoodhill in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 4th December 2012, 17:09
  2. Replies: 1
    Last Post: - 29th February 2012, 09:37
  3. Trouble with PIC12F683 - GP0 GP1 as inputs
    By erice1984 in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 30th March 2009, 04:32
  4. pic12F683 , gpio.5 not accessible...
    By flipper_md in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 9th May 2008, 05:25
  5. Using the pic12F683
    By TonyA in forum General
    Replies: 2
    Last Post: - 6th April 2006, 12:46

Members who have read this thread : 1

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