Toggle line between two PIC's


Results 1 to 7 of 7

Threaded View

  1. #2
    Join Date
    May 2008
    Location
    Italy
    Posts
    825


    Did you find this post helpful? Yes | No

    Default Re: Toggle line between two PIC's

    To detect the pin state you should use the input state, to pull down the line you should use output state.

    So when you decide that one side should pulldown you use the trisx.x = 0. This will convert the input pin into an output pin, hence you set the pin to low with portx.x = 0. When you have finished you turn the pin into an input again with the tris instruction.

    Cheers

    Al.
    Last edited by aratti; - 19th January 2014 at 00:40.
    All progress began with an idea

Similar Threads

  1. TOGGLE will not go LOW
    By SUNFLOWER in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 10th August 2014, 16:53
  2. Toggle command
    By mr.sneezy in forum mel PIC BASIC Pro
    Replies: 13
    Last Post: - 16th December 2011, 02:07
  3. PIC's in space
    By ScaleRobotics in forum Off Topic
    Replies: 25
    Last Post: - 19th August 2011, 08:46
  4. toggle or count?
    By earltyso in forum mel PIC BASIC Pro
    Replies: 4
    Last Post: - 26th May 2008, 08:54
  5. 2 Line Chars on a 2 Line LCD
    By Squibcakes in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 16th November 2003, 00:44

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