Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for PWM module #27

Open
haata opened this issue Apr 7, 2021 · 0 comments
Open

Add support for PWM module #27

haata opened this issue Apr 7, 2021 · 0 comments

Comments

@haata
Copy link
Collaborator

haata commented Apr 7, 2021

The PWM module on atsam4 is a bit confusing as it has High and Low output pins. I believe these are intentioned for motor controllers as they are inverted pairs.

Effectively there are 4 PWM channels for both atsam4e and atsam4s.

Clock configuration is also a bit confusing.
There are 4 channels, but only 2 fully customizable clocks (see CLKA and CLKB). These clocks can be used on multiple channels (as well as a bunch of peripheral clock divisions). See 39.6.1 (either atsam4s or atsam4e) for more details.

https://docs.rs/embedded-hal/0.2.4/embedded_hal/trait.Pwm.html
https://docs.rs/embedded-hal/0.2.4/embedded_hal/trait.PwmPin.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant