用单芯片打造 USB 显卡:CH570 微控制器实现视频输出Building a Single-Chip USB GPU


AI free token/AI免费积分

用单芯片打造 USB 显卡:CH570 微控制器实现视频输出

考虑到 GPU 如今已变得如此强大,又被挪用于如此多的其他任务,人们很容易忘记 GPU 最初的主要用途是生成图形。按照这个定义,并接受略低一些的性能标准,完全有可能打造出一颗 20 美分的 GPU,正如 [bitluni] 用这个 USB 转模拟视频转换器所演示的那样。

该转换器集成在一块小小的 PCB 上,只有一个有源元件——一颗 CH570 微控制器,外加几个无源元件。不仅 USB-C 接口是由 PCB 本身制成的,模拟 RCA 接口也是如此:PCB 上设计了几个镀铜的开口,使其可以插入母头 RCA 端口。不过这种方式有个小麻烦:许多 RCA 端口显然只有一根线用来接触内部引脚,因此这对插入方向有些敏感。在无源元件中,最重要的是一个晶体振荡器,用于让生成的信号与显示器的刷新率保持同步;时序是这个项目的主要制约因素。

为了达到所需的速率,所有高速操作都必须用 SRAM 来完成;一次奇怪的性能下降后来被发现是编译器使用了闪存造成的。真正的模拟信号由 PWM 生成。该设备表现为一个 USB CDC 设备,可以显示灰度文本和基础图形;[bitluni] 编写了一个程序,把它当作串行终端使用。有趣的是,当他用作显示器的电视处于无线接收模式时,竟然能接收到由一根跳线传输的 PWM 信号。这启发了 [bitluni] 去寻找更多的传输方式;结果表明,借助 SPI 和超频,该系统或许能够传输 PAL 彩色信号。

这已经不是 [bitluni] 第一次让一颗不太可能的微控制器输出视频了;他还曾用 ESP32 驱动过 VGA。在稍大一点的规模上,他还用微控制器集群打造过多个协处理器。

本文来源:https://hackaday.com/2026/11/22/building-a-single-chip-usb-gpu/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

Building a Single-Chip USB GPU

Considering how powerful they’ve become and how many other tasks they’ve been repurposed for, it’s easy to forget that a GPU’s primary purpose is to generate graphics. With this definition in mind, and accepting a somewhat lower standard of performance, it’s entirely possible to build a twenty-cent GPU, as [bitluni] demonstrated with this USB to analog video converter.

The converter is built into one tiny PCB with only one active component, a CH570 microcontroller, and a few passive components. Not only is the USB-C connector made out of the PCB itself, the analog RCA connector is also: the PCB is designed with several copper-plated cutouts which let it plug into a female RCA port. There is a quirk with this approach, though: many RCA ports apparently only have one wire to make contact with the internal pin, making this somewhat sensitive to orientation. Of the passive components, the most important was a crystal oscillator to keep the generated signal in sync with the display’s refresh rate; timing was this project’s main constraint.

To keep up with the necessary rate, all high-speed operations had to be done with SRAM; an odd performance drop turned out to be caused by the compiler using flash memory. The actual analog signal is generated with PWM. The device appears as a USB CDC device, and can display greyscale text and rudimentary graphics; [bitluni] wrote a program to use it as a serial terminal. Interestingly, when the TV he was using as a display was in wireless reception mode, it was able to pick up on the PWM signal transmitted by a jumper wire. This inspired [bitluni] to search for more transmission options; it turns out that with SPI and overclocking, the system might be able to transmit a PAL colour signal.

This isn’t [bitluni]’s first time getting video out of an unlikely microcontroller; he’s also driven VGA with an ESP32 . On a bit of a larger scale, he’s also built several coprocessors out of microcontroller clusters .

本文来源:https://hackaday.com/2026/11/22/building-a-single-chip-usb-gpu/
若有版权问题,请来信告知:13951431913#139.com 或在右方提交评论。

暂无评论,快来发表第一条评论吧!No comments yet. Be the first!

📮 需求咨询📮 Inquiry