25.7.4.3.7 Windowed/filtered mode (#7)
This is the most complex mode of operation for the comparator block, as it utilizes both
windowing and filtering features. It also has the highest latency of any of the modes. This
can be approximated: up to 1 bus clock synchronization in the window function +
((CR0[FILTER_CNT] X FPR[FILT_PER]) + 1) X bus clock for the filter function.
When any windowed mode is active, COUTA is clocked by the bus clock whenever
WINDOW = 1. The last latched value is held when WINDOW = 0.
EN, PMODE,HYSCTR
INP
INM
bus clock
FILT_PER
25.7.4.4 Power modes
25.7.4.4.1 Wait mode operation
During Wait mode and if enabled, the GDU CMP continues to operate normally. Also, if
enabled, a GDU CMP interrupt can wake the MCU.
NXP Semiconductors
INTERNAL BUS
FILT_PER
COS
INV
+
Polarity
-
Select
-
CMPO
WINDOW/SAMPLE
Clock
divided
Prescaler
bus
clock
Figure 25-15. Windowed/filtered mode
MC9S08SU16 Reference Manual, Rev. 5, 4/2017
Chapter 25 Gate Drive Unit (GDU)
OPE
FILTER_CNT
SE
COUT
WE
1
>
0x01
0
Window
Filter
Control
Block
1
0
CGMUX
SE=0
IER/F
CFR/F
Interrupt
Control
IRQ
COUT
(TO OTHER SOC FUNCTIONS))
477