TOOLSTICK542PP Silicon Laboratories Inc, TOOLSTICK542PP Datasheet - Page 37
![PLATFORM PROG TOOLSTICK F542](/photos/9/33/93333/toolstick542pp_sml.jpg)
TOOLSTICK542PP
Manufacturer Part Number
TOOLSTICK542PP
Description
PLATFORM PROG TOOLSTICK F542
Manufacturer
Silicon Laboratories Inc
Series
ToolStickr
Type
Microcontroller Programmerr
Specifications of TOOLSTICK542PP
Contents
2 Boards and USB Connecting Cable
Processor To Be Evaluated
C8051F542
Interface Type
USB
Operating Supply Voltage
2.7 V to 3.6 V
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
For Use With/related Products
C8051F542
Lead Free Status / Rohs Status
Lead free / RoHS Compliant
Other names
336-1718
- Current page: 37 of 274
- Download datasheet (3Mb)
5.3.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
Definition 5.1, Gain Register Definition 5.2, and Gain Register Definition 5.3 for more information.
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:
In code, changing the value to 0.44 gain from the previous example looks like:
// in ‘C’:
ADC0CF |= 0x01;
ADC0H = 0x04;
ADC0L = 0x6C;
ADC0H = 0x07;
ADC0L = 0xA0;
ADC0H = 0x08;
ADC0L = 0x01;
ADC0CF &= ~0x01;
; in assembly
ORL ADC0CF,#01H
MOV ADC0H,#04H
MOV ADC0L,#06CH
MOV ADC0H,#07H
MOV ADC0L,#0A0H
MOV ADC0H,#08H
MOV ADC0L,#01H
ANL ADC0CF,#0FEH
1.
2.
An ADC conversion should not be performed while the GAINEN bit is set
Even with gain enabled, the maximum input voltage must be less than V
voltage of the signal after gain must be less than or equal to V
// GAINEN = 1
// GAINEN = 0
// Load the ADC0GNH address
// Load the upper byte of 0x6CA to ADC0GNH
// Load the ADC0GNL address
// Load the lower nibble of 0x6CA to ADC0GNL
// Load the ADC0GNA address
// Set the GAINADD bit
; GAINEN = 1
; Load the ADC0GNH address
; Load the upper byte of 0x6CA to ADC0GNH
; Load the ADC0GNL address
; Load the lower nibble of 0x6CA to ADC0GNL
; Load the ADC0GNA address
; Set the GAINADD bit
; GAINEN = 0
Rev. 1.1
REF
.
REGIN
.
C8051F54x
and the maximum
37
Related parts for TOOLSTICK542PP
Image
Part Number
Description
Manufacturer
Datasheet
Request
R
![TOOLSTICK-EK](/photos/9/25/92545/toolstick-ek_tmb.jpg)
Part Number:
Description:
KIT TOOL EVAL SYS IN A USB STICK
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICKDA](/photos/8/98/89807/toolstickda_tmb.jpg)
Part Number:
Description:
TOOLSTICK DEBUG ADAPTER
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICKBA](/photos/9/22/92293/toolstickba_tmb.jpg)
Part Number:
Description:
TOOLSTICK BASE ADAPTER
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK411DC](/photos/28/94/289436/toolstick411dc_tmb.jpg)
Part Number:
Description:
TOOLSTICK DAUGHTER CARD
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK300DC](/photos/28/94/289432/toolstick300dc_tmb.jpg)
Part Number:
Description:
TOOLSTICK DAUGHTER CARD
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK311DC](/photos/28/95/289572/toolstick311dc_tmb.jpg)
Part Number:
Description:
TOOLSTICK DAUGHTER CARD
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK381DC](/photos/27/77/277787/c805dk_tmb.jpg)
Part Number:
Description:
TOOLSTICK DAUGHTER CARD
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICKSK](/photos/9/22/92294/toolsticksk__tmb.jpg)
Part Number:
Description:
KIT STARTER TOOLSTICK
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICKUNISK](/photos/9/22/92295/toolstickunisk_tmb.jpg)
Part Number:
Description:
KIT UNIVERSITY TOOLSTICK STARTER
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK330DC](/photos/9/25/92536/toolstick330dc_tmb.jpg)
Part Number:
Description:
DAUGHTER CARD TOOLSTICK F330
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICKUNIDC](/photos/8/98/89811/toolstickunidc_tmb.jpg)
Part Number:
Description:
CARD DAUGHTER UNIVRSTY TOOLSTICK
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK582DC](/photos/9/0/90060/toolstick582dc_tmb.jpg)
Part Number:
Description:
DAUGHTER CARD TOOLSTICK F582
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK502DC](/photos/9/25/92539/toolstick502dc_tmb.jpg)
Part Number:
Description:
DAUGHTER CARD TOOLSTICK F500
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK540DC](/photos/9/25/92540/toolstick540dc_tmb.jpg)
Part Number:
Description:
DAUGHTER CARD TOOLSTICK F540
Manufacturer:
Silicon Laboratories Inc
Datasheet:
![TOOLSTICK560DC](/photos/9/25/92542/toolstick560dc_tmb.jpg)
Part Number:
Description:
DAUGHTER CARD TOOLSTICK F560
Manufacturer:
Silicon Laboratories Inc
Datasheet: