Other Parts Discussed in Thread: C2000WARE, CONTROLSUITE
Hi all,
The contolcard experimentkit has been interfaced with CAN transceiver to communicate with PC application assume PCAN viewer.
Refering the ti\c2000\C2000Ware_1_00_01_00\device_support\f2837xd\examples\cpu1\can_loopback_bitfields example which has mux configuration to support for gpio31 and 31.
#if 0
GPIO_SetupPinMux(30, GPIO_MUX_CPU1, 1); //GPIO30 - CANRXA
GPIO_SetupPinMux(31, GPIO_MUX_CPU1, 1); //GPIO31 - CANTXA
GPIO_SetupPinOptions(30, GPIO_INPUT, GPIO_ASYNC);
GPIO_SetupPinOptions(31, GPIO_OUTPUT, GPIO_PUSHPULL);
#endif
The transceiver connected in my case is GPIO70 and GPIO71, then configured the mux as follows, it is working as expected. the loopback is working fine, attached the screenshot.cana_loopback.zip
//To support gpio71 with cana
GPIO_SetupPinMux(70, GPIO_MUX_CPU1, 5); //GPIO70 - CANRXA
GPIO_SetupPinMux(71, GPIO_MUX_CPU1, 5); //GPIO71 - CANTXA
GPIO_SetupPinOptions(70, GPIO_INPUT, GPIO_ASYNC);
GPIO_SetupPinOptions(71, GPIO_OUTPUT, GPIO_PUSHPULL);
Now I have to configure the CANA to communicate with desktop i.e PCAN Viewer, please let me know what are the settings, have to configure.
I could able to find one more example in which it has a communication between CANA and CANB (ti\c2000\C2000Ware_1_00_01_00\device_support\f2837xd\examples\cpu1\can_external_transmit).
Analyzing both the examples to find out the configuration values, if anybody knows are already done please let me know.
Thanks