??? 03/03/07 22:22 Read: times |
#134226 - clear or not? Responding to: ???'s previous message |
Mike Stegmaier said:
maybe if a special assembler was used, it might not matter, but in the end, it is very helpful to know what X1, X2, X3, and X4 are.
At least if I knew what they were, I could try to answer the question. I think the OP said: "DOING NECCASRY THINGS THAT ALL ROWS = 0 " in the comments. What he clearly does is setting each row to 0. Well, that's what it means to me... I can only speak for myself. he then states MOV A,P1 ;TAKING THE VALUE OF THE COULUMNS TO ACCUMULATOR ANL A,#00001111B ;DONT EFFECT THE UNUSED BITS OF THE COULUMNS PORT and MOV A,P1 ANL A,#00001111B CJNE A,#00Fh,R2_H ;IF FIRST ROW CONTAINS THE KEY PRESSED So it's quite clear to me that P1 contains the columns and the rows. I then must conclude that X1-X4 are a P1 nibbe, and so are Y1-Y4. I would have named them differently, but that doesn't make a difference to the actual prgram logic, only to the readability. regards |
Topic | Author | Date |
Is there any better solution of Debouncing? | 01/01/70 00:00 | |
specify | 01/01/70 00:00 | |
probably | 01/01/70 00:00 | |
ultimately | 01/01/70 00:00 | |
no matter of defines | 01/01/70 00:00 | |
clear or not? | 01/01/70 00:00 | |
X1,X2,X3 and X4 are Output of Keypad | 01/01/70 00:00 | |
The Whole Code sir :-) | 01/01/70 00:00 | |
how to | 01/01/70 00:00 | |
WoW what a complete guide... | 01/01/70 00:00 | |
please explain | 01/01/70 00:00 | |
debouncing algorithms | 01/01/70 00:00 | |
Well sir thanks for your help i have got it.... | 01/01/70 00:00 | |
my way | 01/01/70 00:00 | |
better? who knows | 01/01/70 00:00 | |
"help me" | 01/01/70 00:00 | |
first, second, third![]() | 01/01/70 00:00 |