dsPIC CAN Component problem
Posted: Thu Jan 10, 2013 3:21 pm
Hello
I am having problem with dsPIC V 5.4 and the CAN component.
I am compiling to a 30F6012A chip and are using the internal CAN controller.
In Flowcode I am setting the TX ID in a Macro. this works fine
Next Macro sets the TX Data
and finally a Macro Sends the Buffer.
When I look at the data that is sent. it seams that the SetTX ID and the Set TX Data can not co-exist and be carried out directly after eachother.
I can eithe set the TX ID value and using the data that is set at startup from the properties in the CAN component Properties that is red at boot.
Or I can Set th TX Data values if I am using the TX ID set in the component Properties. But I can not set both properties from inside the program.
The last macro is just ignored.
But there is a workaround. And that is if the TX ID property CAN Address Low is set to 0x00. The CAN Address High can ba any value. But this limits the number of usabale addresses to only 255 so it is
limiting what I would like to do with my program.
Any ideas how to fix this so I can set the CAN ID Lo value?
I am having problem with dsPIC V 5.4 and the CAN component.
I am compiling to a 30F6012A chip and are using the internal CAN controller.
In Flowcode I am setting the TX ID in a Macro. this works fine
Next Macro sets the TX Data
and finally a Macro Sends the Buffer.
When I look at the data that is sent. it seams that the SetTX ID and the Set TX Data can not co-exist and be carried out directly after eachother.
I can eithe set the TX ID value and using the data that is set at startup from the properties in the CAN component Properties that is red at boot.
Or I can Set th TX Data values if I am using the TX ID set in the component Properties. But I can not set both properties from inside the program.
The last macro is just ignored.
But there is a workaround. And that is if the TX ID property CAN Address Low is set to 0x00. The CAN Address High can ba any value. But this limits the number of usabale addresses to only 255 so it is
limiting what I would like to do with my program.
Any ideas how to fix this so I can set the CAN ID Lo value?