MPC5604B interrupts

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 
2,359件の閲覧回数
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 解決策
1,855件の閲覧回数
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 返答(返信)
1,855件の閲覧回数
FlavioStiffan
NXP Employee
NXP Employee

michaelgoudey would you have any clue about this one?

Thanks

0 件の賞賛
返信
1,856件の閲覧回数
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 件の賞賛
返信
1,855件の閲覧回数
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 件の賞賛
返信
1,855件の閲覧回数
FlavioStiffan
NXP Employee
NXP Employee

murraystewart-b04629 maybe you have a clue about this.

Thanks

0 件の賞賛
返信