Skip to the content
PCBKitNew board
2 layersNtsc syncgen, the printed circuit board in 3D

ntsc sync with 74xx logic gates

Copper layers
2
Thickness
1.6 mm
Parts
110
Nets
439
Pads
763
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 8.0 (file 20240108)
Created
4 Oct 2024
Updated
23 Jul 2025

Overview

Ntsc syncgen is an open-source printed circuit board by xp5-org, from the xp5-org/ntsc-framebuffer repository on GitHub, published under the MIT licence. It is a 2-layer board with 110 parts on 439 nets.

It is built around the 74HC244D, 74AHC541D and 74HC7014D, with the 74HC74D, 74HC02 and 74HC4040D among its other parts. Its parts include 35 ICs, 32 diodes, 28 resistors, 10 capacitors and 4 transistors.

Main components

7

README

README.md

NTSC framebuffer built around 74x cmos logic gates and an 128k x 8bit sram module

** this is incomplete and not yet built, in-progress **

  • 8 bits for color + brightness
  • 17 bits address
  • transfer data in during vblank period

Tasks remaining:

  • complete memory addressing circuitry
  • check gate timings for brightness & color control paths
  • place adjustment potentiometers for setting PNP transistor bias
  • distribute ceramic capacitors
  • add debug testpads onto pcb

Table of Contents

Current PCB Layout

pcb_infographic
pcb_infographic_3d







hvcounter

This is the core of the circuit, its two 4040 counters, one driving the other. the first counts out 454 which is the number of inactive + active horizontal pixels per row. the output is binary, and with enough AND gates alongside numerous D type flipflops, specific events can be timed out and set to form the sync timings needed

hv_counter_schematicblock









HRESET

Screenshot 2025-03-30 at 7 25 06 PM 256 + 128 + 64 + 4 + 2 counts out 454 horizontal & sets HRESET flag to high 5V and on the next clock pulse from not the timer we are resetting but the actual clock source









VRESET

Screenshot 2025-03-30 at 7 37 49 PM vreset is 1V + 4V + 256V for 261 vertical lines before resetting the counter

vertical reset is checked at the end of the horizontal scanline, so we use _HRESET as the clock for vreset - the condition of 261V lines is set only when _HRESET is ready

HBLANK-HSYNC

Screenshot 2025-03-30 at 7 38 18 PM Screenshot 2025-03-30 at 7 38 24 PM

the circuit starts off with some DC bias to give a sync tip from the "previous" scanline, and then at H2 + H8 HBLANK-ENABLE flop is cycled on. When this is on, elsewhere in the circuit the bias is cut off and gives us the horizontal sync tip

When H2 + H8 + H32 is seen (H42) , HBLANK_DISABLE is turned on, which is a 2nd flop "HSYNC B" Screenshot 2025-03-30 at 8 22 18 PM

this lets me chain the hsync events together with explicit start and stop events, block them from re-triggering









VBLANK-VSYNC

Screenshot 2025-03-30 at 7 39 06 PM









COLORBURST

Screenshot 2025-03-30 at 7 39 46 PM Screenshot 2025-03-30 at 7 39 58 PM









COLORSELECT

Screenshot 2025-03-30 at 7 41 10 PM Screenshot 2025-03-30 at 7 41 23 PM Screenshot 2025-03-30 at 7 41 27 PM

the 4-16 mux is often used for memory addressing and is only available in active-low, so in this case im using NOR gates to invert the signal . the MUX outputs are always high-inactive, so all NOR gates except for the active one are getting a positive voltage which turns them all off, exxcept for the active-low received from the MUX, this NOR gate switches on and provides a color clock at specific delays introduced by the 74AHC451's 4-5ns gate propigation delay







BRIGHTNESS

Screenshot 2025-03-30 at 7 42 30 PM Screenshot 2025-03-30 at 7 42 13 PM









MEMORYANDBUS

Screenshot 2025-03-30 at 7 43 53 PM Screenshot 2025-03-30 at 7 43 57 PM







outputamp

The output-amplifier interfaces the low-current, low impedience CMOS or TTL logic with the 1.4v, 75-ohm composite.

HSYNC, Colorburst, and Pixel Input are given to the amplifiers input. Its first passed through a 2n7000 N-channel mosfet which inverts the signal. This drives a PNP transistor to return it back to positive output, this allowed the GND of the composite-out to also be the same reference plane as the GND of this circuit (pnp could be omitted and use only mosfet with resistor network and floating Gnd)

This has two additional mosfets for saturation bias and output voltage reduction (brightness). The saturation mosfet biases the PNPs turnoff point "upwards" so that its off point rises above what hsync/hblank would have been . this serves the purpose of adding DC bias to reduce the modulation of the output without affecting the output peak (overall brightness). in summary, this is an amplifier which can control the height of the bottoms and tops of the wave output separately. its needed for color, but could dispose of half the mosfets if it were used for monochrome

Screenshot 2025-03-30 at 8 08 37 PM









Components

  • 74HC74 D-FLOP
  • 74HC08 AND
  • 74HC02 NOR
  • 74hc244 buffers
  • 74hc154 4-to-16 mux
  • 74ahc541 inv buffers (color delay line)
  • CD4040 12 bit counter
  • 14.318mhz crystal
  • 128x8 sram HM628128DLP-5
  • 2n5087 pnp or equivalent
  • 2n7000 mosfet
  • 7805 regulator









simtools

LTSpice Model of Output Amplifier

Digital Logic simulation

output amplifier in ltspice, showing peak brightness vs minimum brightness pixels , there is some distortion in the sim. Some gates are switching on/off before others and causing brief voltage spikes, this might be ignorable on the physical circuit ill have to go through the circuit flow to see what the issue is image

Parts

110
QtyValueFootprintReferences
321N4148Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2, D10, D11, D12, D13, D14, D15, D16, D17, D18, D19, D20, D21, D22, D23 +16
16RResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_HorizontalR11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25, R26
8CCapacitor_THT:C_Disc_D4.3mm_W1.9mm_P5.00mmC3, C4, C5, C6, C7, C8, C9, C10
674HC244Package_SO:SSOP-20_4.4x6.5mm_P0.65mmU30, U31, U32, U33, U34, U35
574HC74Library:SOIC127P600X175-14NU8, U10, U27, U28, U29
474HC02Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU14, U16, U17, U18
474HC4040Dfootprints:SOT109-1_NXPU1, U2, U23, U26
32N7000Package_TO_SOT_THT:TO-92_InlineQ1, Q3, Q4
374AHC541Package_SO:SOIC-20W_7.5x12.8mm_P1.27mmU11, U12, U13
210pFCapacitor_THT:C_Disc_D3.0mm_W2.0mm_P2.50mmC1, C2
2600RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR1, R27
274154Package_SO:SOIC-24W_7.5x15.4mm_P1.27mmU15, U19
274HC00Package_SO:SOIC-14-16_3.9x9.9mm_P1.27mmU4, U5
274HC540D_653Package_SO:SOIC-20W_7.5x12.8mm_P1.27mmU24, U25
2HM628128ALFP-5Package_DIP:DIP-32_W15.24mmU21, U22
1140RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR7
115RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR10
130RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR2
135RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR28
14001Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU9
1400RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR4
14081Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU7
140RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR3
1680Resistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P7.62mm_HorizontalR5
170RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR6
174HC00Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU6
174HC7014Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU3
175RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR8
1800RResistor_THT:R_Axial_DIN0207_L6.3mm_D2.5mm_P2.54mm_VerticalR9
1BC212Package_TO_SOT_THT:TO-92_InlineQ2
1CrystalCrystal:Crystal_HC49-U_VerticalY1
1LM7805_TO220Package_TO_SOT_THT:TO-220-3_VerticalU20

Questions

What parts does the Ntsc syncgen use?

110 parts, built around the 74HC244D, 74AHC541D, 74HC7014D and 74HC74D. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the Ntsc syncgen KiCad files?

From the xp5-org/ntsc-framebuffer repository on GitHub, at the commit this page was made from: the board is old_deletesoon/ntsc_syncgen_kicad/ntsc_syncgen.kicad_pcb and its schematic ntscv2/ntscv2.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Ntsc syncgen design in my own project?

Its repository publishes it under the MIT licence: you may reuse it on that licence's terms (keep the author's notice, and for a copyleft licence share your changes alike).

More from xp5-org/ntsc-framebuffer

2
  • 4 layers98.7 × 99.9 mmNtscv2, the printed circuit board in 3D

    Ntscv2

    xp5-org/ntsc-framebuffer

    ntsc sync with 74xx logic gates

    225 parts1MIT
  • 2 layers189.8 × 130.6 mmNtscv2, the printed circuit board in 3D

    Ntscv2

    xp5-org/ntsc-framebuffer

    ntsc sync with 74xx logic gates

    140 parts1MIT

Similar boards

  • 2 layersCES, the printed circuit board in 3D

    CES

    erickpires/CES-PCB

    170 partsMIT
  • 4 layers177 × 152.1 mmAvboard tht2, the printed circuit board in 3D

    Avboard tht2

    clydeshaffer/gametank

    design files for the gametank hardware implementation

    139 parts150
  • 2 layers177.8 × 130.8 mmDurango, the printed circuit board in 3D

    Durango

    zuiko21/minimOS

    Scalable OS for 6502/65816

    159 parts23MIT
  • 2 layers208 × 110 mm8 16 computer 2, the printed circuit board in 3D

    8 16 computer 2

    halfburnttoast/TCPU816-v1

    Version 1.1 of my 8-bit, TTL computer.

    120 parts21
  • 2 layersZ80 ATMEGA, the printed circuit board in 3D

    Z80 ATMEGA

    ozw1z5rd/home-computer-group

    Home Computer Group files

    37 parts3
  • 4 layers188 × 128.3 mmZAK180, the printed circuit board in 3D

    ZAK180

    agkaminski/ZAK180

    DIY all-in-keyboard computer featuring Z180 and floppy drive

    140 parts
  • 2 layers200 × 150 mmMicro, the printed circuit board in 3D

    Micro

    jurendono/VMC

    A Versitile 6502 Based Microcomputer

    235 parts