Figure 4-9 motor operation flowchart – FUJITSU CAN-Motor Board MB91F267N User Manual
Page 75

AN07-00180-3E
- 75 -
4.4
Understanding and running the program for the BLDC motor operation
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.
Figure 4-9 Motor operation flowchart
Microcontrolleri nitialization
Motor macro initialization
Start
Infinite loop
Press of SW2
Start of the free-run timer
Timer running
Timer interrupt