PIC16F690 with NE555


Closed Thread
Results 1 to 11 of 11

Hybrid View

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


    Did you find this post helpful? Yes | No

    Default

    The reality is that a PIC I/O's can be indeterminate on Power-On. Set the I/O's as one of the first things you do when you Power-On your PIC. Leaving them set to input (high impedance) may be enough to trip your circuitry.

  2. #2
    Join Date
    Sep 2005
    Location
    Campbell, CA
    Posts
    1,107


    Did you find this post helpful? Yes | No

    Default

    Melainie, it is so nice to see you making posts again. We need you!
    Charles Linquist

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


    Did you find this post helpful? Yes | No

    Default

    You know I can get to like some folks... *smiles* but seriously, don't get too excited... yesterday afternoon was an exception... I was in a meeting with people and a subject that bored the hell out of me... thank God for Wireless Laptops...

  4. #4
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Melanie View Post
    The reality is that a PIC I/O's can be indeterminate on Power-On. Set the I/O's as one of the first things you do when you Power-On your PIC. Leaving them set to input (high impedance) may be enough to trip your circuitry.
    Hello,

    Thank you for the answer.

    About the pins status at power on, I read in the datashet that it is in undetermined state, as you say. I set PORTA in the program but it seems to be too late because the NE555 already got a logic HIGH from the pin by the time the PORTC register is written.

    What is "tripping" a circuitry? (sorry if I sound ignorant).

  5. #5
    skimask's Avatar
    skimask Guest


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by xnihilo View Post
    I set PORTA in the program but it seems to be too late because the NE555 already got a logic HIGH from the pin by the time the PORTC register is written.

    What is "tripping" a circuitry? (sorry if I sound ignorant).
    That's why you add a pulldown resistor. That way as soon as you apply power, the line is already LOW.

    'tripping' - As you've figured out, PIC's pins are INPUT at power up. If nothing is connected to them, or they are connected to something that isn't really 'connected' (i.e. another input to another chip), they'll float, meaning they just kinda hang onto whatever charge is floating around in the air, or maybe they'll get a bit of leakage from the pin next to them, or a bit of leaking across a couple of traces on the PCB...they'll end up doing whatever they want because there's nothing there to pull them either way....so, the charge might get high enough to register as a HIGH at the port latch itself....Orrrrrr....the charge might get low enough to register as a LOW at the port latch itself...Orrrr....it might hang out somewhere in the middle and just by accident get registered as a HIGH or a LOW just by hanging out. The key here is that it's 'Indeterminate', exactly what the books say... You just don't know what it's going to do, so you give it something to do, by adding a little push, a little bit of voltage to go either HIGH or LOW...

  6. #6
    xnihilo's Avatar
    xnihilo Guest


    Did you find this post helpful? Yes | No

    Smile

    Thank you for this crystal clear explanation.
    The datasheet is very clear too about the state of the pins at powerup.

    I've tied the pin to GND with a 4.7K WPD resistor but still it would be HIGH at power-up.
    I moved the PORT (setting it to 0) and TRIS (setting it to input) for this pin right at the top of my source code: it helped. Later in my code the PORT and TRIS registers are set to the right settings (my pin has to be used as output as it outputs a pulse).

    Hope this helps others.

Similar Threads

  1. PIC16F690 code help please
    By hysteria92 in forum mel PIC BASIC
    Replies: 1
    Last Post: - 24th February 2010, 16:17
  2. PIC16f690 LCD Not Working
    By hhosteam in forum mel PIC BASIC Pro
    Replies: 19
    Last Post: - 3rd June 2009, 06:26
  3. Replies: 1
    Last Post: - 19th February 2009, 13:35
  4. Replies: 0
    Last Post: - 13th February 2009, 03:34
  5. gps rikaline x5 to pic16f690
    By xnihilo in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 9th May 2008, 11:21

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