

Nanoaltair
Pocket sized Altair 8800 clone, with blinking lights.
- Size
- 85.6 × 53.8 mm
- Copper layers
- 2
- Thickness
- 1.6 mm
- Parts
- 104
- Nets
- 124
- Pads
- 408
- Tracks, vias
- 864, 135
- Pours
- 2
- Routed
- Yes
- KiCad
- KiCad 5 (file 20171130)
- Created
- 3 Apr 2021
- Updated
- 26 Nov 2021
Overview
Nanoaltair is an open-source printed circuit board by dankar, from the dankar/nanoaltair8800 repository on GitHub. It is a 2-layer board of 85.6 × 53.8 mm with 104 parts on 124 nets, routed with 864 tracks and 135 vias.
It is built around the 74HC595 and TLV1117-33DCY. Its parts include 42 resistors, 33 diodes, 10 switches, 9 capacitors and 6 ICs. It belongs with the STM32 boards of this library.
Main components
2README
README.mdnanoAltair
This is a continuation and remake of my old Altair8800 project (https://github.com/dankar/altair8800)
The Intel 8080 emulation is much improved, the PCB is credit card sized and it contains all the processing power required on board. Micro USB connector provides power, serial port and firmware updates.
This is still a work in progress, and there might be both hardware and software bugs. This documentation should be accurate, but there might be changes that haven't been added to the documentation yet. If in doubt, check the code and build scripts.

License
Hardware design and code is covered by the LICENSE.md file. Files under software/stm32cube are generated by STM32CubeMX and subject to their own license.
Firmware update
The current firmware build can be shown by connecting to the USB virtual com port and pressing the examine button while the stop button is being held down. The build version and timestamp will then be printed over the com port.
Firmware update can be initiated by connecting via USB and then pressing the reset button while the stop button is being held down. The device will then appear as a DFU device and firmware update can proceed. STM32 DFU driver might have to be installed on your PC.
Basic operation
The stop and run buttons will change between stopped and running modes. When in running mode the CPU will continually fetch new instructions and execute them. No buttons except for stop will have any effect.
When in stopped mode the rest of the buttons can be used. Reset will completely reset all memory, and parse the configuration file again, reopening any disk files and load any ROMs.
Examine will read the state of the DIP switches and load that address in ROM/RAM. The address LEDs will be updated to show this address and the data LEDs will show the byte stored in that address. Examine next will increment the address being examined by one.
Deposit and deposit next will put the low byte of the DIP switches into the currently examined address location, or the next address location respectively.
Step will execute one instruction and then return to stopped mode. Note that this differs from the original Altair, where the step switch executed one machine cycle.
SD card
The SD card needs to be formatted with a FAT file system. Both FAT32 and exFAT is fine. Long file names are supported, but everything probably works best if no special characters are used in filenames.
Configuration file
Upon reset the emulator will try to find "altair.cfg" in the root of the SD-card. This will then be parsed to determine the setup and optional other files to be loaded. Each line in the configuration file is one setting, except for empty lines or line beginning with #, which are for comments.
A setting consists of first a name for the setting, then an equal sign and lastly the value of the setting.
The configuration file is read top-down and if there are duplicates of any setting, the last one will apply. The default_path setting is special since it affects file loading during the parsing of the configuration file and will be active until another value is set as the default path.
Do note that it is perfectly possible to start the emulator without a valid configuration file, and even without an SD card inserted. The emulator will warn about this by flashing the front panel lights in a sequence, but after this data can be input via the front panel. Since no port I/O will be setup without a configuration, the functionality is very limited in this mode.
Settings
default_path = [path]
This can be used to set a path prefix for any subsequent file loads. It is entirely optional as the full paths to the files can be specified instead. Setting this setting to a value of "." will set the root folder as default.
disk[0-3] = [path/filename.ext]
This command is used to load a file as a virtual floppy disk. A maximum number of four disks can be mounted at the same time, using settings disk[0], disk[1], disk[2] and disk[3]. The disks will be available through the emulated 88-DCDD device.
tape = [path/filename.ext]
Used to mount a file as a tape, attached to serial port two of the emulated 88-2SIO device.
port[HEX] = [port_name]
Used to assign specific input/output functions to specific port number. The port numbers are specified in hexadecimal numbers, without any prefix or suffix.
The following port names are available:
serial1_control
Control/status for serial port one of the 88-2SIO.
serial1_data
Data in/out for serial port one of the 88-2SIO
serial2_control
Control/status for serial port two of the 88-2SIO.
serial2_data
Data in/out for serial port two of the 88-2SIO. Note that this data port is by default connected to any mounted tape file, making it possible to load program from tape by loading from serial port two.
sense_sw
Port input for the front panel sense switches. These should always be on port FF.
floppy_select_status
Select/status functions of the 88-DCDD disk drive.
floppy_function_sector
Function/sector functions of the 88-DCDD disk drive.
floppy_data
Data input/output functions of the 88-DCDD disk drive.
vic
Control function for the 88-VI/RTC, combined vectored interrupt and RTC controller.
rom[HEX] = [path/filename.ext]
Used to specify a ROM to be loaded at an offset in memory specified by a hexadecimal offset. Any loaded ROMs will be disabled as soon as any data in or out is detected on port FF. After this, all 64k of RAM are available.
start_address = [HEX]
This specifies the address that the CPU will be waiting on after a reset.
run_state = [true/false]
This specifies whether the CPU should start halted or if it should start executing directly after a reset.
rtc_divider = [number]
This specifies how to divide the 60 Hz clock running the RTC interrupt on the vectored interrupt controller. Setting this to 1 will generate an interrupt 60 times a second.
rtc_interrupt_line = [number]
This sets which interrupt line on the vectored interrupt controller to use for the RTC.
serial1_interrupt_line = [number]
This sets which interrupt line on the vectored interrupt controller to use for the first serial port.
Example configuration
# Use cpm22 as default path
default_path = cpm22
# Load bootable cpm image as disk0
disk[0] = cpm63k.dsk
# Load games as disk1
disk[1] = games.dsk
# Change default path to the folder with tapes
default_path = tapes
# Load a tape with extended basic
tape = extbasic.tap
# Load some ROMs that we want to have
#
# turmonh is the Turnkey Monitor, with the added command H, for
# loading Intel Hex files via the monitor.
#
# mble is the bootloader for loading programs from tape
#
# dbl is the disk bootloader.
#
default_path = romsBooting from disk
Using the above example configuration, the system can be booted from disk[0] by first entering FF00 on the front switches, then pressing examine to go to that offset (the start of the DBL ROM) and then hitting run. The terminal will be on serial port one, available via the USB virtual com port.
Booting from tape
Using the above example configuration, extended basic can be loaded from tape by first entering FE00 on the front switches, and pressing examine to go to that offset. The CPU will now be halted at the beginning of the MBL bootloader. Before hitting run, make sure to set up the sense switches (A15-A8) as needed.
In this case we set the lower three switches to 110 to tell the bootloader to load tape from serial port two (001 would load tape from the USB virtual com port) and the high four switches to 0001 so that BASIC will know to use serial port one as terminal. After this we can press run and BASIC will be loaded from tape.
Building the firmware
Project is built with cmake:
apt install cmake git zip gcc gcc-arm-none-eabi make
mkdir build
cd build
cmake ..
make -jAlternatively, you can use docker to build by simply running:
./build.sh allAnd if you want a packaged release, run:
./build.sh create_releaseParts
104| Qty | Value | Footprint | References |
|---|---|---|---|
| 32 | R | Resistor_SMD:R_0805_2012Metric | R10, R11, R12, R13, R14, R15, R16, R17, R18, R19, R20, R21, R22, R23, R24, R25 +16 |
| 8 | 10 | Resistor_SMD:R_0805_2012Metric | R1, R36, R37, R38, R39, R40, R41, R42 |
| 5 | 100n | Capacitor_SMD:C_0805_2012Metric | C5, C6, C7, C8, C9 |
| 4 | 74HC595 | Package_SO:SO-16_3.9x9.9mm_P1.27mm | U3, U4, U5, U6 |
| 2 | 10u | Capacitor_SMD:C_0805_2012Metric | C1, C2 |
| 1 | 10k | Resistor_SMD:R_0805_2012Metric | R3 |
| 1 | 1u | Capacitor_SMD:C_0805_2012Metric | C3 |
| 1 | 22 | Resistor_SMD:R_0805_2012Metric | R2 |
| 1 | 4.7u | Capacitor_SMD:C_0805_2012Metric | C10 |
| 1 | ADDRESS1 | LED_SMD:LED_0805_2012Metric | D16 |
| 1 | ADDRESS10 | LED_SMD:LED_0805_2012Metric | D15 |
| 1 | ADDRESS11 | LED_SMD:LED_0805_2012Metric | D13 |
| 1 | ADDRESS12 | LED_SMD:LED_0805_2012Metric | D11 |
| 1 | ADDRESS13 | LED_SMD:LED_0805_2012Metric | D9 |
| 1 | ADDRESS14 | LED_SMD:LED_0805_2012Metric | D7 |
| 1 | ADDRESS15 | LED_SMD:LED_0805_2012Metric | D5 |
| 1 | ADDRESS16 | LED_SMD:LED_0805_2012Metric | D3 |
| 1 | ADDRESS2 | LED_SMD:LED_0805_2012Metric | D14 |
| 1 | ADDRESS3 | LED_SMD:LED_0805_2012Metric | D12 |
| 1 | ADDRESS4 | LED_SMD:LED_0805_2012Metric | D10 |
| 1 | ADDRESS5 | LED_SMD:LED_0805_2012Metric | D8 |
| 1 | ADDRESS6 | LED_SMD:LED_0805_2012Metric | D6 |
| 1 | ADDRESS7 | LED_SMD:LED_0805_2012Metric | D4 |
| 1 | ADDRESS8 | LED_SMD:LED_0805_2012Metric | D2 |
| 1 | ADDRESS9 | LED_SMD:LED_0805_2012Metric | D17 |
| 1 | AddHigh | nanoaltair:CT3121CT-ND | SW2 |
| 1 | AddLow | nanoaltair:CT3121CT-ND | SW1 |
| 1 | Conn_01x09 | nanoaltair:EdgeConn1x09 | J1 |
| 1 | D | Diode_SMD:D_SOD-323 | D1 |
| 1 | DATA1 | LED_SMD:LED_0805_2012Metric | D32 |
| 1 | DATA2 | LED_SMD:LED_0805_2012Metric | D30 |
| 1 | DATA3 | LED_SMD:LED_0805_2012Metric | D28 |
| 1 | DATA4 | LED_SMD:LED_0805_2012Metric | D26 |
| 1 | DATA5 | LED_SMD:LED_0805_2012Metric | D24 |
| 1 | DATA6 | LED_SMD:LED_0805_2012Metric | D22 |
| 1 | DATA7 | LED_SMD:LED_0805_2012Metric | D20 |
| 1 | DATA8 | LED_SMD:LED_0805_2012Metric | D18 |
| 1 | Deposit | Button_Switch_SMD:SW_SPST_TL3342 | SW9 |
| 1 | Deposit Next | Button_Switch_SMD:SW_SPST_TL3342 | SW10 |
| 1 | Examine | Button_Switch_SMD:SW_SPST_TL3342 | SW7 |
| 1 | Examine Next | Button_Switch_SMD:SW_SPST_TL3342 | SW8 |
| 1 | Micro_SD_Card_Det | Connector_Card:microSD_HC_Hirose_DM3BT-DSF-PEJS | J4 |
| 1 | Polyfuse | Resistor_SMD:R_1206_3216Metric | F1 |
| 1 | Reset | Button_Switch_SMD:SW_SPST_TL3342 | SW6 |
| 1 | Run | Button_Switch_SMD:SW_SPST_TL3342 | SW4 |
| 1 | STATUS1 | LED_SMD:LED_0805_2012Metric | D33 |
| 1 | STATUS2 | LED_SMD:LED_0805_2012Metric | D31 |
| 1 | STATUS3 | LED_SMD:LED_0805_2012Metric | D29 |
| 1 | STATUS4 | LED_SMD:LED_0805_2012Metric | D27 |
| 1 | STATUS5 | LED_SMD:LED_0805_2012Metric | D25 |
| 1 | STATUS6 | LED_SMD:LED_0805_2012Metric | D23 |
| 1 | STATUS7 | LED_SMD:LED_0805_2012Metric | D21 |
| 1 | STATUS8 | LED_SMD:LED_0805_2012Metric | D19 |
| 1 | STM32L496RETx | Package_QFP:LQFP-64_10x10mm_P0.5mm | U2 |
| 1 | Step | Button_Switch_SMD:SW_SPST_TL3342 | SW5 |
| 1 | Stop | Button_Switch_SMD:SW_SPST_TL3342 | SW3 |
| 1 | TLV1117-33 | Package_TO_SOT_SMD:SOT-223-3_TabPin2 | U1 |
| 1 | USB_B_Micro | Connector_USB:USB_Micro-B_Amphenol_10103594-0001LF_Horizontal | J2 |
Similar boards
- 2 layers155 × 80 mm

- 2 layers124 × 112 mm

- 2 layers393.5 × 153.7 mm

- 2 layers105 × 33 mm

- 4 layers18 × 51 mm

- 4 layers100 × 50 mm

- 2 layers43.3 × 37.6 mm

ZBSmartMeter
Tropaion/ZigBee_SmartMeter_Reader
This is a ZigBee device to collect data from smartmeters using the DLMS/COSEM protocol.
37 parts32GPL-3.0 - 4 layers65 × 100 mm

Questions
How big is the Nanoaltair PCB?
It measures 85.6 × 53.8 mm and has 2 copper layers, 1.6 mm thick.
What parts does the Nanoaltair use?
104 parts, built around the 74HC595 and TLV1117-33DCY. 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 Nanoaltair KiCad files?
From the dankar/nanoaltair8800 repository on GitHub, at the commit this page was made from: the board is hardware/nanoaltair.kicad_pcb. PCBKit opens the board in the browser, with nothing to install.
Can I use the Nanoaltair design in my own project?
Its repository states no licence, so its author keeps all rights: ask dankar before reusing the design.