#hdmi — Public Fediverse posts
Live and recent posts from across the Fediverse tagged #hdmi, aggregated by home.social.
-
This Wireless HDMI Extender Can Send Your TV Signal Up to 400 Feet, and It’s Now Just $59.99
-
Az AMDGPU-hoz érkezett javítások a Linux 7.4-ben megtanítják a DRM EDID parsert és az amdgpu_dm-et a HDMI 2.2 FRL új sebességeire (16/20/24 Gbit/s per sáv; Max_FRL_Rate 7/8/9). KUnit tesztek bővülnek; patch a drm fixes ágban, cél: 7.4-rc2. #Linux #AMDGPU #HDMI #DRM #Kernel https://linuxmint.hu/hir/2026/11/hdmi-22-frl-javitasokat-kap-az-amdgpu-driver-a-linux-74-ben
-
Представлен вариант перехвата содержимого экрана через электромагнитное излучение HDMI‑кабеля
Исследовательский проект под названием Deep‑TEMPEST доказал , что злоумышленники могут считывать содержимое экрана компьютера через стены. Для этого используется искусственный интеллект, который декодирует электромагнитные сигналы, исходящие от стандартных кабелей HDMI.
https://habr.com/ru/articles/1105830/
#новости #мониторы #hdmi #электромагнитное_излучение #кабели #кибербезопасность #кража_данных #радиосигналы #инфослужба #инфослужба_хабра
-
-
Tens um portátil antigo na gaveta? Vê como o podes transformar num segundo monitor sem fios ou por cabo e aumenta a tua produtividade!
-
It says something that most discussions about solving HDMI problems in Linux end up solved with "bought a DisplayPort to HDMI adapter and am now using the DP port of my GPU to power my TV/monitor via HDMI successfully".
-
heise+ | Obsbot Talent 2 im Test: Mehrkamera-Streaming aus einem Gerät
Mehrere Kameras, ein kompaktes Gerät: Obsbots Talent 2 mischt, streamt und zeichnet auf. Im Test zeigt sich, wie es als Regiecomputer fungiert.
-
📡 HDMI senza cavi: scopri la classifica 2026 dei migliori trasmettitori wireless per collegare TV, monitor e proiettori. #HDMI #Wireless
🔗 https://www.spaziogames.it/articoli/migliori-trasmettitori-hdmi-wireless
-
Transforme a sua televisão antiga em uma Smart TV de forma barata. Basta ter uma porta compatível e um dispositivo externo dedicado. Economize dinheiro e mantenha o seu ecrã atual com esta solução inteligente. 📺
-
Your TV might be watching you. And not in the way you think.
#ACR #TV #HDMI #surveillance #spyware
youtube.com/watch?v=t_GK...
yeah… this (hidden) chip pays ... -
ZX Spectrum Compatible Video on Pico DVI (HDMI)
Taking the previous work so far, namely:
And considering the number of add-ons for the Raspberry Pi Pico that do HDMI, creating a version of the ZX Spectrum video for HDMI is the natural next step for me.
Once again, most of the hard work has been done by others, so there are many references to draw upon already. The main ones are:
- https://picockpit.com/raspberry-pi/raspberry-pi-pico-video-output/ – General discussion of video output on Picos.
- https://github.com/Wren6991/PicoDVI
- https://github.com/adafruit/PicoDVI – Adafruit produced fork of the above for Earle Philhower’s unofficial Arduino core for the RP2040/RP2350.
- https://github.com/fruit-bat/pico-zxspectrum – supports a huge range of video, audio, and processing options based around RP2040/RP2350.
- https://github.com/Wren6991/Pico-DVI-Sock – a small breakout for plugging directly into the Pico (available commercially from Adafruit too).
- https://github.com/Panda381/DispHSTX – an alternative implementation.
- https://github.com/goloskokovic/ZX-Pie – the original HDMI interface for the ZX Spectrum based on a Raspberry Pi Zero.
Why the mix of DVI/HDMI? From the first link: “HDMI is the next evolution of connectors (and in competition with DisplayPort). It is fully downwards compatible with the digital DVI signals – thus you can have simple, purely passive DVI / HDMI converters.”
So whilst there are DVI-A (analog) and DVI-D (digital) setups, if the Pico can create DVI-D signals then it can do so for a HDMI format connector.
Before I continue, it is worth noting that there are a number of devices available commercially or as open source that an do this in a much more accurate and systematic manner than I am messing around with here. Key products or projects include:
- ZX-HD – the original that many would be familiar with. Used to be available from Bytedelight until Ben sadly passed away. A commercialised/productised evolution of ZX-pie.
- RGBtoHD – takes many retro video analog sources and turns them into HDMI. Again uses a Pi Zero but based on an FPGA.
- RGBi to VGA HDMI – For ZX Spectrums with an RGB output (so 128Ks) to VGA or HDMI.
- ZX VGA JOY – VGA and joystick interface for ZX Spectrums.
And I’ve also seen boards based on a Tang Nano 20K FPGA for RCbus systems.
PicoDVI (with Adafruit)
This is the code that provides the functionality and Adafruit have a port of it for the unofficial Arduino RP core that is also compatible with their GFX library, so that is what I’m using here. This can be installed simply using the Arduino library manager by searching for PicoDVI.
To make sure everything is working, I’ve wired up a “Pico HDMI sock” to a Pico V1 and run one of the examples. To get the right pinout information, the Adafruit wrapper for the PicoDVI library requires a configuration block as follows:
DVIGFX8 display(DVI_RES_320x240p60, true,
adafruit_feather_dvi_cfg);
DVIGFX8 display(DVI_RES_320x240p60, true, pico_sock_cfg);The first line is the one provided in all the examples. The second line is the one I need to use to get it running in my case.
Once this was shown to be up and running, I switched over to my PGA2350 breakout board and reproduced it with the same GPIO. That worked fine too, so now to attempt to change it to the higher GPIO range I’ve used with my VGA boards. This requires two things:
- A custom video configuration for the higher GPIO range (40-47).
- Changing the PIO GPIO base to 16-47.
The configuration structure for the pico_sock is as follows (from here):
// Pico DVI Sock (small hat on the bottom)
// which solders to the end of a Pico
static const struct dvi_serialiser_cfg pico_sock_cfg = {
.pio = DVI_DEFAULT_PIO_INST,
.sm_tmds = {0, 1, 2},
.pins_tmds = {12, 18, 16},
.pins_clk = 14,
.invert_diffpairs = false
};This covers GPIO 12-19, so mapping this over to my PGA based video boards:
#include <PicoDVI.h>
#include "sprites.h" // Graphics data
static const struct dvi_serialiser_cfg pga2350_video_cfg = {
.pio = DVI_DEFAULT_PIO_INST,
.sm_tmds = {0, 1, 2},
.pins_tmds = {40, 46, 44},
.pins_clk = 42,
.invert_diffpairs = false
};
DVIGFX8 display(DVI_RES_320x240p60,
true, pga2350_video_cfg);Plus a call to set the PIO GPIO base:
void setup() { // Runs once on startup
pio_set_gpio_base(DVI_DEFAULT_PIO_INST, 16);
if (!display.begin()) { // Blink LED if insufficient RAM
... and so on ...Unfortunately this isn’t quite enough. As per this PR, some of the PIO API calls need updating to use the _mask64 versions of the _mask APIs. This means changing the file:
Arduino\libraries\PicoDVI_-_Adafruit_Fork\src\libdvi\dvi_serialiser.pio.h
static inline void dvi_serialiser_program_init(PIO pio,
uint sm, uint offset, uint data_pins, bool debug) {
pio_sm_set_pins_with_mask64(pio, sm, 2ull << data_pins,
3ull << data_pins);
pio_sm_set_pindirs_with_mask64(pio, sm, ~0ull,
3ull << data_pins);
... and so on ...Note that the constants 0u, 2u, 3u have been changed to 0ull, 2ull, 3ull.
This seems to work fine – I can now run the demos from the Adafruit port of the library using GPIO 40-47 as the DVI over HDMI connections.
Going to PicoDVI Directly
One of the issues with using the Adafruit fork of PiocDVI is that, whilst it makes it easy to include it in the unofficial Arduino environment, it is also designed for use with the Adafruit_GFX library and from what I can see appears to include additional layers or abstractions between the user code and the DVI library.
In order to run my Spectrum video code, I want access to the raw scanline constructing as all the video processing is already performed on the Spectrum side of things.
To try to figure out how this might be possible, I went directly to the PicoDVI apps folder and took a look at the Hello DVI example to see what would be required to build it from the Arduino environment.
This requires creating a new Arduino sketch based on the following two files from the PicoDVI library:
- software/apps/hello_dvi/main.c -> PicoDVIExample.ino
- software/assets/testcard_320x240_rgb565.h -> testcard_320x240_rgb565.h
The collection of #include statements at the top of the original main.c can now be replaced with:
#include <PicoDVI.h>
#include "testcard_320x240_rgb565.h"It also requires the same definition for pga2350_video_cfg as described previously and also the same call to pio_set_gpio_base().
Other changes:
- Replace the function main() with setup().
- Replace core1_main() with setup1().
- Comment out setup_default_uart().
- Comment out multicore_launch_core1().
- Add in a dummy, unused, loop() and loop1().
- Add a call to pio_set_gpio_base() in the setup() function.
- Finally, update the configuration line as follows:
//dvi0.ser_cfg = DVI_DEFAULT_SERIAL_CONFIG;
dvi0.ser_cfg = pga2350_video_cfg;Each of the original main functions ended with an infinite loop. In principle these could be converted to a loop() function, but I’ve just left them as an infinite loop at the end of the setup() functions.
Unfortunately I just couldn’t get this to work. It will all build and download, but I get nothing on my display.
I spotted that there is a setup1() function in PicoDVI.cpp. As I also have one in my own code, I wondered if this could be causing issues. I’d discounted anything with PicoDVI.cpp as I’m not using the Adafruit constructors to set up PicoDVI, but it is still (of course) built in.
Turns out this was irrelevant, the issue was in the sequencing the DVI initialisation between setup1() and setup(). The original code launches the core1 code after calling dvi_init(), but when left free-running, the calls in setup1() run too early.
Simply including some synchronisation to have setup1() wait for the initialisation in setup() does the trick.
volatile bool dviinit=false;
void setup1() {
while (!dviinit);
...
}
void setup() {
...
dvi_init(...);
dviinit = true;
}Direct PicoDVI Port
But I’m still not sure about the additional layers in the Adafruit code, so at this point I went back to the approach I used with the scanvideo library before, and dropped the original PicoDVI code into an Arduino library as follows:
PicoDVI/software/libdvi/* -> PicoDVIArduino/libdvi/
PicoDVI/software/include/common_dvi_pin_configs.h -> PicoDVIArduino/I created a simple single header file to include everything else:
PicoDVIArduino.h:
#pragma once
#include "pico/stdlib.h"
#include "pico/multicore.h"
#include "hardware/clocks.h"
#include "hardware/irq.h"
#include "hardware/sync.h"
#include "hardware/gpio.h"
#include "hardware/vreg.h"
#include "libdvi/dvi.h"
#include "libdvi/dvi_serialiser.h"
#include "common_dvi_pin_configs.h"Along with a library.properties file:
library.properties:
name=PicoDVI - Arduino Port
version=0.0.1
author=Luke Wren (Wren6991)
maintainer=Kevin
sentence=Arduino library for RP2040 DVI output, based on PicoDVI
paragraph=Arduino library for RP2040 DVI output, based on PicoDVI
category=Display
url=
architectures=rp2040Finally, I need to build the PIO code into a pio.h file, so I used the pioasm.exe I already have stored in the root of my Arduino area and created a build file:
libdvi/piobuild.bat:
..\..\..\..\pioasm dvi_serialiser.pio dvi_serialiser.pio.h
..\..\..\..\pioasm tmds_encode_1bpp.pio tmds_encode_1bpp.pio.hI can now add the aforementioned use of mask64 and ull constants directly to dvi_serialiser.pio prior to creating dvi_serialiser.pio.h:
dvi_serialiser.pio:
static inline void dvi_serialiser_program_init(PIO pio, uint sm, uint offset, uint data_pins, bool debug) {
pio_sm_set_pins_with_mask64(pio, sm,
2ull << data_pins,
3ull << data_pins);
pio_sm_set_pindirs_with_mask64(pio, sm,
~0ull, 3ull << data_pins);At this point I can port some of the “apps” over into the examples directory, making the changes mentioned in the previous section and then they should work.
PicoDVI/Apps/hello_dvi/main.c -> PicoDVIArduino/examples/hello_dvi/hello_dvi.ino
PicoDVI/assets/testcard_320x240_rgb565.h -> PicoDVIArduino/examples/hello_dvi/testcard_320x240_rgb565.hThe full set of changes required to make the example work are as follows:
#include <PicoDVI.h>
#include "testcard_320x240_rgb565.h"
static const struct dvi_serialiser_cfg pga2350_video_cfg = {
.pio = DVI_DEFAULT_PIO_INST,
.sm_tmds = {0, 1, 2},
.pins_tmds = {40, 46, 44},
.pins_clk = 42,
.invert_diffpairs = false
};
volatile bool dviinit=false;
void setup1() {
while (!dviinit);
...etc...
}
void loop1() {
}
void setup() {
pio_set_gpio_base(DVI_DEFAULT_PIO_INST, 16);
...etc...
// setup_default_uart();
...etc...
// multicore_launch_core1(core1_main);
dviinit = true;
}
int frame_ctr = 0;
void loop() {
// while (true) {
for (uint y = 0; y < FRAME_HEIGHT; ++y) {
uint y_scroll = (y + frame_ctr) % FRAME_HEIGHT;
const uint16_t *scanline = &((const uint16_t*)testcard_320x240)[y_scroll * FRAME_WIDTH];
queue_add_blocking_u32(&dvi0.q_colour_valid, &scanline);
while (queue_try_remove_u32(&dvi0.q_colour_free, &scanline))
;
}
++frame_ctr;
}Aside Note: This has not ported over the libsprite library that is part of PicoDVI, so any examples that use sprite.h will not work. I don’t think this is part of the Adafruit version either – presumably that has its own sprite support.
I did have a bit of a look, and it might work, if I do the following:
PicoDVI/software/libsprite -> PicoDVI/src/libsprint
Remove: sprint_riscv.S tile_riscv.S
affine_transform.h: Swap int32_t to uint32_t:
static const uint32_t __not_in_flash("atrans")
PicoDVIArduino.h:
extern "C" {
#include "libsprite/sprite.h"
}But I couldn’t get any of the examples to work, in particular one example that used sprite_fill16 was crashing, so I’ve left this for now.
But replacing the sprite fill routine with a simple memset, does leave me with a working mandelbrot example.
Stock Take…
So where does this get me? I have something that I think I will be able to use with my ZX Spectrum display code, so now I need to figure out how the scanline creation should work.
Most of the effort so far has been getting something working within the Arduino environment. For this one, going straight to the Pico SDK environment would probably have been a lot easier, but I have something that does build and display, so that should be a good starting point.
Encoding Scanlines
So far I’ve not found an obvious “this is how to encode data into a scanline and get it displayed” note anywhere, so I’m wandering through the example apps.
As the whole library is bit-banging out DVI, a key function is the TMDS encoding. TMDS is “Transmission Minimized Differential Signalling“, the optimised digital video signal protocols used with the signal pairs in digital video (according to wikipedia).
There is a detailed discussion of how the Pico was squeezed to the point of being able to create TMDS signals on the main project page, but it doesn’t really extend into the how to create your own software to use the library. The Adafruit version of course skips all that by using their own GFX library, but I want to be able to process scanlines from ZX Spectrum compatible video as I did with the VGA system.
I must confess I don’t really follow what is going on, and perhaps this comments suggests I’m not meant to: “It is just barely possible to do full resolution encode, which is what is shown off in the first image at the top of this Readme. The code is awful, go check it out if you hate yourself.”
The comment for two of the encode functions:
// Extract up to 6 bits from a buffer of 16 bit pixels,
// and produce a buffer
// of TMDS symbols from this colour channel.
// Number of pixels must be even,
// pixel buffer must be word-aligned.
void __not_in_flash_func(tmds_encode_data_channel_16bpp)
(const uint32_t *pixbuf, uint32_t *symbuf, size_t n_pix,
uint channel_msb, uint channel_lsb) {
// As above, but 8 bits per pixel, multiple of 4 pixels,
// and still word-aligned.
void __not_in_flash_func(tmds_encode_data_channel_8bpp)
(const uint32_t *pixbuf, uint32_t *symbuf, size_t n_pix,
uint channel_msb, uint channel_lsb) {There is an additional comment for full resolution: “Code for full-resolution TMDS encode (barely possible, utterly impractical)” so I’m going to ignore that one for the time being.
Preparing Scanlines – Loops
But this is getting ahead of things a little. The key sequence of events leading to video generation is loosely as follows (focusing on the 8 bit per pixel version):
dvi.cpp:
// Version where each record in q_colour_valid
// is one scanline:
dvi_scanbuf_main_8bpp(struct dvi_inst *inst):
Forever:
Dequeues a valid scan buffer
Passes onto _dvi_prepare_scanline_8bpp(scan buffer)
Adds scan buffer back to free queue
Move to next line
_dvi_prepare_scanline_8bpp(struct dvi_inst *inst,
uint32_t *scanbuf):
Dequeues a free TMDS buffer
Uses tmds_encode_data_channel_8bpp() to build TMDS lines
Adds TMDS buffer to valid queueA lot of the work is done by the queuing mechanism. There is a comment in the file util_queue_u32_inline.h that these are 32-bit optimised, completely interchangeable, versions of the functionality provided by the RPi SDK pico/util/queue.h.
To get a flavour of the queues used, we can look at dvi_init() and find the following queues initialised:
queue_init_with_spinlock(&inst->q_tmds_valid,
sizeof(void*), 8, spinlock_tmds_queue);
queue_init_with_spinlock(&inst->q_tmds_free,
sizeof(void*), 8, spinlock_tmds_queue);
queue_init_with_spinlock(&inst->q_colour_valid,
sizeof(void*), 8, spinlock_colour_queue);
queue_init_with_spinlock(&inst->q_colour_free,
sizeof(void*), 8, spinlock_colour_queue);Where the two spinlock_(tmds|colour)_queue parameters are passed into dvi_init() as we saw in the examples, being allocated using the RPi SDK function next_striped_spin_lock_num() to get the next spinlock instance from the “striped” range. This is a shared access pool of hardware spinlocks (more in the spinlocks part of the API docs).
Armed with this knowledge we can now make more sense of the hello_dvi example code that continually sends scanline data to the library:
const uint16_t *scanline =
&((const uint16_t*)testcard_320x240)
[y_scroll * FRAME_WIDTH];
queue_add_blocking_u32(&dvi0.q_colour_valid, &scanline);So what is going on here? The last bit we understand now – it is adding the scanline to the “q_colour_valid” queue where it will be processed as described previously.
The scanline itself is a pointer to the appropriate position in the “testcard_320x240” image which we can now take a look at. The position of course being given by y_scroll * FRAME_WIDTH. In the example, y_scroll relates to the y position in the image offset by a continually updating counter which is what gives the continued vertical scrolling effect of the demo – it displays the “test card” image and keeps steadily scrolling it upwards.
This is using the data in assets/testcard_320x240_rgb565.h which is a large data structure defined as follows:
unsigned char __attribute__((aligned(4)))
testcard_320x240[] = {
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
...
0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
};
unsigned int testcard_320x240_rgb565_bin_len = 153600;Which doesn’t give much away, but as it is called rgb565 and treated as a (uint16_t) when referenced as a scanline, we can assume it is an array of 16-bit values in 565 format where: red: 5-bits, green: 6-bits, blue 5-bits. We also know it is a 32-bit aligned structure (aligned(4)).
As the byte length at the end is 153600, I guess this contains 153600/2 = 76800 16-bit pixels, which would be true for a 320 x 240 display.
So I need to turn my ZX Spectrum screen display into this format and pass each line off to the driver using the queuing system. This is not far from the code used with the scanvideo library, but that uses rbg555 values internally, but the principles should be pretty similar (more in Simplified Pico VGA).
Preparing Scanlines – Callbacks
I have seen examples that use a callback mechanism to prepare scanlines, so I’ll take a short diversion into that now.
In the main initialisation structure dvi.h there is the following note:
// Called in the DMA IRQ once per scanline
// -- careful with the run time!
dvi_callback_t scanline_callback;This is used in the mandelbrot example:
printf("Configuring DVI\n");
dvi0.timing = &DVI_TIMING;
dvi0.ser_cfg = DVI_DEFAULT_SERIAL_CONFIG;
dvi0.scanline_callback = core1_scanline_callback;
dvi_init(&dvi0,
next_striped_spin_lock_num(),
next_striped_spin_lock_num());The callback function is as follows:
uint16_t framebuf[FRAME_WIDTH * FRAME_HEIGHT];
void core1_scanline_callback() {
// Discard any scanline pointers passed back
uint16_t *bufptr;
while (queue_try_remove_u32(&dvi0.q_colour_free,
&bufptr))
;
// Note first two scanlines are pushed before DVI start
static uint scanline = 2;
bufptr = &framebuf[FRAME_WIDTH * scanline];
queue_add_blocking_u32(&dvi0.q_colour_valid, &bufptr);
scanline = (scanline + 1) % FRAME_HEIGHT;
}I’m not entirely sure what the first part is doing (other than interpreting the comment at face value), but the second part is essentially performing the same function as the previous example – it is finding the correct position in a data structure to be used as a valid scanline and queued onto the “q_colour_valid” list.
In this case it is a slice of the frame buffer in framebuf, again treated as 16-bit pixel data. It gets written to as part of the mandelbrot calculation in the main loop code:
framebuf[y * FRAME_WIDTH + x] =
((max_iters - iters) >> 2) * 0x41 >> 1;Creating ZX Spectrum Compatible Scanlines
Interestingly in both of these approaches, it would appear that the library has no concept of asking for a specific scanline, that I can see. It seems to be assumed that the data-providing code will provide scanlines and they will match up with the sequence that the driver is expecting as they are sent in order via the queuing mechanism.
I’m not really sure of the benefit of running via the callback really, but I guess it provides a bit of assurance as to the timing which is now governed by the library rather than the free running CPU core.
One thing to watch out for with the ZX Spectrum is the flashing attribute. This would be synchronised to the 50Hz frame rate and result in the reversing of the INK and PAPER values. That will have to be built into the sequencing at some point.
At this point I started t look at porting my VGA code over to DVI. But then going back to look at pico-zxspectrum, I found src/ZxSpectrumPrepareDviScanline.cpp.
Perfect! Everything is all done there ready to go. Pico-ZXSpectrum is really amazing. This is all pretty well optimised code though, so probably won’t fit straight into what I need, so I’ll now take a bit of a diversion to see what is going on…
Pico-ZXSpectrum DVI Scanline Generation
Key files and functions:
- src/ZxSpectrumVideoDriver.cpp
- Loops over installed video drivers
- src/ZxDviRenderLoop.cpp
- ZxDviRenderLoop():
- Initialised DVI handling
- In an infinite loop prepare lins and call zx_prepare_hdmi_scanline()
- ZxDviRenderLoop():
- src/ZxSpectrumPrepareDviScanline.cpp
- zx_prepare_hdmi_scanline():
- Encode TMDS scanlines
- tdms_encode_border()
- tdms_encode_screen()
- Add to q_tmds_valid queue
- Encode TMDS scanlines
- zx_prepare_hdmi_scanline():
- src/tmds_encode_zxspectrum.S
- tdms_encode_screen()
- tdms_encode_border()
The following files were copied directly into the Arduino sketch:
ZxSpectrumPrepareDVIScanline.h
ZxSpectrumPrepareDVIScanline.cpp
tmds_encode_zxspectrum.h
tmds_encode_zxspectrum.SIt turns out that all that I had to change was swap out dvi.h in ZxSpectrumPrepareDVIScanline.h for PicoDVIArduino.h and then remove the references to dvi_serializer.h and common_dvi_pin_configs.h in ZxSpectrumPrepareDVIScanline.cpp. The Arduino build environment for the unofficial core appears quite happy with building .S files, even if they don’t get shown in the IDE.
I created a new main PicoDVIZXSpectrum.ino based on the code from ZxDviRenderLoop.cpp and the memory reading from Simplified Pico VGA. I’ve changed the sequencing of the DVI handling slightly.
The main structure is as follows:
byte ram[64K]
setup1():
Initialise DVI as per ZxDviRenderLoop
loop1():
Output top DISPLAY_BLANK_LINES/2
Output each y value for the ZX Spectrum display
Output bottom DISPLAY_BLANK_LINES/2
frames++
setup():
Initialise memory reader as per VGA example
loop():
Run memory reader as per VGA exampleThe memory reader is running on core 0 in a fast C loop and writing to ram[]. The DVI code is rendering scanlines from ram[] on core 1.
I’ve also attempted to optimise the memory reader slightly by only storing addresses in the screen range.
void loop() {
while (1) {
uint32_t gpio32 = gpio_get_all();
// All GPIO ctrl pins will read as 0 for a legit write
if ((gpio32 & GP_CTRL_MASK) == 0)
{
if ((gpio32 & GP_DISP_MASK) == GP_DISP_VAL) {
// Grab the data off the bus and update RAM
uint16_t addr16 =
(GP_ADDR_MASK & gpio32) >> GP_ADDR_START;
uint8_t data8 =
(GP_DATA_MASK & gpio32) >> GP_DATA_START;
ram[addr16] = data8;
}
}
}
}Optmisations performed:
- I’m using the INOVER trick to override the sense of the GPIO signals I’m going to want to be HIGH. This means I can quickly test for the GPIO (when masked) to be zero.
- I’m also testing the address to see if it is in the correct range for the display memory.
On that latter point, as the Spectrum display memory occupies 0x4000 to 0x5AFF, a fairly quick test is to look for A15=0, A14=1, A13=0 i.e.:
b0100 0000 0000 0000 -> 0x4000
b0101 1111 1111 1111 -> 0x5FFFThis saves the effort of storing the values if they are out of the required range. I don’t know if this will be significant, but I did it anyway.
Status and Conclusion
The video side seems to work pretty well. It just runs the AY demo directly with no further changes. There is however an issue with the memory reading side.
At the end of ZX Spectrum Compatible Video for RC2014 – Part 3 I noted I was getting a bit of corruption which I wondered might be related to the INT handling. This code is not built with any of the 50 Hz interrupt code, but I’m still seeing what appears to be missed writes.
Things I’ve looked at so far, in an attempt to see what is going on:
- Looked at many Z80 write waveforms – I’ve not noticed anything significant – but triggering on skipped writes is almost impossible, so this is not exhaustive.
- Performed the previously described optimisations for the memory reader. I don’t think they’ve made a difference.
- Attempted to tighten up the bus control criteria. This doesn’t seem to make a difference, but I did find that looking for /RFSH being HIGH seems to stop everything working completely. That has given me some new ideas for what might be going wrong with PIO on the Raspberry Pi Pico – Part 3 – clue, not all the Z80 signals I was needing to watch are on the RC2014 bus!
- Sat and through through the logic and looked back over older versions of the code. I was pretty sure I was able to get the ZX Spectrum display mapping working with an early version with no signs of missed reads, but the only thing I can spot that is different is the introduction of the 50Hz interrupt, which as I say, is not part of this build.
So this is a good place to leave this for now, but it is by no means finished. But I think the issue with the DVI/HDMI code is the same as with the VGA code, and so my next step is to go back to the PIO version and see if I can get that running and then see if that changes anything for me.
None of this would have been possible of course without pico-zxspectrum. This is an amazing project. The more I poke around with it, the more tempted I am to put together one of the devices. And no, I really don’t need any more ZX Spectrum emulations.
Performance Update:
I think I’ve solved the memory reading issue. When filling memory using the SC monitor fill command, I noticed a pattern in the skipped values. It definitely looked like the code wasn’t quite keeping up and managed to miss a write with a specific periodicity. At this point I wondered what else was going on with core 0 that might cause an interrupt or something to prevent the loop from running.
As a simple test I swapped over setup()/setup1() and loop()/loop1() – and it works! It no longer seems to miss writes. This worked in the SCC monitor, the AY application and the following BASIC code:
10 FOR N=0 TO 767
20 POKE 22528+N,58
30 NEXT N
40 FOR N=0 TO 6143
50 POKE 16384+N,255
60 NEXT N
110 FOR N=0 TO 6143
120 POKE 16384+N,0
130 NEXT N
140 FOR N=0 TO 767
150 POKE 22528+N,0
160 NEXT N
170 GOTO 10When left to run this would have shown up missing attribute or INK updates, but I’ve had this running now for several minutes and I’ve not seen any missing values.
I think this has solved the issue.
Find the final code on GitHub here: https://github.com/diyelectromusic/sdemp/tree/main/src/Misc/PicoDVIZXSpectrum
Kevin
#hdmi #picoZxspectrum #rc2014 #zxSpectrum -
#HDMI is inherently one of the worst interface standards invented by humanity, ever.
-
Banana Pi BPI-F3 RISC-V board run Industrial SCADA system
https://docs.banana-pi.org/en/BPI-F3/BananaPi_BPI-F3
#bananapi #raspberrypi #SBC #Industrial #SCADA #HDMI #PLC #Servo -
https://www.europesays.com/be-fr/301967/ Le mini PC Vzmore doté de nombreux ports fait ses débuts avec un processeur Intel axé sur les performances et la prise en charge des eGPU #185H #BE #BEFr #Belgique #Belgium #Bluetooth #connectivité #CoreUltra9 #eGPU #hdmi #InformationsSurDesOrdinateursPortatifs #Intel #iX9 #JeuVidéo #LPDDR5 #MeteorLake #nouvelles #productivité #rapport #revues #Science #ScienceAndTechnology #Sciences #SciencesEtTechnologies #SSD #Technologies #Technology #test #USB4 #Vzmore #WiFi7
-
ARZOPA: monitor portatile da 15.6″ (1920×1080 FHD IPS) https://gioxx.org/2026/10/27/arzopa-monitor-portatile-da-15-6-1920x1080-fhd-ips
#amazon #arzopa #bancoprova #hdmi #lavoro #monitor #smartworking #ufficio #usb
-
Iris Xe Graphics (TGL GT2) HDMI out just stopped working #drivers #multiplemonitors #intelgraphics #hdmi #intel
-
https://www.europesays.com/pl/777362/ Philips Evnia 36M4C5500P – Monitor ultrapanoramiczny o przekątnej 36 cali i częstotliwości odświeżania na poziomie 260 Hz #displayport #Evnia36m4c5500p #FastVa #hdmi #hdr #hdr10 #monitor #MonitorDlaGraczy #MonitorDoGier #Nauka #NaukaITechnika #NaukaTechnika #philips #PhilipsEvnia36m4c5500p #PL #Poland #Polish #Polska #Polski #Science #ScienceAndTechnology #ScienceTechnology #specyfikacja #Technika #Technology #va #VesaDisplayhdr400 #zapowiedz
-
Xiaomi launches affordable 300Hz gaming monitor with AMD FreeSync Premium
ⓘ Xiaomi The Redmi G25 2027 has a sleek overall design. Pictured: a promo picture showing the front…
#NewsBeep #News #Technology #1080p #2027 #300Hz #affordable #AMD #AU #Australia #benchmarks #DisplayHDR #DisplayPort #esports #FHD #freesync #G25 #gaming #graphicscard #hdmi #IPS #laptop #Monitor #netbook #notebook #processor #Redmi #reports #review #reviews #sRGB #test #tests #Xiaomi
https://www.newsbeep.com/au/940335/ -
Não existe um limite oficial para o tamanho dos cabos HDMI, mas a resolução importa. A evolução das resoluções e taxas de atualização tornou as ligações mais longas imprevisíveis. 📺
-
pico-ttl2dvi Converter Brings C128 80-Column Video to HDMI
#Commodore128 #C128 #picoTTL2DVI #RP2350 #RetroComputing #Commodore #HDMI #VintageComputing
https://theoasisbbs.com/pico-ttl2dvi-converter-brings-c128-80-column-video-to-hdmi/?fsp_sid=15449 -
https://www.europesays.com/se/429446/ Prisvärd mini-PC från Minisforum lanseras med välbekanta specifikationer men med nytt chassi #4K #BärbarDator #bluetooth #HDMI #Intel #kompakt #lagring #laptop #M2 #minidator #Minisforum #nätverk #notebook #prisvärd #ram #Science #ScienceAndTechnology #ScienceAndTechnology #SE #Slim #SSD #StationärDator #Svenska #Sverige #Sweden #Swedish #Technology #Teknik #USB4 #VESA #Vetenskap #VetenskapTeknik #WiFi6E
-
米Belkin、2つのUSB-A/-CポートとHDMIポートを搭載した「Connect 5-Port USB-C Hub」にMacBook Neoカラーのバリエーションを追加。
https://applech2.com/archives/20261021-belkin-5-port-usb-c-hub-with-dual-usb-c-ports-for-macbook-neo.html#applech2 #Belkin #HDMI #MacBook_Neo #USB_A #USB_C #USB_PD #USBハブ #ディスプレイ
-
Новий Smart TV показує гірше, ніж у магазині? Змініть ці 5 налаштувань
# #AndroidTVSmartTVs #HDMI #HDR #HowtosGuides #LG #Samsung #SmartTV #Sony
https://gizchina.net/2026/10/20/smart-tv-nalashtuvannya-zobrazhennya/ -
Новий Smart TV показує гірше, ніж у магазині? Змініть ці 5 налаштувань
# #AndroidTVSmartTVs #HDMI #HDR #HowtosGuides #LG #Samsung #SmartTV #Sony
https://gizchina.net/2026/10/20/smart-tv-nalashtuvannya-zobrazhennya/ -
https://www.europesays.com/ch-fr/354945/ AOC lance un nouveau moniteur gaming avec un écran QD-Mini LED à 425Hz #1440p #27Pouces #425Hz #AdaptiveSync #Agon #AGP277QKM #AOC #DisplayHDR1000 #DisplayPort #Esport #FreeSync #hdmi #HDR #InformationsSurDesOrdinateursPortatifs #JeuVidéo #Moniteur #nouvelles #Pro #QDMiniLED #rapport #revues #Science #ScienceAndTechnology #Sciences #SciencesEtTechnologies #Suisse #Technologies #Technology #test
-
https://www.europesays.com/ch-fr/354607/ Baseus lance une nouvelle station d’accueil 14-en-1 avec double sortie 4K, charge rapide de 120 W et écran #10Gbps #120Hz #120W #14En1 #4K #Affichage #Baseus #ConnexionàUneStationD’accueil #Ethernet #GaN #hdmi #InformationsSurDesOrdinateursPortatifs #nouvelles #périphériques #plus #PowerTune #rapport #RD1 #recharge #revues #Science #ScienceAndTechnology #Sciences #SciencesEtTechnologies #SpaceMate #StationD'accueil #Suisse #Technologies #Technology #test #USBC
-
https://www.europesays.com/se/423890/ Baseus lanserar ny 14-i-1-docka med dubbla 4K-utgångar, 120W snabbladdning och skärm #10Gbps #120Hz #120W #14I1 #4K #BärbarDator #Baseus #bildskärm #docka #dockning #Ethernet #GaN #HDMI #kringutrustning #laddning #laptop #notebook #plus #PowerTune #RD1 #Science #ScienceAndTechnology #ScienceAndTechnology #SE #Spacemate #Svenska #Sverige #Sweden #Swedish #Technology #Teknik #USBC #Vetenskap #VetenskapTeknik
-
https://www.europesays.com/be-fr/290912/ AOC lance un nouveau moniteur gaming avec un écran QD-Mini LED à 425Hz #1440p #27Pouces #425Hz #AdaptiveSync #Agon #AGP277QKM #AOC #BE #BEFr #Belgique #Belgium #DisplayHDR1000 #DisplayPort #Esport #FreeSync #hdmi #HDR #InformationsSurDesOrdinateursPortatifs #JeuVidéo #Moniteur #nouvelles #PRO #QDMiniLED #rapport #revues #Science #ScienceAndTechnology #Sciences #SciencesEtTechnologies #Technologies #Technology #test
-
🎮 Migliori cavi HDMI ottici per console: la classifica 2026 per scegliere tra prestazioni, compatibilità e lunghezza, senza trascurare il tuo setup. #Gaming #HDMI
🔗 https://www.spaziogames.it/articoli/migliori-cavi-hdmi-ottici-per-console
-
https://www.europesays.com/se/418714/ Atari 800XL återvänder för 219,99 dollar med HDMI och 25 inbyggda retrospel #800XL #Atari #BärbarDator #BASIC #dator #emulering #förbeställningar #HDMI #laptop #Mekaniskt #nostalgi #notebook #nyversion #Plaion #retro #Science #ScienceAndTechnology #ScienceAndTechnology #SE #Spel #spelkassetter #Svenska #Sverige #Sweden #Swedish #tangentbord #Technology #Teknik #USB #Vetenskap #VetenskapTeknik
-
-
Atari ressuscita computador clássico 800XL com ligações HDMI e USB. O icónico computador pessoal Atari 800XL vai regressar ao mercado 43 anos após a sua estreia original.
🔗 https://tugatech.com.pt/t92398-atari-ressuscita-computador-classico-800xl-com-ligacoes-hdmi-e-usb
-
Zynq 7000. Камера MIPI-CSI-2 и вывод видеопотока через HDMI и Ethernet UDP. Часть 2
Продолжаем рассмотрение темы вывода изображения взятого с камеры на базе сенсора OV5647 (CSI-2, RAW10). В первой части мы разобрали подключение камеры к Zynq-7020, подготовили проект в Vivado и получили живое изображение на HDMI, используя битстрим производителя и отладку через JTAG. Продолжение начинается с главы 22: переходим к собственному битстриму и разбираемся с ошибками, которые проявились после пересборки. Начнем с искажений изображения: входных задержек MIPI, неверной конфигурации DDR, перестановки цветовых компонент и разрывов кадра. Затем добавим аппаратное сжатие JPEG, проверим обвязку энкодера в симуляции и настроим загрузку Linux через Buildroot. Завершим проект передачей MJPEG по HTTP с возможностью перепаковки в RTP/UDP на хосте. По ходу разберем конкретные симптомы, проверки и исправления, а в конце измерим производительность всего тракта: от примерно 30,6 кадра в секунду на приеме до 23 кадров в сетевом потоке. Всем заинтересованным - добро пожаловать под кат!
https://habr.com/ru/companies/beget/articles/1082244/
#zynq7000 #mipi #csi2 #hdmi #ethernet #ov5647 #verilog #xilinx #udp #video_streamig
-
https://www.europesays.com/se/406655/ Xiaomi lanserar prisvärd RGB Mini LED-TV-serie med stöd för 360 Hz uppdateringsfrekvens #180Hz #360Hz #4K #BärbarDator #Dolby #FreeSync #Gaming #HDMI #HDR10 #HyperOS #laptop #ljusstyrka #MiniLED #notebook #prisvärd #Redmi #RGB #Science #ScienceAndTechnology #ScienceAndTechnology #SE #Svenska #Sverige #Sweden #Swedish #Technology #Teknik #TV #Vetenskap #VetenskapTeknik #VRR #Xiaomi
-
Squeezed in an Elgato video capture device into the back of my desk. There's a 2x1 hdmi switch plugged into it: one hdmi cable goes to my Pentium II tower; the other plugs into my retro console cart (housing an Xbox, NES, PS1 and PS2), which itself goes into a RCA to hdmi converter in turn plugged into an 8x1 RCA switch.
The Elgato sends the video to my MacBook and also passes through the video into an 4x1 hdmi switch. This switch is how I can alternate between my AppleTV, my two MacBooks, a Nintendo Switch, and the Elgato.
The two MacBooks share a 2x1 hdmi switch. My personal MacBook is plugged into a Thunderbolt dock. There's also a USB hub shared by the MacBooks for all my peripherals.
There's an HDMI audio splitter that the 4x1 hdmi switch goes into to redirect the audio into my Edifier speakers via optical cables.
Every single device can output to the monitor and the speakers. 😎
#retroGaming #retroTech #gaming #tech #cables #cableManagement #hdmi
-
One day spend digging into the rabbithole of #pipewire #wireplumber #HDMI and #EDID. My wish was just to get real 5.1 surround from my Linux desktop. edid-decode shows that my cheap no-name sound device does not present any Audio capabilities, so Linux refuses to show me any HDMI sound profile.
I then tried to route the signal trough the TV using ARC, this sort of works, but left and left-surround sound channels is merged, and same for right side - indicating that we now have upmixed stereo 😞 -
This is so stupid. #displayport 120Hz no Problem. #HDMI not working....
Just use an adapter.... 120Hz with HDMI monitor... No problem.
Licences are so stupid -
Amiga AV to HDMI, RGB y audio a HDMI para Zorro
Este es un proyecto que lleva ya un tiempo en desarrollo, pero que hasta ahora no habíamos mencionado en el blog. Con la aparición reciente de diferentes soluciones para llevar la señal de los Amiga a HDMI, creemos oportuno hablar de esta solución, en este caso para Amigas con slots Zorro.
Amiga AV to HDMI es una tarjeta de expansión interna diseñada por Chris Hooper, conocido como cdh, a partir de los trabajos de Linux Geni y Hoglet67, creador del diseño original de RGB to HDMI. Está pensada para instalarse en el Video Slot de los Amiga Big Box, como el Amiga 2000 y el Amiga 3000.
La tarjeta utiliza una Raspberry Pi Zero para convertir la señal de vídeo a HDMI y, además, incorpora el audio disponible en el Video Slot, ofreciendo ambas señales a través de una única salida HDMI. Es compatible con los chipsets OCS y ECS, aunque no con los modos AGA.
Uno de sus aspectos más interesantes es el Monitor Switcher, que permite conectar una segunda fuente HDMI, como una tarjeta gráfica RTG Z3660, y alternar entre la señal nativa del Amiga y la salida RTG mediante SwitchControl.
También incorpora conectores para una Gotek interna, que puede controlarse desde el teclado del Amiga, mostrando información mediante un OSD sobre la señal HDMI. Opcionalmente puede conectarse una pantalla OLED externa.
El PCB es de una sola cara para reducir los costes de fabricación e incluye tres botones para configurar RGB to HDMI, un puerto USB para actualizar el firmware y un adaptador HDMI interno para mantener una instalación limpia.
Las pruebas realizadas en un Amiga 3000 con una Z3660 demuestran una conmutación prácticamente instantánea entre Workbench en RTG y el vídeo nativo del Amiga, funcionando correctamente también con juegos y el audio estéreo a través de HDMI.
La revisión 7.2 requiere un pequeño puente mediante cable para utilizar el control de conmutación, mientras que está previsto incorporar un cuarto botón físico en futuras revisiones para cambiar manualmente entre las fuentes de vídeo.
https://www.youtube.com/watch?v=XAkpNJym2t0
-
RGB2RTG: AGA por HDMI sin hardware añadido.
A falta de Framethrower para Amiga 1200 llega una solución impensable en otros tiempos que podría ser definitiva, desarrollado por Astair86, RGB2RTG consiste en una versión modificada de Emu68 capaz de redirigir la imagen RGB nativa del Amiga 1200 hacia la salida HDMI de la Raspberry Pi utilizada por el PiStorm. De esta forma, tanto la señal RTG como los modos gráficos originales del Amiga pueden visualizarse a través de una única conexión HDMI sin añadidos de hardware. No te frotes los ojos, es real!.
RGB2RTG no se basa en una emulación convencional del chipset gráfico. El sistema analiza la información que el procesador 68k escribe en la Chip RAM y en los registros personalizados del Amiga, reconstruyendo la imagen línea a línea mediante uno de los núcleos de la Raspberry Pi y generándola en 24 bits. El resultado permite mostrar por HDMI los modos gráficos nativos, incluidos aquellos que no utilizan RTG.
La versión 0.5, publicada como prototipo público, utiliza un kernel Emu68 1.1.0-beta.1 modificado y una versión personalizada del controlador VideoCore 1.5. El sistema también permite sincronizar la salida HDMI con la frecuencia de refresco PAL del Amiga, alrededor de 49,92 Hz, manteniendo la señal nativa en lugar de limitarse a los modos RTG convencionales.
El paquete incorpora además diferentes opciones de configuración para adaptar la imagen a las preferencias del usuario, incluyendo escalado nítido o suavizado, recorte y sincronización HDMI. Está especialmente preparado para configuraciones basadas en CaffeineOS y PiStorm32-Lite.
El proyecto está disponible en itch.io.
-
This is a portable DVD player. Based on the other components on either end, I’m *reasonably* sure the disconnected 20-pin connector at the top is sending HDMI to the display adapter board, but I have no idea what the wiring is. I can’t find a 20x1 (or 19x1) HDMI standard (or de facto standard). My objective is to re-use the display (panel and adapter board), in its existing housing.
Anyone familiar with this connector, or know how to figure it out short of a logic analyzer?
-
Zynq 7000. Камера MIPI-CSI-2 и вывод видеопотока через HDMI и Ethernet UDP. Часть 1
Пришло время поиграться на плате TZT RK-ZYNQ7020-F v1.1 (Zynq-7000, XC7Z020-CLG484-2 ) с имеющейся у меня камерой на базе сенсора OV5647 (CSI-2, RAW10) и вывести одновременную картинку по HDMI и по Ethernet с использованием стриминга сжатого потока по UDP. Данная статья представляет собой практический мануал: если выполнять шаги по порядку и не переходить дальше, пока предыдущий не дал ожидаемый результат, вы получите живую картинку на мониторе и поток, который открывается в браузере, VLC или ffplay . Собрать «камеру на ПЛИС» — это не набрать IP-блоки с именами MIPI и HDMI в Vivado. Настоящая работа — в цепочке невидимых договорённостей: кто поднимает тактовые и память, у какого сброса должен быть фронт, в каком порядке включаются источник и сток, какое соглашение о цвете живёт в кадровом буфере, и почему молчаливый отказ почти всегда выглядит как поломка совсем другого блока. Картинка на экране и поток в браузере появляются только тогда, когда все эти договорённости одновременно верны. Все это мы разберем в этом материале. Всем интересующимся - добро пожаловать под кат!
https://habr.com/ru/companies/beget/articles/1078344/
#zynq7000 #mipi #csi2 #hdmi #ethernet #ov5647 #verilog #xilinx #udp #video_streaming