+ Reply to Thread
Results 1 to 3 of 3

Thread: code to use 8 push button switch on pic16f88

  1. #1

    Default code to use 8 push button switch on pic16f88

    can someone please help me with a code to use 8 push button switch on pic16f88 such that if a single button is pressed a corresponding LED switches on until a reset button is pressed. thanx

    Hi, its great to see you visiting our forum. Why not try Proton Compiler for FREE?

    Download the FREE version of Proton Compiler, Its called Amicus18 and its available from HERE

    Already using proton Compiler??? Get rid of these pesky messages... get LICENSED USER STATUS




  2. If you're a Licensed user of PROTON DEVELOPMENT SUITE, apply for Licensed User Status to remove these pesky messages
     and get access to additional forum areas, Beta test downloads and more!

  3. #2
    Licensed User captainslarty's Avatar
    Join Date
    Sep 2006
    Location
    A Marina in Portugal
    Posts
    3,064


    Default Re: code to use 8 push button switch on pic16f88

    Quote Originally Posted by victorsibanda View Post
    can someone please help me with a code to use 8 push button switch on pic16f88 such that if a single button is pressed a corresponding LED switches on until a reset button is pressed. thanx
    Set the port as inputs, for the buttons, use pullups if not avaiable, use a simple scan loop routine, also one extra pin input for reset. when a key is pressed, . act on the input. turn on the led(s)- this is a port with inputs or outputs to sink or source the led's... another button resets. simple stuff.
    Please sit down for a few hours and read the pds help manual. Experiment then with the sample code routines.
    What you need is only just beyond hello world, however, the hard work has been done for you in the manual and the sample code.
    Enjoy.
    Joe
    Civilisation is the limitless mutiplication of unecessary necessities ... (Mark Twain)

  4. #3
    Licensed User barak's Avatar
    Join Date
    Apr 2008
    Location
    Minnesota USA
    Posts
    360


    Default Re: code to use 8 push button switch on pic16f88

    Start with 1 switch and 1 LED...

+ Reply to Thread

Similar Threads

  1. Whats wrong with this code ?? LED blink with button
    By Automods in forum Proton Plus Compiler v3
    Replies: 20
    Last Post: 10th November 2010, 18:24
  2. PIC12F683 and Switch. Handling button presses
    By t0pP8uZz in forum Proton Plus Compiler v3
    Replies: 6
    Last Post: 28th October 2009, 20:48
  3. Self adhesive push button users?
    By Charles Coultas in forum The Lounge
    Replies: 5
    Last Post: 5th January 2009, 14:52
  4. Device Code/button Code
    By insury in forum Proton-IR
    Replies: 3
    Last Post: 14th December 2004, 21:38

Members who have read this thread since 2nd May 2012, 19:42 : 1

Actions :  (Set Date)  (Clear Date)

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