??? 12/10/04 01:08 Read: times |
#82867 - Do the independent bit tests Responding to: ???'s previous message |
I need to check each bit of the controller of P2 independently and do certain tasks upon getting a high signal and low signal on a specific bit that;s why i wanted to know instead of using CJNE or JNZ commands can the ram location bits and DPTR lookup table be used If the bits are independent, then you just need to test each bit independently - that requires only eight tests (one for each bit). To implement this in a lookup table would require a 256-entry table to cope with all possible combinations of the independent bits. It sounds to me like the independent bit tests is going to be by far the most efficient and "natural" solution |
Topic | Author | Date |
DPTR for internal code | 01/01/70 00:00 | |
DPTR....... | 01/01/70 00:00 | |
Look at Instructions set | 01/01/70 00:00 | |
DPTR for code memory | 01/01/70 00:00 | |
Port scanning | 01/01/70 00:00 | |
DPTR and I/O Ports | 01/01/70 00:00 | |
Outputting and Inputting Bits | 01/01/70 00:00 | |
Jump Table? | 01/01/70 00:00 | |
It can Not | 01/01/70 00:00 | |
DPTR for code memory | 01/01/70 00:00 | |
Do the independent bit tests | 01/01/70 00:00 | |
very complex bit testing![]() | 01/01/70 00:00 | |
Dptr for code memory | 01/01/70 00:00 | |
JB | 01/01/70 00:00 |