C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
Input Voltage
ADC Data
(AD0.0 - AD0.1)
Word
REF x (511/512)
0x7FC0
0x2040
REF x (128/512)
0x2000
0x1FC0
0x0000
REF x (-1/512)
0xFFC0
0xFF80
0x8000
-REF
Given:
AMX0SL = 0x00, AMX0CF = 0x01,
AD0LJST = '1',
ADC0LTH:ADC0LTL = 0x2000,
ADC0GTH:ADC0GTL = 0xFFC0.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0x2000 and > 0xFFC0. (2s-complement
math.)
Figure 6.9. 10-Bit ADC0 Window Interrupt Example: Left Justified Differential Data
ADWINT
not affected
ADC0LTH:ADC0LTL
ADWINT=1
ADC0GTH:ADC0GTL
ADWINT
not affected
Rev. 1.4
Input Voltage
ADC Data
(AD0.0 - AD0.1)
Word
REF x (511/512)
0x7FC0
0x2040
REF x (128/512)
0x2000
0x1FC0
0x0000
REF x (-1/512)
0xFFC0
0xFF80
0x8000
-REF
Given:
AMX0SL = 0x00, AMX0CF = 0x01,
AD0LJST = '1',
ADC0LTH:ADC0LTL = 0xFFC0,
ADC0GTH:ADC0GTL = 0x2000.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0xFFC0 or > 0x2000. (2s-complement
math.)
ADWINT=1
ADC0GTH:ADC0GTL
ADWINT
not affected
ADC0LTH:ADC0LTL
ADWINT=1
89
Need help?
Do you have a question about the C8051F12 Series and is the answer not in the manual?
Questions and answers