I am fairly new to PSoC. How do I incorporate this component into my project?
Extract the archive to your disk. Open your project, in the workspace explorer select the 'components' tab.
On your project node, right click and then 'import componment item'. Select the saved project from above as source project, the you can select the component to import in your project.
It should show up under 'community component' in the component list...
I'm looking forward to create my own compnents, too. Does anybody know how I can find a tutorial or something else about this? It´s difficult for me.
Thank you very much!
When compiling in RELEASE, i get the following warnings:
.\Generated_Source\PSoC5\SysTimers_1.c:352:29: warning: array subscript is above array bounds [-Warray-bounds]
.\Generated_Source\PSoC5\SysTimers_1.c:353:29: warning: array subscript is above array bounds [-Warray-bounds]
I think the index range in the for() loop inside _ReleaseAllTimers is incorrect:
for(index = 1; index <= SysTimers_1_TIMERS; index++)
for(index = 0; index < SysTimers_1_TIMERS; index++)
Very helpful component anyway :-)
First, thanks for the component. It is just what I needed. Second there is a discrepancy. For the Parameter Information in the Config SysTimers dialog the Number_of_Timers says 1 to 8 but the datasheet and the dropdown agree it is 2 to 16. Just thought you might want to fix this the next time you post an update (if ever).
I very happily found your SysTimers component. This is exactly what I needed.
But because I'm using a PSoC 3, I added a PSoC 3-specific implementation using a Timer component instead of the PSoC 5-native SysTicks feature.
I also added some CriticalSection locks which are imho necessary.
Please find the updated code attached.
Hi, one question about the SysTick clock source. I'm working with PSoC4. The definition for `$INSTANCE_NAME`_SYSTICK_PERIOD uses the definition for HFCLK - shouldn't it be SYSCLK? I couldn't figure out if HFCLK or SYSCLK is the clock provided to the MCU core, but since SYSCLK can be a divided value of HFCLK I'd assume that SYSCLK is the core clock. Now, if SYSCLK is divided the definition for `$INSTANCE_NAME`_SYSTICK_PERIOD might result in wrong values. Is this true? Regards, Ralf
Hi Mark, glad that I could help to improve it :) Regards, Ralf