69
69
english
Function Description
Mode 2: Input buffer, configuration and explanation
Sub-
Meaning
Function Description
address
01
Hex
Error code (continued)
06
Hex
Access error in memory.
07
Hex
AV bit is set but the command designator is missing or invalid.
or:
Number of bytes is 00
Hex
.
09
Hex
Cable break to select read/write head, or head not connected.
0D
Hex
Faulty communication with the data carrier.
or:
Data
Data which was read from the data carrier.
02
Hex
Data
Data which was read from the data carrier.
...
Data
Data which was read from the data carrier.
Last Byte:
Input length 1
for Head 1
Input length 2
for Head 2
Data
Data which was read from the data carrier.
Description of
Input Buffer
(continued)
Please note the
basic procedure on
70 and the
examples on pages
73...76.
C60_3-025_825645_1310_e.p65
70
english
70
Function Description
Mode 2: Processing data carriers
Reading and writing
To carry out a read or write job, the data carrier must be located in the active zone of the read/
write head.
A read/write job has the following sequence (see examples on
73ff):
1. The host sends to the output buffer:
–
the RW-Bit for selecting whether to carry out a read (RW = 0) or a write (RW bit = 1)
command,
–
the write data, if a write job,
–
sets the AV-Bit to high, to tell the processor there is a new job.
2. The processor:
–
accepts the job and for a write job copies the data from the output buffer,
–
sets the AA-Bit (job was accepted) in the input buffer,
–
carries out the job using the parametered values for start address and number of bytes
on the data carrier,
–
sends the AE bit (job correctly finished) or the AF bit (job finished with error) to the
input buffer,
–
sends the data in the case of a read job.