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 : 74
[ Password lost ? ] [ Join us ] Member online :
Anonymous online : 4
Total visits: 1709950
Most ever online
Total : 206
The 01/12/2024 @ 13:20 Webmaster - Infos
Ip: 18.118.119.77 Search
Friends News
Where are you from?
|