Note:This family reference manual section is meant to serve as a complement to device
data sheets. Depending on the device variant, this manual section may not apply to
all dsPIC33/PIC24 devices.
Please consult the note at the beginning of the “Programmable Gain Amplifier(PGA)” chapter in the current device data sheet to check whether this document
supports the device you are using.
Device data sheets and family reference manual sections are available for
download from the Microchip Worldwide Web site at: http://www.microchip.com
1.0 INTRODUCTION
The Programmable Gain Amplifier (PGA) is essentially a non-inverting amplifier with userprogrammable gains. The output of the PGA can be connected to a number of dedicated
Sample-and-Hold (S&H) inputs of the Analog-to-Digital Converter (ADC) and/or to the high-speed
analog comparator module. The PGA has five selectable gains and may be used as a ground
referenced amplifier (single-ended) or as an amplifier with an independent ground reference.
The major features of the PGA are as follows:
• Selectable operation: single-ended with internal ground or operation with independent
ground reference
• Selectable gains: 4x, 8x, 16x, 32x and 64x
• High gain bandwidth product (40 MHz)
• Rail-to-rail output voltage
• Wide input voltage range (AV
A simplified block diagram of the PGA module is shown in Figure 1-1.
SS – 0.3, AVDD + 0.3)
Figure 1-1:PGAx Module Block Diagram
DS70005146B-page 2 2014-2015 Microchip Technology Inc.
Programmable Gain Amplifier (PGA)
2.0 CONTROL REGISTERS
Note:Each dsPIC33/PIC24 family device variant may have one or more PGA modules.
An ‘x’ used in the names of pins, control/status bits and registers denotes the
particular PGA module number. Refer to the “Programmable Gain Amplifier(PGA)” chapter of the specific device data sheet for more details.
This section outlines the specific functions of each register that controls the operation of the PGA
module. The registers are as follows:
111 = Reserved
110 = Gain of 64x
101 = Gain of 32x
100 = Gain of 16x
011 = Gain of 8x
010 = Gain of 4x
001 = Reserved
000 = Reserved
DS70005146B-page 4 2014-2015 Microchip Technology Inc.
Programmable Gain Amplifier (PGA)
Register 2-2:PGAxCAL: PGAx Calibration Register
U-0U-0U-0U-0U-0U-0U-0U-0
————————
bit 15bit 8
U-0U-0R/W-0R/W-0R/W-0R/W-0R/W-0R/W-0
——PGACAL<5:0>
bit 7bit 0
Legend:
R = Readable bitW = Writable bitU = Unimplemented bit, read as ‘0’
-n = Value at POR‘1’ = Bit is set‘0’ = Bit is clearedx = Bit is unknown
bit 15-6Unimplemented: Read as ‘0’
bit 5-0PGACAL<5:0>: PGAx Offset Calibration bits
The calibration values for the PGA1 and PGA2 bits have to be copied from Flash addresses, 0x800E48
and 0x800E4C, respectively, before the module is enabled. For more information, refer to the Calibration
Data Address table in the “Special Features” chapter in the specific device data sheet.