Pillot benjamin

Interrupt whith XGATE problem.

Discussion created by Pillot benjamin on May 30, 2006
Latest reply on May 31, 2006 by Alban Rampon
I work on The S12xDP512 and my interrup are manage by the CPU.
But now i want to use the xgate for manage it.
I don't understand how one passes the Cpu at the Xgate for manage the interrupt.
It's my program with interrup manage by CPU (jus the define of interrup):
#ifndef __SMALL__                   

interrupt 23 analog(void)
       calcul_moy();          //call calcu_moy
     comparison();          //call comparison
If i want to use the Xgate in the place to Cpu what must i make??
Thanx for you help