How do I clear the EOSI bit? (MC56Fxxxx)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

How do I clear the EOSI bit? (MC56Fxxxx)

1,288 次查看
ericensen
Contributor I

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...

标签 (1)
标记 (2)
0 项奖励
回复
1 回复

1,009 次查看
arpitaagarwal-b
NXP Employee
NXP Employee

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

0 项奖励
回复