- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
The datasheet shows that PSoC3 has 4 Timer/Counter/PWM blocks. So, how many timers can I use in one project? It's not clear to me in there is only one timer available per block. I may need more than four timers.
- Labels:
-
PSoC 3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If you want to use the FixedFunction timers / counters, you are limited by the blocks available in the PSoC3. But you can also use the UDB based timers / counters. There you are limited only by the available digital blocks. An 8bit counter needs one UDB, so you can place 24 of them at most. Together with the 4 fixed function blocks,. this makes 28 (provided you don't need any other digital logic...).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Of course the question has more implications than just how many.
Do you have an ISR attached to each, if so how many MIPS does the service routine need.
Add their needs up, that will govern qwhats left for the rest of the application.
How many unique clocks do you need, 1 per Timer, you may wind up exhausting these
before you exhaust UDB blocks.
Just some additional considerations.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can also use software timers as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Software timers = MIPs. Nothing for free.
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You are right, it is not free. But for slow frequency counting, it is a doable option if running out of hardware resourse.