Pascal Drecker

MCF5282: irq questions / SR[12]: master/interrupt state

Discussion created by Pascal Drecker on Apr 27, 2006
Latest reply on May 4, 2006 by David E Seymour
Hi,

I'm playing the first time with the coldfire. Entering critical sections I have to disable all interrupts.

1) What is the correct way? Setting the interrupt level mask to 7? I need a fast solution!

// enter critical section
strldsr #0x2700 or [move.w sr,d0 / move d0,4(sp) / move #0x2700,sr]

// do something
...

// leave critical section
move (sp)4,d0
move.w d0,sr


2) What is the purpose of the flag 'master/interrupt state' in the status register SR[12]?

3) How can the opcode 'strldsr' used with CW 6.1 and target MFC5282?

CW-Setting target CPU: MCF528X
CW-Error: Instruction not legal for current target processor(s)

Best Regards,
e31

Outcomes