Freelance Electronics Components Distributor
Closed Dec 25th-26th
800-300-1968
We Stock Hard to Find Parts

C8051F041-GQ

Part # C8051F041-GQ
Description MCU 8BIT CISC 64KB FLASH 3V 64TQFP - Trays
Category IC
Availability In Stock
Qty 2
Qty Price
1 + $20.05559
Manufacturer Available Qty
SILICON LABORATORIES
Date Code: 0903
  • Shipping Freelance Stock: 2
    Ships Immediately



Technical Document


DISCLAIMER: The information provided herein is solely for informational purposes. Customers must be aware of the suitability of this product for their application, and consider that variable factors such as Manufacturer, Product Category, Date Codes, Pictures and Descriptions may differ from available inventory.

C8051F040/1/2/3/4/5/6/7
100 Rev. 1.5
7.3. ADC2 Programmable Window Detector
The ADC2 Programmable Window Detector continuously compares the ADC2 output to user-programmed
limits, and notifies the system when an out-of-bound 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 (AD2WINT in ADC2CN) can also be used in polled mode. The
reference words are loaded into the ADC2 Greater-Than and ADC2 Less-Than registers (ADC2GT and
ADC2LT). Notice that the window detector flag can be asserted when the measured data is inside or out-
side the user-programmed limits, depending on the programming of the ADC2GT and ADC2LT registers.
SFR Definition 7.6. ADC2GT: ADC2 Greater-Than Data
SFR Definition 7.7. ADC2LT: ADC2 Less-Than Data
7.3.1. Window Detector in Single-Ended Mode
Figure 7.5 shows two example window comparisons for Single-ended mode, with ADC2LT = 0x20 and
ADC2GT = 0x10. In Single-ended mode, the codes vary from 0 to VREF x (255/256) and are represented
as 8-bit unsigned integers. In the left example, an AD2WINT interrupt will be generated if the ADC2 con-
version word (ADC2) is within the range defined by ADC2GT and ADC2LT (if 0x10 ADC2 0x20). In the
right example, and AD2WINT interrupt will be generated if ADC2 is outside of the range defined by
ADC2GT and ADC2LT (if ADC2 0x10 or ADC2 0x20).
Bits7-0: High byte of ADC2 Greater-Than Data Word.
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:
SFR Page:
0xC4
2
Bits7-0: Low byte of ADC2 Greater-Than Data Word.
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:
SFR Page:
0xC6
2
C8051F040/1/2/3/4/5/6/7
Rev. 1.5 101
Figure 7.5. ADC Window Compare Examples, Single-Ended Mode
0xFF
0x21
0x20
0x1F
0x11
0x10
0x0F
0x00
0
Input Voltage
(P1.x - GND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
AD2WINT=1
AD2WINT
not affected
AD2WINT
not affected
ADC2LT
ADC2GT
0xFF
0x21
0x20
0x1F
0x11
0x10
0x0F
0x00
0
Input Voltage
(P1.x - GND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
AD2WINT
not affected
ADC2GT
ADC2LT
AD2WINT=1
AD2WINT=1
ADC2 ADC2
C8051F040/1/2/3/4/5/6/7
102 Rev. 1.5
7.3.2. Window Detector in Differential Mode
Figure 7.6 shows two example window comparisons for differential mode, with ADC2LT = 0x10 (+16d) and
ADC2GT = 0xFF (–1d). Notice that in Differential mode, the codes vary from –VREF to VREF x (127/128)
and are represented as 8-bit 2s complement signed integers. In the left example, an AD2WINT interrupt
will be generated if the ADC2 conversion word (ADC2L) is within the range defined by ADC2GT and
ADC2LT (if 0xFF (–1d) < ADC2 < 0x0F (16d)). In the right example, an AD2WINT interrupt will be gener-
ated if ADC2 is outside of the range defined by ADC2GT and ADC2LT (if ADC2 < 0xFF (–1d) or ADC2 >
0x10 (+16d)).
Figure 7.6. ADC Window Compare Examples, Differential Mode
0x7F (127d)
0x11 (17d)
0x10 (16d)
0x0F (15d)
0x00 (0d)
0xFF (-1d)
0xFE (-2d)
0x80 (-128d)
-REF
Input Voltage
(P1.x - P1.y)
REF x (127/128)
REF x (16/128)
REF x (-1/256)
0x7F (127d)
0x11 (17d)
0x10 (16d)
0x0F (15d)
0x00 (0d)
0xFF (-1d)
0xFE (-2d)
0x80 (-128d)
-REF
Input Voltage
(P1.x - P1.y)
REF x (127/128)
REF x (16/128)
REF x (-1/256)
AD2WINT=1
AD2WINT
not affected
AD2WINT
not affected
ADC2LT
ADC2GT
AD2WINT
not affected
ADC2GT
ADC2LT
AD2WINT=1
AD2WINT=1
ADC2ADC2
PREVIOUS2728293031323334353637383940NEXT