douglar wrote on 2024-05-13, 11:09:
mkarcher wrote on 2024-05-13, 05:31:
I've seen a drive with broken IOCHREADY output that pulls the line constantly low, and thus halts the ISA bus completely as soon as it is connected.
Is this why most computers lock up tight when you plug the IDE cable in backwards?
That might be one contribution, but it most likely is not the only reason. https://superuser.com/a/786635 has a nice picture of the IDE connector pin assignments. Another very notable issue with a cable plugged in backwards is that Pin 1 (RESET) is connected to Pin 40 on the IDE drive, which is grounded. Because usually the Molex connector is still in place on the hard drive when you plug the IDE cable backwards, you can assume grounded pins to have proper ground, even with the cable turned around. While RESET is active high on the ISA bus, so this doesn't force a permanent reset, it can prevent any reset pulse from happening, preventing system initialization.
Furthermore, D0,D1 and D3 are grounded if the cable is plugged in backwards, but as there typically is a buffer chip on D0-D7 on IDE controllers, this does not immediately kill the ISA bus. A more serious issue is connecting most of the bus control lines to D8-D15, which are often unbuffered on very cheap controllers. So depending on the data pattern on the bus, the drive starts seeing bus cycles. Especially, as soon as /CS1FX and /DIOR are low (that is D8 and D14 are low, the drive plugged in backwards sees it as "read request from the drive"), it starts outputting data on its data pins, which are connected to bus control pins. Again, this will most likely disturb bus operation.