Adventurer #13
31 марта 2002
  Железо  

Iron - the modified scheme IDE-HDD adapter.

<b>Iron</b> - the modified scheme IDE-HDD adapter.
     (C) Matlash Vladislav


     I want to share with the reader, I have modified the 
scheme IDE-HDD adapter is willing, but not yet decided to 
connect a hard drive or CD-ROM and do not wish to bother floppy 
disks, and for those whose work involves with large amounts of 
information ... 


         Scheme IDE-HDD adapter

SUS BUS DD1 IDE BUS

           D0 D0 2 March DD8 DD0

    D0 Q0 D0 17 DD0

           D1 D1 May 4 DD9 DD1

    D1 Q1 D1 15 DD1

           D2 D2 6 July DD10 DD2

    D2 Q2 D2 13 DD2

           D3 D3 Sept. 8 DD11 DD3

    D3 Q3 D3 11 DD3

           D4 D4 December 1913 DD12 DD4

    D4 Q4 D4 9 DD4

           D5 D5 15 14 DD13 DD5

    D5 Q5 D5 7 DD5

           D6 D6 16 17 DD14 DD6

    D6 Q6 D6 5 DD6

           D7 D7 19 18 DD15 DD7

    D7 Q7 D7 3 DD7

                                  11 CS0 # DD8

           A0 C / 4 DD8

    A0 IR 1 RWE # DD9

           A1 23 OE # o 6 DD9

    A1 DD10

           A2 8 DD10

    A2 DD2 DD11

           A3 D0 3 February 1910 DD11 DD8

    A3 D0 Q0 DD12

           A4 D1 5 April 1912 DD12 DD9

    A4 D1 Q1 DD13

           A5 D2 6 July 1914 DD10 DD13

    A5 D2 Q2 DD14

           A6 D3 8 September 1916 DD11 DD14

    A6 D3 Q3 DD15

           A7 D4 13 December 1918 DD12 DD15

    A7 D4 Q4

           A8 D5 14 15 DD13 DA0

    A8 D5 Q5 35 DA0

              D6 17 16 DD14 DA1

          M1 # D6 Q6 33 DA1

   M1 # D7 18 19 DD15 DA2

        IORQ # D7 Q7 36 DA2
 IORQ # 11

          WR # / C RES #

   WR # 1 R & D a RESET #

          RD #-oOE # 23 WWE # DIOW #

   RD # 23 DIOW #

       RESET # WWC # DIOR #
RESET # 25 DIOR #

                          DD3

              D0 February 18 DD0 CS0 #

                       A0 1 B0 37 CS0 #

   +5 V> +5 V D1 17 March DD1 CS1 #

                       A1 B1 38 CS1 #

   GND D2 April 16 DD2

                       A2 B2

   X1 D3 May 15 DD3 22 GND

                        A3 B3

               D4 14 June 1924 DD4 GND

                        A4 B4

               D5 July 13 DD5 19 GND

                        A5 B5

               D6 August 1912 DD6 2 GND

                        A6 B6

               D7 11 September 1926 DD7 GND

                        A7 B7

                     January 30 GND

                       EAB

                    19 AP

                      oEO # June 1939 DASP #

                    - RWW #

                                                      X2

                          DD4
A4 2 March DA0

                       D0 Q0 1 KATODLED
A5 4 May DA1

                       D1 Q1 2 ANODLED
A6 6 July DA2

                       D2 Q2
WR # 9 August DIOW # R1

                       D3 Q3> +5 V
RD # 13 December DIOR # 300

                       D4 Q4
RESET # 14 15 RES #

                       D5 Q5

                    17 16

                       D6 Q6

                    18 19

                       D7 Q7

                    11

               +5 V 

      B1
19 "-" "+" R1

(Scale is taken with respect to the tetrad cells 5x5 mm)


         Fig. 2. Drawing of the adapter card


     After verifying the correctness of the tester
installation of conductors and the absence-circuiting the chip 
card is washed of flux under running hot water (if you do not 
use rosin) and give it dry.


     It should be noted that the termination and closure of the 
signals can be not only between the conductors of the board, 
and also within chips themselves.



     Next, connect the adapter to perform the following steps:

     1. Insert the adapter into an available interface 
connector on your computer. 

     2. Connect 40-pin connector
loop drive IDE. The most common errors connecting loops are
coup connector 180 degrees and a lateral or longitudinal 
displacement contacts. From these errors, saves the plastic 
bezel, surrounding the pegs the best quality

connectors, and key slot. However,
with the keys happen and confusion: it happens,
the connector loop, which has a return key protrusion on the 
tail impaled wrong. Then, for the proper connections, this 
ledge necessary to cut (it's easier than qualitatively 
perekolot connector). I have personally encountered this 
problem connecting IDE ribbon cable to the hard drive.


     3. Connect the indicator to
hard drive "HDDLED" in the two-pin
connector on the adapter card. Correctly connect the connection 
can be during boot Hard drive - in this case the indicator 
should be blinking. 


     To verify the correctness of all
Connection type:

10 PRINT AT 0,0; IN 117; "": GO TO 10


     If everything is correct, then after passing the self test 
device to the screen should flash the number 80.



     This description is for setting up a
short because of the inability to reflect the various faults 
and assembly options adapter. It serves as an assembly 
algorithm and run, limited only by some

councils.



          Software control


     For programmatic interaction with
devices connected to the adapter in
free address space of the input / output computer was chosen as 
an address range of ports (see Fig. 3), excluding possibility 
of overlap already in use Addressing ports. For this has been 
done analysis of existing ones, have become standard

addresses of input / output ports as a short (only used for 
decryption younger part of the address bus [A7: A0]) so

and addressing long (use the whole
width of address bus [A15: A0]).


 A15 A14 A13 A12 A11 A10 A9 A8 A7 A6 A5 A4 A3 A2 A1 A0

 XXXXXXX nnnnn 0 1 0 1


                                                       > 
Selection 

                                                     Adapter

                                           > Select Registers

                                            Devices

                               > The older part of the address 
port 

                                used as a counter

                                 (Contents of Reg. B) B with

                               using commands or enter

                                O


    Fig. 3. Organization of the port select register IDE devices


     Space I / O ports
adapter is chosen so that the ability to use automatic command 
I / O MP Z80. 

     The dignity of their application that
reduced number of processor cycles
(And consequently time) spent
in an exchange transaction with the device, and saves memory 
for the driver program. But their use does not restrict the use 
of conventional and semi-automatic command input / output, 
revealing a cycle of exchange, which is still considerably 
increase speed. 

; Example sub-sector reading device identification

        ORG # C000
INSTL DI
L2 LD A, # FE

        IN A, (# 75); registration status CP # 50

        JR Z, L1; No error

        CALL # 1F54; test pressing BREAK

        RET NC

        JR L2
L1 LD BC, # FE75
L3 IN A, (C)

        RLCA

        JR C, L3; wait for the device

        LD A, # EC; Team

        INC B

        OUT (C), A; Command register

        DEC B
L5 IN A, (C)

        BIT 7, A

        JR Z, L4; accepted package of 256 words

        CALL # 1F54

        RET NC

        JR L5; We are waiting for an answer
L4 LD BC, # 0005; registration data

        LD HL, 50000; address data reception

        XOR A; counter for 256 cycles
L6 INC HL

        IND; Reading [D7: D0]

        INI; Reading [D15: D8]

        INC HL; because bytes is reversed

        DEC A

        JR NZ, L6

        RET; Successful exits


     It should be remembered that the appeal to the registers 
of the device must be on a full address is A15-A0. 

Fragment of reading the data sector in the K-cycles Z80 # of 
bytes . . .

LD HL, address buffer 10 March
LD BC, # 0005, Port Address March 10
INIR (INI 256 commands) 21/16 2
INIR (INI 256 commands) 21/16 2
. . . ----- - Total: 10 762 1910
When ring-opening: 8212 518


Fragment recording sector data in the K-cycles Z80 # of bytes

        . . .

        LD HL, address buffer 10 March

        LD BC, # 10 March 0005

        XOR A January 4
LOOP INC HL June 1

        OUTD February 16

        OUTI February 16

        INC HL June 1

        DEC A Jan. 4

        JR NZ, LOOP 12 / July 2

        . . . ------Total: 15 331 1916


Address Space I / O ports


     When reading the [D7: D0] the principal part
port address even when reading only
data [D15: D8] is not even:

# 05 Data Register
# 15 Register error
# 25 counter register sectors
# 35 Register of sector number
# 45 Register Low Byte cylinder number
# 55 Register High Byte cylinder number
# 65 Register of device numbers and pins
# 75 status register


     When recording [D7: D0] the principal part
addresses are not even, when recording data only [D15: D8] is 
even: 

# 05 Data Register
# 15 Register of properties
# 25 counter register sectors
# 35 Register of sector number
# 45 Register Low Byte cylinder number
# 55 Register High Byte cylinder number
# 65 Register of device numbers and pins
# 75 Command register
# E5 register control device only [D7: D0]


     P. S. By bringing the scheme and making sure to
practice in its performance, I tried as much as possible to 
describe in detail the principle its work and the technology of 
my build. 

     If anyone can help me
writing a file window HDD-FDD navigator for software potderzhki 
scheme or have any questions please contact:



          FidoNet: 2:4635 / 99.111

       In a letter to state: Vladislav


                  Email:

                 Ukraine

            18002, Cherkasy

           st. Lenina 10, Apt. 6

            Matlashu Vladislav







Other articles:

From the authors - help: a description of the shell magazine.

From the authors - the contents of the new magazine.

From the authors - Forever young, or the Spectrum in the new millennium. Call Jam / XPJ to save the log ZX Power.

From the authors - The authors of the magazine.

Presentation - new game from Studio Stall - opener.

Presentation - the new font editor Hewly Font Editor.

Presentation - A new version of the music editor of Sound Tracker Pro.

Presentation - a program for optimization of black and white images skonverchennyh with a PC.

Presentation - ASCII graphics editor for directories in the TR-DOS.

Presentation - "Bard's Tale Merger Programm" - a program to manage shipments of the game Bard's Tale.

Interface - News from: Placebo, Brain- wave, Phantom Family, Volga Soft, Studio Stall, Gogin, Anarchia, Image Crew, Hackerz 'Design Software, Peters +, Fatal Snipe, Ellipse.

Interface - see what tusni are scheduled for Speccy freaks vtechenie year: Forever 3, ASCII ^ 2002, 2nd International Sinclair Sam days, Millenium 1902, Twilight Demoparty 2002, Syndeecate Demoparty 2002, Paradox 2002, CaFe 2002, Chaos Constructions 2002.

Interface - a letter reading rooms: NoViSeT / Brutal Creators, Di / LSg, Moroz1999, Shame / Madness Technology, Cannibal / Techno Lab.

Interface - "for the market to answer!" Russian language is so "Great and powerful", that well use it, unfortunately, is given not for everyone.

Interface - Overview of Windows like shells and systems for ZX Spectrum.

Interface - City of Dzerzhinsk and its Spectrum inhabitants.

Exchange of experience - How to write a 3D game such as DOOM.

Exchange of experience - Floyd-Steinberg method for converting images from a larger number of colors in the least.

Exchange of experience - an unscientific Algorithm for Random Number (RND).

Exchange of experience - Direct Programming General Sound.

Exchange of experience - work with the western disk systems MDOS and MD02.

Chaos Construction 2001 - an interview with Raid.

Chaos Construction 2001 - an interview with Stanly / Studio Stall.

Chaos Construction 2001 - an interview with Gogin (Hacker Smir).

Chaos Construction 2001 - an interview with the Constellation Team: Screamer, Kot, Justinas.

Chaos Construction 2001 - Interview with EYE-Q: Organism, Time Keeper, Mr. Wizard.

Chaos Construction 2001 - an interview with Justionas / Constellation.

Chaos Construction 2001 - an interview with the Moscow encoder Asman / Proxium.

Chaos Construction 2001 - intevyu with Vivid, Megus, Tiggr of Brain-Wave.

Chaos Construction 2001 - an interview with Stingrey and Steep from Izhevsk.

Chaos Construction 2001 - an interview with amizhnikom and organizer CC - Big Black.

Chaos Construction 2001 - an interview with the encoder from Ulyanovsk Faster / TNL.

Chaos Construction 2001 - an interview with Cyberfreak (mooh).

Chaos Construction 2001 - an interview with Ming spektrumistom Equator / PHD.

Chaos Construction 2001 - mini interview with Kano.

Chaos Construction 2001 - an epic dispute: Vivid VS Sairoos, Chanks VS Multicolor, Dogma VS Triptomine Dream.

Chaos Construction 2001 - an interview with Maddy and Drv53b6 of the Phantom Family.

Chaos Construction 2001 - an interview with the Paracels and Sairoos of Placebo.

Chaos Construction 2001 - an interview with Pheel and EA from Antares.

Chaos Construction 2001 - continuation of the epic dispute between megakoderami Vivid and Sairoos.

Chaos Construction 2001 - a detailed report from the CPU.

Promotion - Another shattered dream or a description of the "500 games" - where truth and falsehood.

Promotion - the story creators of the game Star Glider 2 - Steven dunn / Software developement and design.

Promotion - Dizzy in a dungeon or omelette again did not turn out: short story for the game Dizzy Unterground.

Promotion - description of the game "Talisman" - RPG with elements of arcade.

Iron - the modified scheme IDE-HDD adapter.

Ottyag - clean ottyag: Children's self-made newspaper Bird Kar Kar. "

Ottyag - intro: We will not pull the cat by the balls and start with the run ...

Ottyag - Army Suxx or How zakosit from the army, if you are completely healthy.

Ottyag - the depth of a gloomy world outlook Maxima Magnet ...


Темы: Игры, Программное обеспечение, Пресса, Аппаратное обеспечение, Сеть, Демосцена, Люди, Программирование

Similar articles:
Bonus - hidden part of an April Fool's edition.
Rumors and News - Who does what: Dream Team Group, OHG, Pungency, Velichutin Nicholas, Virtual vision group, Golden Disk Group, KDF Soft, X-Project, Mafia, Flash Inc.
drop of solder - The emulator ROMs for the computer ZX-Spectrum v1.0.
Humor - a broken axle shaft.

В этот день...   21 November