![NXP Semiconductors freescale KV4 Series Reference Manual Download Page 1058](http://html1.mh-extra.com/html/nxp-semiconductors/freescale-kv4-series/freescale-kv4-series_reference-manual_17217891058.webp)
ENC_CTRL2 field descriptions (continued)
Field
Description
7
ROIRQ
Roll-over Interrupt Request
This bit is set when the position counter (POS) rolls over from the MOD value to the INIT value or from
0xffffffff to 0x00000000. It will remain set until cleared by software. Write a one to this bit to clear.
0
No roll-over has occurred
1
Roll-over has occurred
6
ROIE
Roll-over Interrupt Enable
This read/write bit enables roll-over interrupts based on CTRL2[ROIRQ] being set. This interrupt is
combined with the index interrupt signal.
0
Roll-over interrupt is disabled
1
Roll-over interrupt is enabled
5
RUIRQ
Roll-under Interrupt Request
This bit is set when the position counter (POS) rolls under from the INIT value to the MOD value or from
0x00000000 to 0xffffffff. It will remain set until cleared by software. Write a one to this bit to clear.
0
No roll-under has occurred
1
Roll-under has occurred
4
RUIE
Roll-under Interrupt Enable
This read/write bit enables roll-under interrupts based on CTRL2[RUIRQ] being set. This interrupt is
combined with the index interrupt signal.
0
Roll-under interrupt is disabled
1
Roll-under interrupt is enabled
3
DIR
Count Direction Flag
This read-only flag is used to indicate the direction of the last count.
0
Last count was in the down direction
1
Last count was in the up direction
2
MOD
Enable Modulo Counting
When set, this bit allows the position counters (UPOS and LPOS) to count in a modulo fashion using MOD
and INIT as the upper and lower bounds of the counting range. During modulo counting when a count up
is indicated and the position counter is equal to MOD, then the postion counter will be reloaded with the
value of INIT. When a count down is indicated and the position counter is equal to INIT, then the position
counter will be reloaded with the value of MOD. When clear, then the values of MOD and INIT are ignored
and the position counter wraps to zero when counting up from 0xffffffff and wraps to 0xffffffff when
counting down from 0.
0
Disable modulo counting
1
Enable modulo counting
1
UPDPOS
Update Position Registers
When set, this bit allows the TRIGGER input to clear the POSD, REV, UPOS and LPOS registers. When
clear, the POSD, REV, UPOS and LPOS registers ignore the TRIGGER input.
0
No action for POSD, REV, UPOS and LPOS on rising edge of TRIGGER
1
Clear POSD, REV, UPOS and LPOS on rising edge of TRIGGER
Table continues on the next page...
Memory Map and Registers
KV4x Reference Manual, Rev. 2, 02/2015
1058
Preliminary
Freescale Semiconductor, Inc.
Summary of Contents for freescale KV4 Series
Page 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Page 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Page 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Page 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Page 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...