spillari Posted October 16, 2023 Share Posted October 16, 2023 Hello, I have been using the SPI read/write commands to talk to a board that I have. I first write 0x7F = 0x00; Then I read 0x81 and 0x82 which give me the device part number I am trying to do the same via a sensor script and I only see the first write on the logic analyzer Is there something I am doing wrong in the script, because I see a different MISO. And is there a way I can see waveforms for the multiple write command outputs in the logic analyzer? Link to comment Share on other sites More sharing options...
0 attila Posted October 16, 2023 Share Posted October 16, 2023 Hi @spillari See the examples including the default one, and the Help tab or Help/Browse /Protocol/SPI/Sensor about this feature. Configure the Logic Analyze according your needs (Samples, Rate...) Link to comment Share on other sites More sharing options...
0 spillari Posted October 17, 2023 Author Share Posted October 17, 2023 Hello @attila Thankyou for that. I am now trying to program a register from a different page. When I try to read back a register on the page (0x0280) I do not see the right value. I seem to have given the command wrong. The register address to read from is 0x280 and was 0x01,0x02 in the previous case. Whereas the data sent and received is still 8 bit . I am trying to send: 0x02FF = 0x00 (write) 0x0280 (read) Link to comment Share on other sites More sharing options...
0 attila Posted October 18, 2023 Share Posted October 18, 2023 Hi @spillari Configure the SPI interpreter options in the Logic Analyzer to be 12bits. Use CmdRead command, you can also use the SPI functions from the Script tool... Link to comment Share on other sites More sharing options...
Question
spillari
Hello, I have been using the SPI read/write commands to talk to a board that I have.
I first write 0x7F = 0x00;
Then I read 0x81 and 0x82 which give me the device part number
I am trying to do the same via a sensor script and I only see the first write on the logic analyzer
Is there something I am doing wrong in the script, because I see a different MISO.
And is there a way I can see waveforms for the multiple write command outputs in the logic analyzer?
Link to comment
Share on other sites
3 answers to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now