Figure 5.
TIM14 configuration panel
Step 5g.
Configure one of the available timers as PWM no output for the MODBUS execution
scheduler (by default TIM16).
It must be set in order to increment at 1 μs rate (PSC = 47 for 48 MHz clock) and with a
period of 2 ms (ARR = 1999).
Figure 6.
TIM16 configuration panel
Step 5h.
Enable interrupts for USART (priority 3) and timers (priority 2).
From the code generation point of view, select sequence ordering, IRQ handler generation
and HAL_Handler call for the timers. For the USART only, select sequence ordering and
IRQ handler generation.
UM2711
Starting from MotorControl Workbench project
UM2711
-
Rev 1
page 8/18