| ??? 06/25/06 12:39 Read: times |
#119054 - XRL P2,A Responding to: ???'s previous message |
Kai said:
This function looks like EXOR, which the 80C52 cannot perform directly. Which is wrong, of course! This happens if you are doing things while being in a hurry. I must have confused this with the boolean instructions somehow, which do not know the exor instruction. Shame on me, I apologize! The whole debouncing code becomes then: mov r7,r6 ;save r6 mov r6,r5 ;save r5 mov r5,r4 ;save r4 mov r4,r3 ;save r3 mov r3,r2 ;save r2 mov a,p1 ;take a new sample mov r2,a ;store it in r2 cpl a ;complement the last sample anl a,r7 ;AND sample in r7 to it anl a,r6 ;AND sample in r6 to it anl a,r5 ;AND sample in r5 to it anl a,r4 ;AND sample in r4 to it anl a,r3 ;AND sample in r3 to it xrl p2,a ;actualize P2 Kai |
| Topic | Author | Date |
| Multiple switch debouncing | 01/01/70 00:00 | |
| Otherways | 01/01/70 00:00 | |
| Vertical counters | 01/01/70 00:00 | |
| vertical conters in C | 01/01/70 00:00 | |
| and here | 01/01/70 00:00 | |
| vertical counter with press detection | 01/01/70 00:00 | |
| debounce and denoise needed | 01/01/70 00:00 | |
| You are right of course, but... | 01/01/70 00:00 | |
| Reminds me... (off topic) | 01/01/70 00:00 | |
| XRL P2,A | 01/01/70 00:00 | |
| some hair-splitting | 01/01/70 00:00 | |
| exchange | 01/01/70 00:00 | |
| thanx Kai ... | 01/01/70 00:00 | |
| my way | 01/01/70 00:00 | |
| exactly! | 01/01/70 00:00 | |
| Spot on. | 01/01/70 00:00 | |
| Two samples enough? | 01/01/70 00:00 | |
| varies with design | 01/01/70 00:00 | |
| Conditional executing versus branching | 01/01/70 00:00 | |
| KEY RELEASE SUBROUTINE ... | 01/01/70 00:00 | |
| Not really... | 01/01/70 00:00 | |
| a TOTAL misconception or -very annoying | 01/01/70 00:00 | |
| He does not | 01/01/70 00:00 | |
| Beer o'clock | 01/01/70 00:00 | |
| Yes, good idea | 01/01/70 00:00 | |
| never did, never will | 01/01/70 00:00 | |
Agree | 01/01/70 00:00 |



