ATtiny1624/1626/1627

PGA Control

Name:
PGACTRL
Offset:
0x0B
Reset:
0x04
Access:
-
Bit76543210
GAIN[2:0]PGABIASSEL[1:0]ADCPGASAMPDUR[1:0]PGAEN
AccessR/WR/WR/WR/WR/WR/WR/WR/W
Reset00000100

Bits 7:5 – GAIN[2:0]: GAIN

GAIN

This bit field controls the gain setting for the PGA.
ValueNameDescription
0x0 1X 1x gain
0x1 2X 2x gain
0x2 4X 4x gain
0x3 8X 8x gain
0x4 16X 16x gain
Other - Reserved

Bits 4:3 – PGABIASSEL[1:0]: PGA Bias Select

PGA Bias Select

This bit field controls the bias current supplied to the PGA.
Value Name Description
0x0 1X 100% BIAS current. Usable for fCLK_ADC ≤ 6 MHz.
0x1 3_4X 75% BIAS current. Usable for fCLK_ADC ≤ 4 MHz.
0x2 1_2X 50% BIAS current. Usable for fCLK_ADC ≤ 2.5 MHz.
0x3 1_4X 25% BIAS current. Usable for fCLK_ADC ≤ 1.25 MHz.

Bits 2:1 – ADCPGASAMPDUR[1:0]: ADC PGA Sample Duration

ADC PGA Sample Duration

This bit field controls the sampling duration for the ADC to sample the PGA output.
Value Name Description
0x0 6CLK 6 CLK_ADC cycles. Usable for fCLK_ADC ≤ 1.25 MHz.
0x1 15CLK 15 CLK_ADC cycles. Usable for fCLK_ADC ≤ 5 MHz.
0x2 20CLK 20 CLK_ADC cycles. Usable for fCLK_ADC ≤ 6 MHz.
0x3 - Reserved

Bit 0 – PGAEN: PGA Enable

PGA Enable

This bit controls whether the PGA is enabled or not when selected by the VIA bit field in the Input Multiplexer (ADCn.MUXPOS or ADCn.MUXNEG) registers.

Note: If both PGAEN and the Low Latency (LOWLAT) bit in the Control A (ADCn.CTRLA) register are ‘1’, the PGA will be ON continuously, even when not selected by the VIA bit field. This eliminates the initialization time if reconfiguring the ADC to use the PGA.
ValueDescription
0 The PGA is disabled
1 The PGA is enabled