TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 469

no-image

TMPM382FSFG

Manufacturer Part Number
TMPM382FSFG
Description
Manufacturer
Toshiba
Datasheet

Specifications of TMPM382FSFG

Product Summaries
Summary
Lead Free
Yes
Rohs Compatible Product(s)
Available
Rom (kbytes)
64K
Rom Type
Flash
Ram (kbytes)
8K
Number Of Pins
64
Package
QFP(14x14)
Vcc
5V
Cpu Mhz
40
Ssp (ch) Spi
1
I2c/sio (ch)
1
Uart/sio (ch)
3
Usb
-
Can
-
Ethernet
-
External Bus Interface
N
Cs/wait Controller (ch)
-
Dma Controller
2
10-bit Da Converter
-
10-bit Ad Converter
-
12-bit Ad Converter
10
16-bit Timer / Counter
6
Motor / Igbt Control
Y
Real Time Clock
1
Watchdog Timer
Y
Osc Freq Detect
Y
Clock Gear
Y
Low-power Hold Function
-
Remote Control Interface
Y
Hardware Cec Controller
-
Comparators
-
Low-voltage Detector
Y
Etm Hardware Trace
2-bit
15 Serial Bus Interface (I2C/SIO)
<SIOS>
<SIOF>
<SEF>
SCK pin (output)
SI pin
INTSBIn interrupt request
SBInDBR
8-bit transmit/receive mode
Set the control register to the transfer/receive mode. Then writing the transmit data to
SBInDBR and setting SBInCR1 <SIOS> to “1” enables transmission and reception. The
transmit data is output through the SO pin at the falling of the serial clock, and the received
data is taken in through the SI pin at the rising of the serial clock, with the least-significant bit
(LSB) first. Once the shift register is loaded with the 8-bit data, it transfers the received data
to SBInDBR and the INTSBIn interrupt request is generated. The interrupt service program
reads the received data from the data buffer register and writes the next transmit data.
Because SBInDBR is shared between transmit and receive operations, the received data
must be read before the next transmit data is written.
In the internal clock operation, the serial clock will be automatically in the wait state until the
received data is read and the next transmit data is written.
In the external clock mode, shift operations are executed in synchronization with the
external serial clock. Therefore, the received data must be read and the next transmit data
must be written before the next shift operation is started. The maximum data transfer rate
for the external clock operation varies depending on the maximum latency between when
the interrupt request is generated and when the transmit data is written.
At the beginning of transmission, the same value as in the last bit of the previously
transmitted data is output in a period from setting <SIOF> to “1” to the falling edge of SCK.
Transmission and reception can be terminated by clearing <SIOS> to “0” or setting
SBInCR1 <SIOINH> to “1” in the INTSBIn interrupt service program. If <SIOS> is cleared,
transmission and reception continue until the received data is fully transferred to SBInDBR.
The program checks SBInSR <SIOF> to determine whether transmission and reception
have come to an end. <SIOF> is cleared to “0” at the end of transmission and reception. If
<SIOINH> is set, the transmission and reception are aborted immediately and <SIOF> is
cleared to “0.”
(Note) The contents of SBInDBR will not be retained after the transfer mode is
changed. The ongoing transmission and reception must be completed by
clearing <SIOS> to “0” and the last received data must be read before the
transfer mode is changed.
Fig 15-28 Receive Mode (Example: Internal Clock)
a
0
a
1
TMPM380/M382 - 40 / 41 -
a
2
a
3
a
4
a
5
Read the received data
a
6
a
7
a
b
0
b
1
b
<SIOS> is cleared.
2
b
3
b
4
b
5
Read the received data
b
TMPM380/M382
6
b
7
b

Related parts for TMPM382FSFG