English
Language : 

C8051F2XX Datasheet, PDF (37/146 Pages) Silicon Laboratories – Mixed Signal 8 kB ISP Flash MCU Family
C8051F2xx
SFR Definition 5.4. ADC0H: ADC Data Word (‘F220/1/6 and ‘F206)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
MSB
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bits7–0: ADC Data Word Bits
EXAMPLE: ADC Data Word Conversion Map
AIN – GND(Volts)
REF x (255/256)
REF x ½
REF x (127/256)
0
ADC0H
0xFF
0x80
0x7F
0x00
R/W
LSB
Bit0
Reset Value
00000000
SFR Address:
0xBF
5.3. ADC Programmable Window Detector
The ADC programmable window detector is very useful in many applications. It continuously compares
the ADC output to user-programmed limits and notifies the system when an out-of-band 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 (ADWINT in ADC0CN)
can also be used in polled mode. The high and low bytes of the reference words are loaded into the ADC
Greater-Than and ADC Less-Than registers (ADC0GTH and ADC0LTH).
SFR Definition 5.5. ADC0GTH: ADC Greater-Than Data (‘F220/1/6 and ‘F206)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
11111111
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0 SFR Address:
0xC5
Bits7–0:
The high byte of the ADC Greater-Than Data Word.
SFR Definition 5.6. ADC0LTH: ADC Less-Than Data Byte (‘F220/1/6 and ‘F206)
R/W
R/W
R/W
R/W
R/W
R/W
R/W
R/W
Reset Value
00000000
Bit7
Bit6
Bit5
Bit4
Bit3
Bit2
Bit1
Bit0 SFR Address:
0xC7
Bits7–0:
The high byte of the ADC Less-Than Data Word.
Rev. 1.6
37