參數(shù)資料
型號: TOOLSTICK300DC
廠商: Silicon Laboratories Inc
文件頁數(shù): 119/178頁
文件大?。?/td> 0K
描述: TOOLSTICK DAUGHTER CARD
標準包裝: 1
系列: ToolStick
類型: MCU
適用于相關(guān)產(chǎn)品: C8051F300
所含物品: 子卡
Rev. 2.9
45
C8051F300/1/2/3/4/5
5.4.
Programmable Window Detector
The ADC Programmable Window Detector continuously compares the ADC0 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 (AD0WINT in register ADC0CN) can also be used in polled mode. The
ADC0 Greater-Than (ADC0GT) and Less-Than (ADC0LT) registers hold the comparison values. Example
comparisons for Single-ended and Differential modes are shown in Figure 5.6 and Figure 5.7, 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 ADC0LT and ADC0GT registers.
5.4.1. Window Detector In Single-Ended Mode
Figure 5.6 shows two example window comparisons for Single-ended mode, with ADC0LT = 0x20 and
ADC0GT = 0x10. Notice that 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 AD0WINT interrupt will be generated if the
ADC0
conversion
word
(ADC0)
is
within
the
range
defined
by
ADC0GT
and
ADC0LT
(if 0x10
ADC0 0x20). In the right example, and AD0WINT interrupt will be generated if ADC0 is outside
of the range defined by ADC0GT and ADC0LT (if ADC0
0x10 or ADC0 0x20).
0xFF
0x21
0x20
0x1F
0x11
0x10
0x0F
0x00
0
Input Voltage
(P0.x - GND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
AD0WINT=1
AD0WINT
not affected
AD0WINT
not affected
ADC0LT
ADC0GT
0xFF
0x21
0x20
0x1F
0x11
0x10
0x0F
0x00
0
Input Voltage
(P0.x - GND)
REF x (255/256)
REF x (32/256)
REF x (16/256)
AD0WINT
not affected
ADC0GT
ADC0LT
AD0WINT=1
ADC0
Figure 5.6. ADC Window Compare Examples, Single-Ended Mode
相關(guān)PDF資料
PDF描述
TOOLSTICK411DC TOOLSTICK DAUGHTER CARD
TOOLSTICK336DC DAUGHTER CARD TOOLSTICK C8051F33
SDR-2 SCOTCH CODE REFILL # 2
0210490198 CABLE JUMPER 1.25MM .127M 14POS
RSM08DRTH CONN EDGECARD 16POS DIP .156 SLD
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TOOLSTICK300PP 功能描述:插座和適配器 Dev Tool for C8051F30X MCUs RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TOOLSTICK300SPP 功能描述:插座和適配器 TS for F300-F305 SOIC 14 MCUs RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TOOLSTICK310PP 功能描述:插座和適配器 C8051F310/12/14 F361 F364 F366 F368 RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TOOLSTICK311DC 功能描述:子卡和OEM板 ToolStick C8051F311 Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TOOLSTICK311PP 功能描述:插座和適配器 C8051F311/13/15 F362 F365 F367 F369 RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x