SPI
SPI (Serial Peripheral Interface) is a widely used serial protocol. With SPI selected and activated, the Command Panel has three sections: settings, chip selection and transactions.
.png)
SPI command panel for Supernova and Pulsar
The Bus Voltage section sets the bus voltage. On the Supernova and Pulsar it can also measure the bus voltage and use an external supply, which measures the voltage and sets the bus to match it.
Settings
Section titled “Settings”.png)
Operation Settings for Nova
The Settings segment allows users to adjust the following parameters:
| Parameter | Nova values | Supernova and Pulsar values | Comment |
|---|---|---|---|
| Clock Freq | 0.8 to 12 MHz | 10 kHz to 50 MHz | Discrete values. |
| Bit Order | MSB, LSB. | MSB, LSB. | Most/Least Significant Bit first. |
| Bits / Transfer | 8, 16. | - | Bits per transfer. |
| Mode | 0, 1, 2, 3. | 0, 1, 2, 3. | (CPOL, CPHA) ∈ {(0,0); (0,1); (1,0); (1,1)} |
CPOL and CPHA are the clock polarity and phase. Together they set the edge, rising or falling, at which data is sampled.
Chip Selection
Section titled “Chip Selection”.png)
Chip Select for Nova
| Parameter | Admitted values | Comment |
|---|---|---|
| Pin Select | CS0, CS1. | CS = Chip Select |
| Polarity | Low, High. | Active Low/High polarity for CS. |
| Pre-Delay | Numeric | Only positive integer numbers. Unit: μs. |
| Post-Delay | Numeric | Only positive integer numbers. Unit: μs. |
The pre-delay and post-delay set the time gap around the chip select (CS) transition to active and the sampling of the first payload bit.
Transactions
Section titled “Transactions”
Transactions sub-panel.
This segment has two text fields and a TRANSFER button.
- Write Buffer: Enter the payload for the target in hexadecimal, grouped in bytes. A value such as 00 or FF (depending on the chosen polarity) makes the transfer a read.
- Read Size: The number of bytes to read from the target. The TRANSFER button runs the transaction.
Real-world Examples
Section titled “Real-world Examples”Two tests with real devices.
Flash memory test with a Winbond W25Q128FV: the datasheet defines an instruction that returns the JEDEC manufacturer ID, memory type and capacity together. Send the byte ‘0x9F’ to the flash to run it. Winbond’s manufacturer ID is ‘0xEF’. The part accepts clocks up to 50 MHz and SPI modes 0 and 2, and this test ran at 12 MHz in mode 0. The JEDEC ID returned was the expected one.
.png)
Write operation to a SPI flash memory
Pressure Sensor Test with BMP280: A transaction with a BMP280 pressure sensor.
.png)

