TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 348

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 Encoder Input Circuit (ENC)
Sensor Event Count
Sensor Timer Count
Operating Mode
Note: Clearing <ENRUN> to 0 does not clear the counter.
12.3.5 Counter Block
Encoder Mode
<MODE1:0>
Timer Mode
12.3.5.1
Setting <ENRUN> to 1 again causes the counter to restart from the current count.
The counter should be cleared by software setting <ENCLR> to 1.
Mode
Mode
00
01
10
11
The counter block consists of a 24-bit up/down counter and its control logic.
programmed value, according to the selected operating mode.
The counter is configured as an up-counter or a down-counter, cleared and reloaded with a
Table 12-4 summarizes how the counter is controlled.
Overview
0
1
0
0
0
1
X
0
0
1
0
1
A, B, Z
A, B, Z
A, B, Z
Input
Pins
A, B
A, B
A, B
Z
-
Encoder pulse
Encoder pulse
Encoder pulse
Encoder pulse
(ENCLK)
(ENCLK)
(ENCLK)
(ENCLK)
Count
TMPM380/M382 - 22 / 23 -
fsys
fsys
fsys
fsys
Table 12-4 Counter Control
Up/Down Counter Clear Conditions
Down
Down
Down
Down
Up
Up
Up
Up
Up
Up
Up
Up
[1] <ENCLR> is set to 1.
[2] counter=<RELOAD>
[1] <ENCLR> is set to 1.
[1] <ENCLR> is set to 1.
[2] counter=<RELOAD>
[3] Z trigger
[1] <ENCLR> is set to 1.
[1] <ENCLR> is set to 1.
[2] counter=16’hFFFF
[1] <ENCLR> is set to 1.
[1] <ENCLR> is set to 1.
[2] counter=0xFFFF
[1] <ENCLR> is set to 1.
[1] <ENCLR> is set to 1.
[2] counter=0xFFFFFF
[3]
(ENCLK)
[1] <ENCLR> is set to 1.
[2] counter=0xFFFFFF
[3] counter=<EN0INT>
[1] <ENCLR> is set to 1.
[2] counter=0xFFFFFF
[3] counter=<EN0INT>
[4] Z trigger
Encoder
pulse
-
[1] counter=0x0000
-
[1] counter=0x0000
-
[1] counter=0x0000
-
[1] counter=0x0000
Counter Reload
Conditions
TMPM380/M382
0x0000 thru.
0x0000 thru.
<RELOAD>
0xFFFFFF
0xFFFFFF
0x000000
0x000000
Counter
(Reload
0xFFFF
Range
Value)
thru.
thru.

Related parts for TMPM382FSFG