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.
Содержание freescale KV4 Series
Страница 2: ...KV4x Reference Manual Rev 2 02 2015 2 Preliminary Freescale Semiconductor Inc...
Страница 60: ...KV4x Reference Manual Rev 2 02 2015 60 Preliminary Freescale Semiconductor Inc...
Страница 82: ...JTAG Controller Configuration KV4x Reference Manual Rev 2 02 2015 82 Preliminary Freescale Semiconductor Inc...
Страница 88: ...System Register file KV4x Reference Manual Rev 2 02 2015 88 Preliminary Freescale Semiconductor Inc...
Страница 128: ...Debug Security KV4x Reference Manual Rev 2 02 2015 128 Preliminary Freescale Semiconductor Inc...
Страница 138: ...Boot KV4x Reference Manual Rev 2 02 2015 138 Preliminary Freescale Semiconductor Inc...
Страница 150: ...Pinout diagrams KV4x Reference Manual Rev 2 02 2015 150 Preliminary Freescale Semiconductor Inc...
Страница 170: ...Functional description KV4x Reference Manual Rev 2 02 2015 170 Preliminary Freescale Semiconductor Inc...
Страница 212: ...Functional description KV4x Reference Manual Rev 2 02 2015 212 Preliminary Freescale Semiconductor Inc...
Страница 284: ...Functional description KV4x Reference Manual Rev 2 02 2015 284 Preliminary Freescale Semiconductor Inc...
Страница 294: ...Functional description KV4x Reference Manual Rev 2 02 2015 294 Preliminary Freescale Semiconductor Inc...
Страница 330: ...Functional description KV4x Reference Manual Rev 2 02 2015 330 Preliminary Freescale Semiconductor Inc...
Страница 450: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 450 Preliminary Freescale Semiconductor Inc...
Страница 512: ...Interrupts and DMA Requests KV4x Reference Manual Rev 2 02 2015 512 Preliminary Freescale Semiconductor Inc...
Страница 520: ...Memory Map and Register Descriptions KV4x Reference Manual Rev 2 02 2015 520 Preliminary Freescale Semiconductor Inc...
Страница 580: ...Initialization Application information KV4x Reference Manual Rev 2 02 2015 580 Preliminary Freescale Semiconductor Inc...
Страница 660: ...Functional description KV4x Reference Manual Rev 2 02 2015 660 Preliminary Freescale Semiconductor Inc...
Страница 1038: ...Example configuration for chained timers KV4x Reference Manual Rev 2 02 2015 1038 Preliminary Freescale Semiconductor Inc...
Страница 1074: ...Functional description KV4x Reference Manual Rev 2 02 2015 1074 Preliminary Freescale Semiconductor Inc...
Страница 1168: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 1168 Preliminary Freescale Semiconductor Inc...
Страница 1264: ...Initialization application information KV4x Reference Manual Rev 2 02 2015 1264 Preliminary Freescale Semiconductor Inc...
Страница 1336: ...Functional description KV4x Reference Manual Rev 2 02 2015 1336 Preliminary Freescale Semiconductor Inc...
Страница 1358: ...KV4x Reference Manual Rev 2 02 2015 1358 Preliminary Freescale Semiconductor Inc...