Sample program sequence, Figure 5-9 can communication flowchart – FUJITSU CAN-Motor Board MB91F267N User Manual
Page 99

AN07-00180-3E
- 99 -
5.4.2
Sample program sequence
“Figure 5-9 CAN communication flowchart” shows the CAN communication sequence of the sample
program flow. First, the microcontroller is initialized. On the microcontroller initialization, the CAN
operation timer starts operating.
After that, the CAN driver is initialized. Then, the motor driving macro is initialized and then the program
goes into a loop.
Subsequently, motor rotation information transmit, temperature sensor information transmit, receive
processing are handled in the timer routine.
Figure 5-9 CAN communication flowchart
Microcontroller initialization
Motor macro initialization
Start
Infinite loop
CAN operation timer running
Timer is running
Receive processing
CAN driver initialization
Motor rotation info transmit
Receive processing