TCPWM capture function

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

cross mob
Weeden_ding
Level 2
Level 2
Distributor - Weikeng(GC)
25 sign-ins 5 replies posted 10 questions asked

Hi,

    I use the capture function firstly. i don't know  how to use it .

   if i want to read the capture value ,  Does it must read  it  in  ISR ?  or  read it in main loop?

  Thank you !

0 Likes
1 Solution
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

No, it is not necessary to read it in the ISR handler.

But I think you need to let the ISR tells you that the capture event has happened.

You can read it in the ISR, or use a flag to control when to read it in the main loop.

View solution in original post

0 Likes
1 Reply
LinglingG_46
Moderator
Moderator
Moderator
500 solutions authored 1000 replies posted 10 questions asked

No, it is not necessary to read it in the ISR handler.

But I think you need to let the ISR tells you that the capture event has happened.

You can read it in the ISR, or use a flag to control when to read it in the main loop.

0 Likes