In the case of IOCIF, the hardware does not allowing clearing that bit.
As long as any of the IOCAF or IOCBF are set, the IOCIF bit will remain set too.
DT_INTS does not clear the IOCAF or IOCBF flags, since there's no way to know which of the 16 flags should be cleared for your application.
It is up to you to clear those flags.
This particular chip doesn't have an IOCAF register, so ...
In your case, ... IOCBF = 0 will fix your problem.




Bookmarks