This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Detect write to EALLOW-protected registers?

Hi all,

Is there a way to detect an unprotected write (without enclosing EALLOW / EDIS) to EALLOW protected registers?

From time to time, I forget setting EALLOW / EDIS during hardware init so the register writes have no effect.

I would like to get some interrupt if I try to write unprotected to EALLOW protected registers.

From the datasheets, I don't think this is (actually) possible, but maybe somebody has an idea - or this might be a future feature!?

  • Excellent question - many times I was hit with this as well - I don't think there is any obvious way to know but let's wait to hear from others.

  • Stephan said:

    Is there a way to detect an unprotected write (without enclosing EALLOW / EDIS) to EALLOW protected registers?

    From time to time, I forget setting EALLOW / EDIS during hardware init so the register writes have no effect.

    I would like to get some interrupt if I try to write unprotected to EALLOW protected registers.

    From the datasheets, I don't think this is (actually) possible, but maybe somebody has an idea - or this might be a future feature!?

    Unfortunately there is no way to detect this condition other than the write not occurring.    Sometimes if my code is not working I will set EALLOW for a whole block of code to see if the behavior changes.   If it does then I track down where I missed putting the EALLOW. 

    I will feed back this back to the team as a possible enhancement for the future.

    -Lori

     

  • Okay, I already thought that actually there is no way to detect this.

    Thanks for the info anyways and thanks for feeding it back to the development team!