cancel
Showing results for 
Search instead for 
Did you mean: 

PSoC 4 MCU

New Contributor

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
Reply
1 Solution
Moderator
Moderator

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
Reply
1 Reply
Moderator
Moderator

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
Reply