Welcome!
Welcome PIC fans! (to Pascal language fans too!) Technical
General documentation
How to support PMP Manuals
Tips
Other stuff
Documentation How to support PMP
Off Topic Today's favourites
Search
Downloads
The last 5 downloads
The last 5 most downloaded
|
Tips - How to check that only one button is pressed?
The deal: If several push buttons are connected say, to PORTA, what is the best way to check that there is only one button pressed? Here is an assembler suggestion (a snippet from Scott Dattalo):
MOVF PORTA,W Great isn't it?
Temp := PORTA and BUTTON_MASK;
Creation date : 2009.03.27 5:43 PM Reactions to this article
| Connection...
Members : 75
[ Password lost ? ] [ Join us ] Member online :
Anonymous online : 11
Total visits: 1683786
Most ever online
Total : 170
The 01/01/2021 @ 17:50 Webmaster - Infos
Ip: 35.173.48.18 Search
Friends News
Where are you from?
|