17.05.2015 Views

~ National ~ Semiconductor - Al Kossow's Bitsavers

~ National ~ Semiconductor - Al Kossow's Bitsavers

~ National ~ Semiconductor - Al Kossow's Bitsavers

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

10.0 Transceiver (Continued)<br />

actively processing an incoming signal, the receiver will be<br />

disabled and flag the CPU that a "Receiver Disabled While<br />

Active" error has occurred. (See Receiver Errors in this<br />

Chapter.) On power-up/reset the transceiver defaults to this<br />

half-duplex mode.<br />

By asserting the Repeat Enable flag [RPEN], the receiver is<br />

not disabled by the transmitter, allowing both transmitter<br />

and receiver to be active at the same time. This feature<br />

provides for the implementation of a repeater function or<br />

loopback for test purposes.<br />

The transmitter output can be connected to the receiver<br />

input, implementing a local (on-chip) loopback, by asserting<br />

[LOOP]. [RPEN] must also be asserted to enable both the<br />

transmitter and receiver at the same time. With [LOOP] asserted,<br />

the output TX-ACT is disabled, keeping the external<br />

line driver in TRI-STATE. The internal flag [TA] is still enabled,<br />

as are the serial data outputs.<br />

Transmitter<br />

The transmitter accepts parallel data from the CPU, formats<br />

it according to the desired protocol and transmits it as a<br />

serial biphase-encoded bit stream. A block diagram of the<br />

transmitter logic is shown in Figure XR-6. Two biphase outputs,<br />

DATA-OUT, DATA-DL Y, and the external line driver<br />

enable, TX-ACT, provide the data and control signals for the<br />

external line interface circuitry. The two biphase outputs are<br />

valid only when TX-ACT is asserted (high) and provide the<br />

necessary phase relationship to generate the "pre-emphasis"<br />

waveform common to all of the transceiver protocols.<br />

See Figure 14 for the timing relationships of these outputs<br />

as well as the output of the line interface.<br />

The capability is provided to invert DATA-OUT and DATA­<br />

DL Y via the Transmitter Invert bit, [TIN], located in the<br />

Transceiver Mode Register. DATA-DLY is always initialized<br />

to the inverse state of [TIN]. In addition, the timing relationship<br />

between TX-ACT and the two biphase outputs can be<br />

modified with the Advance Transmitter Active control,<br />

[ATA]. When [ATA] is cleared low (the power-up condition),<br />

the transmitter generates exactly five line quiesce bits at the<br />

start of each message, as shown in Figure 40. If [AT A] is<br />

asserted high, the transmitter generates a sixth line quiesce<br />

bit, adding one biphase bit time to the start sequence transmission.<br />

The line driver enable, TX-ACT, is asserted halfway<br />

through this bit time, allowing an additional half-bit (with no<br />

pre-emphasis) to preceed the first line quiesce of the transmitted<br />

waveform. This modified start sequence is depicted<br />

in the dotted lines shown in Figure 40.<br />

Data is loaded into the transmitter by writing to the Receivel<br />

Transmit Register IRTRl, causing the first location of the<br />

FIFO to be loaded with a 12-bit word (8-bits from IRTR}<br />

and 4 bits from the Transceiver Command Register ITCR}.<br />

The data byte to be transmitted is loaded into I RTR}, and<br />

ITCR} contains additional information required by the protocol.<br />

It is important to note that if ITCR} is to be changed,<br />

it must be loaded before I RTR}. A multi-frame transmission<br />

is accomplished by sequentially loading the FIFO with the<br />

required data, the transmitter taking care of all necessary<br />

frame formatting.<br />

If the FIFO was previously empty, indicated by the Transmit<br />

FIFO Empty flag [TFE] being asserted, the first word loaded<br />

into the FIFO will asynchronously propagate to the last location<br />

in approximately 40 ns, leaving the first two locations<br />

empty. It is therefore possible to load up the FIFO with three<br />

sequential instructions, at which time the Transmit FIFO Full<br />

flag [TFF] will be asserted. If I RTR} is written while [TFF] is<br />

high, the first location of the FIFO will be over-written and<br />

data will be destroyed.<br />

When the first word is loaded into the FIFO, the transmitter<br />

starts up from idle, asserting TX-ACT and the Transmitter<br />

Active flag [T A], and begins generating the start sequence.<br />

After a delay of approximately 32 TCLK cycles (4 biphase<br />

bit times), the word in the last location of the FIFO is loaded<br />

into the encoder and prepared for transmission. If the FIFO<br />

was full, [TFF] will be de-asserted when the encoder is<br />

loaded, allowing an additional word to be loaded into the<br />

FIFO.<br />

When the last word in the FIFO has been loaded into the<br />

encoder, [TFE] goes high, indicating that the FIFO is empty.<br />

To ensure the continuation of a multi-frame message, more<br />

data must then be loaded into the FIFO before the encoder<br />

starts the transmission of the last bit of the current frame<br />

(the frame parity bit for 3270, 3299, and 8-bit modes; the<br />

last of the three mandatory fill bits for 5250). This maximum<br />

load time from [TFE] can be calculated by subtracting two<br />

from the number of bits in each frame of the respective<br />

protocol, and multiplying that result by the bit rate. This<br />

number represents the best case time to load-the worst<br />

case value is dependent on CPU performance. Since the<br />

CPU samples the transceiver flags and interrupts at instruction<br />

boundaries, the CPU clock rate, wait states (from programmed<br />

wait states, asserting the WAIT pin, or remote access<br />

cycles), and the type of instruction currently being executed<br />

can affect when the flag or interrupt is first presented<br />

to the CPU.<br />

If there is no further data to transmit (or if the load window is<br />

missed), the ending sequence (if any) is generated and the<br />

transmitter returns to idle, de-asserting TX-ACT and [T A].<br />

Data should not be loaded into the FIFO after the transmitter<br />

is committed to ending the message and before the [TA]<br />

flag is deasserted. If this occurs, the load will be missed by<br />

the transmitter control logiC and the word(s) will remain in<br />

the FIFO. This condition exists when [TA] and [TFE] are<br />

both low at the same time, and can be cleared by resetting<br />

the transceiver (asserting [TRESl) or by loading more data<br />

into the FIFO, in which case the first frame(s) transmitted<br />

will contain the word(s) left in the FIFO from the previous<br />

message.<br />

Typical waveforms for transmitter operation are shown in<br />

Figure 40.<br />

2-172

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!