1. PF Contest - Win "Conquering the Physics GRE" book! Click Here to Enter
    Dismiss Notice
Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Switch Debounce using PIC16F690 Microcontroller

  1. Mar 14, 2013 #1
    1. The problem statement, all variables and given/known data

    I'm having a lab problem for PIC16F690 chip. It's needed to write a software solution of switch debounce in Assembly and test the code on the LPC demo board of the PICKit2 using the push button that's connected to the MCLR pin of the chip. The effect of pushing down (ON)/releasing (OFF) the button should be seen on an LED. Here's a picture of the procedure of the program.


    2. Relevant equations


    3. The attempt at a solution

    I've attached my latest attempt of the code in a txt file. The loop that I created is a 5ms delay as stated in the program procedure.

    Attached Files:

    Last edited: Mar 15, 2013
  2. jcsd
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook

Can you offer guidance or do you also need help?
Draft saved Draft deleted