TC1796
Peripheral Units (Vol. 2 of 2)
Micro Link Interface (MLI)
User’s Manual
23-36
V2.0, 2007-07
MLI, V2.0
with width RCR.DW from the address stored in RADRR and write the data into
TDRAR.DATA.
•
RCR.MOD = 1:
Automatic Data Mode is enabled. In this mode, the move engine of the MLI
automatically reads the data from the Remote Window and sets event status flag
RISR.MEI (move engine access terminated). A service request output is activated if
enabled by RIER.MEIE = 1.
The read operation from the Remote Window is executed only if the read address is
within an enabled access protection range. If no address range is enabled for the
actual read address, the automatic read action is not executed by the move engine,
event status flag RISR.MPEI (memory protection error) is set and a service request
output is activated if enabled by RIER.MPEIE = 1. In the interrupt handler routine, a
bus master (e.g. CPU or PCP) must then take care of the remote window read
operation and the data transfer to TDRAR.
•
After TDRAR.DATA has been updated, status flag TRSTATR.AV of the Remote
Controller is set and the transmission of an Answer Frame is started.
Figure 23-29 Read Frame Handling on Remote Side
Note: In Automatic Data Mode, Read Frames are leading to a read action executed by
the MLI move engine. During the move engine operation, only one more MLI
frame can be received (stored in a waiting position to be executed). Then the
reception of more frames is blocked by a Non-Acknowledge handshake. If the
move engine operation is finished, frame execution and reception can continue
MLI_RFHRS
Read from Remote
Window is executed
by a bus master
(e.g. CPU)
RCR.MOD = 1 ?
yes
no
Access Protection
Violation ?
no
yes
RISR.MPEI := 1
Read from Remote
Window is executed
by the move engine
Write to TDRAR.DATA
TRSTATR.AV := 1
RISR.MEI := 1
Move Engine
Event
Memory
Protection
Error Event
Read from Remote
Window is executed
by a bus master
(e.g. CPU)
RISR.NFRI := 1
Normal Frame
Received
Event