Specialist Supplier of Crystals & Frequency Control Componentssales@mecxtal.com.cn0755-26500570
MERLIN home / Rednote / System Validation and Replacement

Checking SPI Readback Bus Turnaround Even When Chip Selects Never Overlap | Crystal & Oscillator Handbook

Two peripherals share a readback line. Single-device reads work, but the first byte occasionally fails after switching. Nonoverlapping chip selects do not establish nonoverlapping output drive. Check release and takeover separately from the 20 MHz reference and SPI rate.

Chip select identifies the responder, while high impedance establishes release

The old device can actively drive after deselection. Check its maximum output-disable delay under actual conditions, separately from minimum chip-select high time and data validity. The new device's maximum time to valid data does not establish its earliest drive time. Compare latest release with earliest takeover. Include buffers, isolators, or level shifters at the actual shared node. A steady logic level can come from pulls or capacitance rather than active drive.

Worked example: 50 ns between selects can leave 30 ns of overlap

Assume one memory's documented output-disable maximum of 80 ns applies at the specified supply, temperature, and load. If the next select arrives 50 ns later and the new peripheral can drive immediately, up to about 30 ns of overlap is possible. Actual release or enable can differ.

ItemExample valueInterpretation
Old output latest release80 nsApplies under the stated drive and test conditions
Select gap at peripherals50 nsSelects do not overlap
New earliest drive50 ns if immediateCould precede old release by 30 ns
Controlled idle intervalVerify on the boardInclude propagation, margin, and new-device requirements

A 20 MHz timer tick is 50 ns if that actually schedules the selects. One tick does not cover 80 ns. A faster source with the same tick count can reduce the absolute gap. Measure at both devices.

Use separate reads and a verified idle-gap control

Establish a noncontending baseline. On an approved low-voltage bench, verify both devices alone and alternate them with a supported interval. Hold mode, rate, load, and supply fixed. Observe both selects and the analog shared line without deliberately driving it outside limits.

Check both directions. Compare actual gaps and identify first-byte errors, intermediate levels, or extra edges. If faults also occur on single reads, inspect timing and level separately. Change one factor at a time.

Preserve waveforms even when reads pass. Two drivers sending the same level can hide overlap from digital results. Keep actual buffer and harness configuration. If a longer approved idle interval does not help, investigate sample point, hold time, and select-to-first-data validity. Record exact timing endpoints.

Specify clock and turnaround separately

TAITIEN O3 lists a 20 MHz CMOS active example. Verify exact supply, footprint, interface, load, temperature, and code. Trace actual SPI divider and any external handoff component.

Ask peripheral suppliers for release limits and earliest drive conditions. Include intermediate devices and all connected unselected loads. Keep arrival configuration, baseline, and changed-part traces for each direction.

Frequently asked questions

Do nonoverlapping selects rule out contention? Verify actual high-impedance timing and earliest takeover at the shared node.

Does slowing SPI prove the reference was inaccurate? It can move the sampling point or idle interval. Measure the reference independently.

WeChat

MERLIN · TIMING COMPONENTS

Scan with WeChat to contact Sales

Add our WeCom contacts from your usual WeChat app.

On desktop, scan with your phone. On mobile, save the QR image and select it from your album in WeChat Scan.