Timer Interrupt doesn't occur

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

Timer Interrupt doesn't occur

跳至解决方案
1,554 次查看
BlueTower
Contributor II

Hi! I am using codewarrior for device MC9RS08LA8RM(CFT) and I have set up via processor expert to generate an interrupt when timer overflows.

Here are settings and code

http://s21.postimg.org/akegljq3b/1_10_2016a.jpg

http://s27.postimg.org/op6cp5d7n/1_10_2016b.jpg

http://s10.postimg.org/j783m8t4p/1_10_2016c.jpg

It seems that there isn't any ISR at main.c file. When I debug no interrupt occurs to send program execution to ISR. but since ISR doesn't exist it stays at for loop. That's what it seems.

 

thanks

标签 (1)
0 项奖励
回复
1 解答
1,444 次查看
trytohelp
NXP Employee
NXP Employee

Hi Alexandros,

Your project is using Device Initialization feature.

This feature is not generated code as Processor Expert but only intialization of the perhipheral which is defined in the MCUinit.c and .h files

Processor Expert includes some function to manage the peripheral.

Some information extracted of help:

pastedImage_0.png

To access this help, please click on Help Tab on Device Initialization Component.

If you need more generated code, you need to select Processor Expert instead of Device Initialization.

Another option is to not use these features too.

There are examples in the folder \CodeWarrior for Microcontrollers V6.3\(CodeWarrior_Examples)\RS08\Assembly Examples\


Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

在原帖中查看解决方案

0 项奖励
回复
4 回复数
1,444 次查看
BlueTower
Contributor II

Ok  see these images:

1_10_2016a.jpg

1_10_2016b.jpg

1_10_2016c.jpg

Where do I find header files for TimerInt project?

0 项奖励
回复
1,445 次查看
trytohelp
NXP Employee
NXP Employee

Hi Alexandros,

Your project is using Device Initialization feature.

This feature is not generated code as Processor Expert but only intialization of the perhipheral which is defined in the MCUinit.c and .h files

Processor Expert includes some function to manage the peripheral.

Some information extracted of help:

pastedImage_0.png

To access this help, please click on Help Tab on Device Initialization Component.

If you need more generated code, you need to select Processor Expert instead of Device Initialization.

Another option is to not use these features too.

There are examples in the folder \CodeWarrior for Microcontrollers V6.3\(CodeWarrior_Examples)\RS08\Assembly Examples\


Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,444 次查看
trytohelp
NXP Employee
NXP Employee

Hi Alexandros,

In addition to Alice comments.

You're using CW for MCU V6.X which is a classic version.

Processor Expert is included and some examples too.

Please have a look to the folder:

    \CodeWarrior for Microcontrollers V6.3\ProcessorExpert\Projects\Test projects

You will find an example for each feature beans listed in the folder.

This example can be converted to the processor you're using.

To do that you just need to add a new processor and to select it.

Hope this will help.


Have a great day,
Pascal
NXP Technical Support

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 项奖励
回复
1,444 次查看
Alice_Yang
NXP TechSupport
NXP TechSupport

Hello,

Sorry , your pictures are so small that i can not see them clearly.

And what about the version of CW ?

BR

Alice

0 项奖励
回复