Understanding and running the program for the BLDC motor operation
4.4
This section provides descriptions of the sample program that can really serve to operate the BLDC
motor.
"Figure 4-9 Motor operation flowchart" shows the sequence of the sample program flow. First, the
microcontroller is initialized, and then the motor macro is initialized. After that, the program goes into a
loop. In the loop, pressing SW2 starts the free-run timer and the motor macro starts operating.
When SW2 is pressed again, the free-run timer stops.
Start
Microcontrolleri nitialization
Motor macro initialization
Infinite loop
Start of the free-run timer
Figure 4-9 Motor operation flowchart
- 75 -
Press of SW2
Timer running
Timer interrupt
AN07-00180-3E