|
HI ,
I noticed that when the the command is executed such as : C.CAN_Send (CAN_TX_BUFFER0, CAN_STANDARD, 0, 0x40, 0, 8, txbuffer)
the Nanoboard seems to transmit all 3 CAN buffers that the HC12 has. Is there a way to clear out the other buffers or prevent all 3 from executing?
I tried using other buffers (CAN_TX_BUFFER1, CAN_TX_BUFFER2), but I get the same result = 3 CAN messages transmitted.
I did a review of the HC12 data sheet and I am not sure the nqbasic is using the MSCAN Transmitter Flag Register (CANTFLG) correctly.
Also, it seems the nqbasic compiler will not allow more than 1 instance of the C.CAN_Send command - was this by design? It seems to prevent you from loading the other buffers in the same program.
Thanks for any help.
|