2374901_en-US

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

2374901_en-US

2374901_en-US

SPI problem example read ID from TJA1145
When trying to read the ID via SPI, I receive the following responses. 0xFD74. From data sheet 0x74 is expected. 
 
Andreas85_0-1780388018820.png
But if I send the service 0xFD00  again, I get a different response from TJA1145. Why is that the case? The responses repeat cyclically which means BufferRx[4] would be 0xFD74.
 
Andreas85_1-1780388158647.png
Andreas85_2-1780388205712.png
I would like to set the transceiver to normal mode using 0x0207. However, here as well I receive different responses but not the response I expect.
 
Thanks for the support! 
Re: SPI problem example read ID from TJA1145

Thanks for the reply. 

If I send the message as recommended, I get the following answer:

Andreas85_0-1780425085548.png


It looks like the TJA1145 is responding with following register values  (16 Bit)and  reflecting SDI on SDO. I can also see if I sent Frame 1, pull SDI to low and start with reading register 0x7E, the response comes as expected.  


According to the datasheet, SDI can be left floating after the transfer. Does the slave need a low level to reset its internal state machine?


Thanks in advance! 


Re: SPI problem example read ID from TJA1145

Hello, The SPI interface operates in full‑duplex mode, meaning that data is transmitted and received simultaneously. However, the device does not return the result of the current command within the same SPI frame. Instead, the response corresponds to the previously received command.

So, could you please try 

Frame 1:
TX (MOSI): Read command → Address 0x7E with RO = 1
RX (MISO): Undefined or previous data

Frame 2:
TX (MOSI): Dummy data (e.g., 0x0000)
RX (MISO): Valid response → Device ID value (e.g., 0x74)


Re: SPI problem example read ID from TJA1145

What is the external pull-up value connected to SDI?

Please see AH1903 Application Hints - High speed CAN transceiver for partial networking TJA1145A section 7.4.1 SDI pin input behavior that is under secure files!

标记 (1)
无评分
版本历史
最后更新:
昨天
更新人: