9S12E - Interrupt From Interrupt

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

9S12E - Interrupt From Interrupt

2,420 Views
admin
Specialist II
Hello,

Can an interrupt be called while you are within and ISR in a 9S12E?
ie:
TIM0
TIM1

Alban Edit: FSL Part Number in Subject line.

Message Edited by Alban on 2007-03-14 11:32 AM

Labels (1)
0 Kudos
4 Replies

401 Views
admin
Specialist II
For timers TIM0 and TIM1; is setting these 2 flags enough to allow for other interrupts to occur?

TIM0_TFLG2=128;
TIM1_TFLG2=128;

For a RTI; is setting this flag enough to allow for other interrupts to occur?
CRGFLG = 128;
0 Kudos

401 Views
Lundin
Senior Contributor IV
What Steve said. As for which bit that does what, check the manual.
0 Kudos

401 Views
PsychoDebugger
Contributor I
This can be useful

A Software Interrupt Priority Scheme for HCS12 Microcontrollers

Message Edited by PsychoDebugger on 2007-04-1810:16 AM

0 Kudos

401 Views
Steve
NXP Employee
NXP Employee
Yes, by you must re-enable interrupts.
By default the I bit is set when an interrupt is taken and this prevents further interrupts. You can clear the I-bit in the ISR and another interrupt can occur. The S12X family includes an interrupt priority capability that limits nested interrupt sources to those at a higher priority but this is not the case for the S12.
0 Kudos