HIGHLIGHTS This section of the manual contains the following major topics: Introduction ........................2 Control Registers ......................3 Module Application......................6 Register Maps ........................9 Related Application Notes....................10 Revision History ......................11 2014-2015 Microchip Technology Inc. DS70005146B-page 1...
Gain of 16x GAIN<2:0> = 3 Gain of 8x GAIN<2:0> = 2 Gain of 4x – PGAx Negative Input PGAxOUT PGAx PGAx Positive Input PGAx Calibration<5:0> Note 1: x = 1 and 2. 2014-2015 Microchip Technology Inc. DS70005146B-page 2...
• PGAxCON: PGAx Control Register - Enables or disables the PGA module - Positive input selection - Negative input selection - Gain selection • PGAxCAL: PGAx Calibration Register - Stores the calibration value 2014-2015 Microchip Technology Inc. DS70005146B-page 3...
Page 4
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 2014-2015 Microchip Technology Inc. DS70005146B-page 4...
Page 5
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. 2014-2015 Microchip Technology Inc. DS70005146B-page 5...
There is no assigned priority between the PGAx module and the DACx module. To achieve the desired offset voltage specifications, calibration values are fed into the PGAxCAL register. This calibration data is stored in program memory (Flash). 2014-2015 Microchip Technology Inc. DS70005146B-page 6...
Page 7
Configuring PGA In Single-Ended Mode PGA1CONbits.PGAEN = 0; //Disable PGA1 PGA1CONbits.SELPI = 0; //PGA1P1 as positive input PGA1CONbits.SELNI = 0; //Negative input is grounded PGA1CONbits.GAIN = 2; //4x PGA Gain PGA1CONbits.PGAEN = 1; //Enable PGA1 2014-2015 Microchip Technology Inc. DS70005146B-page 7...
Page 8
PGA amplifies the current through the shunt resistors, with the output of the PGA connected directly to the ADC module and the PGA configured in Single-Ended mode. Figure 3-2: PGA Application in Interleaved PFC Load PWM1 S&H PGA1 – PWM2 S&H PGA2 – 2014-2015 Microchip Technology Inc. DS70005146B-page 8...
REGISTER MAPS A summary of the registers associated with the PGA module is provided in Table 4-1. Table 4-1: Programmable Gain Register Map File Name Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5...
Application Note # No related application notes are available at this time. Note: Please visit the Microchip web site (www.microchip.com) for additional application notes and code examples for the dsPIC33/PIC24 families of devices. 2014-2015 Microchip Technology Inc. DS70005146B-page 10...
“operation with independent ground reference” or “independent ground reference”, depending on context. Resizes Figure 1-1 to place it with the introductory discussion on page 2; the diagram is otherwise unchanged. Other minor corrections throughout the document. 2014-2015 Microchip Technology Inc. DS70005146B-page 11...
WiperLock, Wireless DNA, and ZENA are trademarks of Microchip Technology Incorporated in the U.S.A. and other countries. SQTP is a service mark of Microchip Technology Incorporated in the U.S.A. Silicon Storage Technology is a registered trademark of Microchip Technology Inc. in other countries.
Page 14
Tel: 886-2-2508-8600 China - Xian Tel: 631-435-6000 Tel: 86-29-8833-7252 Fax: 886-2-2508-0102 San Jose, CA Fax: 86-29-8833-7256 Thailand - Bangkok Tel: 408-735-9110 Tel: 66-2-694-1351 Canada - Toronto Fax: 66-2-694-1350 Tel: 905-673-0699 Fax: 905-673-6509 01/27/15 2014-2015 Microchip Technology Inc. DS70005146B-page 14...
Need help?
Do you have a question about the dsPIC33 series and is the answer not in the manual?
Questions and answers