What's the voltage on output pin when it's HIGH?


Closed Thread
Results 1 to 17 of 17

Hybrid View

  1. #1
    Join Date
    Apr 2006
    Posts
    92

    Default What's the voltage on output pin when it's HIGH?

    Hi,

    I was wondering what voltage is produced on an output pin when it is toggled "HIGH"?

    I always assumed it was 5V, but when measuring it was only 1V, I wondered if my meter is off.

    I am looking for a way to produce a TTL level output pulse; 5V (and 0V) (Similar to the output of a Schmitt Trigger Pulse Oscillator or a 555 timer IC)

    Would I need a transistor for this, or can I just use the Pic by itself?

    Thanks for any advice.

    T
    Last edited by TonyA; - 22nd April 2008 at 21:29.

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


    Did you find this post helpful? Yes | No

    Default

    when you set a pin to HIGH it should close to Vdd, if not, you probably forgot few things

    disable the Comparator
    disable the ADCs
    this pin is a open-collector type.
    This pin is a INPUT only.. can't be an OUTPUT
    etc etc etc

    http://www.picbasic.co.uk/forum/showthread.php?t=561

    since we don't know the PIC and I/O you're using...
    Steve

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

  3. #3
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    I am using 18F452, and reading portb.7.

    It lights an LED the way it should, but I only read 1-2V.

    Thanks,
    T

  4. #4
    Join Date
    Nov 2003
    Location
    Wellton, U.S.A.
    Posts
    5,924


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by TonyA View Post
    I am using 18F452, and reading portb.7.

    It lights an LED the way it should, but I only read 1-2V.
    With or with out the LED attached?
    Dave
    Always wear safety glasses while programming.

  5. #5
    Join Date
    Feb 2003
    Posts
    432


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by mackrackit View Post
    With or with out the LED attached?
    And if WITH the LED attached, did you also include a current limiting resistor in series with the LED ?
    Keith

    www.diyha.co.uk
    www.kat5.tv

  6. #6
    Join Date
    Apr 2006
    Posts
    92


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by keithdoxey View Post
    And if WITH the LED attached, did you also include a current limiting resistor in series with the LED ?

    I don't remember... I'll test again and re-post.

    Thanks again,
    T

Similar Threads

  1. SERIN MIDI out of Synch?
    By jncortes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 9th June 2009, 20:08
  2. Old and beyond help ?
    By DavidFMarks in forum mel PIC BASIC Pro
    Replies: 46
    Last Post: - 11th December 2008, 15:23
  3. Microcontroller with 2 way paging application problem
    By oneohthree in forum mel PIC BASIC Pro
    Replies: 30
    Last Post: - 20th April 2007, 17:27
  4. Serious Serial Situation Setbacks...
    By Dansdog in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 7th February 2007, 03:46
  5. Another RTC, DS1287
    By DavidK in forum Code Examples
    Replies: 0
    Last Post: - 12th December 2006, 17:07

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