56F8367EVM - timer compare interrupt problem

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

56F8367EVM - timer compare interrupt problem

1,586 Views
kgeldhof
Contributor I
Hello,

I'm using a timer bean (which uses the peripheral timer D1) for periodic interrupt generation. In the bean I have enabled "Timer Compare Interrupt" and I entered "TMRD1_OnCompare" in the ISR name field. I expected that the processor expert would create the interrupt routine in the events.c file, but this is not the case. So I wrote the routine myself:

#pragma interrupt called
void TMRD1_OnCompare(void)
{
  Phase+=5;   /* some arbitrary code */
}

When I run the code, the routine seems to be executed only once (although the operation mode of the timer was set to "Count Mode" - "Count Repeatedly"). After the routine has been executed, some other interrupt routines, such as ButtonA_OnInterrupt, which is called in the case that button A on the evaluation board is pressed, are not any more executed either. In fact, the only interrupt routine that is still executed is the ADC_OnEnd (ADC conversion complete) routine.

What could be the reason of this?

I am working with an evaluation module 56F8367EVM and CodeWarrior version 5.6.1.

Sincerely,
Kristof Geldhof


--
Alban Edit: Please always include FSL Part Number in Message Subject line.



Message Edited by Alban on 2007-09-12 12:04 AM
Labels (1)
Tags (1)
0 Kudos
Reply
1 Reply

388 Views
trytohelp
NXP Employee
NXP Employee
Hi,
 
Without the application it's difficult to determine the cause of the problem.
On the installation lot of examples are delivered.
There is one for Timer.
Go to the folder:
  \Stationery\Processor_Expert_Examples\DemoApplications\HWBeans\56F83xx\TimerOut
 
Please use this example as an application based.
 
Pascal
0 Kudos
Reply