Other Parts Discussed in Thread: TCAN4550, TCAN4550-Q1,
Hello,
I use an Infineon TLE9869QXA20 to write via SPI to the registers of a TCAN4550. I have configured the TCAN4550 and wanted to send a message, but I get no measurable signal on CANH or CANL.
If I read the register 0x10C4 before sending I get the value 0x0000000A and if I give a write command via the register 0x10D0 I read 0x00010009 in the register 0x10C4 afterwards. So the sending of a CAN message should have been successful, but I can't see any signal on the oscilloscope.
Below is my initialization code and the commands I use to send a CAN message.
I hope for a quick answer and thank you.
With regards
Timo Blessing
//Initialisierung first two hex-values are the address and than it writes the bytes
spi_write_1reg(0x10, 0x18, 0x00, 0x00, 0x00, 0x0B);
spi_write_1reg(0x10, 0x84, 0x00, 0x02, 0x00, 0x00);
spi_write_1reg(0x10, 0x88, 0x00, 0x01, 0x00, 0x08);
spi_write_1reg(0x10, 0xA0, 0x02, 0x04, 0x00, 0x10);
spi_write_1reg(0x10, 0xB0, 0x03, 0x05, 0x00, 0xF0);
spi_write_1reg(0x10, 0xAC, 0x00, 0x00, 0x00, 0x00);
spi_write_1reg(0x10, 0xBC, 0x00, 0x00, 0x00, 0x76);
spi_write_1reg(0x10, 0xF0, 0x02, 0x03, 0x02, 0x58);
spi_write_1reg(0x10, 0xC0, 0x0A, 0x00, 0x02, 0x70);
spi_write_1reg(0x10, 0xC8, 0x00, 0x00, 0x00, 0x07);
spi_write_1reg(0x10, 0x1C, 0x02, 0x03, 0x06, 0x01);
spi_write_1reg(0x10, 0x18, 0x00, 0x00, 0x00, 0x19);
spi_write_1reg(0x80, 0x00, 0x48, 0xAA, 0x78, 0xBB);
spi_write_2reg(0x80, 0x08, 0x20, 0x00, 0x11, 0x11, 0x40, 0x00, 0x22, 0x22);
spi_write_1reg(0x08, 0x00, 0xC8, 0x00, 0x04, 0xA8);
//Sending Code
spi_send_receive(0x41, 0x10, 0xC4, 0x01);
spi_write_1reg(0x82, 0x70, 0x02, 0xA8, 0x00, 0x00);
spi_write_1reg(0x82, 0x74, 0x01, 0x04, 0x00, 0x00);
spi_write_1reg(0x82, 0x78, 0x44, 0x33, 0x22, 0x11);
spi_write_1reg(0x10, 0xD0, 0x00, 0x00, 0x00, 0x01);