Hallo! Nehmen wir an, ich will eine HDD und ein CD ROM mit einem Mikrocontroller ansteuern. Beide sollen auf der gleichen ATA Schnittstelle liegen. Wie kann ich entweder HDD oder CD auswählen? Brauch ich dafür CSEL? Brauch ich noch irgendwelche Signale die dezidiert nur für diese Konfiguration nötig sind? Die Referenzschaltpläne, die ich bis jetzt im Netz gefunden habe, haben alle immer nur ein Device angeschlossen und deswegen CSEL auch immer auf GND gehängt.
CSEL heißt cable select, also im Kabel wird festverdrahtet festgelegt, ob ein Drive Master oder Slave ist. Normalerweise legen das aber Jumper an jedem Drive fest, also die Platte normal als Master, das CDRom als Slave.
D.h. also CSEL muss ich nicht wirklich verwenden? Ich kann also mit einer Befehlssequenz selbst festlegen ob der Slave oder Master auf einen Befehl antworten soll?
Ich will auch diese Woche mal mit IDE anfangen. Dazu das hier: "Two-devices considerations The IDE bus is intended for two devices. A master and a slave device. I have not tried anything myself, but the descriptions indicate that it is in fact very simple to connect two devices to the IDE bus. All you have to do is: 1) Configure the master/slave jumpers of the devices. 2) Select a device before you start giving commands to the devices. The head and device register has the bit you need to switch from one device to another. You have to write the bit to either 0 for master or 1 for slave and start controlling the other device. Mind: BOTH devices will get their registers WRITTEN. Any data or register READ will come from the selected device. ONLY the selected device will execute commands." http://www.pjrc.com/tech/8051/ide/wesley.html#twodevice
Ich hab hier gerade gefunden, was ich vor einiger Zeit zum Thema nachgeschaut hatte: CSEL muß belegt werde, wenn am Drive kein Jumper für Master oder Slave gesetzt ist. Es ist der Pin 27 am 44poligen Notebookstecker oder am 40-poligen IDE-Stecker. Im Drivestecker mit GND verbunden legt mandiesen Drive auf "slave" fest, mit Vcc verbunden wird er zum "master". Am 50poligen Miniatur-Notebookstecker für CD-Roms ist es Pin 47.
Bitte melde dich an um einen Beitrag zu schreiben. Anmeldung ist kostenlos und dauert nur eine Minute.
Bestehender Account
Schon ein Account bei Google/GoogleMail? Keine Anmeldung erforderlich!
Mit Google-Account einloggen
Mit Google-Account einloggen
Noch kein Account? Hier anmelden.