MPC5604B interrupts

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

MPC5604B interrupts

跳至解决方案
3,356 次查看
catalinvasile
Contributor I

It's been some time since the 2 threads I've found here, related to MPC5604B interrupts, have been issued.

Has anyone successfully  used interrupts one this MCU ? If so, how? Can you provide some sample code?

标签 (1)
0 项奖励
回复
1 解答
2,852 次查看
michaelgoudey
NXP Employee
NXP Employee

Flavio,

The original question is pretty old so I wonder if Catalin has already found sample code for interrupts on MPC5604B.  If the topic is still open, though, I'd probably first look at the Qorivva cookbook reference code.  There are both HW and SW vector mode examples included with the document, also known as AN2865.  Here are the links to the PDF and the ZIP file with examples.

     http://cache.freescale.com/files/32bit/doc/app_note/AN2865.pdf

     http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN2865SW&location=null&Parent_n...=

If the format of this code is different than desired then there are examples included with CodeWarrior for MCU.  For example, CW MCU v10.5 includes examples for MPC5604P where the interrupt controller functions in the same fashion as MPC5604B.  Look under the following path within CodeWarrior:

     <CodeWarrior>/MCU/CodeWarrior_Examples/Qorivva_Examples

          MPC5604P_INTC-HW-VLE

          MPC5604P_INTC-SW-VLE

There are also examples included with the StarterTRAK development kit, such as TRK-MPC5606B, which may be suitable.  I haven't looked over those to confirm interrupts are used in each kit's example code.

Regards,

Michael Goudey

在原帖中查看解决方案

0 项奖励
回复
4 回复数
2,852 次查看
FlavioStiffan
NXP Employee
NXP Employee

michaelgoudey would you have any clue about this one?

Thanks

0 项奖励
回复
2,853 次查看
michaelgoudey
NXP Employee
NXP Employee

Flavio,

The original question is pretty old so I wonder if Catalin has already found sample code for interrupts on MPC5604B.  If the topic is still open, though, I'd probably first look at the Qorivva cookbook reference code.  There are both HW and SW vector mode examples included with the document, also known as AN2865.  Here are the links to the PDF and the ZIP file with examples.

     http://cache.freescale.com/files/32bit/doc/app_note/AN2865.pdf

     http://www.freescale.com/webapp/sps/download/license.jsp?colCode=AN2865SW&amp;location=null&Parent_n...=

If the format of this code is different than desired then there are examples included with CodeWarrior for MCU.  For example, CW MCU v10.5 includes examples for MPC5604P where the interrupt controller functions in the same fashion as MPC5604B.  Look under the following path within CodeWarrior:

     <CodeWarrior>/MCU/CodeWarrior_Examples/Qorivva_Examples

          MPC5604P_INTC-HW-VLE

          MPC5604P_INTC-SW-VLE

There are also examples included with the StarterTRAK development kit, such as TRK-MPC5606B, which may be suitable.  I haven't looked over those to confirm interrupts are used in each kit's example code.

Regards,

Michael Goudey

0 项奖励
回复
2,852 次查看
catalinvasilef
NXP Employee
NXP Employee

The cookbook and the samples were the problem. The MPC5604B came in 2 revisions, and it seems that the hardware addresses on the bus have some differences.

The car shipped with a revision, but with code support for another, as in the used header with define constants for I/Os was for the other revision.

So for some I/Os worked perfectly since they were mapped the same, but other, like the interrupts registers, were mapped at a different addresses.

I accidentally found out when someone provided other example code for using other I/Os by using interrupts.

0 项奖励
回复
2,852 次查看
FlavioStiffan
NXP Employee
NXP Employee

murraystewart-b04629 maybe you have a clue about this.

Thanks

0 项奖励
回复