6 years, 6 months ago.
CAN1/CAN2 register tweaking
I have a problem. On my application I use a combined CAN bus. Combined because I use normal wired CAN with TJA1040 CAN transcievers, in parallel I have optically isolated device (using optical fibres for CAN RX and TX). RX works fine, I can listen to the bus, but sending data fails for most times. Sometimes I am able to succesfully send data, but this are just lucky occasions. I'm not an CAN expert, I'm learning by doing mistakes. I got this information, that I need to change the delays like I would use a very long wire bus. So I think, that I should change the TESG1 and TESG2 values in the CAN1BTR/CAN2BTR register,but I don't know where the CAN ini routine is. Any help will be very appreciated.