AnsweredAssumed Answered

ADC with PDB trigger issue

Question asked by MarcoE on Jun 7, 2012
Latest reply on Nov 7, 2012 by David E Seymour

I have setup the ADC with the same code that can be found in mqx\examples\adc\adc_demo (triggered by ADC_PDB_TRIGGER); then I start a task which forever waits for the lwevent to be set from the ADC, read the sampled values and process them. 

I have many other tasks running (ethernet, sdcard with mfs, usb_host) and everything is OK.

 

But if I run a usb_device task, when the enumeration is complete the ADC task stops working (but USB task and other tasks continue to run correctly). I see in the debugger that the ADC task is waiting forever the lwevent, so I think the cause is the PDB trigger that stops triggering the ADC.

 

Do you have some ideas to resolve this issue? Or do you think the problem is different?

 

Thank you

 

 

 

 

Outcomes