AN07-00180-3E
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
(0)
←CAN
/* Temperature sensor use (1), or unused (0) */
#define TEMP_SENSOR_USE
(1)
←Temperature sensor
Figure 4-10 Operation mode settings
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)
{
←Microcontroller initialization
←Motor macro initi alization
←Infinite loop
(omitted)
}
}
Figure 4-11 Main function
- 76 -
相关PDF资料
CANADAPT28 KIT ADAPTER CANDEMOBOARD 28PLCC
CAT24AA01WI-GT3 IC EEPROM SERIAL 1KB I2C 8SOIC
CAT24AA02WI-G IC EEPROM SERIAL 2KB I2C 8SOIC
CAT24C01ZI-G IC EEPROM SERIAL 1KB I2C 8MSOP
CAT24C03WI-G IC EEPROM SERIAL 2KB I2C 8SOIC
CAT24C04ZI-G IC EEPROM SERIAL 4KB I2C 8MSOP
CAT24C05YI-G IC EEPROM SERIAL 4KB I2C 8TSSOP
CAT24C08TDI-GT3 8KB I2C SER EEPROM TSOT 23
相关代理商/技术参数
CAN1671-15S 制造商:Techspray 功能描述:TECHSPRAY DUSTER 15 OZ FILL
CAN1747-10S 制造商:Techspray 功能描述:
CAN-24 制造商:Mencom 功能描述:
CAN4311111002451K 制造商:Yageo Corporation 功能描述:ANTENNA BLUETOOTH 2.45GHZ 制造商:Yageo / Phycomp 功能描述:ANTENNA, BLUETOOTH, 2.45GHZ
CAN4311111002701K 制造商:Yageo Corporation 功能描述:
CAN4311112001881K 制造商:Yageo Corporation 功能描述:
CAN4311113011582K 制造商:Yageo Corporation 功能描述:6230 Multilayer Ceramic Chip Antenna 制造商:Yageo Corporation 功能描述:6320 Multilayer Ceramic Chip Antenna
CAN4311115002451K 制造商:Yageo Corporation 功能描述: