Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 8 of 8

Thread: Commodore Amiga 500 disk controller

  1. #1
    Junior Member
    Join Date
    Sep 2021
    Posts
    3

    Commodore Amiga 500 disk controller

    Here's is a disk controller i wrote for the Teensy 4.1, it can only read floppy disks for now, but writing floopy disks may be implemented later when all the small bugs are squashed.
    This program is a stand-alone program that converts an Amiga DOS formatted floppy disks(using the old style pc floppy drives) to the ADF format, saves it directly to an SD card, which can then be read by most Amiga emulators.
    I only created this program to read floppy disk that contained all my old Tracker tunes created with MED, this program can not read original disk with custom copy protection.
    There is also a debug console(adf-client.exe alpha 0.1) for changing a few internal settings that i used for testing this program,which can can be used at your own risk!!
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	circuit layout.jpg 
Views:	55 
Size:	106.4 KB 
ID:	25784  
    Attached Files Attached Files

  2. #2
    Senior Member wwatson's Avatar
    Join Date
    Aug 2017
    Posts
    538
    Quote Originally Posted by j1505 View Post
    Here's is a disk controller i wrote for the Teensy 4.1, it can only read floppy disks for now, but writing floopy disks may be implemented later when all the small bugs are squashed.
    This program is a stand-alone program that converts an Amiga DOS formatted floppy disks(using the old style pc floppy drives) to the ADF format, saves it directly to an SD card, which can then be read by most Amiga emulators.
    I only created this program to read floppy disk that contained all my old Tracker tunes created with MED, this program can not read original disk with custom copy protection.
    There is also a debug console(adf-client.exe alpha 0.1) for changing a few internal settings that i used for testing this program,which can can be used at your own risk!!
    Kinda curious about the electrical interface. T4.1 3.3V tolerant and most floppy devices I know of are only 5.0V?

  3. #3
    Junior Member
    Join Date
    Mar 2021
    Posts
    15
    Interesting, thanks for sharing

  4. #4
    Junior Member
    Join Date
    Sep 2021
    Posts
    3
    Yes, you are correct sir!!
    I just checked the online specs and the Teensy4.1 is indeed 3.5 voltage tolerant.The strange thing is, my project worked and I managed to dump all my floppy disks, but I don't know if this has caused any long term damage to my MCU.
    My electronics skills suck!!..so i guess i would need help from anyone in re-designing this circuit and making it more safe to anyone who wishes to use this.

  5. #5
    Senior Member wwatson's Avatar
    Join Date
    Aug 2017
    Posts
    538
    Quote Originally Posted by j1505 View Post
    Yes, you are correct sir!!
    I just checked the online specs and the Teensy4.1 is indeed 3.5 voltage tolerant.The strange thing is, my project worked and I managed to dump all my floppy disks, but I don't know if this has caused any long term damage to my MCU.
    My electronics skills suck!!..so i guess i would need help from anyone in re-designing this circuit and making it more safe to anyone who wishes to use this.
    Search the forum and the Internet for level shifters. Adafruit has these. There are a lot of devices available you can use as well. You will find examples of circuits that show how to do this on the forum . Surprised that your T4.1 survived Wish I still had my AMIGA 500...

  6. #6
    Senior Member
    Join Date
    Nov 2012
    Posts
    1,750
    Does Pin 1 (PIN_Button_Start) work reliably? It seems to me that you need a pulldown resistor on pin 1 to hold the pin LOW until the button is pushed.
    The easy fix is to change the pinMode from INPUT to INPUT_PULLDOWN.

    Pete
    P.S. Wish I had my Amiga 500 and 3000 still

  7. #7
    Senior Member wwatson's Avatar
    Join Date
    Aug 2017
    Posts
    538
    Quote Originally Posted by el_supremo View Post
    Does Pin 1 (PIN_Button_Start) work reliably? It seems to me that you need a pulldown resistor on pin 1 to hold the pin LOW until the button is pushed.
    The easy fix is to change the pinMode from INPUT to INPUT_PULLDOWN.

    Pete
    P.S. Wish I had my Amiga 500 and 3000 still
    Me too, The 3000 was a dream I never had

  8. #8
    Junior Member
    Join Date
    Sep 2021
    Posts
    3
    Quote Originally Posted by el_supremo View Post
    Does Pin 1 (PIN_Button_Start) work reliably? It seems to me that you need a pulldown resistor on pin 1 to hold the pin LOW until the button is pushed.
    The easy fix is to change the pinMode from INPUT to INPUT_PULLDOWN.

    Pete
    P.S. Wish I had my Amiga 500 and 3000 still
    Pin 1 works fine, it starts the whole ripping process in the default 'Auto Mode'. My electronic skills are 'zero', I'm hoping that someone more skilled in this area could help me iron out some of the issues(reducing the input voltage from 5v to 3v).

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •