Hi Team,
i'm using LMH0318RTWR and controller is ESP32. i'm facing difficulty in writing data and reading data from it's registers
Best Regards,
James Man
Texas Instruments Customer Support
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hi Team,
i'm using LMH0318RTWR and controller is ESP32. i'm facing difficulty in writing data and reading data from it's registers
Best Regards,
James Man
Texas Instruments Customer Support
Hi James,
Please refer to the video below discussing how to interface to the device using SPI interface:
https://www.ti.com/video/5600358649001?keyMatch=
Regards,Nasser
Hi James,
The same customer reach out to me and provided the feedback below:
"I did watch this video, and based on this I made Read and Write Function.
while reading 0xF0 (Device Version register) I get default data value which is 0x01. But when I try to write data, I am not able to do.
Data frame which I am sending to write data is [0xFE] [Register Address(A7-A0)] [DATA(D7-D0)]. Please review this frame.
And, for other registers I am not able to read default value."
Please help advise. Thank you.
Best regards,
Gerald
Greetings,
1). Please make sure we are writing into the appropriate register.
2). Secondly, it seems you are able to read register but not write register. For write operation, we need to first write the register address we are going to write to. Then we need to in-active or un-assert ssbar# for few microsecond(please refer to the data sheet timing) and then re-assert ssbar# to shift out the register content.
3). Also, please put logic analyzer or scope to confirm write timing.
Regards,Nasser