SPRADA5 April 2024 TMS320F28P550SJ , TMS320F28P559SJ-Q1
The PGA modules are designed to be used as standalone operational amplifiers to provide a well-integrated, cost-effective signal conditioning system designed for various applications. This mode gives the designers the flexibility to configure the PGA module with customized gain value. Other analog peripherals, such as DAC and CMPSS modules, can be used in conjunction with the PGA to unlock new uses for existing peripherals. The circuit diagram of PGA in this mode is shown in Figure 2-11.
The following code snippet shows the code to configure the PGA module in standalone mode.
//
// P-MUX selection
//
#define PGA_PMUXINPUT PGA_PMUX_POS
//
// N-MUX selection
//
#define PGA_NMUXINPUT PGA_NMUX_NEG
//
// M-MUX selection
//
#define PGA_MMUXINPUT PGA_MMUX_NAKED_OPAMP