Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vertexi/pico-pio-pwm
https://github.com/vertexi/pico-pio-pwm
pico pio pwm rp2040
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/vertexi/pico-pio-pwm
- Owner: vertexi
- License: mit
- Created: 2023-05-19T08:25:08.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-06-08T04:31:35.000Z (over 1 year ago)
- Last Synced: 2024-10-14T03:21:04.238Z (2 months ago)
- Topics: pico, pio, pwm, rp2040
- Language: C
- Homepage:
- Size: 699 KB
- Stars: 4
- Watchers: 0
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Pico-PIO-PWM
A PWM implementation with deadband and phase control for rp2040 base on the PIO.
Currently just implement phase control.
This library can run on multiple picos, synchronize their pwm clock, and arbitrary
phase control.The figure below shows that two pico's pwms, synchronize and phase shift.
![pwm_fig](./imgs/pwm.jpg)
The connection.
![connection_fig](./imgs/connection.jpg)
The second pico's crystal oscillator removed, and connect the XIN to another pico PIN21. And the first pico `PWM_SYNC_OUT_PIN(PIN17)` connect to two picos `PWM_SYNC_IN_PIN(PIN16)`, which will sync start two pico pwms.