An open API service indexing awesome lists of open source software.

https://github.com/charkster/samd21-gpio_high_and_low_durations

This arduino code for SAMD21 will record a gpio's high and low duration for multiple pulses.
https://github.com/charkster/samd21-gpio_high_and_low_durations

arduino gpio high-duration low-duration samd21 seeeduino-xiao trinket-m0

Last synced: about 2 months ago
JSON representation

This arduino code for SAMD21 will record a gpio's high and low duration for multiple pulses.

Awesome Lists containing this project

README

        

# samd21-gpio_high_and_low_durations
![picture](https://github.com/charkster/samd21-gpio_high_and_low_durations/blob/main/samd21_timer_pwp.png)

This arduino code for SAMD21 will record a gpio's high and low duration for multiple pulses. Each high and low duration will be captured up to 4 seconds in duration. One microsecond pulses can be reliably captured (faster than that is not possilbe with the samd21, use the samd51 which has a faster clock).

The uf2 file works for both Seeeduino Xiao and Adafruit QT PY. SAMD21 pin PA7 is used to measure the pulse widths. On Xiao this pin is A8/D8/SCK and on QT PY it is A7/D7/RX.