
LC89057W-VF4-E
No. 7202-33/61
9.2 General-Purpose I/Os (PIO0, PIO1, PIO2, PIO3 PIOEN)
9.2.1 Initial settings
The modulation function and general-purpose parallel I/Os share the same pins and therefore cannot be used
simultaneously. To use the general-purpose I/Os, pull up INT with a 10k resistor. For the setting method, see
Chapter 7.
The general-purpose parallel I/O output function performs parallel conversion of the serial data input from the
microcontroller interface and outputs the resulting data from PIO0 PIO1, PIO2, and PIO3. The input function saves
the parallel data input to PIO0, PIO1, PIO2, and PIO3 to internal registers and reads the contents of these registers
with the microcontroller interface.
4 bit general-purpose I/Os cannot be used for both input and output in mix. Switching between input and output is
done with PIOEN. When PIOEN is "H", the general-purpose I/Os all become input pins. When PIOEN is "L", the
general-purpose I/Os are all output pins.
9.2.2 Input/output settings
Data handling for general-purpose I/Os is performed using the microcontroller interface and write/read registers.
For details, see Chapter 10 Microcontroller Interface.
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 modulation function setting registers DI8 to DI11.
(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 to CCB address 0xEB and output registers DO0 to DO3.
(3) Data can be sent to the microcontroller by reading PO0 to PO3.