Skip to the content
4 layers23.4 × 24.6 mmC64PALClockGen, the printed circuit board in 3D

The Dot clock is generated by multiplying the color clock by 4 and divide by 9:

Size
23.4 × 24.6 mm
Copper layers
4
Thickness
1.61 mm
Parts
24
Nets
21
Pads
105
Tracks, vias
203, 36
Pours
3
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
9 Apr 2026
Updated
23 Apr 2026

Overview

C64PALClockGen is an open-source printed circuit board by christianeisendle, from the christianeisendle/C64ClockGen repository on GitHub, published under the CERN-OHL-P-2.0 licence. It is a 4-layer board of 23.4 × 24.6 mm with 24 parts on 21 nets, routed with 203 tracks and 36 vias.

It is built around the 74AHCT1G125SE and LDL1117S33R. Its parts include 11 capacitors, 3 resistors, 3 ICs, 2 connectors and 1 crystal.

Main components

2

README

README.md

C64 Clock Generator

Introduction

This is a replacement for the MOS 8701 clock generator IC used in C64 board revisions 250425-01 and later. It's not a 1:1 replica but the generated clocks follow more strictly the PAL specification. MOS 8701 is a simple PLL which generates two clocks using a 17.734475 MHz XTAL oscillator. These clocks are:

  • Color clock using directly the oscillator frequency of 17.734475 MHz
  • Dot clock ("pixel clock") running at 7.8882 MHz

The Dot clock is generated by multiplying the color clock by 4 and divide by 9:

$\frac{17.734475MHz * 4}{9} = 7.8882MHz$

Furthermore, VIC divides the dot clock by 8 (as one character consists of 8 pixel and memory access is character based) which gives the $\phi0$ clock of 0.986025MHz which is also the resulting CPU and VIC frequency. This is where C64 violates the PAL standard: One raster line is made of 63 CPU/VIC cycles which gives a duration of

$\frac{1}{0.986025MHz}*63 = 63.8929us$

However, PAL defines the horizontal/line frequency as 15.625kHz which is 64us. So C64 is off here by

$1-\frac{63.8929us}{64us} = 1.676\%$

On old CRT screens this isn't really an issue as they make use of the synchronization pulses within the video signal. However, modern LCD screens (which perform internal AD conversion of the video signal) are quite strict on these tolerances and produce screen artifacts in case frequency deviation becomes too big. In particular, Samsung based models need an exact ratio between the color frequency of the video signal and the horizontal/vertical line/screen frequency as defined by PAL. While C64 precisely implements the color frequency of 4.43361875 MHz (which is the 17.734475 MHz color clock divided by 4) the line/screen frequency and with that the overall ratio is off.

Design

image{:width="400px"} This clock generator uses a the IDT5V49EE902 programable clock generator from Renasas to generate the required clocks. This IC has a built-in EEPROM to store the configuration, i.e. an extra microcontroller is not needed for operation (but required for initial programming). The integrated XTAL oscillator uses the existing 17.734475 MHz XTAL on the C64 board, so only MOS 8701 needs to be replaced. The color clock is directly generated by this oscillator while the dot clock is created using frequency synthesis and the included PLL. The PLL output frequency is configured to 425.25 MHz which is fed into an output divider of ratio 54. The output frequency based on input frequency is defined as:

$f_{out} = f_{in} * \frac{M}{D} * Q$

where M and D are the PLL loop dividers and Q is the output divider. With M = 1127, D = 47 and Q = 54 we get the following dot clock for an input frequency of 17.734475 MHz:

$f_{out} = 17.734475MHz * \frac{1127}{47} * 54 = 7.875MHz$

This results in a line frequency of

$f_{line} = \frac{7.875MHz}{8} / 63 = 15.625kHz$

Programming the IDT5V49EE902

The python script in pll/prog.py contains the programming sequence for the IDT5V49EE902 using I2C. The script can be executed on a Raspberry Pi Pico running MicroPython (https://www.raspberrypi.com/documentation/microcontrollers/micropython.html). Porting it to another MicroController or a USB to I2C bridge should be easily possible. The C64 Clock Generator Board has two I2C testpads exposed with on board pull-up resistors.

Parts

24
QtyValueFootprintReferences
9100nResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderC3, C4, C5, C6, C7, C8, C9, C10, C11
24k7Resistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR2, R3
274AHCT1G125Package_TO_SOT_SMD:SOT-353_SC-70-5U2, U3
2Conn_01x08_PinConnector_PinHeader_2.54mm:PinHeader_1x08_P2.54mm_VerticalJ1, J2
11uCapacitor_SMD:C_0603_1608MetricC1
14u7Capacitor_SMD:C_0603_1608MetricC2
15RResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderR1
15V49EE902Package_DFN_QFN:QFN-32-1EP_5x5mm_P0.5mm_EP3.3x3.3mmY1
1CLKINTestPoint:TestPoint_Pad_D1.0mmTP1
1FerriteBead_SmallResistor_SMD:R_0603_1608Metric_Pad0.98x0.95mm_HandSolderFB1
1LDL1117S33Package_TO_SOT_SMD:SOT-223-3_TabPin2U1
1SCLTestPoint:TestPoint_Pad_D1.0mmTP3
1SDATestPoint:TestPoint_Pad_D1.0mmTP2

Similar boards

  • 4 layers93.3 × 60.3 mmArduino 386EX V5, the printed circuit board in 3D

    Arduino 386EX V5

    dbalsom/arduinoX86

    An interface between an Arduino Due or Arduino GIGA and 8088, 8086, V20, V30, 186 or 286 CPUs

    56 parts114
  • 2 layers167 × 115 mmAquarius plus, the printed circuit board in 3D

    Aquarius plus

    fvdhoef/aquarius-plus

    Official Aquarius+ repository

    217 parts62MIT
  • 4 layers106 × 63.5 mmBrineomatic, the printed circuit board in 3D

    Brineomatic

    hoeken/brineomatic

    Open Source Watermaker Controller.

    323 parts47LGPL-2.1
  • 2 layers65 × 33.4 mmBL R8812AF1 2x mount, the printed circuit board in 3D

    BL R8812AF1 2x mount

    OpenIPC/hardware

    A collection of hardware developments by the OpenIPC team

    28 parts33MIT
  • 4 layers161 × 100 mmPurpledrop, the printed circuit board in 3D

    Purpledrop

    uwmisl/purpledrop

    Newest iteration of PurpleDrop. Reimplemented in kicad5

    265 parts19MIT
  • 4 layers144 × 127 mmFrothfet, the printed circuit board in 3D

    Frothfet

    hoeken/frothfet

    Yarrboard load controller board with current sense, volt sense, fuses, and sender support.

    394 parts14GPL-3.0
  • 4 layers76.2 × 63.5 mmPet on a chip, the printed circuit board in 3D

    Pet on a chip

    ept221/pet-on-a-chip

    Senior Design

    69 parts13MIT
  • 6 layers317.6 × 131.8 mm75he, the printed circuit board in 3D

    75he

    Fefe-Nayz/kbhe-monorepo

    TIPE 2026 - 75% Hall effect keyboard ISO layout - Monorepo: Firmware, PCB, 3D Models, PC Software

    669 parts11

Questions

How big is the C64PALClockGen PCB?

It measures 23.4 × 24.6 mm and has 4 copper layers, 1.61 mm thick.

What parts does the C64PALClockGen use?

24 parts, built around the 74AHCT1G125SE and LDL1117S33R. 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 C64PALClockGen KiCad files?

From the christianeisendle/C64ClockGen repository on GitHub, at the commit this page was made from: the board is C64PALClockGen.kicad_pcb and its schematic C64PALClockGen.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the C64PALClockGen design in my own project?

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