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 />

dotted lines Indicate waveforms<br />

with [ATA) set high<br />

,....---"----,<br />

I<br />

DATA- DLY<br />

I<br />

I<br />

I<br />

I<br />

._-----j<br />

u<br />

I<br />

U----<br />

I<br />

LJI----<br />

TRANSt.4ITTED<br />

WAVEFORt.4<br />

Receiver<br />

IIne-quiesce<br />

bit<br />

The receiver accepts a serial biphase·encoded bit stream,<br />

strips off the framing information, checks for errors and reo<br />

formats the data for parallel transfer to the CPU. The block<br />

diagram in Figure 41 depicts the data flow from the serial<br />

input(s) to the FIFO's parallel outputs. Note that the FIFO<br />

outputs are multiplexed with the Error Code Register {ECR)<br />

outputs.<br />

The receiver and transmitter share the same TCLK, though<br />

in the receiver this clock is used only to establish the sam·<br />

piing rate for the incoming biphase encoded data. <strong>Al</strong>l control<br />

timing is derived from a clock signal extracted from this<br />

data. Several status flags and interrupts are made available<br />

to the CPU to handle the asynchronous nature of the incoming<br />

data stream. See Figure 41 for the timing relationships<br />

of these flags and interrupts relative to the incoming data.<br />

The input source to the decoder can be either the on-chip<br />

analog line receiver, the DATA·IN input or the output of the<br />

transmitter (for on-chip loopback operation). Two bits, the<br />

Select Line Receiver [SLR) and Loopback [LOOP), control<br />

this selection. In addition, serial data can be inverted via the<br />

Receiver Invert [RIN) control bit.<br />

The receiver continually monitors the line, sampling at a frequency<br />

equal to eight times the expected data rate. The<br />

Line Active flag [LA) is asserted whenever an input transition<br />

is detected and will remain asserted as long as another<br />

input transition is detected within 16 TCLK cycles. If another<br />

transition is not detected in this time frame, [LA) will<br />

be de-asserted. This function is independent of the mode of<br />

operation of the transceiver; [LA) will continue to respond to<br />

input Signal transitions, even if the transmitter is activated<br />

and the receiver disabled.<br />

If the receiver is not disabled by the transmitter, the decoder<br />

will adjust its internal timing to the incoming transitions, attempting<br />

to synchronize to valid biphase·encoded data.<br />

When synchronization occurs, the biphase clock will be extracted<br />

and the serial NRZ (Non-Return to Zero) data will be<br />

analyzed for a valid start sequence (see Figure 36 b). The<br />

FIGURE 40. Transmitter Output<br />

TLiF/9336-4S<br />

minimum number of line quiesce bits required by the receiv·<br />

er logic is selectable via the Receiver Line Quiesce [RLQ)<br />

control bit. If this bit is set high (the power·up condition),<br />

three line quiesce bits are required; if set low, only two are<br />

needed. Once the start sequence has been recognized, the<br />

receiver asserts the Receiver Active flag [RA) and enables<br />

the error detection circuitry.<br />

The NRZ serial bit stream is now clocked into a serial to<br />

parallel shift register and analyzed according to the expected<br />

data pattern as defined by the protocol. If no errors are<br />

detected by the word parity bit, the parallel data (up to a<br />

total of 11 bits, depending on the protocol) is passed to the<br />

first location of the FIFO. It then propagates asynchronously<br />

to the last location in approximately 40 ns, at which time the<br />

Data Available flag [DAV) is asserted, indicating to the CPU<br />

that valid data is available in the FIFO.<br />

Of the possible 11 bits in the last location of the FIFO, 8 bits<br />

(data byte) are mapped into {RTR) and the remaining bits<br />

(if any) are mapped into the Transceiver Status Register<br />

{TSR [0-2)). The CPU accesses the data byte by reading<br />

{ RTR), and the 5250 address field or 3270 control bits by<br />

reading {TSR). When reading the FIFO, it is important to<br />

note that {TSR) must be read before {RTR), since reading<br />

{RTR) advances the FIFO. Data in the FIFO will propagate<br />

from one location to the next in approximately 10-15 ns,<br />

therefore the CPU is easily able to unload the FIFO with a<br />

set of consecutive instructions.<br />

If the received bit stream is a multi-byte message, the receiver<br />

will continue to process the data and load the FIFO.<br />

After the third load (if the CPU has not accessed the FIFO),<br />

the Receive FIFO Full flag [RFF) will be asserted. If there<br />

are more than 3 frames in the incoming message, the CPU<br />

has approximately one frame time (sync bit to start of parity<br />

bit) to start unloading the FI FO. Failure to do so will result in<br />

an overflow error condition and a resulting loss of data (see<br />

Receiver Errors).<br />

If there are no errors detected, the receiver will continue to<br />

process the incorning frames until the end of message is<br />

detected. The receiver will then return to an inactive state,<br />

2-173

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

Saved successfully!

Ooh no, something went wrong!