The '''Video DAC''' is a chip on the N64 motherboard that converts the 7-bit-wide synchronous [[Video Interface]] output to analog video.
Early revisions pair a discrete Video DAC (VDC-NUS or VDC-NUS A) with an external encoder (ENC-NUS or S-RGB A) to generate video output.[S-RGB A is only observed on NUS-001(FRA) models. While this encoder is RGB-capable, the necessary amplification components are unpopulated on the motherboard in retail units. S-RGB A lacks S-Video encoding entirely, limiting unmodified NUS-CPU(R)-01 boards to composite output.] Other revisions consolidate these functions into a single integrated chip (DENC-NUS, AVDC-NUS, MAV-NUS).[Later PAL revisions NUS-CPU(P)-03 and -03-1 lack S-Video output due to board-level omissions; the Y (luma) and C (chroma) traces from the MAV-NUS encoder to the Multi Out are severed and the supporting surface-mount components are unpopulated. S-Video output can be restored with a flex cable mod tapping directly from the MAV-NUS.]
== Bus Operation ==
The Video DAC operates at four times the pixel clock frequency. Four consecutive VI clock cycles are multiplexed over the VI bus to form one 21-bit color value per emitted pixel.
* 1 pixel = 4 VI clocks
* 7 bits × 3 channels = 21-bit RGB
[[File:N64videosys.png|thumb|Video DAC bus and waveform diagram. Image from: [https://web.archive.org/web/20090103080549/http://members.optusnet.com.au/eviltim/n64rgb/n64rgb.html Tim Worthington - RGB Video DAC for Nintendo 64]]]
The 4-cycle sequence carries both pixel data and control signals and restarts whenever !DSYNC[! = active low.] is low.
The Video Interface transmits control signals every clock during blanking by holding !DSYNC low across multiple VI clock cycles.
{| class="wikitable" style="text-align: center;"
! !! Cycle 0 !! Cycle 1 !! Cycle 2 !! Cycle 3
|-
! !DSYNC
| '''Low''' || '''High''' || '''High''' || '''High'''
|-
! D0
| !Csync || Red 0 || Green 0 || Blue 0
|-
! D1
| !Hsync || Red 1 || Green 1 || Blue 1
|-
! D2
| !Clamp[The !Clamp signal is asserted during the horizontal back porch to restore the DC component of an AC-coupled signal. This "clamping" process re-establishes the black level reference (0 IRE) in this window to stabilize signal brightness. Because the color burst is transmitted concurrently, some sources refer to this period as "clamp/burst."] || Red 2 || Green 2 || Blue 2
|-
! D3
| !Vsync || Red 3 || Green 3 || Blue 3
|-
! D4
| — || Red 4 || Green 4 || Blue 4
|-
! D5
| — || Red 5 || Green 5 || Blue 5
|-
! D6
| — || Red 6 || Green 6 || Blue 6
|}
== Precision ==
The Video DAC outputs 21-bit RGB color. Each pixel period transmits 28 bits (7 bits × 4 cycles), of which 21 bits are used for RGB data. Four of the remaining bits are used for control signaling during blanking; three bits are unused.[Since there are three unused bits in the multiplex sequence, it is unclear why the DAC has only 7 bits of precision instead of 8; no documentation yet found explains this.]
== Video Clock (VCLK) ==
The Video DAC and encoder are driven by two clocks, each derived from the X1 crystal resonator by the synthesizer (Macronix MX8330MC / MX9911MC / MX8350, depending on board revision): the video clock (VCLK)[The [[Audio Interface]] also uses this clock.] and the color subcarrier (FSC).
The video clock frequency is calculated as:
The multiplier is selected by the FSEL (NTSC/!PAL)[This pin is named FSEL on MX8330MC/MX9911MC and NTSC/!PAL on MX8350.] pin: High → 17×, Low → 14×.
There are three video clock configurations corresponding to NTSC, PAL, and MPAL (a.k.a. [https://en.wikipedia.org/wiki/PAL-M PAL-M]):
{| class="wikitable" style="text-align: center;"
! Standard !! FSC (MHz) !! Crystal (X1) (MHz) !! FSEL !! Multiplier !! VCLK (MHz)
|-
| '''NTSC''' || 3.57954545 || 14.31818182 || High || 17 || 48.68181818
|-
| '''PAL''' || 4.43361875 || 17.734475 || Low || 14 || 49.65653
|-
| '''MPAL''' || 3.57561189 || 14.30244755 || High || 17 || 48.62832167
|}
The encoder receives the FSC clock (X1 ÷ 4) via the subcarrier input (SCIN) pin in order to provide the correct colorburst frequency for the corresponding broadcast standard.
Crystal frequency tolerance is ±30 ppm at 25°C.[See [https://www.kds.info/wp-content/uploads/2015/11/2011-2012_032_en.pdf KDS AT-49 datasheet] for more detail.] This error propagates to all derived clocks (see [[Clock Timing]]).
== Hardware Variants ==
{| class="wikitable" style="text-align: center;"
! Video output path !! Board revision !! Region !! Role !! Signal encoding !! Notes
|-
| '''VDC-NUS (A) + ENC-NUS''' || NUS-CPU-01 thru 04; NUS-CPU(M)-01 thru 02 || NTSC, MPAL || Two-stage video DAC + encoder || composite + S-Video || VDC-NUS outputs RGB which is converted to composite + S-Video by ENC-NUS; VDC-NUS A revision changeover aligns with 1996/1997 boundary (alongside CPU-NUS A)[The latest observed VDC-NUS/CPU-NUS is 1996, wk 47; the earliest observed VDC-NUS A/CPU-NUS A is 1997, wk 6. Source: original research by [[User:Elle (meauxdal)|Elle (meauxdal)]].]
|-
| '''VDC-NUS (A) + S-RGB A''' || NUS-CPU(R)-01 || PAL (NUS-001(FRA) only) || Two-stage video DAC + encoder || composite + RGB[RGB is encoded but not functional without modification.] || RGB output not functional without modification; does not encode S-Video
|-
| '''DENC-NUS''' || NUS-CPU(P)-01 || PAL (except NUS-001(FRA)) || One-stage integrated video DAC + encoder || composite + S-Video || Combines DAC and encoder functions in a single IC; converts to composite + S-Video internally (no external RGB signal)
|-
| '''AVDC-NUS''' || Early NUS-CPU-05 || NTSC || One-stage integrated video DAC + encoder + audio DAC || composite + S-Video || Present on earlier NUS-CPU-05 examples
|-
| '''MAV-NUS''' || Later NUS-CPU-05 and all later revisions || All regions || One-stage integrated video DAC + encoder + audio DAC || composite + S-Video || Pin-compatible with AVDC-NUS and used as drop-in replacement; present on later NUS-CPU-05 examples and all later revisions in all regions
|}
== References ==
* [https://web.archive.org/web/20090103080549/http://members.optusnet.com.au/eviltim/n64rgb/n64rgb.html Tim Worthington - N64 RGB Mod ] (archived from [http://members.optusnet.com.au/eviltim/n64rgb/n64rgb.html the original])
* [https://wiki.console5.com/wiki/File:N64_NUS-CPU-03-04.pdf Console5 Tech Wiki - RDC - NUS-CPU-03/04 Schematic]
* [https://www.datasheetarchive.com/datasheet/BA7242F/ROHM?term=BA7242F Datasheet Archive - Rohm BA7242F (ENC-NUS) datasheet (mirror)]
* [https://www.kds.info/wp-content/uploads/2015/11/2011-2012_032_en.pdf KDS - AT-38/AT-49 Miniature Crystal Resonators datasheet (2011)]
* [https://patents.google.com/patent/US6956621B2/ Google Patents - US6956621B2, ''High impedance digital full line video clamp'']
* [https://web.archive.org/web/20151105192150/http://forums.modretro.com/viewtopic.php?f=33&t=1417 modretro.com - Link83 et al - Nintendo 64 Motherboard Revisions/Serials Info Request] (archived from [http://forums.modretro.com/viewtopic.php?f=33&t=1417 the original])
* [https://consoles4you.ch/guides/n64svideorestore.html consoles4you.ch - N64 S-Video Restore Install Guide]
* [https://web.archive.org/web/20170107153330/http://nfggames.com/forum2/index.php?topic=5251.0 nfggames.com - Shadow_Zero et al - Fix S-Video for PAL N64 NUS-CPU(P)-03-1] (archived from [https://nfggames.com/forum2/index.php?topic=5251.0 the original])
* [https://web.archive.org/web/20140729192310/http://nfggames.com/forum2/index.php?topic=3083.0 nfggames.com - kwyjibo, Link83 et al - N64 RGB "Mod" on NUS-001(FRA)] (archived from [https://nfggames.com/forum2/index.php?topic=3083.40 the original])
== Footnotes ==
[[Category:Motherboard components]]