2 LEDs used Bi-directionally


Closed Thread
Results 1 to 15 of 15

Hybrid View

  1. #1
    Join Date
    Jan 2009
    Location
    Miami, Florida USA
    Posts
    699


    Did you find this post helpful? Yes | No

    Default Re: 2 LEDs used Bi-directionally

    Quote Originally Posted by Demon View Post

    Even if my ports are defined as digital?
    TRISx = 1 'Sets the port as analog
    TRISx = 0 'Sets the port as digital

    When TRISx = 1 the port is set to a high impedance input mode, meaning no current in or out for the LEDs. In other word it turns the port off for the LEDs.
    "No one is completely worthless. They can always serve as a bad example."

    Anonymous

  2. #2
    Join Date
    Jan 2005
    Location
    Montreal, Quebec, Canada
    Posts
    3,159


    Did you find this post helpful? Yes | No

    Default Re: 2 LEDs used Bi-directionally

    Quote Originally Posted by rsocor01 View Post
    TRISx = 1 'Sets the port as analog
    TRISx = 0 'Sets the port as digital

    When TRISx = 1 the port is set to a high impedance input mode, meaning no current in or out for the LEDs. In other word it turns the port off for the LEDs.
    It seems I'm getting denser every year.

    "high impedance input mode" means nothing to me.

    "meaning no current in or out for the LEDs" <--- this I understand


    You only have to explain things once to me, but repeat yourself 12 times, post 3 sample programs, add 6 pictures, include 4 schematics, and I'm good to go.

    I really appreciate the patience you guys have.

    Robert

Similar Threads

  1. 32 LEDs with less than 20mA
    By Demon in forum Off Topic
    Replies: 11
    Last Post: - 23rd January 2014, 03:28
  2. Leds on/off
    By Leonardo in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 2nd September 2009, 21:36
  3. Two LEDs on one Pin
    By modifyit in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 6th June 2006, 13:32
  4. 8 Leds
    By leonel in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 24th June 2005, 22:15
  5. Want some help with LEDs
    By Srigopal007 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 23rd November 2004, 20:46

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