English
Language : 

C8051F336_08 Datasheet, PDF (44/227 Pages) Silicon Laboratories – Mixed-Signal Byte-Programmable EPROM MCU
C8051F336/7/8/9
7.3. Programmable Window Detector
The ADC Programmable Window Detector continuously compares the ADC0 output registers to user-pro-
grammed limits, and notifies the system when a desired condition is detected. This is especially effective in
an interrupt-driven system, saving code space and CPU bandwidth while delivering faster system
response times. The window detector interrupt flag (AD0WINT in register ADC0CN) can also be used in
polled mode. The ADC0 Greater-Than (ADC0GTH, ADC0GTL) and Less-Than (ADC0LTH, ADC0LTL)
registers hold the comparison values. The window detector flag can be programmed to indicate when mea-
sured data is inside or outside of the user-programmed limits, depending on the contents of the ADC0
Less-Than and ADC0 Greater-Than registers.
SFR Definition 7.5. ADC0GTH: ADC0 Greater-Than Data High Byte
Bit
7
6
5
4
3
2
1
0
Name
ADC0GTH[7:0]
Type
R/W
Reset
1
1
1
1
1
1
1
1
SFR Address = 0xC4
Bit
Name
Function
7:0 ADC0GTH[7:0] ADC0 Greater-Than Data Word High-Order Bits.
SFR Definition 7.6. ADC0GTL: ADC0 Greater-Than Data Low Byte
Bit
7
6
5
4
3
2
1
0
Name
ADC0GTL[7:0]
Type
R/W
Reset
1
1
1
1
1
1
1
1
SFR Address = 0xC3
Bit
Name
Function
7:0 ADC0GTL[7:0] ADC0 Greater-Than Data Word Low-Order Bits.
44
Rev.1.0