TryKeep SPI Clock (MHz) at 10, Bits per frame at 8 and CS setup/hold overhead (us) at 1. Reduce Burst length (bytes) from 256 to see the overhead take a larger share.
ObserveThe 256-byte default burst takes 205.8 us, including overhead. Effective throughput displays 1.19 MB/s and 99.5% efficiency, with 0.800 us per byte.
ExplainBits per frame divided by SPI Clock (MHz) sets frame time. The code multiplies that time by the burst count and adds CS setup/hold overhead (us) once before calculating throughput.
Technical boundaries. The calculation assumes one clocked bit per cycle and one CS overhead per burst, with no gaps between frames. Despite its bytes label, the burst control counts frames when 16 or 32 bits are selected; displayed KB/s and MB/s use powers of 1024.
TipInteractive: SPI Data Rate Calculator
Calculate the effective data throughput for your SPI configuration based on clock speed and transaction overhead.