Datasheet

Table Of Contents
Figure 53-6. Rotation Direction Change
PhaseA
DIR Event
DIRCHG Interrupt
PhaseB
Anglular
Counter
VLC Event
To avoid spurious interrupts when coding wheel is stopped, the direction change condition is reported as
an interrupt, only on the second edge confirming the direction change.
Velocity output event is generated on each QDEC transition except when the direction changes.
53.6.2.6.3 Speed Measurement
Three types of speed measurement can be done using velocity event output (VLC) and Timer/Counter
(TC/TCC) device resources.
Continuous velocity measurement: TCz measures the time on which n VLC (TCy) output events
occur
Synchronous Velocity measurement: On a specific motor position TCCz, the time is measured on
which n VLC (TCCy) output events occur.
Slow Velocity measurement: measure the number of VLC output events (TCCy) plus the delay since
the last VLC output event (TCCz) within a given time slot (TCk).
Figure 53-7. Speed Measurement
QDEC
MC1
MC0
OVF
VLC
EV
TCy
MC1
MC0
OVF
EV
WO[1]
WO[0]
Count
Capture &
Retrigger
PhaseA
PhaseB
Index
Continuous Velocity Measurement
(Figure A)
Count
Capture
QDEC
MC1
MC0
OVF
VLC
EV
WO[1]
WO[0]
PhaseA
PhaseB
Index
Synchronous Velocity Measurement
(Figure B)
TCCy
MC1
MC0
OVF
EV0
EV1
Retrigger
TCCz
MC1
MC0
OVF
MC0
EV1
Retrigger
Count
Capture
QDEC
MC1
MC0
OVF
VLC
EV
WO[1]
WO[0]
PhaseA
PhaseB
Index
Slow Velocity Measurement
(Figure C)
TCCy
MC1
MC0
OVF
EV0
MC0
Capture &
Retriger
TCCz
MC1
MC0
OVF
MC0
EV1
Retrigger
TCk
MC1
MC0
OVF
EV
TCz
MC1
MC0
OVF
EV
SAM D5x/E5x Family Data Sheet
PDEC – Position Decoder
© 2019 Microchip Technology Inc.
Datasheet
DS60001507E-page 1953