Toshiba 4006GAH ユーザーズマニュアル

ページ / 157
360050398 
 
Toshiba Corporation Digital Media Network Company 
 
Page 50 of 157 
© 2005, Copyright TOSHIBA Corporation All Rights Reserved 
10.6 Address Decoding 
The host addresses the drive using programmed I/O.    In this method, the required register address should 
be placed on the three host address lines, DA2 - DA0.    An appropriate chip is selected and a read or write 
strode (-DIOR / -DIOW) shall be given to the chip. 
The following I/O map shows definitions of all the register addresses and functions for these I/O locations. 
The descriptions of each register are shown in the next paragraph. 
Table 10.6-1  Register map 
Address  
 
- CS0 
- CS1 
HA2 
HA1
HA0 
READ REGISTER 
WRITE REGISTER 
Invalid address 
Invalid address 
Data register 
Data register 
0 1 
Error 
register 
Features (Write precompensation) 
register 
Sector count 
Sector count 
Sector number / LBA bit 0- 7 
Sector number / LBA bit0-7 
Cylinder low / LBA bit 8- 15 
Cylinder low / LBA bit8-15 
Cylinder high / LBA bit16- 23 
Cylinder high / LBA bit16-23 
Device head register 
  / LBA bit 24- 27 
Device head register 
  / LBA bit 24-27 
0 1 
Status 
register Command 
register 
High impedance 
Not used 
High impedance 
Not used 
Alt. status register 
Device control register 
Device address register
1
 Not 
used 
High impedance 
Not used 
 
“X” means “don't care”. 
The host generates selection of two independent chips on the interface. The selected high order 
chip ,-HOST CS1, is valid only when the host is accessing the address of alternate status register, digital 
output register , and digital input register respectively. The low order chip, HOST CS0, is used to address all 
other registers. 
The following table shows the standard decode logic to connect with ISA (Industry Standard Architecture) 
bus . 
Table 10.6-2  Decode Logic 
Register Address Map 
Decode 
1F0-1F7 
- CS0 = - ((- A9) (-A3)*(- AEN)) 
3F6,3F7 
- CS1= - 
(A9*A8*A7*A6*A5*A*A8*A7*A6*A5*A4*4)*(-A3)*(- 
AEN) 
170-177 
- CS0= - ((- A9)*A8*(- A7)*A6*A5*A4*(- A3)*(- AEN) 
376,377 
- CS1= - (A9*A8*(- A7)*A6*A5*A4)*(- A3)*(- AEN) 
 
The host data buses 15-8 are valid only when - IOCS16 is active. 
• 
- IOCS16 is asserted when interface address lines match to data register address.   
                                                           
1
  ATA-2 Notes: This register is obsolete.    A device is not supposed to respond to a read of this address.    If a device does 
respond, it shall be sure not to drive the DD7 signal to prevent possible conflict with floppy disk implementations. 
The drive supports this register to maintain compatibility for ATA-1.