![NXP Semiconductors freescale KV4 Series Reference Manual Download Page 850](http://html1.mh-extra.com/html/nxp-semiconductors/freescale-kv4-series/freescale-kv4-series_reference-manual_1721789850.webp)
dividing down high frequency signals for capture processing so that capture interrupts
don't overwhelm the CPU. Also, this feature can be used to simply generate an interrupt
after "n" events have been counted.
EDG1
EDG0
Ca
pt
0
0
1
INP_SEL
EDGCMP
Int
Int
Pin Input
comparato
r
EDGCNT_EN
reset
CIE0
CF0
CIE1
CF1
Ca
pt
1
En
0
En
1
00 - Disabled
01 - Capture falling edges
10 - Capture rising edges
11 - Capture any edge
EDGx bits
EDGCNT
8 bit
counter
Submodule
Timer
Arming
Logic
Circuit 0
Capture
Capture
Circuit 1
This logic is repeated for PWM_A,
PWM_B, and PWM_X inputs.
Figure 37-246. Enhanced Capture (E-Capture) Logic
Based on the mode selection, the mux selects either the pin input or the compare output
from the count/compare circuit to be processed by the capture logic. The selected signal
is routed to two separate capture circuits which work in tandem to capture sequential
edges of the signal. The type of edge to be captured by each circuit is determined by
CAPTCTRLx[EDGx1] and CAPTCTRLx[EDGx0], whose functionality is listed in the
preceding figure. Also, controlling the operation of the capture circuits is the arming
logic which allows captures to be performed in a free running (continuous) or one shot
fashion. In free running mode, the capture sequences will be performed indefinitely. If
both capture circuits are enabled, they will work together in a ping-pong style where a
capture event from one circuit leads to the arming of the other and vice versa. In one shot
mode, only one capture sequence will be performed. If both capture circuits are enabled,
capture circuit 0 is first armed and when a capture event occurs, capture circuit 1 is
armed. Once the second capture occurs, further captures are disabled until another
capture sequence is initiated. Both capture circuits are also capable of generating an
interrupt to the CPU.
Functional Description
KV4x Reference Manual, Rev. 2, 02/2015
850
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...