參數(shù)資料
型號: TOOLSTICK520PP
廠商: Silicon Laboratories Inc
文件頁數(shù): 180/220頁
文件大?。?/td> 0K
描述: ADAPTER PROGRAM TOOLSTICK F520
標準包裝: 1
系列: ToolStick
類型: 微控制器編程器
適用于相關(guān)產(chǎn)品: C8051F520/521/523/524/526/527
所含物品: 2 個板和 USB 連接線纜
產(chǎn)品目錄頁面: 626 (CN2011-ZH PDF)
相關(guān)產(chǎn)品: 336-1494-5-ND - IC 8051 MCU 2K FLASH 10DFN
336-1493-5-ND - IC 8051 MCU 2K FLASH 10DFN
336-1492-5-ND - IC 8051 MCU 4K FLASH 10DFN
336-1491-5-ND - IC 8051 MCU 4K FLASH 10DFN
336-1490-5-ND - IC 8051 MCU 8K FLASH 10DFN
336-1484-5-ND - IC 8051 MCU 8K FLASH 10DFN
其它名稱: 336-1455
第1頁第2頁第3頁第4頁第5頁第6頁第7頁第8頁第9頁第10頁第11頁第12頁第13頁第14頁第15頁第16頁第17頁第18頁第19頁第20頁第21頁第22頁第23頁第24頁第25頁第26頁第27頁第28頁第29頁第30頁第31頁第32頁第33頁第34頁第35頁第36頁第37頁第38頁第39頁第40頁第41頁第42頁第43頁第44頁第45頁第46頁第47頁第48頁第49頁第50頁第51頁第52頁第53頁第54頁第55頁第56頁第57頁第58頁第59頁第60頁第61頁第62頁第63頁第64頁第65頁第66頁第67頁第68頁第69頁第70頁第71頁第72頁第73頁第74頁第75頁第76頁第77頁第78頁第79頁第80頁第81頁第82頁第83頁第84頁第85頁第86頁第87頁第88頁第89頁第90頁第91頁第92頁第93頁第94頁第95頁第96頁第97頁第98頁第99頁第100頁第101頁第102頁第103頁第104頁第105頁第106頁第107頁第108頁第109頁第110頁第111頁第112頁第113頁第114頁第115頁第116頁第117頁第118頁第119頁第120頁第121頁第122頁第123頁第124頁第125頁第126頁第127頁第128頁第129頁第130頁第131頁第132頁第133頁第134頁第135頁第136頁第137頁第138頁第139頁第140頁第141頁第142頁第143頁第144頁第145頁第146頁第147頁第148頁第149頁第150頁第151頁第152頁第153頁第154頁第155頁第156頁第157頁第158頁第159頁第160頁第161頁第162頁第163頁第164頁第165頁第166頁第167頁第168頁第169頁第170頁第171頁第172頁第173頁第174頁第175頁第176頁第177頁第178頁第179頁當前第180頁第181頁第182頁第183頁第184頁第185頁第186頁第187頁第188頁第189頁第190頁第191頁第192頁第193頁第194頁第195頁第196頁第197頁第198頁第199頁第200頁第201頁第202頁第203頁第204頁第205頁第206頁第207頁第208頁第209頁第210頁第211頁第212頁第213頁第214頁第215頁第216頁第217頁第218頁第219頁第220頁
C8051F52x/F53x
62
Rev. 1.4
For example, the initial example in this section requires a gain of 0.44 to convert 5 V full scale to 2.2 V full
scale. Using Equation 4.3:
If GAINADD is set to 1, this makes the equation:
The actual gain from setting GAINADD to 1 and ADC0GNH and ADC0GNL to 0x6CA is 0.4399. A similar
gain can be achieved if GAINADD is set to 0 with a different value for ADC0GNH and ADC0GNL.
4.4.2. Setting the Gain Value
The three programmable gain registers are accessed indirectly using the ADC0H and ADC0L registers
when the GAINEN bit (ADC0CF.0) bit is set. ADC0H acts as the address register, and ADC0L is the data
register. The programmable gain registers can only be written to and cannot be read. See Gain Register
The gain is programmed using the following steps:
1. Set the GAINEN bit (ADC0CF.0)
2. Load the ADC0H with the ADC0GNH, ADC0GNL, or ADC0GNA address.
3. Load ADC0L with the desired value for the selected gain register.
4. Reset the GAINEN bit (ADC0CF.0)
Notes:
1.
An ADC conversion should not be performed while the GAINEN bit is set.
2.
Even with gain enabled, the maximum input voltage must be less than VREGIN and the maximum
voltage of the signal after gain must be less than or equal to VREF.
In code, changing the value to 0.44 gain from the previous example looks like:
// in ‘C’:
ADC0CF |= 0x01;// GAINEN = 1
ADC0H = 0x04;// Load the ADC0GNH address
ADC0L = 0x6C;// Load the upper byte of 0x6CA to ADC0GNH
ADC0H = 0x07;// Load the ADC0GNL address
ADC0L = 0xA0;// Load the lower nibble of 0x6CA to ADC0GNL
ADC0H = 0x08;// Load the ADC0GNA address
ADC0L = 0x01;// Set the GAINADD bit
ADC0CF &= ~0x01;// GAINEN = 0
; in assembly
ORL ADC0CF,#01H ; GAINEN = 1
MOV ADC0H,#04H; Load the ADC0GNH address
MOV ADC0L,#06CH ; Load the upper byte of 0x6CA to ADC0GNH
MOV ADC0H,#07H; Load the ADC0GNL address
MOV ADC0L,#0A0H ; Load the lower nibble of 0x6CA to ADC0GNL
MOV ADC0H,#08H; Load the ADC0GNA address
MOV ADC0L,#01H ; Set the GAINADD bit
ANL ADC0CF,#0FEH ; GAINEN = 0
GAIN
0.44
GAINADD
1
64
------
4096
=
GAIN
0.44
1
64
------
4096
0.424
4096
1738
0x06CA
==
=
相關(guān)PDF資料
PDF描述
R0.25D12-2412/H-R CONV DC/DC 0.25W 24VIN +/-12VOUT
EEC20DRAH CONN EDGECARD 40POS R/A .100 SLD
ECM15DRES CONN EDGECARD 30POS .156 EYELET
M7VXK-3710R D-SUB CABLE - MMU37K/MC37M/X
F971D156MNC CAP TANT 15UF 20V 20% 2917
相關(guān)代理商/技術(shù)參數(shù)
參數(shù)描述
TOOLSTICK530ADC 功能描述:子卡和OEM板 C8051F52xA/53xA Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
TOOLSTICK530MPP 功能描述:插座和適配器 C8051F530/1/3/4/6/7- IM MCUs Dev Tool RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
TOOLSTICK530TPP 功能描述:插座和適配器 C8051F530/1/3/4/6/7- IT MCUs Dev Tool RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x
ToolStick540DC 功能描述:子卡和OEM板 ToolStick C8051F540 Daughter Card RoHS:否 制造商:BeagleBoard by CircuitCo 產(chǎn)品:BeagleBone LCD4 Boards 用于:BeagleBone - BB-Bone - Open Source Development Kit
ToolStick542PP 功能描述:插座和適配器 ToolStick Prog. Platform RoHS:否 制造商:Silicon Labs 產(chǎn)品:Adapter 用于:EM35x