TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 200

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
9 16-bit Timer/Event Counters (TMRBs)
Prescaler output clock
TB0IN pin input
(external pulse)
Taking data into TB0CP0
Taking data into TB0CP1
INTCAP00
INTCAP01
( 3 ) Pulse width measurement
By using the capture function, the “H” level width of an external pulse can be measured. Specifically,
by putting it in a free-running state using the prescaler output clock, an external pulse is input through
the TB0IN pin and the up-counter (UC0) is made to count up. A trigger is generated at each rising
and falling edge of the external pulse by using the capture function and the value of the up-counter is
taken into the capture registers (TB0CP0, TB0CP1). The CPU must be programmed so that
INTCAP01 is generated at the falling edge of an external pulse input through the TB0IN pin.
The “H” level pulse width can be calculated by multiplying the difference between TB0CP0 and
TB0CP1 by the clock cycle of an internal clock.
For example, if the difference between TB0CP0 and TB0CP1 is 100 and the cycle of the prescaler
output clock is 0.5 us, the pulse width is 100 × 0.5 us = 50 us.
Caution must be exercised when measuring pulse widths exceeding the UC0 maximum count time
which is dependant upon the source clock used. The measurement of such pulse widths must be
made using software.
The “L” level width of an external pulse can also be measured. In such cases, the difference between
C2 generated the first time and C1 generated the second time is initially obtained by performing the
second stage of INTCAP00 interrupt processing as shown in “Fig 9-9 Pulse Width Measurement”
and this difference is multiplied by the cycle of the prescaler output clock to obtain the “L” level width.
C1
Fig 9-9 Pulse Width Measurement
TMPM380/M382 - 34 / 34 -
C2
C2
C1
C2
TMPM380/M382

Related parts for TMPM382FSFG