Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
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
Moderator
500 replies posted 250 solutions authored 250 replies posted

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
Moderator
500 replies posted 250 solutions authored 250 replies posted

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.

0 Likes