Figure 5.7. 12-Bit Adc0 Window Interrupt Example: Right Justified Differential 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 - AD0.1)
Word
REF x (2047/2048)
0x07FF
0x0101
REF x (256/2048)
0x0100
0x00FF
0x0000
REF x (-1/2048)
0xFFFF
0xFFFE
0xF800
-REF
Given:
AMX0SL = 0x00, AMX0CF = 0x01,
AD0LJST = '0',
ADC0LTH:ADC0LTL = 0x0100,
ADC0GTH:ADC0GTL = 0xFFFF.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0x0100 and > 0xFFFF. (In 2s-complement
math, 0xFFFF = -1.)
Figure 5.7. 12-Bit ADC0 Window Interrupt Example: Right Justified Differential
AD0WINT
not affected
ADC0LTH:ADC0LTL
AD0WINT=1
ADC0GTH:ADC0GTL
AD0WINT
not affected
Data
Rev. 1.4
Input Voltage
ADC Data
(AD0.0 - AD0.1)
Word
REF x (2047/2048)
0x07FF
0x0101
REF x (256/2048)
0x0100
0x00FF
0x0000
REF x (-1/2048)
0xFFFF
0xFFFE
0xF800
-REF
Given:
AMX0SL = 0x00, AMX0CF = 0x01,
AD0LJST = '0',
ADC0LTH:ADC0LTL = 0xFFFF,
ADC0GTH:ADC0GTL = 0x0100.
An ADC0 End of Conversion will cause an
ADC0 Window Compare Interrupt (AD0WINT
= '1') if the resulting ADC0 Data Word is
< 0xFFFF or > 0x0100. (In 2s-complement
math, 0xFFFF = -1.)
AD0WINT=1
ADC0GTH:ADC0GTL
AD0WINT
not affected
ADC0LTH:ADC0LTL
AD0WINT=1
69

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?

Questions and answers

Table of Contents