This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Interrupt Control Register

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

Parents
  • 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

Reply
  • 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

Children
No data