Have some problem TJA1145 SPI receive data

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

Have some problem TJA1145 SPI receive data

1,677 次查看
kimmk
Contributor III

"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.
스크린샷 2025-03-26 111349.png


However, according to the MCU, the same data as MOSI was observed on the MISO pin through the oscilloscope.

Scope Capture.jpg

C1 : MISO | C2 : MOSI | C3 : CLK | C4 : CS

I am curious about what I might have missed that could have caused this issue.

标记 (3)
0 项奖励
回复
5 回复数

1,669 次查看
guoweisun
NXP TechSupport
NXP TechSupport

Hi kimmk

What about read for others registers? still back to wrong data for same issue ?

0 项奖励
回复

1,664 次查看
kimmk
Contributor III

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.

Scope Capture_Write.jpg

 

The second photo shows the operation of reading register 0x01 to check if it has been applied correctly.

Scope Capture_Read.jpg

I am experiencing the same symptoms in all communication operations, and I am unable to determine what I have configured incorrectly.

标记 (2)
0 项奖励
回复

1,628 次查看
guoweisun
NXP TechSupport
NXP TechSupport

Should be the SPI configuration issue,I suggest to download the example drive for reference.

TJA1145A | HS CAN Partial Networking Transceiver | NXP Semiconductors

guoweisun_0-1743039781041.png

 

0 项奖励
回复

1,617 次查看
kimmk
Contributor III

I have restricted access to that item

Since drafting an NDA is outside of my authority, it is difficult for me to refer to that material.
스크린샷 2025-03-27 142053.png

标记 (1)
0 项奖励
回复

1,603 次查看
guoweisun
NXP TechSupport
NXP TechSupport

That's better for your to sign NDA also you can do on line:

Support | NXP Semiconductors

Because lots of products need customer sign NDA to get support or documentations.

guoweisun_0-1743121694609.png

 

0 项奖励
回复