Commodore 1581

From Wikipedia, the free encyclopedia
Jump to: navigation, search
Commodore 1581

The Commodore 1581 is a 3½ inch double-sided double-density floppy disk drive that was first made by Commodore Business Machines (CBM) in 1987, primarily for its C64 and C128 home/personal computers. The drive stores 800 kilobytes using an MFM encoding[1] but format different from MS-DOS (720 kB), Amiga (880 kB), and Mac Plus (800 kB) formats. With special software it's possible to read C1581 disks on an x86 PC system, and likewise, read MS-DOS and other formats of disks in the C1581 (using Big Blue Reader), provided that the PC or other floppy handles the "720 kB" size format.[1] This capability was most frequently used to read MS-DOS disks. The drive was released in the summer of 1987 and quickly became popular with bulletin board system (BBS) operators and other users.

Like the 1541 and 1571, the 1581 has an onboard MOS Technology 6502 CPU with its own ROM and RAM, and uses a serial version of the IEEE-488 interface. Inexplicably, the drive's ROM contains commands for parallel use, although no parallel interface was available. Unlike the 1571, which is nearly 100% backward-compatible with the 1541, the 1581 has limited compatibility with Commodore's earlier drives. Although it responds to the same DOS commands, most disk utilities written prior to 1987--most notably fast loaders--are so 1541-specific that they do not work with the 1581.

The version of Commodore DOS built into the 1581 added support for partitions, which could also function as fixed-allocation subdirectories. PC-style subdirectories were rejected as being too difficult to work with in terms of block availibility maps, then still much in vogue, and which for some time had been the traditional way of inquiring into block availability. When used together with the C128, it implements faster burst mode access than the Commodore 1571 5¼" drive. When using the 1581 together with the C64, however, it is almost as slow as the 1541 drive, due to limitations of the C64's ROM code. The 1581 provides a total of 3160 blocks free when formatted (a block being equal to 256 bytes). The number of permitted directory entries was also increased, to 296 entries. With a storage capacity of 800 kB, the 1581 is the highest-capacity serial-bus drive that was ever made by Commodore (the 1-MB SFD-1001 uses the parallel IEEE-488), and the only 3½" one. However, starting in 1991, Creative Micro Designs (CMD) made the FD-2000 high density (1.6 MB) and FD-4000 extended density (3.2 MB) 3½" drives, both of which offered not only a 1581-emulation mode but also 1541- and 1571-compatibility modes.

Like the 1541 and 1571, a nearly identical job queue is available to the user in zero page (except for job 0), providing for exceptional degrees of compatibility.

Unlike the cases of the 1541 and 1571, the low-level disk format used by the 1581 is similar enough to the MS-DOS format as the 1581 is built around a WD1770 FM/MFM floppy controller chip. PC floppy controllers directly connected via the ISA-bus or onboard, but not standalone USB floppy drives, are able to deal with the 1581 format without need for any special tricks. Thus, utilities to format, read, and write 1581-format disks in standard PC floppy drives under Linux and Microsoft Windows exist. This controller chip, however, was the seat of some early problems with 1581 drives when the first production runs were recalled due to a high failure rate; the problem was quickly corrected. Later versions of the 1581 drive have a smaller, more streamlined-looking external power supply provided with them.

Specifications[edit]

Quantity Value
Onboard CPU MOS Technology 6502 @ 2 MHz
RAM 8 kB
ROM 32 kB
Transfer protocols Standard and fast serial; burst mode; and commands for parallel interface (the latter not used)
Disk type 3,5" inch
Storage format MFM, double density, double-sided
Interface CBM's proprietary serial IEEE-488
Power 5 V @ 1 A (5 VA)
12 V @ 0.5 A (6 VA)

This article is based on material taken from the Free On-line Dictionary of Computing prior to 1 November 2008 and incorporated under the "relicensing" terms of the GFDL, version 1.3 or later.

1581 Image Layout[edit]

The 1581 disk has 80 logical tracks, each with 40 logical sectors (the actual physical layout of the diskette is abstracted and managed by a hardware translation layer). The directory starts on 40/3 (track 40, sector 3). The disk header is on 40/0, and the BAM (block availability map) resides on 40/1 and 40/2.

Header Contents

$00–01 T/S reference to first directory sector (40/3)
    02 DOS version ('D')
 04-13 Disk Label, $A0 padded
 16-17 Disk ID
 19-1A DOS type ('3D')

BAM Contents, 40/1

$00–01 T/S to next BAM sector (40/2)
    02 DOS version ('D')
 04-05 Disk ID
    06 I/O byte
    07 Autoboot flag
 10-FF BAM entries for Tracks 1-40

BAM Contents, 40/2

$00–01 00/FF
    02 DOS version ('D')
 04-05 Disk ID
    06 I/O byte
    07 Autoboot flag
 10-FF BAM entries for Tracks 41-80

See also[edit]

References[edit]

  1. ^ a b tds.net - 1581 DISK DRIVE DIAGNOSTICS, latest updates and corrections 7-13-05

External links[edit]