PSOC 4 Timer ISR..

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello, I am trying to run a timer isr routine but never get executed. Timer is is set up with a 100KHz clock, Terminal Count of 1000, and interrupt output connected to isr. ISR is set to LEVEL. Includes and code in the isr.c file

   

main(){

   

    Timer_1_Start()

   

    isr_Timer_Start()

   

    AMux_1_Start()

   

    CyGlobalIntEnable

   

    ....

   

 

   

Code compile and programs but isr routine never gets called. What am I missing?

0 Likes
3 Replies
Bob_Marlowe
Level 10
Level 10
First like given 50 questions asked 10 questions asked

I cannot see your interrupt handler. Can you post your complete project, so that we all can have a look at all of your settings? To do so, use
Creator->File->Create Workspace Bundle (minimal)
and attach the resulting file.

   

and better set your isr from "level" to "rising edge".

   

When you get the handler called, do not forget to clear the interrupt in your timer by reading the status.

   

 

   

Bob

0 Likes
Anonymous
Not applicable

I ended up using an existing timer example and porting my code and design to it. Still not sure why my original design did not work with interrupts. I did everything from Cypress examples and documentation.

   


Thks!

0 Likes
Anonymous
Not applicable

Hello,

   

Could you please create the tech support case in cypress.com website and attach the complete project, so it will help us to debug the project?

   

Thanks

   

Ramesh B

0 Likes