I try to debug my SPI bus with the logic analyzer and I have problems configuring it and synchronize it with my script.
Firstly, how can I set the "Simple" function (1. in the picture bellow) by script and how can I set the trigger type for a defined IO (2. in the picture bellow) by script?
I set the logic analyzer in "normal" mode so it should start recording only when the trig condition happen but nothing happen.
I use the "Logic1.single()" command in the script to arm the logic analyzer just before my SPI command. I want to trig on the falling edge of the select line.
I also try the "Record" mode, then it works, but the trigger event appear at a non-sens moment (not at 0s) and only show 5ms of recording.
I set 5M sample at 1MHz I should have 5 second of recording. I also try a sample rate of 100kHz which is sufficient while my SPI clock is 10kHz, but it doesn't change anything.
What is also strange is that when I try to set the time base by script with <<Logic1.Time.Base.text = "10ms/div">>, it simply ignore this line
Attached, you'll find my workspace, it will work without anything connected to the device, the ADC will simple read FFFF due to the pull-up in MISO.
Question
Etienne
Dear all,
I try to debug my SPI bus with the logic analyzer and I have problems configuring it and synchronize it with my script.
Firstly, how can I set the "Simple" function (1. in the picture bellow) by script and how can I set the trigger type for a defined IO (2. in the picture bellow) by script?
I set the logic analyzer in "normal" mode so it should start recording only when the trig condition happen but nothing happen.
I use the "Logic1.single()" command in the script to arm the logic analyzer just before my SPI command. I want to trig on the falling edge of the select line.
I also try the "Record" mode, then it works, but the trigger event appear at a non-sens moment (not at 0s) and only show 5ms of recording.
I set 5M sample at 1MHz I should have 5 second of recording. I also try a sample rate of 100kHz which is sufficient while my SPI clock is 10kHz, but it doesn't change anything.
What is also strange is that when I try to set the time base by script with <<Logic1.Time.Base.text = "10ms/div">>, it simply ignore this line
Attached, you'll find my workspace, it will work without anything connected to the device, the ADC will simple read FFFF due to the pull-up in MISO.
Thanks in advance
Kind regards
Etienne
DDS_OPD_Test.dwf3work
Link to comment
Share on other sites
5 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.