cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 5, 3 & 1 MCU

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
Reply
3 Replies
Employee

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
Reply
Employee

Sorry.  Missed the link.

   

 

   

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

   

 

   

Regards,

   

Ganesh

   

PSoC Hacker

0 Likes
Reply
Anonymous
Not applicable

 Working..

   

Thank you!

0 Likes
Reply