SLUUDN8 July 2026 TMS320F28P550SJ , TMS320F28P650DK
To switch from DEBUG mode to the real ADC input, comment out or remove the #define DEBUG line near the top of metrology_main_file.c file:
//#define DEBUG
The ISR then calls the ADC_readMetrologyData() function instead of the get_debugData() function, and the calibration scale factor overrides the main() function under the #ifdef DEBUG macro (which serves as a hook to shift between modes) no longer applies. The scale factors from the template.h file are used directly.