SIO2IDE

Year
2002
Type
DIY project
Category
SIO hard disk / CF / CD-ROM interface
Manufacturer
MMSoft (Marek Mikołajewski), Gdańsk; later builds sold by Mega-Hz
A green SIO2IDE 4.x circuit board with an Atmel ATmega32 microcontroller, a 40-pin IDE header along one edge, an unpopulated USB section, jumpers, a crystal and red and green status LEDs.

Overview

SIO2IDE takes the opposite approach to parallel-bus hard disks like MyIDE or the KMK/JŻ IDE. Instead of wiring a drive onto the computer's bus, it puts a microcontroller between an IDE drive and the SIO port. To the Atari it looks like a stack of ordinary floppy drives, so it works with any OS, any DOS and any model from the 800 to the 130XE. Other SIO devices can share the chain, including a second SIO2IDE set as slave.

The clever part is on the disk side. SIO2IDE reads a PC-formatted FAT16 or FAT32 disk and serves .ATR image files from it. You prepare the disk on a PC by copying ATRs and a small text config file, then plug it into the Atari. From version 3.0 it also reads ISO9660 CD-ROMs through ATAPI.

The designer was Marek Mikołajewski (MMSoft) of Gdańsk, Poland. Development ran from 2001 to 2005; version 3.0 is dated March 2002. Later 4.x versions added a USB mode that exposes the disk to a Windows PC as a mass-storage device. Wolfram Fischer (Mega-Hz) offered a version 3.3 build.

Hardware

Item Detail
Microcontroller Atmel ATmega161-8 (16 KB flash, 1 KB RAM), 7.3728 MHz crystal
Other parts 10 µF and 2 × 30 pF capacitors, 4 × 330 Ω LED resistors, 4.7 kΩ, IDC40 IDE header, 3 jumpers
LEDs PWR, SIO (command received), BSY (busy/error), IDE (bus activity)
Jumpers HD1_ZW (D1: on/off), INIT_ZW (swap D1:/D2:), MS_ZW (master/slave interface)
IDE full 16-bit, CHS and LBA, ATA disks, CF cards, ATAPI CD-ROM
SIO 19,200 bit/s standard; later firmware added US Doubler/Happy high speed (~52 kbit/s)
Drives emulated D1:–D7: in v3.0 (reduced from 8 in v2.1 to free space for new features)
ISP header 8-pin in-system programming connector for firmware updates

SIO wiring (SIO2IDE connector → Atari SIO): pin 1 → SIO 5 (computer Data Out), pin 2 → SIO 3 (computer Data In), pin 3 → SIO 7 (Command), pins 5/6 → SIO 4 (GND), pin 7 → SIO 10 (+5 V). Pin 4 is a Reset_Out line that is held low during start-up while D1: is enabled.

A 2.5" laptop drive is recommended because it runs from +5 V alone and draws little power. That makes an internal installation practical. A 44-to-40-pin adapter connects it to the IDE header.

Preparing the disk

  1. Partition and format the drive under DOS or Windows 9x. Only the primary partition is used. Supported types are $04 and $06 (FAT16), $0C (FAT32 LBA), and ISO9660 for CDs.
  2. Copy your .ATR images. Each must have a valid 16-byte header and be defragmented (the interface ignores fragmented files). Run defrag.exe after copying.
  3. Put a SIO2IDE.CFG text file (512 bytes max) in each folder you want to use. Lines look like D1=MDOS453, with the drive number 1–7 and the ATR name without extension, in capitals, starting in column 1.
  4. On power-up the interface always starts from the root folder. Use FDISK.COM on the Atari to change folders, browse ATRs, assign images to drives, mark them read-only and save the config. Choose Master or Slave first if you have two interfaces.

The PC utilities CHECKFS.EXE (checks a disk's layout; it doesn't work through USB-attached drives) and MAKEATR.EXE (creates blank ATRs, which you then format in an emulator) complete the kit. The AVR is programmed from the supplied SIO2IDE.HEX with AVRPGR.

Pitfalls

  • Long filenames aren't supported. Use 8.3 names on FAT, and LFN-only files on CDs are invisible.
  • An ATR stored in a folder without a config file can't be used.
  • Fragmented images simply don't appear, so re-run defrag whenever you add files.
  • ATAPI CD-ROMs are read-only, so the read-only/read-write toggle doesn't apply to them.

Using it today

SIO2IDE was soon overtaken by SD-card devices such as SIO2SD and SDrive, which follow the same principle with smaller media. But it pioneered the idea of serving ATR files from a PC filesystem over SIO, and CompactFlash cards in a CF-to-IDE adapter make it a quiet, practical build even now. SpartaDOS X users can drive it with DLT's S2I add-on.

Credits