Hardware or Software


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Mar 2009
    Posts
    10

    Default Hardware or Software

    Hello,

    I seem to have hit a issue that I cannot pinpoint. I was not there when it happened and have not looked at it yet but I have been told that a board that mounts on top of a series string of batteries. The pic is not starting up at this time however the regulator is putting out the requisite 3.3 volts. Could it have something to do with having voltage dividers feeding the a/d channels on the pic before the pic is up and running? Any thoughts as to what may be happening/causing problems here?

    The board worked prior to it being attached to the battery pack and then once attached it worked and operated as designed. The pack and board were taken apart the other day and when reassembled the pic did not come back.

    Thanks again in advanced.

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


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by bmagistro View Post
    Hello,

    Could it have something to do with having voltage dividers feeding the a/d channels on the pic before the pic is up and running? Any thoughts as to what may be happening/causing problems here?
    I think you are on the right track in this assumption, either it blew or erased the PIC.
    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 2009
    Posts
    10


    Did you find this post helpful? Yes | No

    Default

    I was afraid of it blowing the pic. I wrote one pic off to ESD because I knew I was being careless but didn't think it was ESD, just didn't want to think it got blown when working on it at one point. What are your thoughts on using a MOSFET/BJT as an electronic switch that enables the A/D lines to the pic once the pic up and running. I'd like to limit the number of mechanical switches if possible since it would not be practical to flip several mechanical switches after a "power failure" or similar issue.

  4. #4
    Join Date
    Mar 2009
    Location
    Florida USA
    Posts
    22


    Did you find this post helpful? Yes | No

    Smile Turn off signal to ADC Inputs

    Some time ago I designed a battery charger for my tools and had the same situation, although I never had a problem with a blown pic when the battery was connected to the pic inputs. To be safe, I would suggest putting a P-ch Mosfet with a low resistance such as a BS 250 in series with the input divider and have the pic turn them on when ready.
    Regards,
    misterg

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


    Did you find this post helpful? Yes | No

    Default

    You can apply voltage to an input before the PIC has power as long as you keep the current below the 'maximum input current' for your device. I believe that is +/-20mA for most devices. This number can be found in the ABSOLUTE MAXIMUM RATINGS listing in the datasheet.
    All PICs have (essentially) a diode between the input pins and the supply rails. This also means that if you apply a voltage to an input pin, you can power the PIC from the input pin alone. I once had trouble with a PIC not resetting on power up. It turns out that the current into the input pin was preventing the supply voltage from dropping low enough (even when the PICs power supply was shut off) to allow the PICs internal RESET circuit to operate.
    Charles Linquist

Similar Threads

  1. Benefits of hardware usart over software?
    By sccoupe in forum Serial
    Replies: 2
    Last Post: - 19th March 2009, 01:16
  2. Software Stack
    By yasser hassani in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th December 2007, 10:04
  3. IR software & hardware basics
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 6th May 2007, 10:05
  4. hardware counting while software runs
    By Archangel in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 2nd October 2006, 03:26
  5. Programming software for PicAll Hardware
    By bcd in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th July 2006, 08:15

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