We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hello,
We are trying to disable two fast interruptions as we get another one.
We are using XC167CI.
We have managed to do it but when we enable them again, the associated function executes once if there is a request pending.
We have seen in the manual that it may be because the IR bit in the Interrupt Control Register so we have tried to put 0 in this bit but it is not possible as it supports bit-protection.
Is ther any possibility to change this bit? Any other way to avoid this problem without using auxiliary variable?
Thanks,
Willow
Bit protection only protects bits from unintended change. If you explicitly clear a bit, it will be cleared.
The User manual says: If a conflict occurs between a bit manipulation generated by hardware and an intended software access, the software access has priority and determines the final value of the respective bit.
Sauli