SPI communication - TLF35584 and AURIX TC37x

Announcements

From sunburn to sun earn – we’ve got the power! Watch our #poweringgreen videos now.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
lock attach
Attachments are accessible only for community members.
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
Hello,

I am trying to establish SPI communication with TLF35584 device on my AURIX TC37X MCU. I want to first ensure my read commands to TLF35584 are working before I can continue with the device configuration.

I am sending a read command to TLF35584 device, however I am not sure if the data coming back from TLF device is good or not. I wish there was a simple device version check which I could have used to verify the read command is ok.

In my test I am sending Read Command to SBC = 0x4E00 (Read DEVSTAT)
Response from SBC = 0x81F3
Cmd = 1
D7 = DEVSTAT = 1
D6 = DEVSTAT = 1
D5 = DEVSTAT[COMEN] = 1
D4 = DEVSTAT[STBYEN] = 1
D3 = DEVSTAT[VREFEN] = 1
D2-DO = DEVSTAT[STATE] = 01
Parity = 1

Does this data makes sense ? Is my communication ok ?
0 Likes
1 Solution
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
The value seems be valid (voltages enabled and state is INIT_STATE).

View solution in original post

0 Likes
3 Replies
nsyed
Level 5
Level 5
5 likes given 100 sign-ins 50 sign-ins
Any feedback on this topic, will be appreciated.

Thanks,
0 Likes
MoD
Employee
Employee
50 likes received 500 replies posted 100 solutions authored
The value seems be valid (voltages enabled and state is INIT_STATE).
0 Likes
buldi
Level 1
Level 1
5 sign-ins First reply posted Welcome!

Hi,

The given value may refer to the (0x0Eh)RWDCFG1 register and not (0x27h) DEVSTAT. This is evidenced by the return value. After the reset, the value of this wine register should be 0x0 (reset Values 0h) from the documentation, so it should be something like 0x8001. For reading you need the command 'cmd' = 0x01h added in the highest bits. Page 162 of the man page.

0 Likes