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
liwen
Level 1
Level 1
5 replies posted 10 sign-ins First reply posted

What is the data frame format sent to the 35584 and the frame format it returns? The received data doesn't feel right?

0 Likes
1 Solution
AnilKumar
Moderator
Moderator
Moderator
First question asked 50 solutions authored 10 likes received

Hello,

Please try changing the last argument of SPI_SetupEB to 2 instead of 1 since your using 2 bytes of data to avoid SPI errors.

Please refer to the following sample driver code of TLF35584.

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/SPI_TLF_1_KIT_TC397_TFT

Thanks

Anil

View solution in original post

0 Likes
4 Replies
AnilKumar
Moderator
Moderator
Moderator
First question asked 50 solutions authored 10 likes received

Hello,

Please refer Figure 74  "SPI  -frame in Normal mode" of datasheet to see the right frame format of SDI and SDO of PMIC SPI Interface.

AnilKumar_0-1673860433633.png

Reach out to us if you have any further questions.

Thanks

Anil

I sent the data in this format, but the returned data has always been problematic. Hardware automatic odd check is set, MSB, 16-bit data is sent, and the returned data is not clear

0 Likes

I sent the data in this format, but the returned data has always been problematic. Hardware automatic odd check is set, MSB, 16-bit data is sent, and the returned data is not clear

BD9C97FD-6A55-4e09-888E-FBE88FBB50D2.png

0 Likes
AnilKumar
Moderator
Moderator
Moderator
First question asked 50 solutions authored 10 likes received

Hello,

Please try changing the last argument of SPI_SetupEB to 2 instead of 1 since your using 2 bytes of data to avoid SPI errors.

Please refer to the following sample driver code of TLF35584.

https://github.com/Infineon/AURIX_code_examples/tree/master/code_examples/SPI_TLF_1_KIT_TC397_TFT

Thanks

Anil

0 Likes