LED ON and OFF with 2 Push button switches


Closed Thread
Results 1 to 16 of 16

Hybrid View

  1. #1
    Join Date
    Mar 2003
    Location
    Commerce Michigan USA
    Posts
    1,166


    Did you find this post helpful? Yes | No

    Default Re: LED ON and OFF with 2 Push button switches

    Now, Thats nice and easy. The only thing I would change is not having a variable for the state of the output pin but reading the output state.
    Dave Purola,
    N8NTA
    EN82fn

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: LED ON and OFF with 2 Push button switches

    In the long run, for midrange pics that don’t have a port latch register,
    we should be using a byte port latch to avoid RWM error if time allows.
    So it would go, write single bit to port latch byte, write entire port latch byte to port, read back bit from port latch byte.
    Not that I can say I’ve ever encountered a problem I’d put down to RWM error.

Similar Threads

  1. Push button on PIC16F887
    By menta in forum General
    Replies: 21
    Last Post: - 25th June 2008, 08:47
  2. 12f629 push button & LED
    By yankee in forum mel PIC BASIC Pro
    Replies: 3
    Last Post: - 10th February 2006, 02:45
  3. Button Push within 3 second Window
    By Tissy in forum mel PIC BASIC Pro
    Replies: 6
    Last Post: - 22nd December 2005, 11:06
  4. push button problem
    By ngeronikolos in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 2nd June 2005, 20:44
  5. Push Button 'Menu' to Choose Variable.
    By Tissy in forum mel PIC BASIC Pro
    Replies: 7
    Last Post: - 10th March 2005, 08:00

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