AN07-00180-3E
Details of motor rotation information transmit, temperature sensor information transmit, and receive
processing are as described below.
First, concerning motor rotation information transmit, as shown in Figure 5-13 Motor rotation
information transmit ”, there is the canSendTask01 function around Line 577 in MAIN.C. Only when the
motor is rotating, a message sent with CAN is created and the transmit function canSendData, which is a
CAN driver API, is invoked.
void canSendTask01(void)
{
if (gMotorStartFlag == MOTOR_START)
{
/* Calc Send Data */
←CAN transmit API
calcCanSendData(CAN_MT_STATUS_ID, gCanSendBuf01);
/* Send Data */
canSendData(CAN_MT_STATUS_MSG_NO, 8, gCanSendBuf01);
←Creation of a transmit
message
}
}
Figure 5-13 Motor rotation information transmit
Concerning temperature sensor information transmit, as shown in Figure 5-14 Temperature sensor
information transmit ”, there is the canSendTask02 function around Line 601 in MAIN.C. Only when a
request for temperature sensor information is made, a message sent with CAN is created and the transmit
function canSendData, which is a CAN driver API, is invoked.
void canSendTask02(void)
{
if (gTempMeasureFlag == TEMP_MEASURE_ON)
{
/* Calc Send Data */
/* Measure Enable */
←CAN transmit API
}
}
calcCanSendData(CAN_TEMP_INFO_ID, gCanSendBuf02);
/* Send Data */
canSendData(CAN_TEMP_INFO_MSG_NO, 8, gCanSendBuf02);
Figure 5-14 Temperature sensor information transmit
- 102 -
←Creation of a transmit
message
相关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 功能描述: