Latency Issues - NXP Semiconductors freescale KV4 Series Reference Manual

Table of Contents

Advertisement

If CR1[SE]=1, the filter takes samples of COUTA on each positive transition of the
sample input. The output state of the filter changes when all the consecutive
CR0[FILTER_CNT] samples agree that the output value has changed.

35.4.4.2 Latency issues

The value of FPR[FILT_PER] or SAMPLE period must be set such that the sampling
period is just longer than the period of the expected noise. This way a noise spike will
corrupt only one sample. The value of CR0[FILTER_CNT] must be chosen to reduce the
probability of noisy samples causing an incorrect transition to be recognized. The
probability of an incorrect transition is defined as the probability of an incorrect sample
raised to the power of CR0[FILTER_CNT].
The values of FPR[FILT_PER] or SAMPLE period and CR0[FILTER_CNT] must also
be traded off against the desire for minimal latency in recognizing actual comparator
output transitions. The probability of detecting an actual output change within the
nominal latency is the probability of a correct sample raised to the power of
CR0[FILTER_CNT].
The following table summarizes maximum latency values for the various modes of
operation in the absence of noise. Filtering latency is restarted each time an actual output
transition is masked by noise.
Table 35-38. Comparator sample/filter maximum latencies
CR1[
CR1[
CR1[
Mode #
EN]
WE]
SE]
1
0
X
2A
1
0
2B
1
0
3A
1
0
3B
1
0
4A
1
0
4B
1
0
5A
1
1
5B
1
1
6
1
1
7
1
1
Freescale Semiconductor, Inc.
CR0[FILTER
FPR[FILT_P
_CNT]
ER]
X
X
X
0
0x00
X
0
X
0x00
1
0x01
X
0
0x01
> 0x00
1
> 0x01
X
0
> 0x01
> 0x00
0
0x00
X
0
X
0x00
0
0x01
0x01 - 0xFF
0
> 0x01
0x01 - 0xFF
KV4x Reference Manual, Rev. 2, 02/2015
Preliminary
Chapter 35 Comparator (CMP)
Operation
Disabled
Continuous Mode
Sampled, Non-Filtered mode
Sampled, Filtered mode
Windowed mode
Windowed / Resampled
mode
Windowed / Filtered mode
1
Maximum latency
N/A
T
PD
T
+ T
+ T
PD
SAMPLE
per
T
+ (FPR[FILT_PER] *
PD
T
) + T
per
per
T
+ (CR0[FILTER_CNT] *
PD
T
) + T
SAMPLE
per
T
+ (CR0[FILTER_CNT] *
PD
FPR[FILT_PER] x T
) + T
per
per
T
+ T
PD
per
T
+ T
PD
per
T
+ (FPR[FILT_PER] *
PD
T
) + 2T
per
per
T
+ (CR0[FILTER_CNT] *
PD
FPR[FILT_PER] x T
) +
per
2T
per
749

Advertisement

Table of Contents
loading

Table of Contents