You are here

Multiple custom ISRs on PSoC 5 | Cypress Semiconductor

Multiple custom ISRs on PSoC 5

Summary: 2 Replies, Latest post by Bob Marlowe on 21 Nov 2012 09:48 AM PST
Verified Answers: 0
Last post
Log in to post new comments.
AndersDK's picture
5 posts

 Hey Everybody

We are trying to use our first touch starter kit to make a self balancing robot. But it seems that the system won't let us use two custom build clock driven ISRs in the same time? Has anyone in here expirienced some similar problems, or does anyone know a solution?

Best Regards


user_78878863's picture
2553 posts

I think it should work - in a recent project I had 2 ISRr trigger by timer components (one with 10Hz and the other one with 1000Hz). What do you want to do exactly?

user_1377889's picture
9275 posts

There is no such restriction. As a rule of thumb:

Declare your interrupt handlers with CY_ISR_PROTO() and define them with CY_ISR() macros. Both explained in short in the System Reference Guide (Help -> Documentation -> System Reference ->)

Use isr_StartEx() to tell which handler will use which isr.

Keep the handlers short, no output to LCD, do not wait for anything.


Since you are going to program a closed loop (PID) you'll need a (relatively) constant time-base (20 to 50 ms) get the 3 values of the on-board accellerometer and call your PID-function.



Log in to post new comments.