Code: Select all
TXB1SIDH := 0xFF;
TXB1SIDL := 0xF0;
// Set the message data registers
TXB1D0 := 0x00;
TXB1D1 := 0x01;
TXB1D2 := 0x02;
TXB1D3 := 0x03;
TXB1D4 := 0x04;
TXB1D5 := 0x05;
TXB1D6 := 0x06;
TXB1D7 := 0x07;
// Set the DLC register
TXB1DLC := 0x08;
TXB1CON.3 := 1;
while (TXB1CON.3 <> 0) do
but when I send (or receive) with the CanRead and CanWrite commands in the library
ID is correct, data is wrong.
I am using mPPro version 7.6.
Could there be a problem with the library?