English
Language : 

LC89058W-E Datasheet, PDF (36/64 Pages) Sanyo Semicon Device – Digital Audio Interface Receiver
LC89058W-E
11 Description of General-purpose I/O Function (GPIO0, GPIO1, GPIO2, GPIO3)
11.1 Initial Settings
• When setting general-purpose I/Os for input, pull down INT with a 10kΩ resistors. When settings general-purpose
I/Os for output, pull up INT with a 10kΩ resistor. See Chapter 9 for INT pin settings.
• If general-purpose I/Os are set to the output pin, the serial data input from the microcontroller interface is converted to
parallel data and output from of GPIO0, GPIO1, GPIO2, and GPIO3.
• If general-purpose I/Os are set to the input pin, select one of the functions listed below with GPIOS.
(1) Store the parallel data input from the GPIO0, GPIO1, GPIO2, and GPIO3 in the internal register and readout the
contents of that register through the microcontroller interface (GPIOS=0).
(2) Configure a 2-to-1 (4 bits wide) selector that selects either the audio format data and clock that are input to the
GPIO0, GPIO1, GPIO2, and GPIO3 pins, or data and clock demodulated by the DIR block.
RMCK, RBCK, RLRCK, and RDATA are the outputs from the selector (GPIOS=1).
11.2 Output Function
• The data output directed to the GPIO0, GPIO1, GPIO2, and GPIO3 are stored at CCB address 0xE8, command
address 10, input register bits DI12 to DI15, or register PI[3:0].
• The data stored in PI[3:0] are transmitted out of the GPIO0, GPIO1, GPIO2, and GPIO3 pins.
11.3 Input Function
11.3.1 GPIOS=0
• The data input to the GPIO0, GPIO1, GPIO2, and GPIO3 are taken into CCB address 0xEB, output register bits DO0
to DO3, or register PO[3:0].
• The data must be readout by setting the interrupt source GPIO to INT or at an arbitrary timing. The way in which the
data is taken into the register depends on how it is readout.
11.3.1.1 GPIO=1 (using INT )
(1) XIN must always be given the specified clock and set in continuous operating mode (default).
(2) The data inputs to the GPIO0, GPIO1, GPIO2, and GPIO3 are taken into the register on a 24kHz clock.
(3) When the state of one of the data inputs changes, INT turns to “L” and suspends the data transfer to the register.
(4) The interrupt sources for CCB address 0xEA, output register DO14, and register OGPIO must be verified.
(5) INT turns “H” and the data is held in the register immediately when address 0xEA is readout.
(6) The read data from the PO[3:0] is transferred to the microcontroller. At the same time, the data in the register is
cleared.
(7) The contents of the register are updated if INT turns to “L” before P0[3:0] is readout.
11.3.1.2 GPIO=0 (not using INT )
(1) The data inputs to the GPIO0, GPIO1, GPIO2, and GPIO3 pins are taken in when the CCB address 0xEB is set.
(2) The data read from the PO[3:0] is transferred to the microcontroller. At the same time, the data in the register is
cleared.
No.A1056-36/64