Interrupt problems

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

cross mob
Erimads
Level 2
Level 2
5 sign-ins First solution authored First like received

I ned a function  with 2 interrupts on input pins one on rising edge and one on falling edge.

This is the code.

CY_ISR(PulsOn_interrupt) // Frankfurt Ur interrupt Puls on
{
PulsOn_ClearPending();
PauLen=PulCnt;
PulCnt=0;
PausOk=1;
Blue[18][1]= 0x80;
Blue[19][1]= 0x80;
}

Started with this order.

 PulsOn_StartEx(PulsOn_interrupt);
 The problem is the interrupt is running all the time,

No code outside this interrupt is executed.

I have 2 other interrupts on internal clocks one for timing and one for scanning a LED matrix running allright.

The input pin is set up to no HWconnection, Transparent and Rising edge interrupt.

The interrupt are set up to DERIVED.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
Erimads
Level 2
Level 2
5 sign-ins First solution authored First like received

I have now find a solution, I have changed the input connection.

Se the cut from TopDesign.cysch showing what works and not works

 

View solution in original post

5 Replies
Erimads
Level 2
Level 2
5 sign-ins First solution authored First like received

I can add som info.

The problem is only with Rising and both edge not with falling edge.

I have tryed pull up and pull up and notthing is connected to the input pin at this test.

Regards Erik.

 

I have tryed a delay before starting interrupt.

0 Likes
Len_CONSULTRON
Level 9
Level 9
Beta tester 500 solutions authored 1000 replies posted

Erik,

Are you willing to share your project with this thread?  This will help to diagnose your issue.

Len
"Engineering is an Art. The Art of Compromise."
0 Likes

Yes.

I am making an alarm clock

To this I are using the following.

1. A board from Sparcfun FreeSoc2 with processor CY8C5888AXI-LP096

2. A 16x32 RGB LED matrix to show Time, weekday and date and other info

3. A keypad with 6 buttons to setting time/alarm time

4. Then I need to connect a receiver to get timecode signals from the timecode sender in Frankfurt Germany at 77.5 khz. It is hear I need the HW interrupts.

What files du you need to see the complet project ?

Regards

Erik

 

0 Likes
ncbs
Moderator
Moderator
Moderator
500 replies posted 50 likes received 250 sign-ins

Hi @Erimads ,

I understand that you need interrupts on both the rising edge and falling edge in a digital input pin.
You may configure this. In the configuration window -> Pins tab -> Input tab -> Interrupt. You may select "both edges". You may also select "dedicated interrupt" depending on the device that you are using.

Regards,
Nikhil

0 Likes
lock attach
Attachments are accessible only for community members.
Erimads
Level 2
Level 2
5 sign-ins First solution authored First like received

I have now find a solution, I have changed the input connection.

Se the cut from TopDesign.cysch showing what works and not works