"I am trying to establish CAN communication using the S32K144 MCU and TJA1145. First, I am in the process of configuring the TJA1145 for SPI communication.
To verify that SPI communication is functioning correctly, I attempted to receive the ID value from the TJA1145. I combined the register address 0x7E with the read bit to transmit 0xFD, and the data was 0x00. I expected to receive the value 0x74, which is assigned to the register address.
However, according to the MCU, the same data as MOSI was observed on the MISO pin through the oscilloscope.
C1 : MISO | C2 : MOSI | C3 : CLK | C4 : CS
I am curious about what I might have missed that could have caused this issue.
Hello, guoweisun.
Other registers also exhibit the same phenomenon.
The first photo shows the operation of inputting Normal (0x07) into the Mode Control register (0x01) of the TJA1145.
The second photo shows the operation of reading register 0x01 to check if it has been applied correctly.
I am experiencing the same symptoms in all communication operations, and I am unable to determine what I have configured incorrectly.