
LC89057W-VF4
No.7202-33/61
10.2 General Purpose I/Os (PIO0, PIO1, PIO2, PIO3 PIOEN)
10.2.1 Initial settings
The modulation function and general-purpose parallel I/Os share the same pins and therefore they cannot be used
simultaneously. To use the general-purpose I/Os, pull up
______
INT with a 10k
resistor. For further information about the
setting, see Chapter 8.
The general-purpose parallel I/O applies parallel-conversion to the serial data input from the microcontroller interface,
and outputs it from PIO0, PIO1, PIO2, and PIO3. The input function saves the parallel data input to PIO0, PIO1,
PIO2, and PIO3 in internal registers and reads the contents of these registers with the microcontroller interface.
4-bit general-purpose I/Os cannot be used with both input and output mixed. Switching between input and output is
done with PIOEN. When PIOEN is "H", all the general-purpose I/Os become input pins. When PIOEN is "L", all the
general-purpose I/Os become output pins.
10.2.2 Input/output settings
Data handling for general-purpose I/Os is done using the microcontroller interface and write/read registers. See
Chapter 11 Microcontroller Interface for details.
General-purpose I/O write settings (Microcontroller → Write register → General-purpose I/O output)
(1) To output data from general-purpose I/Os, set PIOEN to "L".
(2) Set the data to be output to CCB address 0xE8, command address 0x10, and input registers DI12 to DI15.
(3) During write operation, be sure to input "0" to DI8 to DI11 of modulation setting registers.
(4) The data written to PI0 to PI3 is output from the general-purpose I/Os.
General-purpose I/O read settings (General-purpose I/O input → Read register → Microcontroller)
(1) To input data to general-purpose I/Os, set PIOEN to "H".
(2) The input data is saved in CCB address 0xEB and output registers DO0 to DO3.
(3) Data can be sent to the microcontroller by reading PO0 to PO3.