2015-04-15 03:14 AM
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 Vanima2015-04-20 01:46 AM
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