SDAA075 October 2025 CC2340R5
The default ADCBuf operates on a single channel in repeated single mode. Since two continuous channel conversions are warranted for this application, current (ISEN) and voltage (VSENPVDD), a repeated sequence mode is preferable. ADCBufLPF3.c is, therefore, also configured to transfer data through the ADC peripheral's FIFO instead of a single memory register.
The original TI Driver also chooses to begin subsequent ADC conversions automatically. This is not a good choice for the purposes of the motor design which must measure current halfway through a PWM duty cycle. Therefore, the ADC is set to trigger conversions of the first ADC channel (ISEN) upon the LGPT of the PWM TI Driver reaching the target value in up or down mode. The next ADC channel (VSENPVDD) is measured immediately afterward, and the process continues until the buffer is filled.
The ADCBuf callback operation also includes status processing for the high, in, low interrupts of the window monitor which is initialized in the app_bldc_motor_control.c file. This way, the application is notified of either a window monitor change or completed ADC buffer through DMA.