Interrupt Control; Table 3.2 List Of The Interrupt Factors; Table 3.3 List Of Interrupt Factors In Each Mode - 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.3.4. Interrupt Control

There are 6 interrupt factors and 2 interrupt outputs. The output of the interrupt of each factor is enabled by
Interrupt control register ([ENxINTCR]) individually. The factor generating the current interrupt can be checked
in Interrupt flag register ([ENxINTF]).
A bit in Interrupt flag register ([ENxINTF]) is set by occurrence of the corresponding interrupt factor, and cleared
by reading its register.
Interrupt
Description
factor
The frequency of the rotation edge
pulse is divided by 1 to 128
Division
according to [ENxTNCR]<ENDEV>
pulse
setting. And the result pulse
generation is notified.
This notifies that a capture is done
by an external trigger (ENCxZ
input).
Capture
This notifies that a capture is done
by a rotation edge pulse (ENCLK).
This notifies of occurrence of an
Detection
edge detection error ([ENxSTS]
error
<PDERR>) or a skip detection
([ENxSTS]<SKPDT>).
INT
This notifies that the counter value
matches [ENxINT] register value.
match
This notifies that the counter value
RELOAD
matches [ENxRELOAD] register
match
value.
When [ENxTNCR]<MCMPMD>=0,
this notifies that the counter value
matches [ENxMCMP] register
value.
When <MCMPMD>=1, this notifies
the counter value becomes
MCMP is
[ENxMCMP] register value or
met
more.
This notifies that the counter value
matches [ENxMCMP] register
value.
Mode
Encoder mode
Sensor mode (Event count)
Sensor mode (Timer count)
Sensor mode (Phase count)
Timer mode
Phase counter mode
2018-10-11

Table 3.2 List of the interrupt factors

Encoder mode
Sensor mode (Event count)
Timer mode
Phase counter mode
Sensor mode (Timer count and
Phase count)
Encoder mode
Sensor mode (Event count,
Timer count and Phase count)
All modes
Sensor mode (Timer count and
Phase count)
Timer mode
Phase counter mode (Phase
difference measurement)
Sensor mode (Timer count)
Timer mode
Encoder mode
Sensor mode (Event count and
Phase count)
Phase counter mode

Table 3.3 List of interrupt factors in each mode

Division pulse, Detection error, INT match, and MCMP met condition.
Division pulse, Detection error, INT match, and MCMP met condition
Capture, Detection error, INT match, RELOAD match, and MCMP met condition
Capture, Detection error, INT match, RELOAD match, and MCMP met condition
Capture, INT match, RELOAD match, and MCMP met condition
Capture, INT match, RELOAD match, and MCMP met condition
38 / 55
Advanced Encoder Input Circuit(32-bit)
Interrupt
Mode
enable
[ENxINTCR]
<TPLSIE>
<CAPIE>
<ERRIE>
<CMPIE>
<RLDIE>
<MCMPIE>
Interrupt factor
TXZ Family
Factor flag
Interrupt
[ENxINTF]
output
<TPLSF>
INTENCx0
<CAPF>
INTENCx0
<ERRF>
INTENCx0
<INTCPF>
INTENCx1
<RLDCPF>
INTENCx1
<MCMPF>
INTENCx1
Rev. 1.1

Advertisement

Table of Contents
loading

Table of Contents