Tutorial on how to debug a SPI Peripheral with the Digilent Analog Discovery 2.
We create a SPI Master with the Discovery and use an Olimex MOD-LED8x8RGB Matrix as device under test.
3. SPI
• Learn about SPI bus:
• http://www.ni.com/white-paper/9119/en/
• https://en.wikipedia.org/wiki/Serial_Peripheral_Interface_Bus
Vincent Claes
Mode CPOL CPHA
0 0 0
1 0 1
2 1 0
3 1 1
Images from wikipedia
4. Hardware
• Analog Discovery 2 NI Edition
• http://sine.ni.com/nips/cds/view/p/lang/nl/nid/213328
• 2-channel 100 MS/s oscilloscope, 2-channel waveform generator, 16-channel logic
analyzer
• 16-channel digital pattern generator, spectrum analyzer, network analyzer, and voltmeter
• ±5 VDC power supplies
• Digital I/O, USB, bus powered
• Free WaveForms application software
• Windows and Mac OS X support
• SPI Device: Olimex MOD-LED8x8RGB
Vincent Claes
5. Waveforms SPI Master to test IoT Peripheral
• Download Waveforms software and install
• http://sine.ni.com/nips/cds/view/p/lang/nl/nid/213328#resources
Vincent Claes
6. Waveforms SPI Master to test IoT Peripheral
• Select Discover 2 device
Vincent Claes
7. Matrix Analog Discovery
• External Power Supply to Analog Discovery (5V DC)
Vincent Claes
Matrix Analog Discovery 2
GND Ground
DATA Digital 2 (Purple)
LATCH Digital 0 (Pink)
SCK Digital 1 (Green)
VCC V+ Power Supply