Skip to the content
2 layersTop octave, the printed circuit board in 3D

Top Octave Divider with AVR ATtiny4 or ATtiny13

Copper layers
2
Thickness
1.6 mm
Parts
41
Nets
65
Pads
189
Tracks, vias
0, 0
Routed
Not yet
KiCad
KiCad 8.0 (file 20240108)
Created
17 Nov 2025
Updated
20 Feb 2026

Overview

Top octave is an open-source printed circuit board by lhondareyte, from the lhondareyte/TopOctaveDivider repository on GitHub, published under the MIT licence. It is a 2-layer board with 41 parts on 65 nets.

It is built around the ATTINY4-TSH and 74HC04D. Its parts include 21 capacitors, 16 ICs, 2 resistors, 1 connector and 1 crystal. It belongs with the AVR (ATmega, ATtiny) and NXP (LPC, Kinetis, i.MX RT) boards of this library.

Main components

2

README

README.md

Top Octave Frequency generator

An attempt to build a top octave divider. This can also be used to make any static prescaler.

Restrictions

DC Characteristics

Original MOSTEK chips require a supply voltage of ~15v (Max 16v). Input clock voltage must be between 0v and Vss -1v min. To avoid this, a TTL compatible master clock is include in schematic (Typical clock frequency is 2.00024 MHz).

Duty cycle

MOSTEK chips differs in their number of dividers and duty cycle :

  • MK50240 : 50% - 13 dividers (239 to 478)
  • MK50241 : 30% - 13 dividers (239 to 478)
  • MK50242 : 50% - 12 dividers (239 to 451)

This emulation only generate a (almost) 50% duty cycle. Thereby, MK50241 model is not supported since the timbre will be affected.

Power consumption

Original MOSTEK chips sink 24mA@15V : 0.36w Typ. (Max 37mA@15V = 0.56W). You need 13 attiny4/13 to emulate a MK50240 (12 for a MK50242). Total power consumption for 13 ATtiny13 is about 30mA@5V (Not include clock circuitry).

TODO

  • Support 30% duty cycle

Other use

The script genedivider.pl can be use to generate assembly code for any static prescaler. For example, to build a by 42 prescaler:

text
./genedivider.pl 42 > divide.S

If an overflow/underflow occurs you can try to adjust $loop variable:

text
./genedivider.pl 10000 200 > divide.S

Warning, the script do not check the generated code size.

Programming the attiny4

The ATtiny4 require a programmer that is compatible with the TPI mode (Tiny Programming Interface).

To flash one divider with avrdude, connect the attiny to the programmer as follow:

text
 USBASP               ATTINY
   +5v <-------------> +5v     (pin 5)
   gnd <-------------> gnd     (pin 2)
 reset <-------------> reset   (pin 6)
  MOSI <-------------> TPIDATA (pin 1)
   CLK <-------------> TPICLK  (pin 3)

then

text
avrdude -c usbasp -p t4 -U flash:w:437.hex

and apply fuse configuration

text
avrdude -c usbasp -p t4 -U BYTE0:w:0xfa:m

Parts

41
QtyValueFootprintReferences
19100nResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderC3, C4, C5, C6, C10, C11, C12, C13, C14, C15, C16, C17, C18, C19, C22, C23 +3
12ATtiny4-TSPackage_TO_SOT_SMD:SOT-23-6U2, U3, U4, U5, U7, U8, U9, U10, U12, U13, U14, U15
24504Package_SO:SO-16_3.9x9.9mm_P1.27mmU6, U11
110MResistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR1
12MHzPackage_TO_SOT_SMD:SOT-89-5Y1
139pCapacitor_SMD:C_1206_3216MetricC1
14k7Resistor_SMD:R_0805_2012Metric_Pad1.20x1.40mm_HandSolderR2
168pCapacitor_SMD:C_1206_3216MetricC2
174HC04Package_SO:SOIC-14_3.9x8.7mm_P1.27mmU1
1DIP-16Package_DIP:DIP-16_W7.62mm_SocketJ1
1uA7805Package_TO_SOT_SMD:SOT-223U16

Similar boards

  • 2 layers22 × 13 mmSl56660, the printed circuit board in 3D

    Sl56660

    sittner/sl56660

    The Fairchild SL56660 is one of the small set of logic building blocks the Cray-1 supercomputer (1976) was made of: a dual NAND gate (one 5-input, one 4-input) with complementary outputs, implemented in emitter-coupled…

    25 partsCERN-OHL-W-2.0
  • 2 layers15.2 × 10.2 mmCrw-005, the printed circuit board in 3D

    Crw-005

    caitlynrw/crw-pcbs

    PCBs made by me

    4 parts1
  • 2 layers16 × 11 mmMotorback x2, the printed circuit board in 3D

    Motorback x2

    goktugh/robotbits

    Some bits for robots or other control applications

    13 parts
  • 2 layers43.9 × 27.7 mmTcd1304-4v, the printed circuit board in 3D

    Tcd1304-4v

    OpnTec/open-spectrometer-hardware

    Open source VIS spectrometer

    19 parts1.5k
  • 2 layers191.8 × 121.3 mm8-Bit CPU 32k, the printed circuit board in 3D

    8-Bit CPU 32k

    slu4coder/Minimal-UART-Computer-1-2

    Legacy: Version 1 and 2 of my TTL-only CPU featuring UART I/O, an expansion port, 512KB SSD at up to 10MHz clock speed

    109 parts184
  • 2 layers47 × 39 mmQrss clock tx, the printed circuit board in 3D

    Qrss clock tx

    swharden/AVR-projects

    A collection of standalone AVR projects written in C

    32 parts184MIT
  • 2 layers312 × 140 mmTsynth2 Rev1.3, the printed circuit board in 3D

    Tsynth2 Rev1.3

    Electrotechnique/TSynth-Teensy4.1

    TSynth for Teensy 4.1

    108 parts182
  • 2 layers138 × 96.9 mmISA Card, the printed circuit board in 3D

    ISA Card

    AkBKukU/CM153-Repro

    A reproduction of the Philips CM-153 LMSI controller

    161 parts145

Questions

What parts does the Top octave use?

41 parts, built around the ATTINY4-TSH and 74HC04D. 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 Top octave KiCad files?

From the lhondareyte/TopOctaveDivider repository on GitHub, at the commit this page was made from: the board is cad/top-octave.kicad_pcb and its schematic cad/top-octave.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the Top octave 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).