Can't keep a pin low


Results 1 to 16 of 16

Threaded View

  1. #15
    Join Date
    Oct 2004
    Location
    Italy
    Posts
    695


    Did you find this post helpful? Yes | No

    Default

    Hi,

    Upon power up, your PIC I/O is an input high-impedance (tri-state)
    and then with your code you make it an output. Without R2 the
    base of the transistor will be left "floating" when the I/O is
    in high-impedance state.

    * * *

    Battery operated devices

    Hypothetical scenario:
    Only the PIC is switched off with a switch and the
    emitter of the transistor is directly connected to the battery.

    When the PIC is powered down what is the voltage on its I/O?
    In this conditions, do you have still some current flow in R1?
    If the transitor "switch" is not completely turned off, will the
    sound module slowly discharge the battery?

    * * *

    How to measure the current in R1:

    To do this measurement you will need a high-impedance voltmeter.
    (Digital multimeters with LCD display are OK).

    With the Digital multimeter set for "DC volt" measurements,
    measure the voltage dropp across R1.




    Example, your Digital Voltmeter measures 1V across R1:
    (1 V is dropped across R1 and your R1 is 10000 ohm).

    I = V/R


    To calculate the current flow through R1:

    1V / 10000 Ohm = 0.0001 A (0.1 mA)


    Best regards,

    Luciano
    Last edited by Luciano; - 6th January 2006 at 11:12.

Similar Threads

  1. Is this a K Type sensor?
    By jessey in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 21st November 2009, 14:55
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 16:23
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 18:27
  4. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 18:07
  5. 4-line LCD Help - using PortA instead of B
    By Tom Gonser in forum mel PIC BASIC Pro
    Replies: 28
    Last Post: - 31st March 2005, 04:14

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