cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 6 MCU

Anonymous
Not applicable

Hello,

This might sound like a novice question, but I need to use some basic system time functions to calculate the time between two points in software. What's the best way to do that in PSoC6? Is there a system clock? I need something accurate to the microsecond.

Thanks,

Nick

0 Likes
1 Solution
ShipingW_81
Moderator
Moderator

Nick,

Yes, there is driver systick provided by PDL3.0.1. You can use the APIs(in cy_systick.c/h) provided to init systick (choose clock source / set reload interval / enable systick). Besides, you can set custom callback function called at interval reload value.

View solution in original post

0 Likes
1 Reply
ShipingW_81
Moderator
Moderator

Nick,

Yes, there is driver systick provided by PDL3.0.1. You can use the APIs(in cy_systick.c/h) provided to init systick (choose clock source / set reload interval / enable systick). Besides, you can set custom callback function called at interval reload value.

View solution in original post

0 Likes
Top labels