🛠 Interfacing SLogic32U3 with External Peripherals

Sipeed SLogic32U3: 32-Channel USB 3.2 Gen2 Logic Analyzer · intermediaire · Apprenez à connecter et analyser les signaux GPIO, capteurs ou afficheurs en utilisant les 32 canaux numériques du SLogic32U3.

Objectives

This tutorial aims to master the acquisition of complex digital signals from microcontrollers, sensors, or display interfaces. You will learn to configure logic thresholds, manage bandwidth, and interpret data frames. The SLogic32U3, with its 32 channels and sampling up to 1400 MS/s, is ideal for debugging fast protocols like SPI, I2C, or UART.

Required Equipment

Steps

  1. Physical Preparation: Connect the SLogic32U3 to your computer via the USB-C cable. Ensure the LED indicator lights up, confirming USB power (5V). Do not connect probes yet.
  1. Software Configuration: Launch SLogicView. Select the SLogic32U3 model. Choose the number of channels to activate. For a standard SPI protocol, activate 4 channels (MOSI, MISO, SCLK, CS). Note that the maximum sampling frequency is 1400 MS/s for 4 channels.
  1. Threshold Adjustment: In input settings, adjust the logic threshold. If your target operates at 3.3V, set the threshold to 1.65V. The SLogic32U3 allows adjustment in 0.1V steps between 0 and 6V. Incorrect threshold configuration is the main cause of reading errors.
  1. Probe Connection: Connect the ground (GND) pins of the SLogic32U3 to the ground of your target circuit. This is crucial for signal integrity. Then connect the digital channels to the corresponding GPIO pins (e.g., GPIO 10 on Arduino). Use short cables to minimize noise.
  1. Acquisition: Start the acquisition. For fast signals, ensure sufficient bandwidth (350 MHz). Observe rising and falling edges. If edges are too slow, check pull-up resistors on I2C lines.
  1. Analysis: Use built-in decoders to display hexadecimal or ASCII values. Export data if needed for in-depth analysis.

Verification

Verify that captured signals match expectations. A clean square wave indicates good connection and correct threshold. If you see noise or oscillations, improve grounding or reduce wire length. Confirm that the stream rate remains stable (up to 800 MB/s).

Going Further

Explore adding the optional ADC module to correlate digital signals with analog variations. Test analysis of more complex protocols like USB Low-Speed or CAN bus by finely adjusting thresholds and sampling rates.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials