PGA Non-inverting Mode
Brief
Non-inverting mode with known gain
Details
This example demonstrates the Programmable Gain Amplifier (PGA) functionality in non-inverting mode with a known gain configuration
Signal Routing: DAC generates input voltage → PGA amplifies signal → ADC measures output
Test Cases:
The example generates 5 test input voltages as a ramp that avoids saturation (scaled to prevent PGA output from exceeding VREF)
For each test sample:
Sets DAC to generate input voltage
Triggers ADC to measure PGA output
Calculates measured gain (Vout/Vin)
Validates gain accuracy by checking if measured gain is within tolerance of expected 4x gain
Validation:
Measured values are compared against expected values with a ±2% tolerance, and results are logged
Peripherals used
PGA
Mode: Non-inverting
Gain: 4x
ADC
Sequencers: 1
SOCs: 1
Trigger: Software
CMPSSLITE
High Comparator subysystem:
COMPH: Unused
DAC : Unused
Low Comparator subysystem:
COMPH: Unused
DAC : Used
SoC
SYSCTL
CMPxL DAC Output : Enable
Analog Reference VREF : Internal 3.3V
External connections
DAC Out pin to PGA input pin loopback
Connect: BoosterPack header J3 pin 30 to BoosterPack header J3 pin 23
LED Details: PASS LED (LED5), FAIL LED (LED4)
Connect: HSEC PIN 9 (PA4) to HSEC PIN 21 (PA16)
LED Details: PASS LED (D4), FAIL LED (D3)