caius wrote:
Jeff wrote:
I Just got an x68000 and now i know how all the stuff works

Good news!What model of X6800 did you get?Could you explain better what did you understand about?Did you understand how the floppy signals works?
Yes!
This is a part of the schematic of the X68000 XVI floppy interface :
http://hxc2001.free.fr/floppy_drive_emu ... ERFACE.gifFirst thing: extra functions (eject/insert/led control..) are totaly separated from the others floppy signals.
-----------------------------------------------------------------------
Access/Write strobe :/OPTION_SEL_X : "Chip select" for the extra functions of drive DSX (X: 0-3)
Input / functions signals :/EJECT_FUNC : If this signal is low when OPTION_SEL_X is asserted, the disk will be ejected.
/LOCK_FUNC : If this signal is low when OPTION_SEL_X is asserted, the disk will be locked (eject button off). If this signal is high when OPTION_SEL_X is asserted the disk will be unlocked (eject button on).
/BLINK_FUNC : If this signal is low when OPTION_SEL_X is asserted, the LED blink. If this signal is high when OPTION_SEL_X is asserted, the LED stop blinking.
Output signals (drive status):/DISK_IN_DRIVE : when OPTION_SEL_X is asserted : Low = a disk in the drive. High = No disk.
/INSERT_FAULT : when OPTION_SEL_X is asserted : Low = a disk insert failure occured . High = No problem. This status is cleared at the rising edge of OPTION_SEL_X.
Output signal (Interrupt line):/INT : Interrupt line : This signal is activated at each disk status change (inserted/ejected). The interrupt is cleared at the rising edge of /OPTION_SEL_X. (Note : more than one drive can activate this line in the same time -> Softwares scan all disk drive at each /INT assertion).
Note 1: For proper operation all output should be able to drive 5/150=33mA since 150 ohms pull-up are used.
Note 2: The X68000 /OPTION_SEL_X assertion duration is ~2.5us per access. This can depend of the software, the CPU speed.
-----------------------------------------------------------------------
So to make the X68000 happy, these signals should be managed : /OPTION_SEL_X, /EJECT_FUNC, /DISK_IN_DRIVE, /INT
Some logic gates or a tiny PIC16F84A should do the trick

.
Jeff