Problem with interrupt controller S12XDP

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

Problem with interrupt controller S12XDP

1,483 Views
admin
Specialist II
Hello, I wish to apologise for my English at once................... Has faced the following problem, I program MC9S12XDP512, and I can not understand as to customise priorities of interruptions....... Has written the program where priorities established in register INT_CFDATA for each interruption accordingly, but at occurrence of the enclosed interruption, interruption which interrupts does not come to the end. From the description I have understood that by default in register INT_CFDATA содержиться 0x01, and interrupt priorities are arranged according to layout of interrupt vectors in memory. To change the interrupt priority it is necessary to change contents of register INT_CFDATA. As it is written that it is possible to change priority by means of register INT_XGPRIO how it occurs absolutely not clearly..................... Prompt how to be, from that documentation that for me I can not eat that to understand.......(((((((((
Labels (1)
0 Kudos
3 Replies

289 Views
admin
Specialist II
Thanks the help, Kef. On the score of nested interruptions I read that it is necessary to be resolved anew interruptions. My problem consisted in that that I thought that it is possible to achieve nested interruptions handled XGATE, and it has appeared what to interrupt its operation the previous procedure will be impossible differently is lost.
0 Kudos

289 Views
kef
Specialist I
S12XD /S12XA XGATE threads can't be interrupted at all. S12XE XGATE is much better in this respect.
0 Kudos

289 Views
kef
Specialist I
Translation engine should apologise for their translation, not you :smileyhappy:.
 
Don't know if that helps, but:
 
INT_CFDATAx registers are paged. INT_CFADDR register switches the set of interrupt priority settings accessible via INT_CFDATA0 - INT_CFDATA7 memory window.
 
It's not enough to rise interrupt priority of specific interrupt. To make interrupt nesting enabled, all interrupt handlers should reenable interrupts using cli instruction or something similar.
 
0 Kudos