Hi everyone,
So I have a little issue where I am trying to clear the EOSI0 bit, but I don't know how to clear this interrupt. My confusion arises from the fact that in the documentation it clearly states that ADC_STAT is a READ-ONLY register. It later says however, in the EOSI description that to clear the EOSI you should write a 1 to that bit. I tried doing this but it didn't seem to do anything. I even saw some auto-generated code that tried to clear the interrupt by writing (in software) a 1 to the bit.
Does anyone know anything about how this works?
Thanks so much.
DOCUMENTATION: http://cache.freescale.com/files/32bit/doc/ref_manual/MC56F827XXRM.pdf?fasp=1&WT_TYPE=Reference%20Ma...
Hello Eric,
ADC_STAT is the read only register as the flags can not be set by the software. The flags can only be cleared by the software.
This bit is cleared by writing a one to it.
ADC_STAT |= ADC_STAT_EOSI0;
Write this line in your interrupt routine, and let me know the result.
Still if it is not getting cleared, please share your ADC_init and ADC_isr code along with the complete device name which you are using.
Thanks and Regards
Arpita Agarwal