Simulador VGA con DAC por resistencias

Explora cómo una sencilla escalera de resistencias convierte bits binarios en niveles analógicos de color VGA.

Volver a proyectos

VGA Resistor DAC Simulator (2-bit per channel)

This view shows how a single 8-bit byte leaving the EEPROM becomes three analog color channels (R, G, B). Each channel uses two bits, and the last two bits are unused.

? Help

VGA Resistor DAC – How it works

This simulator shows how a purely digital chip can generate analog VGA colors using a resistor ladder DAC. The EEPROM outputs 0 V or 5 V logic levels for each bit. The digital source provides an 8-bit value, but only 6 bits are used: 2 bits for Red, 2 bits for Green, and 2 bits for Blue. Each 2-bit channel can represent 2^2 = 4 different digital states, which are converted into four different voltage levels.

Each bit drives a resistor connected to the same output node. When multiple bits are high, their resistors act in parallel. The equivalent resistance is computed as:

1Req = 1R1 + 1R2

The output voltage for each color channel is then approximated by a voltage divider:

Vout = Vcc · Rload Req + Rload

Lower equivalent resistance means higher current and therefore higher output voltage, which increases the intensity of that color.

Because only 2 bits are available per channel, each color can take only 4 discrete intensity levels. With three channels (R, G, B), the total number of possible colors is limited to:

26 = 64 colors

This is the key limitation of this approach: simple hardware and no true DAC, but very low color resolution.

Signal visualization

EEPROM → data bus → resistor DAC → pixel
EEPROM
Frame buffer
00000000
8-bit pixel data output
B5 470Ω
B4 1kΩ
B3 470Ω
B2 1kΩ
B1 470Ω
B0 1kΩ
R
G
B
0.000 V
0.000 V
0.000 V