BAT32G1x9 user manual | Chapter 18 Programmable Gain Amplifier (PGA)
559 / 1149
Rev.1.02
18.3.2 Programmable Gain Amplifier Control Register (PGAnCTL)
The PGA0CTL and PGA1CTL registers are used to control the programmable gain amplifier to start, stop,
and amplify.
The PGA0CTL
and PGA 1 CTL registers can be set via 1-bit or 8-bit memory manipulation instructions.
After generating a reset signal, this register resets to a value of 00H.
Figure18-3
Format of the PGA Control Register (PGAnCTL
).
Reset value: 00H R/W
7
6
5
4
3
2
1
0
PGAnCTL
PGAnEN
-
-
-
PVRVS
N
ote
PGAnV
G2
PGAnV
G1
PGAnV
G0
n=0.1
PGAnEN
Programmable gain amplifier operation control
0
The amplifier stops working
1
Enable the amplifier to work
The choice of feedback resistor ground
PVRVS
Note
PGA0
PGA1
0
Select the PGAnGND pin
(default).
Select Vss(default).
1
Select Vss
Select the PGAnGND pin
PGAnVG2
PGAnVG1
PGAnVG0
PGAn gain
0
0
0
4 times
0
0
1
8 times
0
1
0
10 times
0
1
1
12 times
1
0
0
14 times
1
0
1
16 times
1
1
0
32 times
other
Set
Prohibit
Note: PGA0 defaults to select the PGA0GND pin as the feedback resistor ground, which is differential mode, and
PGA1 selects VSS as the feedback resistor ground, that is, single-ended mode.
Note that when PGAnEN is set to 1, the programmable gain amplifier runs withasettling time of 10 us
18.3.3 Registers that control the function of the analog input pin port
When using the PGA0IN pin, PGA1IN pin, PGA0GND pin, and PGA1GND pin as analog inputs to a
programmable gain amplifier, the bits of the corresponding port mode register (PMxx) and the port digital/analog
control register (PMCxx) must be used for each port) location "1".