| ??? 08/18/03 13:17 Read: times |
#52791 - RE: multiple inputs Responding to: ???'s previous message |
hi,
which hardware do you use? what are defined values exactly? Hardly to understand from your example. Anyway, as suggest: just do 8 read cycles and shift bits at same time, then write to the output port. Something like: mov dptr,#PINSA mov r0,#10000000b ; temporal register with terminate bit loop: movx a,@dptr rrc a mov a,r0 rrc a mov r0,a inc dptr ; select pin PINSB, PINSC etc... jnc loop mov dptr,#OUTB movx @dptr,a Good days! |
| Topic | Author | Date |
| multiple inputs | 01/01/70 00:00 | |
| RE: multiple inputs | 01/01/70 00:00 | |
| RE: multiple inputs | 01/01/70 00:00 | |
| RE: multiple inputs | 01/01/70 00:00 | |
| RE: multiple inputs | 01/01/70 00:00 | |
| RE: multiple inputs | 01/01/70 00:00 | |
RE: multiple inputs | 01/01/70 00:00 |



