cancel
Showing results for 
Search instead for 
Did you mean: 

ADC0 interrupt problem

nooshin_1382
Associate II
Posted on April 15, 2015 at 12:14

Hi

I Want to use , End of Conversion interrupt in ADC0 but when i set the NSTART bit in ADC0- MCR register in debug mode i saw in SFR view ,ADC0_ISR EOC bit is set but the interrupt is not work.

when i use while for this bit in my function i Read the ADC Correctly .

i Attach my code here if my code have problem please let me now.

thanks

With Best Regards

Nazerian Vanima
1 REPLY 1
Erwan YVIN
ST Employee
Posted on April 20, 2015 at 10:46

Hello Vanima ,

Could you attach your sample code ? before setting the NSTART. enable the IMR

/* Enable the ADC Interrupt */
/* Set the interrupt Mask Register */
adcp->adc_tagp->IMR.R=ADC_IMR_MSKEOC|ADC_IMR_MSKECH;

you should set CIMR (Channel Interrupt Mask resgister). Best regards Erwan