Programming Reference

This command writes 4 bits to output port Pn.

Code Example


P3=[1 1 1 1]

P3=[0 0 0 1]

P3=[x 1 x x]

Set all pins on port P3 to 1.

Set pin P3.0 to 1 and set the other P3 pins to 0.

Set pin P3.2 to 1 and leave the other P3 pins at their current state.


Special Notes:

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.
There is no 8-bit version of this command.