This command sets the nth bit in register Mi to 0 or 1.
Bits in 4-bit registers can be set using Mi(n), where Mi is M0 - M15 and n is 0 - 3.
There are sixteen 4-bit registers.
Bits in 8-bit registers can be set using Xi(n), where Xi is X0 - X7 and n is 0 - 7.
There is a maximum of eight 8-bit registers.
|
Code Example |
Meaning |
|
M2(0)=1 |
Set bit 0 in 4-bit register M2 to 1. |
|
M15(3)=0 |
Set bit 3 in 4-bit register M15 to 0. |
|
X4(7)=1 |
Set bit 7 in 8-bit register M4 to 1. |
|
X7(5)=0 |
Set bit 5 in 8-bit register M7 to 0. |