6.2.2Logical address
(1)CHS mode
Logical address assignment starts from physical cylinder (PC) 0, physical head (PH) 0, and physical sector (PS) 1 and is assigned by calculating the number of sectors per track which is specified by the INITIALIZE DEVICE PARAMETERS command. The head address is advanced at the subsequent sector from the last sector of the current physical head address. The first physical sector of the subsequent physical sector is the consecutive logical sector from the last sector of the current physical sector.
Figure 6.5 shows an example (assuming there is no track skew).
Physical sector
Physical cylinder 0
Physical head 0
1 | 2 | 3 |
| . . |
|
|
|
| |
LS | LS |
|
|
|
1 | 2 |
|
| . . |
|
|
|
| |
|
|
|
| |
|
| LH0 |
62 63 | 64 |
| . . | 126 | 127 | . . | 189 | 190 | . . | 606 607 608 | |||||||||
|
| LS | LS |
| LS | LS |
|
|
| LS | LS |
|
| LS | LS | LS | |||
|
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 39 | 40 | 41 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||
|
|
| LH1 |
| LH2 |
|
|
|
|
| LH9 |
| Physical sector |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
Physical cylinder 0 | 1 |
| . . |
| 22 | 23 |
| . . |
| 85 | 86 |
| . . |
| 148 |
|
| . . . . . . . . . . . . . . | 607 608 |
| |||
LS |
|
|
| LS | LS |
|
|
| LS | LS |
|
|
| LS | LS |
|
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||||||
Physical head 1 |
| 42 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| . . |
| 63 | 1 |
| ........ . . . . . . . . . . |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |||||
|
|
| LH9 |
| LH10 | LH11 |
|
|
|
|
|
| |||||||||||
|
|
|
| LH12 |
ex: Zone 0
Physical parameter
- Physical sector: 1 to 608
Specification of INITIALIZE DEVICE PARAMETERS command
-Logical head: LH=0 to 15
-Logical sector: LS=1 to 63
Figure 6.5 Address translation (example in CHS mode)
| 6 - 7 |