beautypg.com

Figure 68 – Rainbow Electronics T48C862-R4 User Manual

Page 71

background image

71

T48C862-R4

4551B–4BMCU–02/03

Before activating the SSI (SIR = 0) and commencing an MCL dialog, the appropriate
data direction for the first word must be set using the SDD control bit. The state of this
bit controls the direction of the data port (BP43 or MCL_SD). Once started, the 8 data
bits are, depending on the selected direction, either clocked into or out of the shift regis-
ter. During the 9th clock period, the port direction is automatically switched over so that
the corresponding acknowledge bit can be shifted out or read in. In transmit mode, the
acknowledge bit received from the device is captured in the SSI Status Register (TACK)
where it can be read by the controller. In receive mode, the state of the acknowledge bit
to be returned to the device is predetermined by the SSI Status Register (RACK).

Changing the directional mode (TX/RX) should not be performed during the transfer of
an MCL telegram. One should wait until the end of the telegram which can be detected
using the SSI interrupt (IFN =1) or by interrogating the ACT status.

Once started, a 9-bit telegram will always run to completion and will not be prematurely
terminated by the SIR bit. So, if the SIR-bit is set to ‘1’ in telegram, the SSI will complete
the current transfer and terminate the dialog with an MCL stop condition.

Figure 68.

Example of MCL Transmit Dialog

7 6 5 4 3 2 1

7 6 5 4 3 2 1 0 A

msb

lsb

tx data 1

tx data 2

msb

lsb

Write STB

(tx data 1)

SC

SD

SRDY

ACT

Interrupt

(IFN = 0)

Interrupt

(IFN = 1)

0 A

Write STB

(tx data 2)

SIR

SDD

Start

Stop