TTL input - 3rd states possible?


Results 1 to 27 of 27

Threaded View

  1. #19
    Join Date
    Feb 2005
    Location
    Kolkata-India
    Posts
    563


    Did you find this post helpful? Yes | No

    Question Time for your schematic and entire code

    Hi,

    It is possible. Did you connect your PIC according to the schematic I provided. <img src="http://www.picbasic.co.uk/forum/attachment.php?attachmentid=1507&d=1175158348" align="absmiddle">Try increasing the pause. Please post your entire code and schematic. It is possible in one way or the other. I have chosen the Digital way. Detecting multiple switches with one pin is also possible using the ADC. By the way the circuit doesn't work when both the switches are pressed simultaneously. The 1K resistors are provided for that purpose so that you don't blow up your PS. When both are pressed most likely your PIC would read a logic high. As you get 1/2VDD and @ 5 volts it is good enough to be a logic 1. In any TTL/CMOS gate your cannot have anything other than 0 or 1 in your output whether your inout is at 0,1 or Z. So software tricks does it. By switching your port pin between input and output and detecting the holding capacitors state. I repeat please post your exact code and schematic and it should work.
    Let me clarify my understanding about your requirement.
    • You need to use only one pin of your PIC.
    • You need to connect 2 switches to that.
    • You need to determine whether your input is hanging idle (Z)
    • Switch connected to VDD was pressed (H)
    • Switch connected to VSS was pressed (L)

    I am waiting.
    Last edited by sougata; - 30th March 2007 at 12:00.
    Regards

    Sougata

Similar Threads

  1. Sony LanC Program
    By l_gaminde in forum Code Examples
    Replies: 2
    Last Post: - 25th September 2009, 19:51
  2. RB0 + Internal Pullup + Interrupt
    By Freman in forum mel PIC BASIC Pro
    Replies: 20
    Last Post: - 10th August 2009, 12:11
  3. LED "capacitance" won't get lower
    By flotulopex in forum mel PIC BASIC Pro
    Replies: 16
    Last Post: - 3rd May 2007, 21:31
  4. Timing input pulses and re-outputting them
    By jamie_s in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 28th February 2007, 02:50
  5. Using LEDs as light sensors
    By skimask in forum Code Examples
    Replies: 3
    Last Post: - 30th December 2006, 23:19

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