How can I read the counter value of a free running TCPWM in counter mode, without any hardware capture signal ?

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

cross mob
RoJa_1564316
Level 1
Level 1

My TCPWM runs with a 1kHz clock to count milliseconds. I want to read the counter value from time to time and calculate the difference,

resulting in milliseconds timespan. So I have no capture signal. But the API has only functions to read the capture registers, as I see.?

0 Likes
1 Solution
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi RoJa_1564316​,

Try using TCPWM_ReadCounter(void) to read the present counter value.

Pg 24 -  https://www.cypress.com/file/220361/download

Regards,

Bragadeesh

Regards,
Bragadeesh

View solution in original post

0 Likes
2 Replies
BragadeeshV
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hi RoJa_1564316​,

Try using TCPWM_ReadCounter(void) to read the present counter value.

Pg 24 -  https://www.cypress.com/file/220361/download

Regards,

Bragadeesh

Regards,
Bragadeesh
0 Likes