Jingtai, You have tried to set a breakpoint on the function prototype. You will need to set it in the ISR code itself. Then step through the code and see what is being read by the ADC. I suspect nothing is being read and the problem is with the external connection. As is, this project assumes EPWM2A (GPIO2) is connected to ADCA0.
↧