- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
On my PSoC5LP designs I often create a periodic interrupt for basic system timekeeping and timing. I do this by taking a Clock component and connecting it directly to an Interrupt component. On PSoC4 this doesn't appear to be possible. CyDsFit errors out with
Interrupt "SysTickIRQ" is driven with a logic low and the interrupt will never be asserted, the component will be removed.
This occurs no matter what interrupt "type" I select, although on PSoC5LP I leave it at the usual "derived" type. I'm using Clock component v2.20 and Interrupt component v1.70, which are the latest as far as I can tell. I'm also using PSoC Creator v3.0SP2.
I know that I can get around this by instantiating a Timer component and configuring it similarly but it's wasteful of the already limited resources on the PSoC4.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
There is a bit more hardware within a PSoC4: The Tick-timer. Look into the System Reference Guide for the APIs, search for "SysTick".
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
on PSoC4 clocks are not allowed to connect to interrupt directly, you typically need to insert D flip-flop (DFF) in between, or frequency decimator.
odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The Systick Timer in PSOC 4 can generate an interrupt.
http://www.cypress.com/?id=4&rID=94607 PSOC 4 Systick
http://www.cypress.com/?docID=49253 AN90799 (Systick as well)
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you, Bob and Dana. I completely overlooked SysTick and it's exactly what I need!