- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Welcome to the forum, Maniek!
I assume your red led handled in the interrupt does not blink with the calculated value of the timer?
When you provide us with the complete project archive we can exactly see where your issue is to be found. To do so, use
Designer-> File -> Archive Project
and attach the resulting file to your next post.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Looks not too bad, so far. You should give your variable "counter" an initial value.
Can't see any bug in code.
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Bob,
I also do not see the error. Global variables are initialized to zero, unless it is otherwise in PsoC Designer.
The problem is that when interrupt are OFF diode LED LED_SWITCH1 works (blinking), but when interrupt are ON it seems to me that program don't return form interrupt routine and did not perform program in the main loop (where I am changing the status led diode LED_SWITCH1).
I was also changing interrupt type to capture and blinking led diode LED_SWITCH1 works.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Weird!!!
I would suggest you to switch to PSoC4. More modern CPU, compiler and Creator software, debug capabilities without an ICE.
Bob