C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
Input Voltage
ADC Data
(AD0.0 - AGND)
Word
REF x (1023/1024)
0xFFC0
0x8040
REF x (512/1024)
0x8000
0x7FC0
0x4040
REF x (256/1024)
0x4000
0x3FC0
0x0000
0
Given:
AMX0SL = 0x00, AMX0CF = 0x00,
AD0LJST = '1',
ADC0LTH:ADC0LTL = 0x2000,
ADC0GTH:ADC0GTL = 0x1000.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0x2000 and > 0x1000.
Figure 6.8. 10-Bit ADC0 Window Interrupt Example: Left Justified Single-Ended
88
ADWINT
not affected
ADC0LTH:ADC0LTL
ADWINT=1
ADC0GTH:ADC0GTL
ADWINT
not affected
Data
Rev. 1.4
Input Voltage
ADC Data
(AD0.0 - AGND)
Word
REF x (1023/1024)
0xFFC0
0x8040
REF x (512/1024)
0x8000
0x7FC0
0x4040
REF x (256/1024)
0x4000
0x3FC0
0x0000
0
Given:
AMX0SL = 0x00, AMX0CF = 0x00,
AD0LJST = '1'
ADC0LTH:ADC0LTL = 0x1000,
ADC0GTH:ADC0GTL = 0x2000.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0x1000 or > 0x2000.
ADWINT=1
ADC0GTH:ADC0GTL
ADWINT
not affected
ADC0LTH:ADC0LTL
ADWINT=1
Need help?
Do you have a question about the C8051F12 Series and is the answer not in the manual?
Questions and answers