CR2021 CPU v2
derpflanz·castle-runner·ComputerDesigns/CR2021_CPU_v2/CR2021_CPU_v2.kicad_pcb
About the CR2021 CPU v2 PCB
CR2021 CPU v2 is an open source AVR/Arduino PCB design by derpflanz, published on GitHub. It is a 2-layer board measuring 178.4 × 115.6 mm, with 43 components from 35 distinct parts.
Its main chip is the ATmega328-P, from the AVR/Arduino family. Other key parts include the LM324, 74HCU04, 7400, 74LS163 and W65C22NxP. By type, the board carries 8 ICs, 3 capacitors, 3 resistors, 2 connectors, 1 crystal and 1 speaker.
From the project
This is my hobby project in making a 6502 based 8-bit computer from scratch. The end goal is to have it run Castle Runner, a game I made many moons ago.
This is my hobby project in making a 6502 based 8-bit computer from scratch. The end goal is to have it run Castle Runner, a game I made many moons ago.
Castle Runner is built from scratch, including the assembler (new version, written in C). I created my own assembly language dialect to assemble the machine language code. That ML can then be written to a EEPROM. For which I built my own EEPROM programmer.
Main components on the CR2021 CPU v2
CR2021 CPU v2 bill of materials (BOM)
43 components, 35 distinct parts.
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 2 | LM324 | DIP-14_W7.62mm | U1, U7 |
| 1 | 74HCU04 | DIP-14_W7.62mm | U2 |
| 2 | 7400 | DIP-14_W7.62mm | U3, U4 |
| 1 | 74LS163 | DIP-16_W7.62mm | U5 |
| 1 | ATmega328-P | DIP-28_W7.62mm | U6 |
| 1 | W65C22NxP | DIP-40_W15.24mm | U8 |
| 1 | Crystal 8MHz | Crystal_HC18-U_Vertical | Y1 |
| 1 | Conn_02x06_Odd_Even | PinHeader_2x06_P2.54mm_Vertical | J1 |
| 1 | Atmega328 Programmer Interface | IDC-Header_2x03_P2.54mm_Vertical | J3 |
| 4 | 74LS273 | DIP-20_W7.62mm | $4002, $4003, OUT1, OUT2 |
| 1 | DATABUS_8BIT | PinHeader_1x08_P2.54mm_Vertical | BUS1 |
| 1 | ADDRBUS_16BIT | PinHeader_1x16_P2.54mm_Vertical | BUS2 |
| 1 | Display | PinHeader_1x16_P2.54mm_Vertical | CONN5 |
| 1 | +5V | PinHeader_1x02_P2.54mm_Vertical | CONN6 |
| 1 | ADDRSEL_IN | PinHeader_1x06_P2.54mm_Vertical | CONN7 |
| 1 | ADDRSEL_OUT | PinHeader_1x06_P2.54mm_Vertical | CONN8 |
| 1 | WD65C02S | DIP-40_W15.24mm | CPU1 |
| 2 | 74LS540 | DIP-20_W7.62mm | IN1, IN2 |
| 2 | 74LS138 | DIP-16_W7.62mm | IN_DEMUX1, OUT_DEMUX1 |
| 1 | Speaker | PinHeader_1x02_P2.54mm_Vertical | LS1 |
Show 15 more
| Qty | Part | Footprint | Refs |
|---|---|---|---|
| 1 | R/!W | PinHeader_1x01_P2.54mm_Vertical | PIN1 |
| 1 | !IO_Active | PinHeader_1x01_P2.54mm_Vertical | PIN2 |
| 1 | EXT_CLK | PinHeader_1x01_P2.54mm_Vertical | PIN_CLK1 |
| 1 | 32 kB RAM | DIP-28_W15.24mm | RAM1 |
| 1 | ROM ZIF Socket | DIP-28_W15.24mm | ROM1 |
| 1 | 10k | Potentiometer_Piher_PT-10-V10_Vertical | RPOT1 |
| 1 | 10M | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R_CLK1 |
| 1 | 22 | R_Axial_DIN0207_L6.3mm_D2.5mm_P10.16mm_Horizontal | R_CLK2 |
| 1 | RESET | SW_Tactile_Straight_KSL0Axx1LFTR | SW1 |
| 1 | IO_Active | LED_D3.0mm | D1 |
| 2 | 22pF | CP_Radial_Tantal_D4.5mm_P2.50mm | C1, C2 |
| 1 | 100uF | CP_Radial_D6.3mm_P2.50mm | C3 |
| 1 | 1k | R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R1 |
| 1 | 330 | R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R2 |
| 1 | 3.3k | R_Axial_DIN0204_L3.6mm_D1.6mm_P5.08mm_Horizontal | R3 |
CR2021 CPU v2 design files
The KiCad project lives in the derpflanz/castle-runner repository on GitHub; these links point at the commit this page was built from.
CR2021 CPU v2: common questions
What microcontroller does the CR2021 CPU v2 use?
The CR2021 CPU v2 is built around the ATmega328-P, from the AVR/Arduino family.
How big is the CR2021 CPU v2 PCB?
The CR2021 CPU v2 measures 178.4 × 115.6 mm, has 2 copper layers and is 1.6 mm thick.
How many components are on the CR2021 CPU v2?
43 components, from 35 distinct parts. The full bill of materials is listed on this page.
Where can I download the CR2021 CPU v2 design files?
From the derpflanz/castle-runner repository on GitHub, which has the KiCad layout and the schematic; the links under Design files point to each one.
Can I use the CR2021 CPU v2 design in my own project?
The repository has no license, so all rights stay with derpflanz. Use it as a reference, and ask the author before reusing the design.
Can I test firmware for the CR2021 CPU v2 without the hardware?
Yes. HardLabs builds a simulation of the board from its netlist and BOM, so you can run and debug AVR/Arduino firmware against it before you order a PCB.
More boards in castle-runner
Similar boards
AVR/Arduino
Redox keyboard
mattdibi
162.2 × 126.5 mm77 parts2LMIT2.0kAVR/Arduino
ModuleV450
stuartpittaway
30 × 61.4 mm39 parts2LCC-BY-NC-4.01.1kAVR/Arduino
V4
stuartpittaway
30 × 50 mm38 parts2LCC-BY-NC-4.01.1kAVR/Arduino
Discipline
coseyfannitutti
304.9 × 122.8 mm170 parts2LCC-BY-NC-4.01.0kAVR/Arduino
Megadesk
gcormier
41.7 × 32.2 mm23 parts2LGPL-3.0818AVR/Arduino
Easyduino Atmega Nano
Hanqaqa
43.4 × 18 mm30 parts4LCERN-OHL-P-2.0746