PSoC6 Code Timer TCPWM Example

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

cross mob
lock attach
Attachments are accessible only for community members.
KevinR_91
Employee
Employee
25 replies posted 10 likes received 10 replies posted

Attached please find a simple example project for using the TCPWM block as a code timer. The code timer can be used to measure the execution of certain pieces of code or events in a project. This is especially helpful during initial development of embedded projects.

TESTING

The best way to test this project is to run the debugger.  A breakpoint can be set after:

captured_time = Code_Timer_GetCounter();

This variable can then be added to the watch window, once it is captured it should match compare_time -1.  When running the debugger compare_time can be directly edited to change the delay, and captured_time can be seen to follow this change.

0 Likes
1 Solution
Praveen
Community Manager
Community Manager
Community Manager
25 solutions authored 10 likes given 5 likes given

Thanks for sharing this code example . KevinR_91

Appreciate the community help !!

Cheers

Praveen

Cheers
Praveen

View solution in original post

0 Likes
1 Reply
Praveen
Community Manager
Community Manager
Community Manager
25 solutions authored 10 likes given 5 likes given

Thanks for sharing this code example . KevinR_91

Appreciate the community help !!

Cheers

Praveen

Cheers
Praveen
0 Likes