CHAPTER
4.
d.
CRC
and'ECC
CJEJJic';}nw:)) )));:),,0
Ii:
HARD-DISK-INTERFACE--'
-;-;;-;:,; ~ '---.,---.,
_SBQ§nd
E_CC-"!E!..generaie.cI
§nclJnte,[!,ogated bI'Jhe,tII@,8{O and
:,
______________ .
____ . __
_ :,.".l..,,_./L-.• J NCL2002. i
-j",;;n
':,!1~;!':;
!
f:!'-]
!
(u~ed'i
fOl"the)
rn'OdeFpc~
7200'Ohly)
!,J"i,~,
,ii
.)
"',;A2,b~etRQiii;onif'iied
inthe
IDlield
and7~bi1"--EGCi~i:01tained
In
the data:j'"-lsI,,
ii,
i I
1. i
q~l1~r~liJ;"':
,1IU:
',,-:-U
__
,-, _
'_
,!~
. ,
"-','E;'l
I)'
"
-':l!')
'''I
- "
'I'
I \
I'
J'
I
This-contrdlleY"iffan
IBM
PC-ATcontrolle"-(forJYC:-driVen~afC1jn'sis~~-
'
-,'::
..
-,
~~:1~_:-:CRC~j
.
_~:-+-:---
-
-'!"
j
.:::;--}-~;;-.-,
of
:~r1-'-
NOC864.:_-Hoe;:t
-In_terface;~-,
NDe870~--Hard:--bisk:--
_c~ritro[ter'-:-,
.:----;--
-
·~-:-~he-:
-C~Q--cod'S'-:is-;-'g~nerated
-and-
che~k_~d
i~)~~
CRC.--~operatjon
NC~26bo-
RlL'ModeiT{
NCL.:2002'
E:CC~
~;'d'Z~80'
M·rcr6p~bces'sdr.'J:!;
-,'
'·'.f
"Clrcult oftherNt)C8'7q. CRC two
byte~
are:ddnttollt!d
by
the
NIDC870
Discussion-will be_.given_abouL the NDC9008
...
around_
the..
abov6-
__
, . "
_____
rni9r.QRLQgta-'ii\.~'9
atL~Q
.illtacheg _
to_Jt}€!lQ
ii~!9~_Jhe
9B..~es
are
mehtioned
microchips;j,iJ
:~rl
:n,~"
:I,; ,,:
i~\JI,"F)
:iI'
Jij'wi,~I;1
f-l
IHi'/1
,"/,
,;
,-.
- - :1:lwritten:at
a'-timeJofr
~aRMAT
commandl
~-:'
.
iM
;;;)
v~
i
2.:
Basi~_0p.EI!!l:t!()Il~__
__
.)"")'
,",c~,:',);
i;;~d;,;d.2.'':'~P'~·~'~~
: i !
,-,
:;";
,1(,·
,:"
i;·,"'
'_j
'~;~'~-';~J:~-;;~~''':~
-.
'")i;"tl
,!~:e~:~_~iC:;~Q-(te);f?~-g;errerate"d-ffi1'd-che-ckec:t:-ilrrr1~~
"~ct.;goo~
ECC
a.
Block
diagram circuit and ",corded
in
the byte filed that follows tlie data field, using
=::
"',i;jIJLi
~TTea'
~~
b. Host interface
.),:
..
The
NDC864 is the IBM AT compatible interfacing microchip.
The
NDC864 is directly connected to the host bus and allows easier
construction
of
the disk controller
in
conjunction with the NDC870
HOC,
b-l.
Bus
There are two host buses and two internal buses.
b-l-l.
Host interface address
bus
(AD
to
A9)
The
host uses this bus to select task file register and control/status
register.
b-1-2. Host interface data
bus
(SOD
to
15)
A 16-bit bidirectional bus is employed to transfer data, command,
and status.
For transfer
of
data between the host and the controller sector buffer
(RAM within the NOC864),
all
16
bns are directly connected to the
RAM,
b-1-3. Interface board bus
When the Z-80 MPU is
in
action, the firmware program ROM
address, NDC864 register address, NDC870 register address, and
NCL2002 register address are sent from the
Z~80
MPU.
When the NOC870
HOC is
in
action, the FPU program ROM address
is sent from the
NDC870. (FPU program: format sequencer
microprogram)
b-1-4. Interboard data bus
When the
Z~80
MPU is in action, the data bus is used for transfer
of
the firmware program data and transfer
of
data between IC
registers. When the NDC870 HOC is in action, disk data are
transferred by the
control of the NDC870.
c. Hard
disk
startup
Command from the host is first stored in the NDC864 command
register which is processed by the
Z-80 MPU program. The
Z~80
MPU
program sets necessary control registers for the NDC870 and
the
top address is set for necessary microprogram and the control
is
handed
to
the NDC870. After the NDC870 acquires the control
for the interboard bus (data, address, control signal), it starts to
execute the microcommands from the top address of the
microprogram to do a series of operations (data transfer, disk drive
control).
The
control is then is handed to the Z-80 MPU after
completion
of
a series
of
operations.
",
th~'
No'C870 ECC )wfite signal, ! I
'i:,,:,; ]
"Wherrah:er~or:
i$"'io~nd
during read, the control is
~eturned,to
the
::::;:';)MPU
to~'locat'e!theje:rror
location and to produce the bit
pa~ern
in
-i::) "'::.errof;: When
naerier
,S
found, all registers within the
E:CC
gen~ration
"'C'"
:,:circuit;-ara_set:~E!r0J
~nd
when
an
error
is.
rl1~t,.
a
.d,ifferent
bit pattern
,
re.;,
,:~,;-
!~
,,~(eJ:i~~q
;~~fo~Qf~g:fo
tile
-numDei"~:~rr,(m_9it~'~l1d'16~e;fiO~.
After
this."the",d~tai,alreac'iy
within the data buffer of the NDC864 are
"
),
"'1
.c~,~r~;ct~~"*~I~;;f~~~
t? the host. I i
1
"EI'.
RLL:Of6d
i
ulation and dernc!dulalion
"
.',
':,
'{~<?I::~qQO)
i ,
C:rhe,'R[L',modulatotidemodulator., (NCL2000) modulates...tbe NRZ
,',,"
Selial
Qata~
mm:
g~t.Qbd_e_s~rml
gata
1riID~fert§.~~fr.6)rj
thlli_NOC870
(NCL2002),
to create data to be written on the disk.
,
i_
,J0rr:ttie:cbfitrary;",thSl:2-.1rd6tlel'reaaffr,om::the-'Cdlskiare~de'moi:lulated
in
to the NRZ.seriali'datadoi.be.trar:1§ferreEMo tha.NDCa7£l.
It
is connected with the NOC871 hybrid
vca,
to select data
demodulation
VFO control and clock.
Shown
below is the table for the NRZ and 2-7 code conversion.
NRZ
DATA
2-7
CODE
01
0100
00
1000
III
000100
100
001000
101
100100
II 0 I
00100100
1100
00001000
f. Seek
Step pulse required to seek is created by the NDC870 microprogram
under the step rate
of
18
microseconds. When the Z-80 MPU
recognizes the seek command, information (buffer mode, head
moving direction, and number of
pulses) for the NOC870 HOC are
given
by
the
Z~80
MPU monitor program. Then, the NOC870
microprogram is started to sent step pulses to the disk drive with
the direction
control signal.
g.
Read
After the read gate is enabled
by
the NOC870
HOC,
a sync pattern
is sought for by the
lS123
(one-shot). The sync pattern is
1001001--, and the LS123 factor is set to the value
re~trigger
i~
possible (233±5ns), and the one-shot is kept at
"f"
(triggered) at
all times so long as the sync pattern data are issued from the disk.
When the
LS123 output is received by the NCL2000, the
synchronous field detect circuit counter comes active. As the counter
counts 16
pulses, the NCL2000 sets the latch to switch from 2F
clock to read data and the CLAMP signal is sent out to suppress a
phase difference between the read data and the
VCO clock. When
48
pulses are counted, the address mark detect circuit comes active.
When the address mark is detected, the address mark found
Signal
is sent from the NCL2000 to the NOC870 HOC, (A unique mark
identical to the
217
rule is used.) (With this
Signal,
it is found the
top location of the data and the byte location.)
The
NRZ serial data demodulated
in
the NCL2000 are converted
into
parallel form in the NOC870 to be sent to the NDC864 interface
microchip.