Interrupt problem (beginner) - Cypress.com Forums http://www.cypress.com/? Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58841 Hi dasq.

It works.

Thank you very much.

]]>
Sat, 04 Feb 2012 07:36:16 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58840 Hi Paja,

 

Then just modify the drive mode of the input pin in the project to Resistive Pull Down.

Tha should get the project working.

All the best !

]]>
Sat, 04 Feb 2012 06:40:28 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58839  Hi dasq.

Thank you very much for help. The kit I use have a push button connected to +Vcc (I can see it in a data sheet).

I will try your project today.

Thanks once again.

]]>
Sat, 04 Feb 2012 06:23:39 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58817 I created a project similar to the one you have stated and tested it on PSoC5 using CY8CKIT-001.

The output LED toggled upon every switch press (SW1).

 

The working project is attached for your reference.

]]>
Fri, 03 Feb 2012 00:50:49 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58816 Hi Paja,

 

Which kit are you using to test this project?

If you are using CY8CKIT-001 or CY8CKIT-050, then the switch available on board (SW1 and SW2) are push-to-ground.

Hence, configure the input pin's Drive Mode as Resistive Pull Up.

 

 

If you are using CY8CKIT-014, the switch is configured as push-to-Vcc. Hence, the drive mode for the pin should be set as Resistive Pull down.

If configured this way, the pins will not be floating.

Secondly, the header file of the pin you are intending to toggle should be included in the isr. Use the macro

#include "Pin_2.h" in the isr_1.c file

]]>
Fri, 03 Feb 2012 00:40:04 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58803 Thanx for a fast reply.

I'll definitely try it.

]]>
Thu, 02 Feb 2012 11:29:29 -0600
Re: Interrupt problem (beginner) http://www.cypress.com/?rID=58801 There is a function named ISR_Clearpending(). Have a look at the API and try, this may hewlp you.

 

Happy interrupts

Bob

]]>
Thu, 02 Feb 2012 11:20:21 -0600