Raspberry Pi RP2040 boards are coming with… HDMI?

We’ve already seen Raspberry Pi RP2040 MCU can support VGA output using the microcontroller’s programmable I/O blocks.  But yesterday, I saw two upcoming RP2040 boards with an HDMI connector. How is that supposed to work?

The first one is Olimex RP2040-PICO-PC that’s indeed like a pico PC board with an HDMI connector for video, a micro SD card for storage, a standard 3.5mm audio jack for speaker or headphone, and a USB host for a keyboard.

There are some I/O headers for good measure, what looks like a 3-pin UART console header, a 2-pin header for LiPo battery, as well as a reset button.

The second board, dcelectr DC2040, follows the Raspberry Pi Zero form factor with a 40-pin GPIO header, micro USB port, Micro SD card socket, as well as a mini HDMI port that will be used as DVI output…

So that’s how it works since DVI signals can be carried over an HDMI cable. The boards will transmit RGB signals without any audio since it’s not supported over DVI.

The HDMI/DVI idea appears to be derived from Raspberry Pi engineer Luke Wren (Wren6991)’s work on his PicoDVI board outputting 640x480p 60 Hz DVI mode with 264 kB SRAM used, the two Cortex-M0+ clocked at 252 MHz (that’s a bit higher than the 133 MHz advertised by the Raspberry Pi Foundation), and of course, one of the PIO blocks from Raspberry Pi RP2040 microcontroller.

PicoDVI: Bitbanged DVI on RP2040

Here are the resources used for one display:

  • 3 out of 8 PIO state machines (the DVI code requires these all be on the same PIO instance)
  • 6 out of 12 DMA channels (two per TMDS lane: one for control blocks, one for data)
  • 30% of DMA bandwidth and PIO bus endpoint bandwidth
  • 60% of CPU cycles on one core, other core 100% free
  • Just over 50% of RAM with a QVGA RGB565 image (but RGB332 support is simple enough)

Why mentioning with one display? Because it works with two monitors as well since only one of the PIO blocks is used, half of the DMA channels are still available, and one Cortex-M0+ is still free.

Raspberry Pi Pico RP2040 Dual Display

That’s pretty neat as a demo, but it’s close to reaching the limit of the Raspberry Pi RP2040 microcontroller which also had to be overclocked for the occasion. But some applications possible with one display include playing retro games, potentially programming the board directly using MicroPython or CircuitPython with the display attached, simple signage to display text and images, etc…

The hardware design files and C firmware for PicoDVI project can be found on Github together with a thorough explanation of how this all works.

Share this:
FacebookTwitterHacker NewsSlashdotRedditLinkedInPinterestFlipboardMeWeLineEmailShare

Support CNX Software! Donate via cryptocurrencies, become a Patron on Patreon, or purchase goods on Amazon or Aliexpress

ROCK 5 ITX RK3588 mini-ITX motherboard

6 Replies to “Raspberry Pi RP2040 boards are coming with… HDMI?”

  1. I would have thought olimex would have come out with an Allwinner S3L board in the RP2040 form factor.. 🙁

  2. Wow. I expected really cool uses for the pio, but would never have thought hdmi output be possible. At least not this quickly.

  3. For less than $10 you can have TTGO VGA32 based on ESP32 with VGA output and less than $2 you can have a VGA to HDMI cable on AliExpress. VGA32 allows you to emulate retro OS-es such as: Amstrad CPC, Altair 8800, Commodore VIC20, ZX Spectrum and even IBM PC XT.

    1. You can do VGA on the RP2040 too – using a simple DPI + Resister DAC solution – which is how some of the retro emulators are working. The BBC Micro can do it without a DAC as it only supported 8 colours (inc Black and White) so one bit each for R, G and B to deliver (White, Yellow, Cyan, Green, Magenta, Red, Blue, Black) – so you can run that on a Pimoroni Tiny2040.

  4. It would be great to see a RasPi Zero size carrier board for the more powerful compute module for smaller projects 🙂

Leave a Reply

Your email address will not be published. Required fields are marked *

Boardcon Rockchip and Allwinner SoM and SBC products
Boardcon Rockchip and Allwinner SoM and SBC products