TMPM382FSFG Toshiba, TMPM382FSFG Datasheet - Page 332

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)
There are a total of eight operating modes.
<P3EN>: 2/3-Phase Input Select
pins used.
<CMP>: Compare Flag
EN0INT register.
<REVERR>: Revolution Error
reading it.
<U/D>: Rotation Direction
<P3EN> selects the number of phase input pins used.
<CMP> is set to 1 when the counter value has been compared to the value programmed in the
The quadrature signals A and B identify the motor rotation direction. <U/D> is set to 1 when the CW
direction is indicated (signal A of the incremental encoder signal is ahead of signal B). <U/D> is cleared
to 0 when the CCW direction is indicated (signal A is behind signal B). <U/D> remains cleared while
<ENRUN> = 0.
Operating modes are defined by <MODE1:0>, <P3EN> and <ZEN> as shown in the following table.
0: 2-phase
1: 3-phase
If <P3EN> is cleared to 0, the ENC decodes two phase inputs.
If <P3EN> is set to 1, the ENC decodes three phase inputs.
In Timer mode, this bit has no effect.
Note: <P3EN> must always be cleared in Encoder mode, irrespective of the number of phase input
0: -
1: Counter compared
<CMP> is cleared to 0 on a read. <CMP> remains cleared when <ENRUN> = 0. Writing to <CMP> has
no effect.
0: -
1: Error occurred.
In Sensor Timer Count mode, <REVERR> is set to 1 when a change in the rotation direction has been
detected. <REVERR> is cleared to 0 on a read. <REVERR> remains cleared when <ENRUN> = 0.
Writing to <REVERR> has no effect.
This bit has an effect only in Sensor Timer Count mode.
Note: Once software has changed the operating mode of the ENC, <REVERR> must be cleared by
0: Counterclockwise (CCW)
1: Clockwise (CW)
<MODE1>
0
0
1
1
<MODE0>
0
1
0
1
<ZEN>
TMPM380/M382 - 6 / 23 -
0
1
0
0
0
1
<P3EN>
0
0
1
0
1
0
Input signal
A, B, Z
A, B, Z
A, B, Z
Used
A, B
A, B
A,B
Z
-
Encoder mode
Encoder mode (using Z)
Sensor Event Count mode (2 phase inputs)
Sensor Event Count mode (3 phase inputs)
Sensor Timer Count mode (2 phase inputs)
Sensor Timer Count mode (3 phase inputs)
Timer mode
Timer mode (using Z)
Operating Mode
TMPM380/M382

Related parts for TMPM382FSFG