You are here: Home FORUM Support Using CAN feature

nqBASIC

  :: Support
Welcome Guest   [Register]  [Login]
 Subject :Using CAN feature.. 27-12-2011 16:37:02 
LouB
Joined: 27-12-2011 21:28:46
Posts: 2
Location

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.

 

IP Logged
Last Edited On: 27-12-2011 16:42:14 By LouB for the Reason
Page # 


Powered by ccBoard