I'm still learning how to use this Digital Discovery device. Slow progress.
Using the Logic Analyzer panel, I've setup the device to do an SPI test where pins DIO 24-27 represent a Master and pins DIO28-31 represent a slave. I've physically connected pins 24 to 28 (chip select active low), 25 to 29 (sclk), 26 to 31 (MOSI), and 27 to 30 (MISO).
To see something working, I then used the Pattern Generator panel and setup a bus on pins 24-27 to perform an auto-repeat Binary Counter at a frequency of 500KHz. I click 'Run' on the Logic Analyzer, then I click 'Single' on the Logic analyzer. I get the following (which seems to indicate things are working and the appropriate pins are connected together (sorry the picture is small but there was a lot on the screen).
Since the pattern generator seemed to provide expected results, I clicked 'Stop' on the pattern generator. I then used the Protocol panel to attempt to send 4 bytes over the SPI interface. I click 'Single' on the Logic Analyzer and the Logic Analyzer indicates 'Armed'. I then click 'Execute' in the Protocol panel, the Protocol panel shows the bytes written, shows 0x00 for the bytes read, and the Logic Analyzer just shows 'Busy' (see next screenshot).
I looked in the help at the states for the Logic Analyzer and 'Busy' isn't mentioned. I never see any transitions in the Logic Analyzer and I've waited up to several minutes to see if the 'Busy' indicator ever changes. It doesn't. I can click 'Single' or 'Run' and the Busy indicator goes away. But I never see any waveforms appear. I figure I'm close to getting the result I expect but must be doing something stupid and though probably obvious, escapes me. Any assistance, please?
Question
engrpetero
I'm still learning how to use this Digital Discovery device. Slow progress.
Using the Logic Analyzer panel, I've setup the device to do an SPI test where pins DIO 24-27 represent a Master and pins DIO28-31 represent a slave. I've physically connected pins 24 to 28 (chip select active low), 25 to 29 (sclk), 26 to 31 (MOSI), and 27 to 30 (MISO).
To see something working, I then used the Pattern Generator panel and setup a bus on pins 24-27 to perform an auto-repeat Binary Counter at a frequency of 500KHz. I click 'Run' on the Logic Analyzer, then I click 'Single' on the Logic analyzer. I get the following (which seems to indicate things are working and the appropriate pins are connected together (sorry the picture is small but there was a lot on the screen).
Since the pattern generator seemed to provide expected results, I clicked 'Stop' on the pattern generator. I then used the Protocol panel to attempt to send 4 bytes over the SPI interface. I click 'Single' on the Logic Analyzer and the Logic Analyzer indicates 'Armed'. I then click 'Execute' in the Protocol panel, the Protocol panel shows the bytes written, shows 0x00 for the bytes read, and the Logic Analyzer just shows 'Busy' (see next screenshot).
I looked in the help at the states for the Logic Analyzer and 'Busy' isn't mentioned. I never see any transitions in the Logic Analyzer and I've waited up to several minutes to see if the 'Busy' indicator ever changes. It doesn't. I can click 'Single' or 'Run' and the Busy indicator goes away. But I never see any waveforms appear. I figure I'm close to getting the result I expect but must be doing something stupid and though probably obvious, escapes me. Any assistance, please?
Link to comment
Share on other sites
4 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