Skip to the content
4 layers389.8 × 179.5 mmCbm ultipet v1, the printed circuit board in 3D

Cbm ultipet v1

fachat/cbm_ultipet3

Note: this is a part of a larger set of repositories, with upetfamily as the main repository.

Size
389.8 × 179.5 mm
Copper layers
4
Thickness
1.6 mm
Parts
466
Nets
626
Pads
2,591
Tracks, vias
13,759, 1,808
Pours
4
Routed
Yes
KiCad
KiCad 9.0 (file 20241229)
Created
3 Feb 2024
Updated
13 Sep 2026

Overview

Cbm ultipet v1 is an open-source printed circuit board by fachat, from the fachat/cbm_ultipet repository on GitHub, published under the GPL-3.0 licence. It is a 4-layer board of 389.8 × 179.5 mm with 466 parts on 626 nets, routed with 13,759 tracks and 1,808 vias.

It is built around the MAX232N, LM386 and CD4053BE, with the LDI1117-3.3H among its other parts. Its parts include 164 capacitors, 69 resistors, 41 diodes, 23 ICs and 12 connectors.

Main components

4

README

README.md

Ulti-PET

Note: this is a part of a larger set of repositories, with upet_family as the main repository.

This is a re-incarnation of the Commodore PET computer(s) from the later 1970s.

It is build on a PCB that fits into a C64-II case (with extra cutouts for connectors), and has only parts that can still be obtained new in 2024/2025. A 3D-printed case is also available specific for the Ulti-PET PCB.

Picture of a Ulti-PET

Videos on the machine are coming soon on the YouTube 8-bit times channel.

Features

The board is built with a number of features:

  • Commodore 3032 / 4032 / 8032 / 8296 with options menu to select at boot
    • Boot-menu to select different PET versions to run (BASIC 1, 2, 4)
    • 40 and 80 col character display
    • 8296 memory map emulation
    • IEEE488 interface (card edge and 24pin flat ribbon cable)
    • Tape connector (card edge, incl. 9V for proper tape operation)
    • PET graphics keyboard, or alternatively a C64 keyboard
  • Improved system design:
    • 512k video RAM, plus 512k fast RAM, accessible using banks on the W65816 CPU
    • boot from an SPI Flash ROM
    • up to 13.5 MHz mode (via configuration register)
    • Write protection for the PET ROMs once copied to RAM
    • lower 32k RAM mappable from all of the 512k fast RAM
    • single 5V power supply (<1A) using USB-C connector
    • hardware and firmware support SD-Card and USB keyboard or mouse
  • Improved Audio output:
    • Original beeper sound
    • Audio output using a DAC with DMA
    • Dual SID output
    • beeper, DAC, and SID are mixed into a stereo line output
    • integrated amplifier can drive <1W speakers
  • Improved Video output:
    • VGA colour video output (222 RGB)
    • up to 96x72 characters on screen
    • hires modes up to a 720x576 resolution
    • Dual 16 out of 64 colour palette, Colour-PET or C128 VDC-compatible, Sprites
    • Hires graphics mode (using a configuration register)
    • modifyable character set
    • multiple video pages mappable to $8000 video mem address
  • Extra I/O features:
    • Userport Joystick, software-switchable between single and dual joystick configs
    • fast serial IEC for Commodore's 1581 or 1571 disk drives (ROM support TBD)
    • 5V SPI interface for further extensions
    • 3.3V SPI interface for further extensions
    • Adafruit(tm) UEXT interface for further extensions (SPI shared with 3.3V SPI, includes I2C)
    • Dual UART serial, one RS232, one TTL (shared with UEXT, or the USB-C-to-serial)

Overview

The system architecture is actually rather simple, as you can see in the following graphics.

Ulti-PET System Architecture

The main functionality is "hidden" inside the FPGA. It does:

  1. clock generation and management
  2. memory mapping
  3. video generation.
  4. SPI interface and boot
  5. DAC DMA

On the CPU side of the FPGA it is actually a rather almost normal 65816 computer, with the exception that the bank register (that catches and stores the address lines A16-23 from the CPU's data bus) is in the FPGA, and that there is no ROM. The ROM has been replaced with some code in the FPGA that copies the initial program to the CPU accessible RAM, taking it from the Flash Boot ROM via SPI. This actually simplifies the design, as

  1. parallel ROMs are getting harder to come by and
  2. they are typically not as fast as is needed, and
  3. with the SPI boot they don't occupy valuable CPU address space.

The video generation is done using time-sharing access to the video RAM. The VGA output is 720x576 at 50Hz, or 720x480 at 60 Hz. So there is a pixel clock of 27MHz.

The system runs at 13.5MHz, so a byte of pixel output (i.e. eight pixels) has four memory accesses to VRAM. Two of them are reserved for video access, one for fetching the character data (e.g. at $08xxx in the PET), and the second one to fetch the "character ROM" data, i.e. the pixel data for a character. This is also stored in VRAM, and is being loaded there from the Flash Boot ROM by the initial boot loader.

The FPGA reads the character data, stores it to fetch the character pixel data, and streams that out using its internal video shift register.

For more detailled descriptions of the features and how to use them, pls see the FPGA repository that contains the code for the FPGA, as described in the next section.

I/O included in the Ulti-PET

The Ulti-PET not just has the Ultra-CPU, but also loads of I/O on the one board:

Standard PET IO

The Ulti-PET includes the standard PET I/O features using the VIA and two PIAs, with some extensions. So, it has:

  • IEEE488, including flat ribbon cable and card edge connector; with the additional capability of working as a device too
  • Tape#1 (incl. 9V for proper tape operation), incl. card edge connector
  • Tape#2 as TTL, but normally re-used for IEEE488 device handling
  • PET keyboard, with the option to use a C64 keyboard, and the extended Ultipet-Keyboard
  • PET userport, with the Video signal (optionally) replaced with 5V to accomodate user port extensions; incl. card edge connector
  • Joystick connectors for the userport, software-switchable between single- or dual mode (compatible with 'stupid pet tricks')
  • Reset and diag push buttons

RS232

A Dual UART chip provides two serial interfaces. One interface is a real RS232 with a DB9 connector. The other one is TTL level interface (shared with UEXT, see below).

The USB-C power connector has an USB-to-serial converter, that can be jumpered to the TTL level interface.

Fast IEC

An IEC interface is provided using a second VIA chip. Using the VIA shift register, fast mode IEC (like in the C128) is implemented.

Dual SID and sound mixer

Two SID chips are included for your stereo sound pleasure.

The two SID outputs are mixed with the DAC audio output from the Ultra-CPU base. Also, the beeper sound is mixed into the overall sound output.

Two audio amps are included to, so speakers can be directly connected to the board (switched off when the audio jack is used).

Keyboard shift lock and reset

When the shift-lock key in the replacement keyboard is defined on a specific position in the keyboard matrix (as is in the keyboard designed by Steve Gray), the key works like a shift-lock key.

In addition, pressing the shift-lock key longer (a few seconds), resets the machine (as long as the keyboard scanning still works).

CS/A expansion board

The board has a full width CS/A slot for a single expansion card, plus a short CS/A board for the accompanying CS/A Ultrabus [blocked] Ultra-Bus expansion board. This allows using (compatible) Apple-II, RC2014, and C64 cartridges with the Ulti-PET.

(Older versions up to 1.2a had a problem there that is now fixed!)

UEXT, and SPI-10 connectors

The board provides three standard I/O ports:

  1. UEXT - this includes serial (see above), I2C, and SPI, all in 3.3V
  2. SPI-10-3.3V - a 3.3V SPI interface for external modules (shared with UEXT)
  3. SPI-10-5V - a 5V SPI interface provided by the second VIA, with selectable clock mode.

For the SPI-10 connectors see here. For the UEXT connector see the Olimex UEXT page

Firmware features

Of the modern I/O, currently these are included and supported in the firmware, i.e. in the BASIC4 models:

  • USB keyboard or mouse support, if you select the boot option with a USB keyboard
  • SD-Card support using the SD-Card filesystem from the Commander X16 provided by Michael Steil.
  • C64 compatible kernal jump table

Note that if you select the boot option while holding the left shift key, a second optional configuration is being used. For more details see the ROM repository, that contains the current version of the firmware and accompanying documentation.

Known Issues

The current revision is 1.3A

The known issues from the 1.2A version have been fixed.

A small number of non-functional issues has been found and documented. See the github list of issues.

Revision history

1.3a: Update:

  • fixes for 1.2a known issues included, including improved audio mixer
  • USB-C power supply connector, with USB-to-serial converter that can be connected to the internal 2nd serial port
  • footprints for Joysticks improved and moved inwards
  • footprint for VGA connector improved
  • extended keyboard connector with I2C, and other lines
  • extended pin header connectors for RS232
  • improved pinout on FPGA to prep for HDMI (video output on differential pairs)
  • optional pulldowns on audio out for original SIDs
  • (most) THT parts have proper part numbers for JLCPCB for outsourced assembly too, not just SMD

1.2a: Update

  • separate 3.3V generation for the bus, USB, and network, more bypass for SD cards
  • Power, Shift Lock LED
  • Remove 2nd oscillator option
  • Digital video out connector for further experimentation
  • Fix addressing of 2nd SID
  • Replace some 1N4148 with 1N4448 for lower drop voltage, fix joystick diode direction
  • Dual voltage divider for TTL beeper to avoid left/right audio crosstalk
  • Fixes on the UART

1.1a: Update:

  • Fixed userport joystick handling, allow software switching between single- and dual mode
  • Include the beeper into the sound mixer
  • Move from single UART to dual UART, to provide TTL serial or serial for UEXT
  • Add I2C controller for UEXT
  • Add UEXT, SPI-10-3.3V, SPI-10-5V connectors
  • Add SPI interface with selectable modes on the second VIA (shares shift register with fast serial IEC bus)

1.0a: Initial release

Building

Here are the subdirectories:

  • Board that contains the board schematics and layout

Note that a case for the Ulti-PET is in the works - the case modifications for the Micro-PET do not work.

In addition, two other repositories are needed - they are separate as they are shared with other variants of the upet-family:

  • FPGA contains the VHDL code to program the FPGA logic chip used, and describes the configuration options - including the SPI usage, the DAC usage, and the Video features.
  • ROM ROM contents to boot

Board

To have the board built, you can use the gerbers that are stored in the zip file in the Board/production subdirectory.

To populate the board, there is an interactive bom (bill of materials) from KiCad, as well as the KiCad BOM CSV export in the bom folder.

Parts numbers can be found in the BOM list. It has parts numbers for Mouser for all parts (except the SID), and for JLCPCB for the SMD parts. You can have JLCPCB assemble most of the SMD parts, and order the rest from Mouser. (Note, to not order parts twice, best remove the JLPCB assembled parts before you upload to Mouser).

The BOM contains an Ethernet breakout board that is put into the connectors "above" the USB port. As an alternative you could use the Wifi breakout board. Note that at this time, this is not tested / programmed yet.

As an audio solution I am planning to use the Visaton K40SQ speakers, if you want to order them as well.

FPGA

The FPGA is a Xilinx Spartan 6 programmable logic chip. It runs on 1.2V with 3.3V I/O and I programmed it in VHDL.

To build the FPGA content, clone the FPGA repository, and look for the ultipetx.yz.bin, where the x.yz should be replaced with the current board version, or the highest FPGA version below the board version. This needs to be programmed into the SPI flash chip containing the configration for the FPGA.

To actually modify the code, you have to download and install the Xilinx WebISE software and open the ultipetx.yz.xise project file.

ROM

To build the boot ROM image, clone the ROM repository, and build the spiimg70m file. This needs to be programmed into the SPI flash ROM containing the 65816 boot code.

The ROM image can be built using gcc, xa65, and make. Use your favourite EPROM programmer to burn it into the SPI Flash chip.

The ROM contains images of all required ROM images for BASIC 1, 2, and 4, and corresponding editor ROMs, including some that have been extended with wedges.

The updated editor ROMs are from Steve's Editor ROM project and can handle C64 keyboards, has a DOS wedge included, and resets into the Micro-PET boot menu. For more details see the description in the ROM repository.

Case

Currently no custom case is publicly available. I just didn't have time to build / test / write up the ones I have on tinkercad. Contact me privately and I can provide you a link.

Gallery (R1.0)

The boot menu

Demo of graphics capabilities

Expansion bus

First showing the boot menu during the build process

Parts

466
QtyValueFootprintReferences
450.1ucbm_ultipet_v1:C0603C11, C12, C100, C101, C102, C103, C104, C105, C106, C107, C108, C109, C110, C111, C112, C113 +29
301N4448Diode_THT:D_DO-35_SOD27_P7.62mm_HorizontalD1, D2, D3, D12, D15, D16, D17, D27, D28, D29, D30, D31, D32, D33, D34, D35 +14
18100ncbm_ultipet_v1:C025-025X050C3, C10, C20, C28, C36, C37, C50, C51, C52, C53, C59, C60, C62, C73, C74, C76 +2
17100ncbm_ultipet_v1:C025-024X044C84, C92, C124, C131, C132, C133, C134, C135, C137, C138, C139, C141, C142, C143, C144, C145 +1
15JP1Ecbm_ultipet_v1:JP1JP1, JP2, JP3, JP4, JP6, JP8, JP9, JP11, JP12, JP15, JP17, JP18, JP22, JP23, JP25
13, , , , , , , , , , , ,
111ucbm_ultipet_v1:C0603C1, C4, C14, C49, C54, C55, C56, C57, C120, C121, C123
10100ncbm_ultipet_v1:C0603C7, C8, C63, C85, C127, C128, C152, C155, C157, C160
101ucbm_ultipet_v1:E2-5C86, C87, C90, C91, C95, C96, C115, C116, C117, C118
1022ucbm_ultipet_v1:C0805C5, C64, C65, C66, C67, C68, C69, C70, C71, C154
947ucbm_ultipet_v1:E2,5-6C6, C38, C61, C72, C75, C140, C151, C153, C156
9JP2Ecbm_ultipet_v1:JP2JP13, JP14, JP16, JP20, JP24, JP26, JP27, JP28, JP29
81N4148DO35-7cbm_ultipet_v1:DO35-7D19, D20, D21, D22, D23, D24, D25, D26
7ESDBIDIRcbm_ultipet_v1:SOD323UX5, UX6, UX8, UX10, UX11, UX14, UX15
6470cbm_ultipet_v1:0204_7R21, R32, R55, R59, R63, R67
5100ucbm_ultipet_v1:E2-5C9, C21, C98, C129, C136
510ucbm_ultipet_v1:E2-5C82, C83, C119, C122, C130
5Conn_01x01_PinConnector_PinHeader_2.54mm:PinHeader_1x01_P2.54mm_VerticalJ1, J3, J4, J5, J9
4100Kcbm_ultipet_v1:0204_7R52, R56, R60, R64
4100kcbm_ultipet_v1:0204_7R54, R58, R62, R66
410kcbm_ultipet_v1:0207_2VR9, R10, R11, R24
410kcbm_ultipet_v1:0207_10R5, R12, R74, R75
418pcbm_ultipet_v1:C0603C29, C30, C39, C40
41kcbm_ultipet_v1:0204VR18, R19, R20, R37
42200cbm_ultipet_v1:C025-025X050C161, C162, C163, C164
422000cbm_ultipet_v1:C025-025X050C78, C79, C80, C81
4220kcbm_ultipet_v1:0204_7R53, R57, R61, R65
474138NPackage_DIP:DIP-16_W7.62mm_Socket_LongPadsIC9, IC11, IC28, IC35
30.1uCapacitor_SMD:C_0603_1608MetricC165, C166, C167
3100cbm_ultipet_v1:0207_2VR26, R39, R40
3100kcbm_ultipet_v1:0207_7R77, R79, R80
310kResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR30, R47, R48
31N4148cbm_ultipet_v1:D-5D5, D6, D8
31kcbm_ultipet_v1:0207_10R45, R46, R73
333cbm_ultipet_v1:0204_7R1, R2, R4
3470cbm_ultipet_v1:0204VR13, R14, R15
374245DWPackage_SO:SOP-20_7.5x12.8mm_P1.27mmIC2, IC4, IC5
3Conn_01x09Connector_PinHeader_2.54mm:PinHeader_1x09_P2.54mm_VerticalJ10, J11, J12
20.01ucbm_ultipet_v1:C025-024X044C148, C149
2100cbm_ultipet_v1:0204VR28, R31
2100uCapacitor_THT:CP_Radial_D5.0mm_P2.00mmC158, C159
210kcbm_ultipet_v1:RN-9RN1, RN2
210kResistor_THT:R_Axial_DIN0204_L3.6mm_D1.6mm_P2.54mm_VerticalR34, R35
210kcbm_ultipet_v1:0204_5R6, R16
22T2222cbm_ultipet_v1:TO92T6, T7
22k2cbm_ultipet_v1:0204VR23, R36
22k4cbm_ultipet_v1:RN-9RN3, RN5
231-XXcbm_ultipet_v1:B3F-31XXS1, S2
2390cbm_ultipet_v1:0207_2VR17, R22
24k7cbm_ultipet_v1:0204_7R3, R27
24k7cbm_ultipet_v1:0207_10R43, R44
24u7cbm_ultipet_v1:E2,5-6C88, C89
2512k x8 10ns SRAMPackage_SO:TSOP-II-44_10.16x18.41mm_P0.8mmIC1, IC10
25k1cbm_ultipet_v1:RN-9RN4, RN6
25k1cbm_ultipet_v1:0207_2VR41, R42
268cbm_ultipet_v1:0204VR7, R8
274244DWPackage_SO:SOP-20_7.5x12.8mm_P1.27mmIC13, IC19
27474NPackage_DIP:DIP-14_W7.62mm_Socket_LongPadsIC27, IC40
274LS641Package_DIP:DIP-20_W7.62mm_Socket_LongPadsUX20, UX21
2CBMTAPEcbm_ultipet_v1:JP6P6, P7
2CD4053BPackage_SO:SOIC-16_3.9x9.9mm_P1.27mmU4, U5
2LDI1117cbm_ultipet_v1:SOT223UX3, UX17
2LM386Package_DIP:DIP-8_W7.62mm_Socket_LongPadsU6, U7
2M09-182Connector_Dsub:DSUB-9_Pins_Horizontal_P2.77x2.84mm_EdgePinOffset9.90mm_Housed_MountingHolesOffset11.32mmX7, X8
2MAX232Package_DIP:DIP-16_W7.62mm_Socket_LongPadsIC31, IC32
2PIAPackage_DIP:DIP-40_W15.24mm_Socket_LongPadsIC17, IC20
2SIDPackage_DIP:DIP-28_W15.24mm_Socket_LongPadsUX22, UX23
2SPIFLASHPackage_DIP:DIP-8_W7.62mm_Socket_LongPadsUX4, UX18
2SolderJumper_3_Bridged12Jumper:SolderJumper-3_P1.3mm_Bridged12_RoundedPad1.0x1.5mm_NumberLabelsJP5, JP21
2VIAPackage_DIP:DIP-40_W15.24mm_Socket_LongPadsIC15, IC36
2~Connector_IDC:IDC-Header_2x05_P2.54mm_VerticalP4, P9
10.01, 50Vcbm_ultipet_v1:C025-024X044C125
10.22cbm_ultipet_v1:0204_7R49
10.47cbm_ultipet_v1:C025-025X050C126
11,8432MHzcbm_ultipet_v1:SG51QG3
11.0u Cercbm_ultipet_v1:C0603C24
110cbm_ultipet_v1:0207_10R33
110kcbm_ultipet_v1:RN-8RN8
110kcbm_ultipet_v1:0207_7R78
112MHzcbm_ultipet_v1:HC49_SQ3

The 378 most common of 466 parts.

More from fachat/cbm_ultipet

2
  • 2 layers130.1 × 31 mmFootprintTest, the printed circuit board in 3D

    FootprintTest

    fachat/cbm_ultipet

    Note: this is a part of a larger set of repositories, with upetfamily as the main repository.

    11 parts3GPL-3.0
  • 2 layers40.1 × 29 mmHDMItest, the printed circuit board in 3D

    HDMItest

    fachat/cbm_ultipet

    Note: this is a part of a larger set of repositories, with upetfamily as the main repository.

    4 parts3GPL-3.0

Similar boards

  • 2 layers99.1 × 49.9 mmComm interface, the printed circuit board in 3D

    Comm interface

    ezod/rc2014-comm-interface

    RC2014 Communication Interface Module

    32 parts1
  • 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
  • 4 layers215.3 × 96.8 mmZak181, the printed circuit board in 3D

    Zak181

    agkaminski/ZAK181

    Improved ZAK180: DIY all-in-keyboard computer featuring Z180 and floppy drive.

    123 parts
  • 4 layers324.3 × 185.6 mmGriffin, the printed circuit board in 3D

    Griffin

    bradgrantham/griffin

    An M68000 homebrew SBC. See the design notes.

    305 partsApache-2.0
  • 6 layers244 × 244 mmRetroslop, the printed circuit board in 3D

    Retroslop

    CPTforever/8088-MicroATX-Computer

    A 8088 based, IBM 5150 like computer compatible with the MicroATX motherboard form factor.

    193 parts
  • 4 layers98.7 × 99.4 mmProject pi, the printed circuit board in 3D

    Project pi

    siliconvalleyar-oss/kicad_preview

    KiCad Preview - Flutter viewer for KiCad schematics and PCBs

    368 parts
  • 2 layers160 × 99.9 mmDAISY256, the printed circuit board in 3D

    DAISY256

    lynchaj/duodyne

    Duodyne is a hobbyist retrocomputer system designed to run ROMWBW. It is comprised of modules on a system bus

    97 parts15
  • 2 layers216.6 × 144 mm6502 Computer, the printed circuit board in 3D

    6502 Computer

    DomAtTheShack/6502-Breadboard-ROM

    75 parts

Questions

How big is the Cbm ultipet v1 PCB?

It measures 389.8 × 179.5 mm and has 4 copper layers, 1.6 mm thick.

What parts does the Cbm ultipet v1 use?

466 parts, built around the MAX232N, LM386, CD4053BE and LDI1117-3.3H. 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 Cbm ultipet v1 KiCad files?

From the fachat/cbm_ultipet repository on GitHub, at the commit this page was made from: the board is Board/cbm_ultipet_v1.kicad_pcb and its schematic Board/A%2fV.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Cbm ultipet v1 design in my own project?

Its repository publishes it under the GPL-3.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).