Figure 5.8. 12-Bit Adc0 Window Interrupt Example: Left Justified Single-Ended Data - Silicon Laboratories C8051F12 Series Manual

8k isp flash mcu
Table of Contents

Advertisement

C8051F120/1/2/3/4/5/6/7 C8051F130/1/2/3
Input Voltage
ADC Data
(AD0.0 - AGND)
Word
REF x (4095/4096)
0xFFF0
0x2010
REF x (512/4096)
0x2000
0x1FF0
0x1010
REF x (256/4096)
0x1000
0x0FF0
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 5.8. 12-Bit ADC0 Window Interrupt Example: Left Justified Single-Ended
70
AD0WINT
not affected
ADC0LTH:ADC0LTL
AD0WINT=1
ADC0GTH:ADC0GTL
AD0WINT
not affected
Data
Rev. 1.4
Input Voltage
ADC Data
(AD0.0 - AGND)
Word
REF x (4095/4096)
0xFFF0
0x2010
REF x (512/4096)
0x2000
0x1FF0
0x1010
REF x (256/4096)
0x1000
0x0FF0
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.
AD0WINT=1
ADC0GTH:ADC0GTL
AD0WINT
not affected
ADC0LTH:ADC0LTL
AD0WINT=1

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the C8051F12 Series and is the answer not in the manual?

Table of Contents