Thanks a lot for the sample program.
But i don't understand , for some reason my while loop is not executing further since my CSR FLAG for channel 0 is not being set. while(!EMIOS.CH[0].CSR.B.FLAG)
and if i try to set it with EMIOS.CH[0].CSR.B.FLAG = 1;
the overflow bit is set to 1.
please help me how to handle overflow and also the reason why the execution is stuck on the while loop.
Regards,
Sneha.