Tool/software:
Hi team.
Could you explain more in the driver code how we do the initialization sequences?
Thanks,
Leo
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Tool/software:
Hi team.
Could you explain more in the driver code how we do the initialization sequences?
Thanks,
Leo
Leo,
The starter code gives the correct register bits, names, and initialization given a particular processor. The code is not meant to be an out-of-the-box software that can be used immediately. It is up to the customer to utilize the code for their own application. Can you elaborate on where the customer needs help?
Regards,
Eric Hackett
Hi Eric,
Does our device need the initial code or any sequence based on the firmware for start up operation?
The customer need this because other vendor has the code for starting up and operating.
Or is TCAN1146-Q1 good to work when the power is ready only? No firmware needs to initiate the device?
If we had kind of register setting or start up coding, please let me know.
Thanks,
Leo
Hi Leo,
When power is first applied to the transceiver it will start up into standby mode. In order for the TCAN1145 to enter normal mode so that CAN communication is possible, the MCU will need to write to the mode control register. The demo drivers include the TCAN114x_Mode_Set() function that abstract the register contents and setting of this process so that the main function of the program does not have to deal directly with these low level directives. The software should call TCAN114x_Mode_Set(TCAN114X_MODE_NORMAL); in order to move the transceiver into normal mode. No other configuration or settings are needed before CAN communication can be driven from TCAN1145. Other device functions will have similar function calls available to configure the partial networking and watchdog features for this device if desired.
Let me know if you have any more questions.
Regards,
Eric Schott