Skip to the content
2 layers44.1 × 23.7 mmSnes dejitter, the printed circuit board in 3D

NES/SNES 240p de-jitter mod

Size
44.1 × 23.7 mm
Copper layers
2
Thickness
1.6 mm
Parts
39
Nets
47
Pads
116
Tracks, vias
308, 50
Pours
2
Routed
Yes
KiCad
KiCad 5 (file 20171130)
Created
3 Jan 2018
Updated
17 Mar 2020

Overview

Snes dejitter is an open-source printed circuit board by marqs85, from the marqs85/snes_dejitter repository on GitHub, published under the MIT licence. It is a 2-layer board of 44.1 × 23.7 mm with 39 parts on 47 nets, routed with 308 tracks and 50 vias.

It is built around the ATF1502AS-7AX44 and 2SC2412. Its parts include 14 resistors, 10 connectors, 8 capacitors, 1 IC and 1 diode. It belongs with the retro computing and games boards and the FPGA and CPLD boards of this library.

Main components

2

README

README.md

NES/SNES 240p de-jitter mod

snes_dejitter is a mod board which eliminates sync jitter of NES/SNES 240p modes. Technical description and discussion is found on this thread.

Requirements for building the board and CPLD firmware

Requirements for flashing CPLD firmware

  • Hardware

    • OpenOCD supported JTAG programmer (e.g. FT2232 based)
  • Software

CPLD image build procedure

NOTE: Only needed when building a custom firmware. Pre-built images can be found under output_files/ on master and nes-fix (recommended for NES/FC) branches.

  1. Open the project file in Quartus, and run compilation

  2. Convert MAX7000 targeted POF object file into JEDEC file suitable for 1502AS via winpof2jed.exe:

text
1. Select .pof file from previous step as input file
2. Select 1502AS as device
3. Change the following options:
  * Reduce MC power -> On
  * Open Collector -> Off
  * JTAG mode -> On
  * Slew rate -> Slow
4. Click "Run"

pof2jed

  1. Convert JED to SVF via ATMISP:
text
1. Create a new device chain via File->New
2. Set number of devices to 1
3. Set device to ATF1502AS
4. Set JTAG instruction to "Program/Verify"
5. Select .jed file from previous step as JEDEC file
6. Click "OK"
7. Tick "Write SVF file" and click "Run"

atmisp1 atmisp1

Board flashing

The board can be flashed using any OpenOCD supported JTAG programmer that supports 3.3V-5V IO signal level (TCK, TMS and TDI are TTL inputs with 10k pull-downs). If 3.3V IO is used, JP4 (on v1.3 PCB) should be closed which clamps TDO output to 3.3V. A standalone snes_jitter board is flashed by hooking all of its 6 JTAG header pins to respective pins of the programmer/cable, and by running flash procedure specified below. After the board has been installed to NES/SNES, firmware can be subsequently updated, but in this method 5V pin of the JTAG connector MUST be left disconnected, and programming needs to be done while NES/SNES is powered on (without a game is ok). The update procedure is similar in both cases:

  1. Create openocd.conf that matches your JTAG programmer. A configuration file for FT2232-based programmers is found in installation/openocd-ft2232.conf, and it uses following standard pinout for data signals:
Board pinProgrammer pin
TCKADBUS0
TMSADBUS3
TDIADBUS1
TDOADBUS2
  1. After hooking up JTAG cable, initiate JTAG connection:
text
openocd -f openocd.conf
  1. OpenOCD auto-probing should report a TAP controller with id 0x0150203f - if not, check connections and configuration. When successful, open another terminal to interact with openocd and program the chip:
text
telnet localhost 4444
> svf <full_path_to_svf_file>
  1. The programming procedure should finish with no error, after which you can finish installation by powering off hardware and disconnecting the programmer.

Installation

General descriptions on board pins are in table below. Model-specific installation instructions are added to separate subdirectories.

Board pinDescription
CSYNC_iTTL C-sync signal from the console
MCLK_EXT_iExternal clock input. Used only in PAL mode, not needed in pure NTSC installations.
CLK_SEL_iMaster clock source selection (0=internal/NTSC, 1=external/PAL). In PAL mode, MCLK and CSYNC are bypassed to output. Pin is pulled low internally, so it can be left disconnected in pure NTSC installations. Connected to PALMODE in multiregion installations. Can be forced high by bridging JP1 (pre-1.2 boards only), but must never be done if the pin is wired to console.
MCLK_oClock output. An optional voltage divider (R13,R14 / JP2) can be used to reduce output level from ~4Vpp to ~3Vpp, see model-specific instructions for more details.
CSYNC_oC-sync output (~2.5Vpp unterminated, ~1.1Vpp into 75ohm termination) to an isolated multi-AV pin. Driver circuit is identical to SHVC-CPU-01. JP3 connects optional 330pF output capacitor that may not be present on console mainboard (not strictly needed, reduces potential noise at the price of less sharp transition time), see model-specific instructions for more details.
JumperDescription
JP1Forces CLK_SEL_i high. Removed on v1.2 since it was mostly for debugging purposes.
JP2Enables MCLK_o voltage divider. Recommended for NES installations to ensure signal level is safe for NESRGB.
JP3Connects optional 330pF output capacitor on CSYNC_o.
JP4Enable TDO voltage clamp. Recommended if board is flashed with a 3.3V programmer.

PCB revision history

v1.3

  • change (R9,R10) voltage divider values
  • replace TDO voltage divider with an optional zener clamp (selectable via JP4)
  • add R15 pulldown to prevent floating input pin

v1.2

  • remove JP1
  • add JP2 and JP3 to easily support different setups

v1.1

  • change R14 value
  • change JTAG connector

v1.0

  • first revision

FAQ

Can I buy the board pre-assembled / pre-installed

  • VGP store offers pre-assembled boards with optional installation service.

Can I flash the board with USB Blaster?

  • USB Blaster is compatible with OpenOCD, but you have to check your programmer details (official/clone, 5V compatibility) and hook up and configure it accordingly. Official USB Blaster has fixed 6MHz TCK frequency which is probably too high for the board, so USB Blaster II and clones are more likely to work. None of the USB Blasters supply voltage on the board, but instead require connection from the board's supply to Vcc(TRGT) pin of the debug connector. You must thus power the board externally and connect 5V to Vcc(TRGT) (make sure your programmer supports 5V operation!). Some clones also require hacks on OpenOCD to operate correctly, see the thread for more details.

Which other programmers can I use?

  • OpenOCD supports a wide range of debug adapters. Several people also have programmed their boards using a Raspberry Pi. Instructions and tools for RPI can be found on the thread.

Does the mod change game speed in any way?

  • Yes, but in very minimal way - in 1 hour of gameplay a de-jittered system falls less than 2 frames behind a vanilla system.

Is it possible to disable de-jitter functionality after installation?

  • When the board is installed so that MCLK_EXT_i and CLK_SEL_i are not used, a simple bypass can be added without firmware modifications. To do that, connect MCLK_EXT_i to CPLD pin 34 (MCLK_XTAL_o) and add a ON-OFF switch that connects MCLK_SEL_i to 5V.

Parts

39
QtyValueFootprintReferences
510kcustom_components:SM0603_Resistor_libcmsR1, R2, R3, R6, R15
40.1ucustom_components:SM0603_Capa_libcmsC2, C3, C4, C7
3GNDcustom_components:SMD_PADJ3, J4, J8
3Jumper_NO_Smallcustom_components:SMD_JUMPERJP2, JP3, JP4
212pcustom_components:SM0603_Capa_libcmsC5, C6
21kcustom_components:SM0603_Resistor_libcmsR8, R9
2300custom_components:SM0603_Resistor_libcmsR11, R14
239custom_components:SM0603_Resistor_libcmsR4, R13
1100custom_components:SM0603_Resistor_libcmsR12
110ucustom_components:SM0603_Capa_libcmsC1
11Mcustom_components:SM0603_Resistor_libcmsR7
121.477272MHzCrystals:Crystal_HC49-U_VerticalY1
12SC2412TO_SOT_Packages_SMD:SOT-23_HandsolderingQ1
1330pcustom_components:SM0603_Capa_libcmsC8
15.6kcustom_components:SM0603_Resistor_libcmsR10
15Vcustom_components:SMD_PADJ2
1ATF1502AS-7AX44custom_components:TQFP-44_10x10mm_Pitch0.8mm_HandsolderingU1
1CLK_SEL_icustom_components:SMD_PADJ7
1CSYNC_icustom_components:SMD_PADJ5
1CSYNC_ocustom_components:SMD_PADJ10
1JTAG_CONNcustom_components:JTAG_Header_Angled_1x06_Pitch2.54mmJ1
1MCLK_EXT_icustom_components:SMD_PADJ6
1MCLK_ocustom_components:SMD_PADJ9
1Zener_3v3custom_components:SOD-323_HandsolderingD1

Similar boards

  • 2 layers21 × 35 mmBEAN adapter, the printed circuit board in 3D

    BEAN adapter

    specadmin/toyota-mpx

    Toyota MPX (BEAN) asynchronous driver for AVR

    37 parts53GPL-3.0
  • 2 layers40.6 × 50.8 mmATF1502AS EVB, the printed circuit board in 3D

    ATF1502AS EVB

    whitequark/ATF15xx-EVB

    Cheap & simple evaluation boards for Microchip ATF15xx CPLDs

    17 parts26CC0-1.0
  • 2 layers24.4 × 24.4 mmOSO SWAT B1, the printed circuit board in 3D

    OSO SWAT B1

    joeycastillo/Sensor-Watch

    A board replacement for the classic Casio F-91W wristwatch

    39 parts2.1k
  • 2 layers33 × 26 mmVL53L1x pwm, the printed circuit board in 3D

    VL53L1x pwm

    hackclub/OnBoard

    💡 Join 1,000 teenagers and make your first PCB with a $100 grant!

    39 parts915
  • 2 layers43.4 × 18.8 mmUsb sniffer lite, the printed circuit board in 3D

    Usb sniffer lite

    ataradov/usb-sniffer-lite

    A simple USB sniffer based on Raspberry Pi RP2040

    39 parts706BSD-3-Clause
  • 2 layers40 × 20 mmESP8266, the printed circuit board in 3D

    ESP8266

    windowsair/wireless-esp8266-dap

    CMSIS-DAP compatible wireless debugger for ESP8266/ESP32/ESP32C3/ESP32S3. Optional 40MHz SPI acceleration, etc. 适配多种ESP芯片的无线调试器

    39 parts690MIT
  • 2 layers100 × 70.3 mmModulAdapterMagnet, the printed circuit board in 3D

    ModulAdapterMagnet

    GaudiLabs/OpenDrop

    Open Source Digital Microfluidics Bio Lab

    39 parts492GPL-3.0

Questions

How big is the Snes dejitter PCB?

It measures 44.1 × 23.7 mm and has 2 copper layers, 1.6 mm thick.

What parts does the Snes dejitter use?

39 parts, built around the ATF1502AS-7AX44 and 2SC2412. 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 Snes dejitter KiCad files?

From the marqs85/snes_dejitter repository on GitHub, at the commit this page was made from: the board is pcb/snes_dejitter.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.

Can I use the Snes dejitter 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).