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.
- Host: GitHub
- URL: https://github.com/charkster/samd21-gpio_high_and_low_durations
- Owner: charkster
- License: mit
- Created: 2020-10-17T08:21:03.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-10-22T23:26:13.000Z (over 2 years ago)
- Last Synced: 2025-01-13T19:27:02.157Z (4 months ago)
- Topics: arduino, gpio, high-duration, low-duration, samd21, seeeduino-xiao, trinket-m0
- Language: C++
- Homepage:
- Size: 122 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# samd21-gpio_high_and_low_durations
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.