AnsweredAssumed Answered

MCF5235 Interrupt enable/disable spuriousity

Question asked by Richard Wielend on Jul 11, 2017
Latest reply on Jul 19, 2017 by TomE

I have a problem when enabling/disabling single EPORT-Interrupts.

I do it this way:

 

void EPORT::InterruptOn() /*-FUNCTION HEADER-------------------------------------------------------- | description : enables a certain interrupt | side effects : | parameters : | return value : none | precondition : | postcondition: +--END FUNCTION HEADER--------------------------------------------------*/ { MCF_EPORT_EPIER |= MCF_EPORT_EPIER_EPIEx(m_byPortNr); } void EPORT::InterruptOff() /*-FUNCTION HEADER-------------------------------------------------------- | description : disables a certain interrupt | side effects : | parameters : | return value : none | precondition : | postcondition: +--END FUNCTION HEADER--------------------------------------------------*/ { MCF_EPORT_EPIER &= ~MCF_EPORT_EPIER_EPIEx(m_byPortNr); }

 

Do you have an idea what I´m doing wrong?

 

The behavior is like that:

When I disable a certain interrupt other interrupts also get disabled, not all of them, just some, and those are always the same.

For example when I disable port:1 -> port:3 also gets disabled

or                              disable Port:3 -> port:5 also gets disabled

or                              disable Port:5 -> port:3 also gets disabled

or                              disable Port:7 -> port:1 also gets disabled

 

I really would appreciate some help

regards, Richard

Outcomes