AnsweredAssumed Answered

MPC5744P CAN

Question asked by Hyuntae Choi on May 15, 2017
Latest reply on May 17, 2017 by Hyuntae Choi

Hi

 

I am using MPC5744P-144DC evaulation board and trying to use FlexCAN module on it.

I looked into two exampels, "MPC5744P-FlexCAN-simpleTXRX-GHS614" and "MPC5775K-FlexCAN_with_interrupts-S32DS_Z4_1"

 

On examples, DATA filed of CAN message was setting byte base as follow;

CAN_0.MB[MB].DATA.W[1] = 0x90ABCDEF; //data1 set
CAN_0.MB[MB].DATA.W[0] = 0x12345678; //data0 set

 

How can I set a data longer than 1 byte? 

 

For example, I need to put motor speed (14bit) in DATA[0] (0~7 bit) and DATA[1] (0~5bit) and Motor status (2bit) in DATA[1] (6~7bit). 

 

Best regards,

Hyuntae Choi

Outcomes