Download Print this page

Toshiba TLCS-900/H1 Series Manual page 437

Original cmos 32-bit microcontroller
Hide thumbs Also See for TLCS-900/H1 Series:

Advertisement

3.20.4
Explanation of SIO Mode
(1) Connection example
Figure 3.20.6 shows an example with external LSI.
Note: Since P90 to P91 become high impedance by reset, connect a pull-up or pull-down resistor if necessary.
(2) Procedure
A 32-byte FIFO is built-in. If the FIFO's data becomes empty, an INTI2S interrupt is
generated.
In the interrupt routine, write the next transmission data to the FIFO.
The following shows a setting example and timing diagram.
(Setting example) Transmitting by SIO mode, I2SCKO = 10 MHz, synchronous with rising edge
(Main routine)
INTE5I2S
P9CR
P9FC
I2SCTL0
I2SBUFR
I2SCTL0
(INTI2S interrupt routine)
I2SBUFR
If <BUSY> = "1" then WAIT else NEXT
I2SCTL0
X: Don't care, −: No change
TMP92CH21
(Transmitter)
P90/I2SCKO
SCK
P91/I2SDO
SI
Port
RCK
Example: Shift register
Figure 3.20.6 Example with External LSI
= 20 MHz)
(at f
SYS
7
6
5
4
3
2
1
0
X
0
0
1
X
0
0
1
1
0
1
1
0
0
1
1
1
0
0
0
1
** ** ** ** ** ** ** **
1
1
1
0
0
1
1
1
0
0
0
1
** ** ** ** ** ** ** **
1
1
1
0
0
1
1
1
0
0
0
1
92CH21-435
(Receiver)
Set interrupts level.
Set pins to P90 (I2SCKO) and P91 (I2SDO).
Set SIO mode, LSB first, 8 bits, f
Set rising edge.
Write 32-byte data to FIFO (16 times).
Start transmitting.
Write 32-byte data to FIFO (16 times).
Confirm termination of the 32-byte data transfer.
Start transmitting.
TMP92CH21
/2 clocks.
SYS
2009-06-19

Advertisement

loading

This manual is also suitable for:

Tmp92ch21fgJtmp92ch21