This command reads input port Pn and loads that value into register Mi.
Mi can be M0 - M15.
For device names SNC21030 - 21085, Pn can be P1, P2, or P3.
For device names SNC21120 - 21340, Pn can be P1, P2, P3, or P6.
|
Code Example |
Meaning |
|
M2=P1 |
Read input port P1 and store that value into 4-bit register M2. |
Special Notes:
There is no 8-bit version of this command.