Disco nel drive
Trascina qui file PRG o SEQ per scriverli sul disco
La XUM1541 è un piccolo adattatore USB che collega un drive 1541, 1571 o 1581 a un computer moderno. Con lei puoi salvare in un'immagine D64 i dischi che hai nel cassetto da quarant'anni, prima che si smagnetizzino, oppure scrivere sui floppy veri i giochi e le demo scaricati da internet.
In questa pagina trovi il programma per usarla direttamente dal browser e la guida completa: com'è fatta, come costruirla con un Arduino Pro Micro, come caricare il firmware e installare i driver.
Con il nostro firmware RFIEC la stessa scheda fa anche il contrario: il C64 vede il PC come un drive o come una stampante, e non serve nessun driver.
The XUM1541 is a small USB adapter that connects a 1541, 1571 or 1581 drive to a modern computer. With it you can save the disks that have been sitting in your drawer for forty years into D64 images, before they lose their magnetism, or write games and demos downloaded from the internet onto real floppies.
This page has the program to use it straight from the browser and the full guide: how it is made, how to build one with an Arduino Pro Micro, how to load the firmware and install the drivers.
With our RFIEC firmware the same board also works the other way round: the C64 sees the PC as a drive or a printer, and no driver is needed.
Trascina qui file PRG o SEQ per scriverli sul disco
I drive Commodore parlano con il computer attraverso il bus seriale IEC: un cavo con la presa DIN a 6 poli e cinque segnali (ATN, CLK, DATA, RESET, SRQ) con tempi di pochi microsecondi. Un PC non ha niente del genere, e una semplice porta USB non riesce a rispettare quei tempi.
La XUM1541 risolve il problema con un microcontrollore che ha l'USB integrato: il suo firmware, scritto da Nate Lawson e distribuito con il progetto OpenCBM, gestisce da solo tutti i tempi del bus, mentre il computer gli manda solo comandi ad alto livello (“parla con il drive 8”, “manda questi byte”, “leggi la risposta”).
Un Arduino Pro Micro e una presa DIN: è la versione di questa guida, costa pochi euro di componenti.
La versione commerciale di RETRO Innovations, con porta parallela per i cavi XP1541 e bus IEEE-488 per i drive PET. Usa lo stesso firmware e funziona anche con il nostro programma.
1541, 1541-II, 1570, 1571, 1581 e in generale le periferiche sul bus seriale del C64 e del VIC-20.
RFIEC è il firmware che abbiamo scritto noi per la stessa scheda, sul Pro Micro collegato direttamente al bus. Il firmware XUM1541 fa un solo lavoro: il PC comanda un drive. RFIEC lavora nei due sensi, perché il C64 può anche usare il PC come drive o come stampante, e su ogni sistema si presenta come una normale porta seriale USB. Per questo non servono Zadig né altri driver: in Chrome compare come RFIEC (COM…).
| Cosa fa | XUM1541 (OpenCBM) | RFIEC (RetroFixer) |
|---|---|---|
| Il PC legge e scrive i floppy veri, crea e scrive immagini D64, D71 e D81 | ✔ | ✔ con queste pagine |
| Il PC stampa su una stampante Commodore vera (MPS-801, 803…) | ✔ | ✔ |
Il C64 vede il PC come un drive: LOAD, SAVE, JiffyDOS, Final Cartridge III, Epyx FastLoad | ✘ | ✔ |
| Il C64 stampa sul PC: MPS, Epson, NEC, grafica e colore, PDF | ✘ | ✔ |
| Driver su Windows | WinUSB con Zadig | nessuno |
OpenCBM e i programmi del PC (cbmctrl, d64copy, VICE…) | ✔ | ✘ |
Copia veloce dei dischi (d64copy, cavo parallelo XP1541) | ✔ | ✘ |
| Scheda con l'integrato 7406 | ✔ | ✘ |
Perché usarlo: un solo firmware per tutto quello che fanno queste pagine, senza driver, e passi dal drive vero al C64 senza riprogrammare la scheda. Tieni la XUM1541 se usi OpenCBM o altri programmi del PC, o se la tua scheda ha il 7406.
Cosa non fa: non emula i caricatori veloci che mandano un programma nella memoria del 1541 (molte demo e giochi su più parti), e il drive o la stampante per il C64 rispondono solo mentre la pagina è aperta e collegata.
Si installa dal sito in un minuto, senza programmi: vedi Caricare il firmware. L'uso con il C64 è spiegato in Il PC fa da drive.
Commodore drives talk to the computer over the IEC serial bus: a cable with a 6-pin DIN plug and five signals (ATN, CLK, DATA, RESET, SRQ) timed in microseconds. A PC has nothing like it, and a plain USB port cannot keep those timings.
The XUM1541 solves this with a microcontroller that has built-in USB: its firmware, written by Nate Lawson and shipped with the OpenCBM project, handles all the bus timing on its own, while the computer only sends high-level commands (“talk to drive 8”, “send these bytes”, “read the answer”).
An Arduino Pro Micro and a DIN socket: the version in this guide, a few euros of parts.
The commercial version by RETRO Innovations, with a parallel port for XP1541 cables and an IEEE-488 bus for PET drives. Same firmware, and it works with our program too.
1541, 1541-II, 1570, 1571, 1581 and in general the devices on the C64 and VIC-20 serial bus.
RFIEC is the firmware we wrote for the same board, with the Pro Micro wired straight to the bus. The XUM1541 firmware does one job: the PC drives a drive. RFIEC works both ways, because the C64 can also use the PC as a drive or a printer, and on every system it shows up as a plain USB serial port. That is why neither Zadig nor any other driver is needed: in Chrome it appears as RFIEC (COM…).
| What it does | XUM1541 (OpenCBM) | RFIEC (RetroFixer) |
|---|---|---|
| The PC reads and writes real floppies, creates and writes D64, D71 and D81 images | ✔ | ✔ with these pages |
| The PC prints on a real Commodore printer (MPS-801, 803…) | ✔ | ✔ |
The C64 sees the PC as a drive: LOAD, SAVE, JiffyDOS, Final Cartridge III, Epyx FastLoad | ✘ | ✔ |
| The C64 prints on the PC: MPS, Epson, NEC, graphics and colour, PDF | ✘ | ✔ |
| Driver on Windows | WinUSB with Zadig | none |
OpenCBM and PC programs (cbmctrl, d64copy, VICE…) | ✔ | ✘ |
Fast disk copy (d64copy, XP1541 parallel cable) | ✔ | ✘ |
| Board with the 7406 chip | ✔ | ✘ |
Why use it: one firmware for everything these pages do, no drivers, and you switch from the real drive to the C64 without reprogramming the board. Keep the XUM1541 if you use OpenCBM or other PC programs, or if your board has the 7406.
What it does not do: it does not emulate fast loaders that send a program into the 1541's memory (many demos and multi-part games), and the drive or printer for the C64 only answer while the page is open and connected.
It installs from the site in a minute, with no programs: see Loading the firmware. Using it with the C64 is explained in PC as a drive.
Nella versione più semplice non ci sono altri componenti: le linee del bus IEC vanno saldate direttamente ai pin del Pro Micro. Il firmware usa i pin in modalità “open collector” (li porta a massa oppure li lascia liberi), proprio come fa il C64.
In the simplest version there are no other parts: the IEC bus lines are soldered straight to the Pro Micro pins. The firmware drives the pins “open collector” style (it pulls them to ground or leaves them free), exactly like the C64 does.
| Pro Micro (scritta sulla scheda) | Pro Micro (board marking) | ATmega32U4 | Segnale | Signal | Pin DIN IEC | IEC DIN pin |
|---|---|---|---|---|---|---|
| 16 | PB2 | DATA | 5 | |||
| 14 | PB3 | CLK | 4 | |||
| 8 | PB4 | ATN | 3 | |||
| 9 | PB5 | SRQ | 1 | |||
| 10 | PB6 | RESET | 6 | |||
| GND | — | GND | 2 |
PROMICRO_7406). Protegge meglio il microcontrollore e permette la lettura “nibbler” sulla 1571.PROMICRO_7406). It protects the microcontroller better and allows “nibbler” reads on the 1571.Per la nostra abbiamo seguito il progetto C64-XUM1541 di tebl: un circuito stampato pensato per non dover saldare fili, con il Pro Micro su zoccolo, la presa DIN e un pulsante. I file Gerber per farlo produrre sono nel suo repository (e su PCBWay). Lo stesso schema si può realizzare anche su millefori o con pochi fili.
| Rif. | Componente | Q.tà |
|---|---|---|
| A1 | Arduino Pro Micro 5 V / 16 MHz (ATmega32U4) | 1 |
| A1 | 2 strip da 12 pin maschio, oppure femmina per poter togliere il Pro Micro | 2 |
| J1 | Presa DIN 6 poli femmina da circuito stampato | 1 |
| SW1 | Pulsante 6×6 mm ad angolo retto (serve per caricare il firmware) | 1 |
| D1, R1 | LED 5 mm e resistenza da 330 Ω (facoltativi) | (1) |
| J2 | Connettore 2×8 pin per il cavo parallelo (facoltativo) | (1) |
| — | Scatola 70×45×30 mm (facoltativa) | (1) |
| — | Cavo seriale IEC DIN 6 maschio–maschio, come quello tra C64 e 1541 | 1 |
For ours we followed tebl's C64-XUM1541 project: a printed circuit board designed so you don't have to solder wires, with the Pro Micro on headers, the DIN socket and a button. The Gerber files to have it made are in his repository (and on PCBWay). The same circuit can be built on perfboard or with a few wires.
| Ref. | Part | Qty |
|---|---|---|
| A1 | Arduino Pro Micro 5 V / 16 MHz (ATmega32U4) | 1 |
| A1 | 2 × 12-pin male headers, or female ones to be able to remove the Pro Micro | 2 |
| J1 | 6-pin female DIN socket, PCB mount | 1 |
| SW1 | 6×6 mm right-angle push button (used to load the firmware) | 1 |
| D1, R1 | 5 mm LED and 330 Ω resistor (optional) | (1) |
| J2 | 2×8-pin header for the parallel cable (optional) | (1) |
| — | 70×45×30 mm project box (optional) | (1) |
| — | 6-pin DIN male–male IEC serial cable, like the one between C64 and 1541 | 1 |
Il programma qui sopra scrive il firmware nel Pro Micro direttamente dal browser (Chrome, Edge o Firefox (dalla versione 151) su computer), sia RFIEC sia XUM1541. Il bootloader del Pro Micro resta sempre al suo posto, quindi puoi cambiare firmware tutte le volte che vuoi.
Non serve premere il reset: entrambi i firmware sanno riavviarsi nel bootloader quando la pagina (o il programma per PC RFIEC) glielo chiede.
| Sulla scheda c'è | Cosa fare |
|---|---|
| RFIEC | Premi Installa: la pagina riavvia la scheda con il «tocco a 1200 baud», lo stesso trucco dell'Arduino IDE. |
| XUM1541 | Prima Collega la xum1541, poi Installa: la pagina manda il comando USB ENTER_BOOTLOADER del firmware v08. |
| Pro Micro nuovo | Premi Installa e scegli la sua porta: di solito ha già uno sketch di prova Arduino, e la pagina lo riavvia nel bootloader. Se è vuoto è già nel bootloader e si programma subito. |
| La scheda non compare (XUM1541 senza driver, firmware interrotto a metà) | Premi due volte di seguito il pulsante di reset (o tocca due volte il pin RST con GND): il LED lampeggia piano e il bootloader resta attivo per circa 8 secondi. |
Dalla stessa finestra puoi scaricare il file .hex e i sorgenti di RFIEC.
Il firmware XUM1541 ufficiale è nel repository di OpenCBM, già compilato per il Pro Micro:
La versione 8 è quella che abbiamo provato con il programma di questa pagina. Il Pro Micro ha un bootloader (Caterina) che resta dopo la programmazione, quindi il firmware si può cambiare quando si vuole. Si programma con avrdude, che si trova già installato con l'Arduino IDE.
COM10):avrdude -p m32u4 -c avr109 -P COM10 -b 57600 -D -U flash:w:xum1541-PROMICRO-v08.hex:i
Con l'Arduino IDE avrdude si trova in %LOCALAPPDATA%\Arduino15\packages\arduino\tools\avrdude\ (cartella bin, con avrdude.conf in etc da indicare con -C). Su Linux:
stty -F /dev/ttyACM0 speed 1200 # reset nel bootloader
avrdude -p m32u4 -c avr109 -P /dev/ttyACM0 -U flash:w:xum1541-PROMICRO-v08.hex:i
16D0:0504).La guida di tebl consiglia la versione 7 del firmware, perché con la sua configurazione di OpenCBM la 8 non funzionava: se usi OpenCBM e hai problemi, prova la v07 dal suo repository. Il programma di questa pagina accetta le versioni 7 e 8.
The program above writes the firmware into the Pro Micro straight from the browser (Chrome, Edge or Firefox (version 151 or later) on a computer), both RFIEC and XUM1541. The Pro Micro's bootloader always stays in place, so you can switch firmware as often as you like.
No need to press reset: both firmwares can restart into the bootloader when the page (or the RFIEC desktop program) asks them to.
| The board runs | What to do |
|---|---|
| RFIEC | Press Install: the page restarts the board with the “1200-baud touch”, the same trick the Arduino IDE uses. |
| XUM1541 | First Connect the xum1541, then Install: the page sends the ENTER_BOOTLOADER USB command of firmware v08. |
| New Pro Micro | Press Install and choose its port: it usually comes with an Arduino test sketch, and the page restarts it into the bootloader. If it is blank it is already in the bootloader and gets programmed at once. |
| The board does not show up (XUM1541 without driver, firmware interrupted halfway) | Press the reset button twice in a row (or touch the RST pin to GND twice): the LED pulses slowly and the bootloader stays active for about 8 seconds. |
From the same window you can download the .hex file and the RFIEC sources.
The official XUM1541 firmware is in the OpenCBM repository, already built for the Pro Micro:
Version 8 is the one we tested with the program on this page. The Pro Micro has a bootloader (Caterina) that stays after programming, so the firmware can be changed whenever you like. It is programmed with avrdude, which already comes with the Arduino IDE.
COM10):avrdude -p m32u4 -c avr109 -P COM10 -b 57600 -D -U flash:w:xum1541-PROMICRO-v08.hex:i
With the Arduino IDE, avrdude is in %LOCALAPPDATA%\Arduino15\packages\arduino\tools\avrdude\ (folder bin, with avrdude.conf in etc to be passed with -C). On Linux:
stty -F /dev/ttyACM0 speed 1200 # reset into the bootloader
avrdude -p m32u4 -c avr109 -P /dev/ttyACM0 -U flash:w:xum1541-PROMICRO-v08.hex:i
16D0:0504).tebl's guide recommends firmware version 7, because version 8 did not work with his OpenCBM setup: if you use OpenCBM and have trouble, try v07 from his repository. The program on this page accepts versions 7 and 8.
Windows non ha un driver per la xum1541: si installa con Zadig. Quale scegliere dipende dal programma che vuoi usare:
| Driver | Programma di questa pagina (Chrome, Edge) | OpenCBM (riga di comando) |
|---|---|---|
| WinUSB | ✔ necessario | dipende dalla versione: da provare |
| libusb-win32 | ✘ il browser non la vede | ✔ quello indicato nella guida di tebl |
16D0 0504).Il driver si può cambiare quando si vuole rifacendo gli stessi passi con Zadig: per esempio WinUSB per usare la pagina e libusb-win32 per tornare a OpenCBM.
Non serve un driver, ma un permesso: crea il file /etc/udev/rules.d/45-xum1541.rules con questa riga, poi ricarica le regole e ricollega la scheda.
SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="0504", TAG+="uaccess"
sudo udevadm control --reload-rules
Non serve niente: la xum1541 è subito disponibile per il browser.
Windows has no driver for the xum1541: you install one with Zadig. Which one depends on the program you want to use:
| Driver | Program on this page (Chrome, Edge) | OpenCBM (command line) |
|---|---|---|
| WinUSB | ✔ required | depends on the version: to be tested |
| libusb-win32 | ✘ the browser cannot see it | ✔ the one in tebl's guide |
16D0 0504).You can switch driver at any time by repeating the same steps in Zadig: for example WinUSB to use this page and libusb-win32 to go back to OpenCBM.
No driver is needed, only a permission: create the file /etc/udev/rules.d/45-xum1541.rules with this line, then reload the rules and replug the board.
SUBSYSTEM=="usb", ATTR{idVendor}=="16d0", ATTR{idProduct}=="0504", TAG+="uaccess"
sudo udevadm control --reload-rules
Nothing to install: the xum1541 is available to the browser right away.
73,CBM DOS V2.6 1541,00,00. Inserisci un floppy e premi Directory..prg, oppure con Disco → immagine copia tutto il disco in un D64 (o D71, D81)."----------------" DEL alla directory.Il programma usa il protocollo seriale standard, lo stesso del C64 senza caricatori veloci: qualche centinaio di byte al secondo. Un file da 30 blocchi (circa 7,5 KB) richiede una ventina di secondi; un disco intero letto blocco per blocco richiede circa dieci minuti. I trasferimenti veloci di OpenCBM (d64copy, circa un minuto a disco) caricano un programma nella memoria del drive: non sono ancora nel programma web.
Senza xum1541 puoi provare tutto con la Simulazione: un drive virtuale in memoria che risponde come quello vero, ma non legge e non scrive nessun floppy. Il visualizzatore di immagini D64 e l'estrazione dei file funzionano in qualsiasi browser.
73,CBM DOS V2.6 1541,00,00. Insert a floppy and press Directory..prg, or copy the whole disk to a D64 (or D71, D81) with Disk → image."----------------" DEL separators to the directory.The program uses the standard serial protocol, the same as a C64 without fast loaders: a few hundred bytes per second. A 30-block file takes about twenty seconds; a whole disk read block by block takes about ten minutes. OpenCBM's fast transfers (d64copy, about a minute per disk) load a program into the drive's memory: they are not in the web program yet.
Without an xum1541 you can try everything with the Simulation: a virtual drive in memory that answers like the real one but reads and writes no floppy. The D64 image viewer and file extraction work in any browser.
La stessa scheda funziona con OpenCBM, la raccolta di programmi da riga di comando da cui viene il firmware. Su Windows si scompatta lo ZIP, si apre un prompt dei comandi come amministratore nella cartella e si installa con install xum1541. Poi:
cbmctrl detect rem elenca i drive collegati
cbmctrl dir 8 rem directory del disco nel drive 8
d64copy 8 disco.d64 rem copia veloce del disco in un'immagine
d64copy -n 8 disco.d64 > disco.log 2>&1 rem idem, con un registro degli errori
Per archiviare una collezione di dischi è utile tenere il registro di ogni copia: un disco con errori di lettura si riconosce subito anche dopo anni.
The same board works with OpenCBM, the command-line suite the firmware comes from. On Windows, unzip it, open a command prompt as administrator in the folder and install it with install xum1541. Then:
cbmctrl detect rem list the connected drives
cbmctrl dir 8 rem directory of the disk in drive 8
d64copy 8 disk.d64 rem fast copy of the disk to an image
d64copy -n 8 disk.d64 > disk.log 2>&1 rem same, with an error log
When archiving a disk collection it helps to keep a log of every copy: a disk with read errors is easy to spot even years later.
Con un firmware diverso la stessa scheda lavora al contrario: il Commodore 64 si collega alla presa IEC e vede il PC come un drive. Il disco è un'immagine D64, D71 o D81 aperta nella pagina: il C64 legge la directory, carica i programmi e salva, e tu vedi tutto in tempo reale, aggiungi file trascinandoli e alla fine scarichi il disco con quello che il C64 ha salvato.
Il firmware RFIEC è stato scritto da RetroFixer sulla libreria IECDevice di David Hansel: il Pro Micro gestisce i tempi del bus e passa al browser ogni richiesta del C64 attraverso la seriale USB; il "DOS" del drive gira nella pagina.
dialout.Dal sito, con il pulsante Firmware del Pro Micro…: i passi sono in Caricare il firmware. Per tornare alla XUM1541 basta installare il firmware XUM1541 nello stesso modo; con avrdude il file è rfiec-v2.6.hex (pulsante Scarica .hex).
LOAD"$",8 e LIST, poi LOAD"NOME",8,1 e RUN. I SAVE finiscono nel disco della pagina.LOAD, SAVE, file sequenziali, il canale 15 e i comandi del DOS (S:, R:, N:, V, U1/U2).?DEVICE NOT PRESENT. Sul bus non deve esserci un drive vero con lo stesso numero.Il codice sorgente di RFIEC (licenza GPL-3, come IECDevice) si scarica dal pulsante Sorgenti RFIEC nella finestra del firmware.
With a different firmware the same board works the other way round: the Commodore 64 plugs into the IEC socket and sees the PC as a drive. The disk is a D64, D71 or D81 image opened in the page: the C64 reads the directory, loads programs and saves, and you watch everything live, add files by dropping them and at the end download the disk with whatever the C64 saved.
The RFIEC firmware was written by RetroFixer on top of David Hansel's IECDevice library: the Pro Micro handles the bus timing and forwards every C64 request to the browser over USB serial; the drive's "DOS" runs in the page.
dialout group.From the site, with the Pro Micro firmware… button: the steps are in Loading the firmware. To go back to the XUM1541 just install the XUM1541 firmware the same way; with avrdude the file is rfiec-v2.6.hex (button Download .hex).
LOAD"$",8 and LIST, then LOAD"NAME",8,1 and RUN. SAVEs end up in the page's disk.LOAD, SAVE, sequential files, channel 15 and DOS commands (S:, R:, N:, V, U1/U2).?DEVICE NOT PRESENT. There must be no real drive with the same number on the bus.The RFIEC source code (GPL-3 licence, like IECDevice) can be downloaded with the RFIEC sources button in the firmware window.
Con un drive vero collegato (XUM1541 o RFIEC nel modo «Drive reale») il pulsante Diagnosi del drive… controlla un 1541, 1541-II, 1570 o 1571 come i vecchi programmi diagnostici. La pagina manda al drive un piccolo programma in 6502 (694 byte) con il comando M-W e lo avvia come job del DOS. Il programma misura il tempo con il timer del VIA, al microsecondo, e conta le intestazioni dei settori che la testina legge. La pagina poi rilegge i risultati con M-R. Sul disco non viene scritto niente. Con il drive simulato la diagnosi non c'è, perché non avrebbe niente da misurare.
Sotto le misure, il riquadro Cosa fare mette insieme i risultati e propone le riparazioni.
| Cosa vedi | Causa probabile | Cosa fare |
|---|---|---|
| Nessuna intestazione letta | Disco non formattato o rovinato, disco che non gira, testina sporca o interrotta | Prova un altro disco. Guarda se il disco gira (motore, cinghia, cono di centraggio). Pulisci la testina. |
| Velocità lontana da 300 | Trimmer starato, componenti invecchiati sulla scheda del motore | Regola il trimmer con la misura continua. Se non arriva a 300, controlla condensatori, transistor e trimmer della scheda del motore. |
| Velocità che cambia da un giro all'altro | Cinghia consumata (meccaniche a cinghia), perno sporco, disco che striscia nella busta | Pulisci perno e cono, sostituisci la cinghia, riprova con un altro disco. |
| Errori su quasi tutte le tracce | Testina sporca, disco rovinato, velocità sbagliata | Pulisci la testina, controlla la velocità, cambia disco. |
| Errori verso il centro (tracce alte) | Testina sporca o consumata, allineamento fuori | Pulisci la testina, poi guarda la prova delle mezze tracce. |
| Errori sulle prime tracce | Fermo della traccia 1 o allineamento | Controlla la prova delle mezze tracce e il fermo della testina. |
| A −½ e +½ letture molto diverse | Testina fuori allineamento | Riallinea il motore passo-passo (sotto). |
| Protetto con la tacca libera, o il contrario | Sensore della protezione sporco o guasto | Pulisci la fotocellula accanto alla fessura, controlla il LED e il fototransistor. |
A drive spento apri lo sportello, inumidisci un cotton fioc (o un panno che non lascia pelucchi) con alcol isopropilico e passalo sulla testina senza premere, poi lascia asciugare un minuto. Nelle meccaniche con il pressore sopra la testina, sollevalo con delicatezza.
Il trimmer della velocità è sulla schedina del motore, sotto la meccanica. Con il drive acceso e un disco formattato inserito premi Misura continua e gira il trimmer a piccoli passi, aspettando una lettura dopo ogni ritocco, finché leggi 300,0.
Prima pulisci la testina, regola la velocità e usa un disco scritto da un drive buono. Poi segna con un pennarello la posizione del motore passo-passo, allenta appena le sue viti e ruotalo di pochissimo. Stringi le viti e rifai la prova Testina finché a −½ e a +½ legge in modo simile; alla fine rifai la Mappa tracce. Questa prova dà una buona indicazione, ma non sostituisce un disco di allineamento: per una regolazione di precisione si usa un disco come quello del 1541 Physical Exam.
With a real drive connected (XUM1541, or RFIEC in “Real drive” mode) the Drive diagnostics… button checks a 1541, 1541-II, 1570 or 1571 like the old diagnostic programs. The page sends the drive a small 6502 program (694 bytes) with the M-W command and starts it as a DOS job. The program measures time with the VIA timer, to the microsecond, and counts the sector headers the head reads. The page then reads the results back with M-R. Nothing is written to the disk. With the simulated drive the diagnostics are not available, because there would be nothing to measure.
Below the measurements, the What to do box puts the results together and suggests the repairs.
| What you see | Likely cause | What to do |
|---|---|---|
| No header read | Unformatted or damaged disk, disk not spinning, dirty or broken head | Try another disk. Check that the disk spins (motor, belt, centering cone). Clean the head. |
| Speed far from 300 | Trimmer out of adjustment, aged parts on the motor board | Adjust the trimmer with the continuous measurement. If it cannot reach 300, check capacitors, transistors and the trimmer on the motor board. |
| Speed changing from one revolution to the next | Worn belt (belt-driven mechanisms), dirty spindle, disk rubbing in its sleeve | Clean spindle and cone, replace the belt, try another disk. |
| Errors on almost every track | Dirty head, damaged disk, wrong speed | Clean the head, check the speed, change disk. |
| Errors towards the center (high tracks) | Dirty or worn head, misalignment | Clean the head, then look at the half-track test. |
| Errors on the first tracks | Track 1 stop or alignment | Check the half-track test and the head stop. |
| Very different reads at −½ and +½ | Misaligned head | Realign the stepper motor (below). |
| Protected with the notch open, or the other way round | Dirty or faulty write-protect sensor | Clean the photocell next to the slot, check the LED and the phototransistor. |
With the drive off, open the door, moisten a cotton swab (or a lint-free cloth) with isopropyl alcohol and wipe the head without pressing, then let it dry for a minute. On mechanisms with a pressure pad above the head, lift it gently.
The speed trimmer is on the small motor board, under the mechanism. With the drive on and a formatted disk inserted, press Continuous and turn the trimmer in small steps, waiting for a reading after each touch, until you read 300.0.
First clean the head, adjust the speed and use a disk written by a good drive. Then mark the stepper motor position with a pen, loosen its screws slightly and rotate it a tiny bit. Tighten the screws and run the Head test again until −½ and +½ read about the same; finally run the Track map again. This test gives a good indication, but it does not replace an alignment disk: for a precision adjustment you use a disk like the 1541 Physical Exam one.
Fonti e ringraziamenti: firmware xum1541 di Nate Lawson e progetto OpenCBM; circuito stampato e guida di tebl, a sua volta basato sull'articolo di myoldcomputer.nl. Il programma web è un'implementazione indipendente di RetroFixer; il firmware RFIEC usa la libreria IECDevice di David Hansel (GPL-3).
Sources and thanks: xum1541 firmware by Nate Lawson and the OpenCBM project; PCB and guide by tebl, itself based on the myoldcomputer.nl article. The web program is an independent implementation by RetroFixer; the RFIEC firmware uses David Hansel's IECDevice library (GPL-3).