I had tested one ST77xx-based display so far.
I had 5/6 ST77xx based displays available to test.
I planned to test the other soon connecting a different display.
I planned to test different setups in the next days.
I explained that Phase 0 SPI reads the bit on the raising edge.
I explained that Phase 1 SPI reads the bit on the falling one.
I compared the refresh performance of SPI and parallel color displays, including a fast small SPI test, a timing-sensitive parallel setup, and my concern about larger SPI displays. My observations show that interface speed depends on both resolution and precise timing.
I found that cheap SPI displays based on the ST77xx chip work at crazy high bound rates.
I drove a 240x135 pixels display at 43 frames per sec with an RP2040 (overclocked), which I called insane for a serial interface.
I said a parallel interface is faster but much more timing-sensitive than SPI.
I drove a parallel 8-wires st7789, 320x240 at 80 FPS.
I said the parallel result was definitely a lot more given that the resolution is also higher, but it's not 8x.
I used NOPs for precise timing on the parallel display; one NOP less and it no longer works, which I took as the true limit.
I described the slower and smaller display in the linked example as a 2 euros display.
I linked the display example at https://t.co/DnulTDLGlr.
I said the real problem would be with big displays that are just SPI, and that I got a 320x400 ST7789 display that I have yet to try.
I said I'm quite sure it will be too slow.
I thought a very cheap AliExpress display would be awesome for my emulator, but too slow because writing 480x320 pixels via SPI takes 100ms.
I calculated that 48032016 = 2457600, and said that at 60Mhz a screen refresh should take 40ms, not 100ms.
I attributed refresh overhead to overscaling and sending new window coordinates at every row; I said I could reduce the overhead further, but it was near the limits.
I revised my explanation after finding that even filling the screen with solid color takes 102ms: I said the delay was not caused by the overhead I had described.
I suggested that writing to SPI at exactly 24Mhz would match the 102ms measurement, or that there might be more overhead in the SPI write than I was accounting for; I said I would investigate.
I said the SPI display was much slower than the octal SPI display, which had less than half the pixels, but that an SPI display at the same resolution would definitely be usable.
I described the SPI display's rate as 1 bit per clock cycle.
These measurements and estimates complement my other display-driver observations in bit banged and dma drivers.
My calculation suggested that refreshing the 320x400 display should take 90 milliseconds, which I rejected with “No way.”