TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 349

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
12.3.6
12.3.6.1
compare interrupt and capture interrupt.
1
2
3
4
5
6
The ENC has these interrupts: event (divided-clock/capture) interrupt, event timeout interrupt, timer
Event counter interrupt
Event interrupt
(Divided clock pulse)
Event interrupt
(Capture interrupt)
Event timeout interrupt
Timer compare interrupt
Capture interrupt
detection of a encoder pulse.
<CMPEN> and <ZEN>, as shown in Table 12-5.
captured into the ENCNT register.
register upon occurrence of an event (encoder pulse). The counter value can also be captured by
writing a 1 to <SFTCAP>.
to 1, the counter value can also be captured by an edge of the Z signal input selected via
<ZESEL>.
Interrupts
When <INTEN> = 1, the ENC generates interrupt requests, based on the counter value and the
There are six interrupt sources, depending on the operating mode, and the settings of
In Sensor Timer Count mode and Timer mode, the value of the encoder counter can be
The captured counter value can be read out of the ENCNT register.
In Sensor Timer Count mode, the value of the encoder counter is captured into the ENCNT
In Timer mode, the counter value can be captured by writing a 1 to <SFTCAP>. If <ZEN> is set
Interrupt Source
Overview
When <CMPEN> = 1, the encoderl counter
counts events (encoder pulses). When it has
reached
<EN0INT>, an interrupt occurs.
An interrupt occurs on each divided clock
pulse, which is derived by dividing the
encoder pulse by a factor programmed in
<ENDEV>.
An interrupt occurs to indicate that an event
(encoder pulse) has occurred, causing the
counter value to be captured.
When <CMPEN> = 1, the ENC uses a
counter that counts up with fsys and is
cleared by an event (encoder pulse). If no
event
programmed in <EN0INT>, an interrupt
occurs.
When <CMPEN> = 1, an interrupt occurs
when the timer has reached the value
programmed in <EN0INT>.
An interrupt occurs when the counter value
has been captured on an external trigger (Z
input).
TMPM380/M382 - 23 / 23 -
Table 12-5 Interrupt Sources
occurs
the
Description
for
value
a
programmed
period
of
time
in
Encoder mode and
Sensor Event Count
modes
Sensor Timer Count
mode
Timer mode
Operating Mode
When <INTEN> = 1
When <INTEN> = 1
When <INTEN> = 1
When <INTEN> = 1
When <INTEN> = 1
When <INTEN> = 1
<CMPEN> = 1
<CMPEN> = 1
<CMPEN> = 1
Generation
Interrupt
TMPM380/M382
and
and
and
<CMP>
<CMP>
<CMP>
Status
None
None
None
Flag

Related parts for TMPM382FSFG