C8051F131R Silicon Labs, C8051F131R Datasheet - Page 100

no-image

C8051F131R

Manufacturer Part Number
C8051F131R
Description
8-bit Microcontrollers - MCU 128kB 100MIPS 8448B RAM
Manufacturer
Silicon Labs
Datasheet

Specifications of C8051F131R

Product Category
8-bit Microcontrollers - MCU
Core
8051
Data Bus Width
8 bit
Maximum Clock Frequency
100 MHz
Program Memory Size
128 KB
Data Ram Size
8.25 KB
On-chip Adc
Yes
Operating Supply Voltage
2.7 V to 3.6 V
Package / Case
TQFP-64
Mounting Style
SMD/SMT
A/d Bit Size
10 bit
A/d Channels Available
9
Data Rom Size
64 KB
Interface Type
I2C, SMBus, SPI, UART
Maximum Operating Temperature
+ 85 C
Minimum Operating Temperature
- 40 C
Number Of Programmable I/os
32
Number Of Timers
16 bit
Processor Series
C8051
Program Memory Type
Flash
Factory Pack Quantity
500
Supply Voltage - Max
3.6 V
Supply Voltage - Min
3 V
C8051F120/1/2/3/4/5/6/7
C8051F130/1/2/3
7.3.
The ADC2 Programmable Window Detector continuously compares the ADC2 output to user-programmed
limits, and notifies the system when a desired condition is detected. This is especially effective in an inter-
rupt-driven system, saving code space and CPU bandwidth while delivering faster system response times.
The window detector interrupt flag (AD2WINT in register ADC2CN) can also be used in polled mode. The
ADC2 Greater-Than (ADC2GT) and Less-Than (ADC2LT) registers hold the comparison values. Example
comparisons for Differential and Single-ended modes are shown in Figure 7.6 and Figure 7.5, respectively.
Notice that the window detector flag can be programmed to indicate when measured data is inside or out-
side of the user-programmed limits, depending on the contents of the ADC2LT and ADC2GT registers.
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. Notice that in Single-ended mode, the codes vary from 0 to VREF*(255/256) and are
represented as 8-bit unsigned integers. In the left example, an AD2WINT interrupt will be generated if the
ADC2
(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).
100
(AIN2.x - AGND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
Input Voltage
ADC2 Programmable Window Detector
conversion
0
Figure 7.5. ADC2 Window Compare Examples, Single-Ended Mode
ADC2
0xFF
0x21
0x20
0x1F
0x11
0x10
0x0F
0x00
word
(ADC2)
not affected
not affected
AD2WINT
AD2WINT
ADC2GT
ADC2LT
is
within
AD2WINT=1
Rev. 1.4
the
(AIN2.x - AGND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
Input Voltage
range
0
defined
ADC2
0xFF
0x1F
0x0F
0x21
0x20
0x11
0x10
0x00
by
ADC2GT
not affected
AD2WINT
ADC2GT
ADC2LT
and
AD2WINT=1
AD2WINT=1
ADC2LT

Related parts for C8051F131R