
RTD Embedded Technologies, Inc.
|
www.rtd.com
56
DMx820 User’s Manual
15
0
ID_Register
R
Field
Description
ID_Register15:0]
Value of 0x0002 indicates Dual Incremental Encoder
INCENCn_INT
This register provides the status and enables for the encoder interrupts.
15 14
11
10
9
8
Reserved
STAT_B_NEG
STAT_B_POS
STAT_A_NEG
STAT_A_POS
R,+0
RC,+0
RC,+0
RC,+0
RC,+0
7 4
3
2
1
0
Reserved
ENA_B_NEG
ENA_B_POS
ENA_A_NEG
ENA_A_POS
R,+0
RW,+0
RW,+0
RW,+0
RW,+0
Field
Description
STAT_B_NEG
Indicates channel B has transitioned from 0x0000 to
0xFFFF. (Negative rollover)
’0’ = Interrupt has not occurred
’1’ = Interrupt has occurred.
Write ‘1’ to clear.
STAT_B_POS
Indicates channel B has transitioned from 0xFFFF to
0x0000. (Positive rollover)
’0’ = Interrupt has not occurred
’1’ = Interrupt has occurred.
Write ‘1’ to clear.
STAT_A_NEG
Indicates channel A has transitioned from 0x0000 to
0xFFFF. (Negative rollover)
’0’ = Interrupt has not occurred
’1’ = Interrupt has occurred.
Write ‘1’ to clear.
STAT_A_POS
Indicates channel A has transitioned from 0xFFFF to
0x0000. (Positive rollover)
’0’ = Interrupt has not occurred
’1’ = Interrupt has occurred.
Write ‘1’ to clear.
ENA_B_NEG
Enables interrupt when channel B transitions from 0x0000 to
0xFFFF. (Negative rollover)
’0’ = Interrupt is disabled
’1’ = Interrupt is enabled.
ENA_B_POS
Enables interrupt when channel B transitions from 0xFFFF to
0x0000. (Positive rollover)
’0’ = Interrupt is disabled
’1’ = Interrupt is enabled.
ENA_A_NEG
Enables interrupt when channel A transitions from 0x0000 to
0xFFFF. (Negative rollover)
’0’ = Interrupt is disabled
’1’ = Interrupt is enabled.
ENA_A_POS
Enables interrupt when channel A transitions from 0xFFFF to
0x0000. (Positive rollover)
’0’ = Interrupt is disabled
’1’ = Interrupt is enabled.