Sensor Mode; Event Counter; Figure 3.3 3-Phase Decode ([Enxtncr]<P3En>=1) - Toshiba TXZ Series Reference Manual

32-bit risc microcontroller advanced encoder input circuit (32-bit)
Hide thumbs Also See for TXZ Series:
Table of Contents

Advertisement

3.2.2. Sensor Mode

The low-speed position sensor (Zero-cross judgment) is supported to use 2-phase hall sensor input and 3-phase
hall sensor input. There are three sensor modes, Event count mode, Timer count mode, and Phase count mode.
In the timer count mode and the phase count mode, when PMD circuit drives BLDC motor with the pulse signal,
the zero cross detection of the induced voltage can be supported using PWM synchronous sampling. (BEMF
detection control)

3.2.2.1. Event Counter

The count is done by the rotation edge detection.
Using the rotation edge detection, a division pulse and an interrupt can be generated.
Using the rotation edge pulse count, an interrupt can be generated at any counter value.
Rotation direction judgment
32-bit up- and down-count (controlled by the rotation direction judgment)
The setting of the detected rotation direction is available.
Abnormal state detection flag
(1) 3-phase decode ([ENxTNCR]<P3EN>=1)
In the case of [ENxINT]=0x00000002;
fsys
ENCxA(U)
ENCxB(V)
ENCxZ(W)
Rotation edge pulse ENCLK
DIR
Rotation direction
Count clear
ENCxTIMPLS
(2-division)
Counter
Interrupt INTENCx1
2018-10-11
CW direction
0xFFFF
0xFFFF
0xFFFF
0xFFFF
0x0000
FFFC
FFFD
FFFE
FFFF
0000
Figure 3.3 3-phase decode ([ENxTNCR]<P3EN>=1)
Advanced Encoder Input Circuit(32-bit)
0x0000
0x0000
0x0000
0x0000
0001
0002
0003
0002
15 / 55
CCW direction
0x0000
0x0000
0xFFFF
0xFFFF
0xFFFF
0001
0000
FFFF
FFFE
FFFD
TXZ Family
0xFFFF
0xFFFF
0xFFFF
FFFC
FFFB
FFFA
Rev. 1.1

Advertisement

Table of Contents
loading

Table of Contents