
Monitor channel
The Monitor channel is used to write and read all
STLC5412 internal registers. Protocol on the
Monitor channel allows a bidirectional transfer of
bytes between UID and a control unit with ac-
knowledgement at each received byte. Bytes are
transmitted on the Br output and received on the
Bx input in the Monitor channeltime slot.
A write or read cycle is always constituted of two
bytes.(see fig. 5). It is possible to operate several
write or read cycles within a single monitor mes-
sage.
Note:
Specialformat is used for EOC channel.
Write cycle
The formatto write a messageinto the UID is:
A7
A6
A5
A4
1st byte
A3
A2
A1
A0
D7
D6
D5
D4
2nd byte
D3
D2
D1
D0
A7-A1:
A0:
D7-D0:
RegisterAddress
Write/Readback Indicator
RegisterContent
After the first byte is shifted in, Register address
is decoded.A0 set low indicatesa write cycle: the
content of the following received byte has to be
loaded into the addressedregister.
A0 set high indicates a read-back cycle request.
The second byte content is not significative.
STLC5412 will respond to the request by sending
back a message with the register content associ-
ated with its own address. It is then possible for
the microprocessor to receive the required regis-
ter content after several other pendingmessages.
To avoid any loss of data, it is recommended to
operate only one read-backrequest at a time.
Note:
Specialformat is used for EOC channel.
Read cycle
When UID has a register content to send to the
controller, it send it on the monitor channel di-
rectly. Note that the data to send can be the con-
tent of a Register previously requested by the
controllerby meansof a read-backrequest.
The formatof the messagesent by the UID is:
A7
A6
A5
A4
1st byte
A3
A2
A1
A0
D7
D6
D5
D4
2nd byte
D3
D2
D1
D0
A7-A1:
A0:
D7-D0:
RegisterAddress
forced to 0 if spontaneous
interrupt,forced to 1 if read-
back
RegisterContent
ExchangeProtocol
STLC5412 validates a received byte if it is de-
tectedtwo consecutivetimes identical.(see fig. 5)
The exchange protocol is identical for both direc-
tions. The sender uses the E bit to indicate that it
is sending a Monitor byte while the receiver uses
A bit to acknowledge the received byte.When no
message is transferred, E bit and A bit are forced
to inactivestate.
A transmission is started by the sender (Transmit
section of the Monitor channel protocol handler)
by putting the E bit from inactive to active state
and by sending the first byte on Monitor channel
in the same frame. Transmission of a message is
allowed only if A bit sent from the receiver has
been set inactive for at least two consecutive
frames. When the receiver is ready, it validates
the incoming byte when received identical in two
consecutive frames. Then, the receiver set A bit
from the inactive to the active state (preacknowl-
edgement) and maintain active at least in the fol-
lowingframe (acknowledgement).
If validation is not possible (two last bytes re-
ceived are not identical) the receiver aborts the
message by setting the A bit active for only a sin-
gle frame.The second byte can be transmitted by
the sender putting the E bit from the active to the
inactive state and sending the second byte on the
Monitor channel in the same frame . The E bit is
set inactive for only one frame. If it remains inac-
tive more than one frame, it is an end of mes-
sage. The second byte may be transmitted only
after receiving of the pre-acknowledgementof the
previous byte . Each byte hasto be transmitted at
least in twoconsecutiveframes.
The receiver validates the current received byte
as for the first one and then set the A bit in the
next two frames first from the active state to the
inactive state (pre-acknowledgement)and back to
the active (acknowledgement).If the receiver can-
not validates the received current byte (two bytes
received not identical)it pre-acknowledges nor-
mally but let the A bit in the inactive state in the
next frame which indicates an abort request . If a
message sent by the UID is aborted, the UID will
send again the complete message until receiving
of an acknowledgement . A message received by
the UID can be acknowledged or aborted with
flow Control.
The most significant bit (MSB) of Monitor byte is
sent first on the Monitor channel. E & A bits are
active low and inactive state on Br is 5 V. When
no byte is transmitted, Monitor channel time slot
STLC5412
22/74