AnsweredAssumed Answered

How do I disable all interrupts on a MPC5604 (whats the equivalent to DisableInterrupts used on the S12 compiler)

Question asked by Dermot Murphy on Sep 4, 2013
Latest reply on Sep 11, 2013 by Dermot Murphy

I have an interrupt which is updating data, which can also be read using other functions.

I need to be able to read data knowing that it is not being updated mid way through the read.

 

On the S12 I would do this:

disable all interrupts using the DisableInterrupts function which would update the I bit in the CCR register.

perform the action

enable all interrupts using the EnableInterrupts function

 

What is the equivalent for the MPC5604?

Outcomes