adc interrupt



i need to read 4000 sequential adc data and need an interrupt that every time a 100kHZ pwm goes from low to high or high to low. i am using f401re and i think it is capable…
appreciate any help


Hello @orhanerdem 

the frequency requirements should be no problem for the f401re; however I am not positive I have completely understood  your needs. Do you need one sample every interrupt? or you need to generate a pwm while reading the adc? 


sorry for my English.
i need one sample every interrupt and it should occur every time the pwm signal(100khz) goes from low to high 

in mbed i manage to do that on time 

for (i=0;i<3648;i++){

void record()
  pixelValue[i]= imageIn.read_u16();