Make pushbutton "1" when pressed?


Results 1 to 3 of 3

Threaded View

  1. #1
    Join Date
    May 2009
    Posts
    4

    Default Make pushbutton "1" when pressed?

    I have some issues with pushbuttons.
    I get a pushbutton with vdd pullups to work (0 when pressed)!
    But how do i reverse this?

    I have tried this solution but with no success:
    Code:
    loop:
      IF portb.5 = 1 THEN LED 
    GOTO loop   
    
    LED:
      high porta.2
      pause 100
      low porta.2
      pause 100
    goto loop
    And schematic in attachment!
    Attached Images Attached Images  

Similar Threads

  1. 8x8 keypad matrix...
    By mbox in forum General
    Replies: 5
    Last Post: - 9th October 2014, 18:43
  2. Change On Interrupt, PIC16F884
    By elec_mech in forum mel PIC BASIC Pro
    Replies: 17
    Last Post: - 14th November 2008, 17:25
  3. How come they make electronics hard as poss
    By George in forum Off Topic
    Replies: 9
    Last Post: - 13th July 2007, 23:54
  4. Timing the pressing and releasing of a PushButton ?
    By serandre in forum Code Examples
    Replies: 4
    Last Post: - 30th March 2006, 12:43
  5. Button pressed time control
    By tanero in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 15th August 2005, 15:17

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