I am working on a project which uses PWM wave as the ADC trigger and I can adjust the sampling frequency by changing the pulse width of the PWM wave. The conversion result will be stored in the registers ADCMEM0 in the board and in my code the data in the ADCMEM0 is given to a variable named ADC_Result during the Interrupt Service Routing(ISR). However, no matter how I change the pulse width I could only get few samples during one period(I tried both high frequency wave and low frequency wave) which means the exact sampling frequency is extremely low. Does anybody know how to solve this problem?