AnsweredAssumed Answered

Regarding Interrupt priority in MC9S12ZVML128

Question asked by PRATIBHA SURABHI on Mar 30, 2017
Latest reply on Mar 31, 2017 by Daniel Martynek

Hi,

 

I am using MC9S12ZVML1128 controller. I have implemented,

1. 50us interrupt-PMF reload interrupt in which motor control handler is called

2. 1ms interrupt-Timer Channel 3 interrupt in which PI loop executes.

 

While motor rotates in close loop, 50us interrupt is missing when 1ms interrupt comes even though I have given highest priority to 50us interrupt.

/* set PMF_reload Interrupt (0x0D0) priority 7*/

/* 0xD0/4=0x34 => reg. value = 0x30 + offset 4 */
INT_CFADDR = 0x30;//0x34;
INT_CFDATA0 = 7;

 

/* set Timer channel 3 ISR (0x1C0) to 6 */
/* 0x1C0 / 4 = 0x70 => reg. value = 0x70 + offset 0 */
INT_CFADDR = 0x70;
INT_CFDATA4 = 6;

Please provide me solution for the above question as early as possible.

Outcomes