May 27, 2019
11:45 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 27, 2019
11:45 PM
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 !
Solved! Go to Solution.
1 Solution
May 28, 2019
02:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2019
02:24 AM
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.
1 Reply
May 28, 2019
02:24 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
May 28, 2019
02:24 AM
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.