MC9S12XDP512 interrupt problem

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

MC9S12XDP512 interrupt problem

2,917 次查看
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
标签 (1)
0 项奖励
回复
2 回复数

863 次查看
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 项奖励
回复

863 次查看
patti
Contributor I

Thanks a lot!

Now I got it working

 

Patrik

0 项奖励
回复