TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 337

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
Description:
Encoder 0 Counter Register
(0x4001_040C
<CNT15:0>: Encoder Counter/Captured Value
EN0CNT
<RELOAD15:0>, it wraps around to 0 on the next ENCLK.
value of <RELOAD15:0> on the next ENCLK.
(ENCLK).
0 on the next ENCLK.
0xFFFF on the next ENCLK.
In Encoder mode
In Sensor Event Count mode
The value of encoder count.can be read out from <CNT15:0>.
In Encoder mode, the encoder counter counts up or down on each encoder pulse (ENCLK).
During CW rotation, encoder counter counts up; when it has reached the value of
During CCW rotation, encoder counter counts down; when it has reached 0, it is reloaded with the
The value of encoder count.can be read out from <CNT15:0>.
In Sensor Event Count mode, the encoder counter counts up or down on each encoder pulse
During CW rotation, encoder counter counts up; when it has reached0xFFFF, it wraps around to
During CCW rotation, encoder counter counts down; when it has reached 0, it wraps around to
Description
Description
Description
Description
Read/Write
Read/Write
Read/Write
Read/Write
Bit Symbol
Bit Symbol
Bit Symbol
Bit Symbol
Default
Default
Default
Default
Reading these bits returns a 0.
See the description below.
<CNT23:16> are used only in Sensor Timer Count mode and Timer mode.
In Encoder mode and Sensor Event Count mode, reading these bits returns a 0.
See the description below.
In Encoder mode:
In Sensor mode:
In Timer mode:
CNT23
CNT15
CNT7
Number of encoder pulses
0x0000 thru. 0xFFFF
Pulse detection time or the encoder counter value captured under software control
0x000000 thru. 0xFFFFFF
Iencoder counter value captured by hardware signaling or under software control
0x000000 thru. 0xFFFFFF
R/W
R/W
R/W
31
23
15
R
0
0
0
7
0
-
TMPM380/M382 - 11 / 23 -
CNT22
CNT14
CNT6
R/W
R/W
R/W
30
22
14
R
0
0
0
6
0
-
CNT21
CNT13
CNT5
R/W
R/W
R/W
29
21
13
R
0
0
0
5
0
-
CNT20
CNT12
CNT4
R/W
R/W
R/W
28
20
12
R
0
0
0
4
0
-
CNT19
CNT11
CNT3
R/W
R/W
R/W
27
19
11
R
0
0
0
3
0
-
CNT18
CNT10
CNT2
R/W
R/W
R/W
26
18
10
R
0
0
0
2
0
-
TMPM380/M382
CNT17
CNT9
CNT1
R/W
R/W
R/W
25
17
R
0
0
9
0
1
0
-
CNT16
CNT8
CNT0
R/W
R/W
R/W
24
16
R
0
0
8
0
0
0
-

Related parts for TMPM382FSFG