Skip Judgment And Abnormal Input Judgment; Edge Detection Error Judgment - 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.2.3. Skip Judgment and Abnormal Input Judgment

(1) Skip judgment
This function is valid when [ENxTNCR]<SDTEN>=1.
When a skip is detected, <SKPDT> is set to "1".
Skip detection in 2-phase decode ([ENxTNCR]<P3EN>=0)
Reversed skip detection: (1)(3), (2)(4), (3)(1), and (4)(2)
Skip detection in 3-phase decode ([ENxTNCR]<P3EN>=1)
CW direction skip detection:
CCW direction skip detection:
Reversed skip detection:
(2) Abnormal input judgment
In the sensor mode (the event count, the timer count, or the phase count), when all 3 inputs change to "0" or "1"
for 3-phase decode, the detected edges are judged as the abnormal input. Then [ENxSTS]<INERR> is set to "1".

3.3.2.4. Edge Detection Error Judgment

When [ENxTNCR]<DECMD> sets a direction and an unset direction is detected, the detected direction is judged
as an error. The error judgment can generate an interrupt.
Skip detection disable ([ENxTNCR]<SDTEN>=0)
CW rotation edge detection ([ENxTNCR]<DECMD>=01): CCW rotation edge is an error.
CCW rotation edge detection ([ENxTNCR]<DECMD>=10): CW rotation edge is an error.
Skip detection enable ([ENxTNCR]<SDTEN>=1)
CW rotation edge detection ([ENxTNCR]<DECMD>=01): CCW direction skip, Reversed skip, and
CCW rotation edge detection ([ENxTNCR]<DECMD>=10): CW direction skip, Reversed skip, and CW rotation
edge are errors.
2018-10-11
(1)(3), (2)(4), (3)(5), (4)(6), (5)(1), and (6)(2)
(1)(5), (2)(6), (3)(1), (4)(2), (5)(3), and (6)(4)
(1)(4), (4)(1), (2)(5), (5)(2), (3)(6), and (6)(3)
CCW rotation edge are errors.
33 / 55
Advanced Encoder Input Circuit(32-bit)
TXZ Family
Rev. 1.1

Advertisement

Table of Contents
loading

Table of Contents