Using the CAN bus
Posted: Mon Dec 20, 2010 10:26 pm
I am just about to start doing some development work on the CAN bus as part of my project and I have looked through the source and the documentation.
It seems that the supplied libraries don't allow me to control the sampling position based on the actual CAN bus I am running and instead accepts only a data rate as the setup parameter.
Does anyone know if I can call this to setup all the other parts of the CAN bus, such as initialising the CAN driver, interrupts etc and then I poke the registers myself with the correct settings. I am talking about the Propagation Segment, Phase 1 and 2, Sync Jump Width etc. I need to use the same settings to match with the 75% sampling point I am currently using with the other devices (SJA1000 and MCP2515) on the same bus.
Just wondering if anyone else has used CAN on the Netburners and if you have any thoughts or things to watch out for?
Thanks
Dave...
It seems that the supplied libraries don't allow me to control the sampling position based on the actual CAN bus I am running and instead accepts only a data rate as the setup parameter.
Does anyone know if I can call this to setup all the other parts of the CAN bus, such as initialising the CAN driver, interrupts etc and then I poke the registers myself with the correct settings. I am talking about the Propagation Segment, Phase 1 and 2, Sync Jump Width etc. I need to use the same settings to match with the 75% sampling point I am currently using with the other devices (SJA1000 and MCP2515) on the same bus.
Just wondering if anyone else has used CAN on the Netburners and if you have any thoughts or things to watch out for?
Thanks
Dave...