Counter interrupt

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

cross mob
Anonymous
Not applicable

 Hi!

   

   I have a problem with counter interrupt. I write simple program in C and now I want use it in the counter interrupt. So, what I should do to use C function in .asm file?? 

   

P.S. I'm sorry about my English

0 Likes
3 Replies
MR_41
Employee
Employee
First like received

You have to first write your ISR in C, then declare it as ISR using the #pragma interrupt_handler directive and then place an ljmp to the C ISR inside the Counter's ISR file.  Check out the below KB article that explains in detail how to write a C ISR.

   

 

   

Best Regards,

   

Ganesh

   

PSoC Hacker

0 Likes
MR_41
Employee
Employee
First like received

Sorry.  Missed the link.

   

 

   

http://www.cypress.com/?id=4&rID=36720

   

 

   

Regards,

   

Ganesh

   

PSoC Hacker

0 Likes
Anonymous
Not applicable

 Working..

   

Thank you!

0 Likes