5.5.4 Write Digital I/O Port (WIO,<hex16>,<hex16>)
Format:
WIO,<hex16>,<hex16>
Command sets the output value of the digital I/O ports. It expects two input
parameters. The first parameter is the bitmap of digital I/O ports, and the second
parameter is the output value in the bitmap. The bitmap format is the same as in the
command WIO
(see Table 5-29).QIO
| Example: |
|
// Set digital I/O output on GPIO_PIN_RA0, GPIO_PIN_RA01 and GPIO_PIN_RA10 // Set GPIO_PIN_RA0 high and GPIO_PIN_RA1 low and GPIO_PIN_RA10 high |
| Response: | AOK | // Success |
Err | // Syntax error, invalid parameter |
