dual 7-segment countdown timer code


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    i've said that hundreds of time on many forums... they're good for lazy prototyping and/or in a well shielded enclosure. In harsh environment, they could (and sure they will) be a real pain in the... but on the flip side, it may work good... and maybe long enough to cover the warranty time

    i NEVER use pull-up, never use the 'Set your pin as output and let'em floating in the air' The theory is hum hum good, but... will your design will always be powered? What happen with those pull-up when you remove the power... they're software enable after all!
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

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


    Did you find this post helpful? Yes | No

    Default Good Point

    Quote Originally Posted by mister_e View Post
    will your design will always be powered? What happen with those pull-up when you remove the power... they're software enable after all!
    That's an excellent point, I never thought of.
    JS
    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.

  3. #3
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mister_e View Post
    i've said that hundreds of time on many forums... they're good for lazy prototyping and/or in a well shielded enclosure. In harsh environment, they could (and sure they will) be a real pain in the... but on the flip side, it may work good... and maybe long enough to cover the warranty time

    i NEVER use pull-up, never use the 'Set your pin as output and let'em floating in the air' The theory is hum hum good, but... will your design will always be powered? What happen with those pull-up when you remove the power... they're software enable after all!
    Please explain what is the problem in pullup, if chip have pullup feature ?
    i ever useing OUTPUT PORTB.0 , is this wrong way ? Please tell what we must...


    .
    Last edited by precision; - 30th April 2007 at 04:54.

  4. #4
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    it can be useful in few situation : tight space, mass production with tight budget, Push-button handling, prototyping, etc etc. They're weak, and may cause some problem (noise, ESD, strange behaviour, etc etc) one day or another. I got few ESD and erratic problems in the past with that in noisy environment, since i add external one, no more problem!

    It's a long debate, some never ever had problem with... too bad i no longer take the risk.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  5. #5
    Join Date
    Mar 2006
    Location
    INDIA
    Posts
    89


    Did you find this post helpful? Yes | No

    Default

    Thanks, one more Q. please
    what should we use instead of output pin / input pin. I mean tbe best way to make input output pin ?

    .

  6. #6
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile

    Hi Precision,

    I think what Mister E is saying is always use an external resistor either in a pull up or pull down situation. Don't make an unused pin an output and just leave it floating. Look at the data sheet for the particular PIC you are using and search for the state of the pins ON RESET. If you are leaving a number of pins unused and they start as inputs on powerup or on reset then you need to make sure they are properly terminated with a pullup or pulldown resistor.

    HTH,

    BobK

Similar Threads

  1. Elapsed Timer Demo
    By Darrel Taylor in forum Code Examples
    Replies: 111
    Last Post: - 29th October 2012, 17:39
  2. Making Program Code Space your playground...
    By Melanie in forum Code Examples
    Replies: 15
    Last Post: - 19th July 2008, 08:26
  3. WRITE not working
    By servo260 in forum mel PIC BASIC Pro
    Replies: 31
    Last Post: - 29th December 2004, 02:02
  4. Driver code for 14 segment LED display
    By Durward Searcy in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 12th December 2004, 20:08
  5. Multiplex two 7 segment display
    By Fernando Santos in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th July 2003, 13:26

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