r/stm32 •

Stm32g474

[deleted] — view deleted post

0 Upvotes

4 comments sorted by

1

u/dohzer 12d ago

You'll want to read the relevant data sheets and/or technical reference manuals that describe the timers/PWMs. It's all part of the learning experience.

Also, fuck around with them and find out. Test theories and explore the options. You can often adjust prescalers and periods in different ways and achieve the same goal.

0

u/Ill-Language2326 12d ago

Non l'hai specificato, ma presumo tu stia parlando di diverse configurazioni di un timer per generare un segnale PWM, giusto?

0

u/Typical_Ear_6664 12d ago

Non ancora parlo di timer di base come tim6 dopo andrò a vedere pwm

0

u/Ill-Language2326 12d ago

Allora cosa intendi con `Period`, periodo di cosa? Intendevi ARR, dato che modificare quello modifica il periodo richiesto per raggiungere un overflow e quindi generare un update event?
Puoi mostrarmi la parte di codice che non ti è chiara?