25.03.2015 Views

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

IBM 5150 PC Technical Reference (6025005, August, 1981) (PDF)

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Data Record Architecture <br />

MOTOR<br />

ON<br />

MOTOR<br />

OFF<br />

1. Leader 256 bytes (of ones)<br />

2. Sync byte ASCII Sync Char (X'16')<br />

3. Sync byte (X '16')<br />

4. Data Blocks 256 bytes<br />

5. CRC -- 2 bytes - for each data block<br />

Error Recovery<br />

Error recovery is handled by software. A cyclic redundancy<br />

check (CRC) is used to detect errors. The polynomial used is:<br />

G(X) - X16 «X12 « X5 X 1<br />

Which is the polynomial used by the SDLC interface. Essentially,<br />

as bits are written/read from tape, they are passed through<br />

the CRC-register in software. After a block of data is written, the<br />

complemented value of the calculated CRC-register is written on<br />

tape. On reading the cassette data, the CRC bytes are read and<br />

compared to the generated CRC value. If the read CRC does not<br />

equal the generated one, the processor's carry flag is set and<br />

status (AH) is set to X'Ol' to indicate a CRC error has occurred.<br />

Also, the routine is exited on CRC error.<br />

3-10

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!