MC9S12XDP512 interrupt problem

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

MC9S12XDP512 interrupt problem

2,456 Views
patti
Contributor I
Hi, I am programming the HC12 and XGate processor! I have get the interrupt table to work for XGATE, but now I want to have a Periodic Interrupt just for the HC12 processor, how do I redirect Pit interrupt to HC12? Would bee nice with a C-code example!

Thanks In advance
Patrik
Labels (1)
0 Kudos
2 Replies

402 Views
Steve
NXP Employee
NXP Employee

Patrik,

 At reset the interrupts are initialised to point to the CPU so by default the interrupt will go the CPU. From the intial conditions the steps are:

add a vector into the CPU vector table

create an interrupt service routine

and enable interrupts.

The various approaches are discussed in a thread here: http://forums.freescale.com/freescale/board/message?board.id=16BITCOMM&message.id=111 and identify useful app notes that include code.

0 Kudos

402 Views
patti
Contributor I

Thanks a lot!

Now I got it working

 

Patrik

0 Kudos