The problem with reading and writing registers in TJA1145

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

The problem with reading and writing registers in TJA1145

327 次查看
DVLY
Contributor I

I tried using MCAL to deliver SPI drivers for read and write operations on TJA1145, but the data I received was always fixed and I'm not sure what caused it. Can you give me some guidance? Thank you very much

DVLY_0-1716793216763.png

The first and second times are for writing, and the third time is for re reading

IMG_20240527_145005.jpg

标记 (1)
0 项奖励
回复
2 回复数

217 次查看
DVLY
Contributor I

Thank you very much for your help. I have found the reason

0 项奖励
回复

315 次查看
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

From your oscilloscope snapshot, I cannot check if the timing and format of the SPI message is correct.

A very common problem is that timing parameters are violated, so please make sure everything is in accordance with the following specs:

Capture.JPG

Capture 1.JPG

BRs, Tomas

0 项奖励
回复