Public Access
36 lines
1.2 KiB
Markdown
36 lines
1.2 KiB
Markdown
# Notes
|
|||
|
|
|
||
|
|
- Plan: https://claude.ai/code/artifact/3b9eda11-a87e-4eea-bbb9-e6454e558991
|
||
|
|
- Datasheet: [datasheet/EL512.256-H3 FRB.pdf](datasheet/EL512.256-H3%20FRB.pdf)
|
||
|
|
|
||
|
|
## Approach
|
||
|
|
|
||
|
|
I2S0 in 8-bit parallel (LCD) mode with a circular DMA descriptor chain. Each DMA byte
|
||
|
|
is one VCLK period:
|
||
|
|
|
||
|
|
| Bit | Signal |
|
||
|
|
|-----|--------|
|
||
|
|
| 0 | VID (even columns) |
|
||
|
|
| 1 | TVID (odd columns) |
|
||
|
|
| 2 | HS |
|
||
|
|
| 3 | VS |
|
||
|
|
|
||
|
|
The I2S clock output drives VCLK. ENABLE (GPIO 25) and _LOWPWR (GPIO 26) are plain GPIO.
|
||
|
|
|
||
|
|
## From the datasheet
|
||
|
|
|
||
|
|
- Two-bit parallel mode is selected with the mode jumper OFF. Even columns on VID,
|
||
|
|
odd columns on TVID; 256 VCLKs per row.
|
||
|
|
- VCLK is active on the rising edge and should be kept running.
|
||
|
|
- HS is high while the pixels of a row are clocked in. The number of VCLKs during HS
|
||
|
|
high should be even.
|
||
|
|
- The topmost row is the first HS high time ending after the rising edge of VS.
|
||
|
|
|
||
|
|
## Open items
|
||
|
|
|
||
|
|
- [ ] Implement `EL512Panel::startI2S()` (I2S0 LCD mode, clock dividers for 5 MHz,
|
||
|
|
GPIO matrix routing, circular `lldesc_t` chain).
|
||
|
|
- [ ] Handle the 8-bit LCD-mode byte-pair swap in `encodeRow()`.
|
||
|
|
- [ ] Check VS/HS setup and hold (T4/T5) and VCLK polarity on a scope.
|
||
|
|
- [ ] Tear-free updates (double buffer or swap at VS).
|
||
|
|
- [ ] Unit test for `encodeRow()`.
|