C1541-III on the mbed
.
mbed emulating the good old C1541 floppy drive of the C64/C128
The code is ported from the C1541-III project of Jan Derogee
The program is available for downloading http://mbed.org/users/gertk/programs/C1541III/lwbxrz, the pin connections (can also be found in the main.c program)
// IEC hardware connections DigitalInOut nSRQ(p18); // DIN6 pin 1 DigitalInOut nATN(p17); // DIN6 pin 3 DigitalInOut nCLK(p16); // DIN6 pin 4 DigitalInOut nDATA(p15); // DIN6 pin 5 // DigitalInOut nRESET(p19); InterruptIn nIRQ(p30); // external loop: connect to nATN InterruptIn nRESET(p29); // DIN6 pin 6 DigitalIn JUMPER_J2(p21); DigitalIn JUMPER_J3(p22); DigitalOut myled1(LED1); DigitalOut myled2(LED2); DigitalOut myled3(LED3); DigitalOut myled4(LED4); #define LED_GREEN myled1 #define LED_RED myled2 // the SD card interface SPI spicard(p11, p12, p13); // mosi, miso, sclk DigitalOut SDCARD_CS(p14);
Remember to format the SD card in FAT16 as this program uses its own FAT routine
Please log in to post comments.