Figure 4-10 Operation Mode Settings; Figure 4-11 Main Function - Fujitsu FR Family FR60 Lite User Manual

32-bit microcontroller bits pot red can motor board
Hide thumbs Also See for FR Family FR60 Lite:
Table of Contents

Advertisement

Now, take a look at the details of the program.
Look into the following folder of the sample program. There are some files stored in it. At first, open
MAIN.C first.
¥bitpot_red_SampleProgram¥Debug¥SRC
Look at around Line 40 that looks "Figure 4-10 Operation mode settings" for operation mode selection.
There are #define settings that enable (1) or disable (0) CAN and temperature sensor.
In this program, CAN is not to be used and the temperature sensor is to be used.
/* CAN communication use (1), or unused (0) */
#define CAN_PERMIT
/* Temperature sensor use (1), or unused (0) */
#define TEMP_SENSOR_USE
As shown in "Figure 4-11 Main function", there is the main function around Line 131. In it, there are
"microcontroller initialization", "motor macro initialization", and "infinite loop".
void main(void)
{
(omitted);
sysInitialize();
(omitted)
mtInitialize();
(omitted)
/* main loop */
while (1)
{
}
}
(0)
(1)

Figure 4-10 Operation mode settings

←Microcontroller initialization
←Motor macro initialization
←Infinite loop
(omitted)

Figure 4-11 Main function

- 76 -
←CAN
←Temperature sensor
AN07-00180-3E

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mb91f267n

Table of Contents