9S12E - Interrupt From Interrupt

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

9S12E - Interrupt From Interrupt

3,313件の閲覧回数
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

ラベル(1)
0 件の賞賛
返信
4 返答(返信)

1,294件の閲覧回数
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 件の賞賛
返信

1,294件の閲覧回数
Lundin
Senior Contributor IV
What Steve said. As for which bit that does what, check the manual.
0 件の賞賛
返信

1,294件の閲覧回数
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 件の賞賛
返信

1,294件の閲覧回数
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 件の賞賛
返信