- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Solved! Go to Solution.
- Labels:
-
PSoC general
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have now find a solution, I have changed the input connection.
Se the cut from TopDesign.cysch showing what works and not works
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Erik,
Are you willing to share your project with this thread? This will help to diagnose your issue.
"Engineering is an Art. The Art of Compromise."
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content