Configure STM PWM
2016-08-23
1 0 0
no vote
Other
Earn points
This example shows how to configure the TIM1 peripheral to generate 7 PWM signals
with 4 different duty cycles (50%, 37.5%, 25% and 12.5%).
TIM1CLK = SystemCoreClock, Prescaler = 0, TIM1 counter clock = SystemCoreClock
SystemCoreClock is set to 72 MHz for Low-density, Medium-density, High-density
and Connectivity line devices. For Low-Density Value line, Medium-Density and
High-density Value line devices, SystemCoreClock is set to 24 MHz.
with 4 different duty cycles (50%, 37.5%, 25% and 12.5%).
TIM1CLK = SystemCoreClock, Prescaler = 0, TIM1 counter clock = SystemCoreClock
SystemCoreClock is set to 72 MHz for Low-density, Medium-density, High-density
and Connectivity line devices. For Low-Density Value line, Medium-Density and
High-density Value line devices, SystemCoreClock is set to 24 MHz.
c
配置
STMPWM
Related Source Codes
PClite
0
0
no vote
generic embeded FTP Client
0
0
no vote
UDP Test Demo
0
0
no vote
TMS320F28335 DSP transmits data to EEPROM through
0
0
no vote
TMS320F28335 CAN communication source code
0
0
no vote
No comment