TMP92CF30
2009-06-12
92CF30-483
3.18.4 Detailed Description of Operation
(1)
Connection example
Figure3.18.4 shows an example of connections between the TMP92CF30 and an
external LSI (DA converter) using channel 0.
Note: After reset, PF0 to PF2 are placed in a high-impedance state. Connect each pin with a pull-up or pull-down
resistor as necessary.
Figure3.18.4 Connection Example between the TMP92CF30 and an External LSI
(2)
Operation procedure
The I
2
S unit incorporates a 128-byte FIFO buffer that is divided into two 64-byte
units. Whenever each 64-byte buffer space becomes empty, an INTI2S0 interrupt is
generated. The next data to be transmitted should be written to the FIFO in the
interrupt routine.
Example settings and timing diagram are shown below.
(Example settings) I2S0WS
=
8kHz, I2S0CKO
=
400kHz, data transmission on the rising edge (at f
SYS
=
60 MHz)
(Main routine)
7 6 5 4 3
2
1
0
INTEI2S01
X
−
−
−
X
0
0
1
Set interrupt level.
PFCR
X X
−
−
−
−
−
−
PFFC
−
X
−
−
−
1
1
1
Set pins: PF0 (I2S0CKO), PF1 (I2S0DO), PF2 (I2S0WS)
1 0 0 1 0
1
1
0
Divider value N
=
150
I2S0C
X X 1 1 0
0
1
0
Divider value K
=
50
0 0 X 0 1
0
0
1
Set transmit mode (I2S mode, MSB-first, 16-bit).
I2S0CTL
0 X X X X
0
0
0
Falling edge, WS
=
0 Left, clock stop.
* * * * *
*
*
*
Write left and right data to FIFO (4 bytes
×
32
=
128 bytes).
* * * * *
*
*
*
* * * * *
*
*
*
I2S0BUF
* * * * *
*
*
*
I2S0CTL
1 1 X 0 1
0
0
1
Start
transmission.
0 X X 0 X
0
0
0
(INTI2S Interrupt Routine)
*
*
*
*
*
*
*
*
Write left and right data to FIFO (4 bytes
×
16
=
64 bytes).
* * * * *
*
*
*
* * * * *
*
*
*
I2S0BUF
* * * * *
*
*
*
X: Don't care,
−
:
No change
(Transmit)
PF2/I2S0WS
PF0/I2SCKO
PF1/I2SDO
(Receive)
WS
CK
DATA
TMP92CF30
Example: DA converter
Содержание TLCS-900/H1 Series
Страница 1: ...TOSHIBA Original CMOS 32 Bit Microcontroller TLCS 900 H1 Series TMP92CF30FG Semiconductor Company ...
Страница 650: ...TMP92CF30 2009 06 12 92CF30 648 7 Package Dimensions LQFP176 P 2020 0 40F TOP VIEW BOTTOM VIEW Detail view of A 25 1 A ...
Страница 652: ...TMP92CF30 2009 06 12 92CF30 650 ...