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

Review timers frequency (specially motor driver) #26

Open
Peque opened this issue Mar 30, 2019 · 0 comments
Open

Review timers frequency (specially motor driver) #26

Peque opened this issue Mar 30, 2019 · 0 comments

Comments

@Peque
Copy link
Member

Peque commented Mar 30, 2019

See prescaler for the speaker and motor driver:

timer_set_prescaler(
	    TIM8, (rcc_apb2_frequency / 24000000 - 1));
  • Use macros instead of 24000000?
  • Why the -1?
  • Are all the timers connected to rcc_apb2_frequency?

Use the oscilloscope or digital probe to check the actual PWM frequency.

@Peque Peque added this to the Portugal 2019 milestone Mar 30, 2019
@Peque Peque modified the milestones: Portugal 2019, Portugal 2020 Oct 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant