🛠 Analyzing a Protocol Bus with SLogic32U3

Sipeed SLogic32U3: 32-Channel USB 3.2 Gen2 Logic Analyzer · debutant · Apprenez à configurer l'analyseur logique SLogic32U3 pour capturer et décoder un bus de communication simple comme l'I2C ou l'UART.

Objectives

This tutorial guides beginners in using the Sipeed SLogic32U3 to monitor a digital data bus. The goal is to understand how to connect the device, configure appropriate sampling parameters for your target, and interpret data frames via SLogicView software. We will use a concrete example of I2C communication between a microcontroller and a sensor, a common task in automation and embedded development.

Required Equipment

Steps

  1. Software Installation : Download and install SLogicView from the official Sipeed website. Ensure USB drivers are correctly installed so the computer recognizes the device.
  2. Physical Connection : Connect the SLogic32U3 to your computer via the USB-C port. The device is USB-powered, requiring no external source. LED indicators light up to show power status.
  3. Channel Configuration : Open SLogicView. In the interface, select the physical channels used. For a standard I2C bus, use Channel 0 for SDA and Channel 1 for SCL. Note that connectors are mini-HDMI ports; use provided adapters to access pins.
  4. Sampling Adjustment : For an I2C bus running at 100 kHz or 400 kHz, a sampling rate of 10 to 20 MS/s is sufficient. The SLogic32U3 offers up to 1400 MS/s on 4 channels, ensuring excellent time resolution. Set the threshold voltage to 3.3 V or 5 V according to your target circuit (adjustable in 0.1 V steps).
  5. Target Connection : Connect the alligator clips to the SDA and SCL lines of your circuit. Connect the SLogic32U3 ground (GND) to your circuit ground to establish a common reference. Warning : Never exceed 10 V on inputs.
  6. Data Capture : Start acquisition in SLogicView. Generate communication on your circuit (e.g., read a sensor value). Stop capture once frames are visible.
  7. Protocol Decoding : In the software, add an I2C decoder. Select corresponding channels. The software will display slave addresses, commands, and exchanged data in plain text.

Verification

Verify that captured signals are clean, without excessive noise. Logical transitions must be clear. If decoded data is erroneous, check ground connection and threshold voltage adjustment. The 100 kΩ input impedance ensures minimal load on the tested circuit.

Further Exploration

Explore the SLogic32U3's multi-channel capabilities to analyze parallel or 4-line SPI buses. Test the 2 Gbit buffer memory to capture long sequences without data loss. Also try the optional ADC module to correlate analog signals with digital events.

Other tutorials for this board

Code examples for this board

← Back to the board 🛠 All tutorials