fdcavalcanti opened a new pull request, #12619:
URL: https://github.com/apache/nuttx/pull/12619

   ## Summary
   This PR adds support for the capture driver on RISC-V ESP32C6 and ESP32H2. 
It is based on the MCPWM peripheral.
   The basic functionality of MCPWM capture is to record the time when any 
pulse edge of the capture signal turns active.
   
   Implementation comments:
   
   - Having only one measurement is not sufficient to estimate frequency or 
duty cycle, because you still need at least one repetition of the pulse. In 
this case, 4 pulses are expected before a calculation is made.
   - Up to 3 channels are possible (/dev/capture0, 1 and 2) and they are 
independent.
   
   ## Impact
   Allows use of the capture driver.
   
   ## Testing
   Tested on ESP32C6, ESP32H2 with the capture example using two ESP boards.
   Also tested from 20 to 2000 Hz with varying duty cycle.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to