TC1796
Peripheral Units (Vol. 2 of 2)
Micro Link Interface (MLI)
User’s Manual
23-70
V2.0, 2007-07
MLI, V2.0
•
In devices with access protection mechanism against unauthorized accesses via
MLI, the Remote Controller has to enable the desired address range(s) to support
automatic mode. If automatic mode is not desired, the Remote Controller has to
handle the complete data traffic by software.
•
A possibility to test the setup in devices with the capability to run own test software is
the local loop back (the transmitter is connected locally to the receiver of the same
MLI module). In devices without this capability, the module loop back can be hardly
used (or it is even not implemented, refer the connection table in the implementation
chapter).
In local loop back mode (see
), the signal
connections have to be programmed to setting “D”, leading to the local receiver being
connected directly to the local transmitter (without using a port structure). In this case,
the local receiver seems to be the remote receiver. Data written to a local Transfer
Window are received and handled by the local receiver. Test software in the Local
Controller can check for correct setup, data consistency, MLI event handling, and
correct address handling in the Local Controller.
•
If automatic data handling is desired (necessary for devices without the capability to
handle data traffic by its CPU), the Automatic Data Mode has to be enabled by
sending a Command Frame in pipe 2 with CM = 0001
B
to set RCR.MOD = 1 in the
Remote Controller.
23.3.4
Remote Transmitter and Local Receiver Setup
The initialization of the Remote Controller’s transmitter and the Local Controller’s
receiver can be done by data frames sent by the local transmitter. Therefore, the Remote
Controller’s receiver has to be able to receive frames (the port structure has to be set up
accordingly).
•
The Remote Window of pipe x (x can be freely chosen) has to be set to the MLI
register address range in the Remote Controller. The initialization by data frames is
then done via pipe x.
•
The automatic mode has to be enabled in the Remote Controller (Command Frame
in pipe 2 with CM = 0001
B
).
•
The connections between the remote transmitter and the local receiver have to be
established (if not already done by the default setting), similar to
.
•
The remote transmitter has to be enabled, similar procedure as for the local
transmitter. The data word to be written to the Remote Controller’s MLI registers have
to be written to the corresponding address in the local Transfer Window of pipe x.
•
The local receiver can then be configured by writing the appropriate data (similar
scenario as for the remote receiver) to the local Transfer Window of pipe x.
•
A possibility to test the complete setup is the remote loop back. In this case another
Remote Window is overlaid directly to a Transfer Window in the Remote Controller.
Writing data to the corresponding Transfer Window in the Local Controller leads to a
data frame sent to the Remote Controller. There, the received data is written to the