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

RA Interrupt<br />

~<br />

060504030201 DO R<br />

OA Interrupt<br />

~<br />

LTA Interrupt<br />

~<br />

LA - Line Active<br />

t<br />

t t t<br />

RA - Receiver Active<br />

LA OA, RA, LA<br />

DAY - Data Available<br />

Command<br />

LTA<br />

LTA - Line Tum Arcund<br />

flags<br />

TL/F/9336-46<br />

FIGURE 41, Timing of Receiver Flags Relative to Incoming Data<br />

clearing [RA] and asserting the Line Turn-Around flag,<br />

[LTA] indicating that a message was received with no errors.<br />

For the 3270 and 3299 protocols, [L TA] can be used<br />

to initiate an immediate transmitter FIFO load; for the other<br />

protocols, an appropriate response delay time may be needed.<br />

[LTA] is cleared by loading the transmitter's FIFO, writing<br />

a one to [LTA] in the Network Command flag register, or<br />

by asserting [TRES].<br />

Receiver Errors<br />

If the Receiver Active flag, [RAJ. is asserted, the selected<br />

receiver input source is continuously checked for errors,<br />

which are reported to the CPU by asserting the receiver<br />

Error flag, [RE], and setting the appropriate receiver error<br />

flags in the Error Code Register [ECR). If a line condition<br />

occurs which results in multiple errors being created, only<br />

first error to be detected will be latched into [ECR). Once<br />

an error has been detected and the appropriate error flag<br />

has been set, the receiver is disabled, clearing [RA] and<br />

preventing the Line Turn-Around flag and interrupt [L TA]<br />

from being asserted. The Line Active flag [LA] remains asserted<br />

if signal transitions continue to be detected on the<br />

input.<br />

5 error flags are provided in [ECR):<br />

7 6 5 4 3 2 o<br />

I rsv I rsv I rsv I OVF I PAR liES I LMBT I RDIS I<br />

[OVF]<br />

[PAR]<br />

[lES]<br />

Overflow Flag-Asserted when the decoder<br />

writes to the first location of the FIFO while [RFF]<br />

is asserted. The word in the first location will be<br />

over-written; there will be no effect on the last two<br />

locations.<br />

Parity Error Flag-Asserted when a received<br />

frame fails an even (word) parity check.<br />

Invalid Ending Sequence Flag-Asserted during<br />

an expected end sequence when an error occurs<br />

in the mini code-violation. Not valid in 5250 modes.<br />

[LMBTI Loss of Mid-Bit Transition-Asserted when the<br />

expected biphase-encoded mid-bit transition does<br />

not occur within the expected window. Indicates a<br />

loss of receiver synchronization.<br />

[RDIS] Receiver Disabled While Active-Asserted when<br />

an active receiver is disabled by the transmitter being<br />

activated.<br />

To determine which error has occurred, the CPU must read<br />

[ECR). This is accomplished by asserting the Select Error<br />

Codes control bit, [SEC] and reading [RTR). The [ECR) is<br />

only 5 bits wide, therefore the upper 3 bits are still the output<br />

of the receive FIFO. See Figure 41. The act of reading<br />

[ECR) resets the receiver to idle, in which case it again<br />

monitors the incoming data stream for a new start sequence.<br />

[SEC] control bit must be de-asserted to read the<br />

FIFO's data from [RTR).<br />

If data is present in the FIFO when the error occurs, the<br />

Data Available flag [DAV] is de-asserted when the error is<br />

detected, being re-asserted when [ECR) is read. Data present<br />

in the FIFO before the error occurred is still available to<br />

the CPU. The flexibility is provided, therefore, to read the<br />

error type and still recover data loaded into the FIFO before<br />

the error occurred. [TRES] the Transceiver Reset, can be<br />

asserted at any time, clearing both Transceiver FIFOs and<br />

the error flags.<br />

Transceiver Interrupts<br />

The transceiver has access to 3 CPU interrupt vectors, one<br />

each for the transmitter and receiver, and a third, the Line<br />

Turn-Around interrupt, providing a fast turn around capability<br />

between receiver and transmitter. The receiver interrupt is<br />

the highest priority interrupt (excluding NMI), followed by the<br />

transmitter and Line Turn-Around interrupts, respectively.<br />

The three interrupt vector addresses and a full description<br />

of the interrupts are given in Table XXVII.<br />

The receiver interrupt is user-selectable from 4 possible<br />

sources (only 3 used at present) by specifying a 2-bit field,<br />

the Receiver Interrupt Select bits [RIS1,O] in the Interrupt<br />

Control Register [lCR). A full description is given in Table<br />

XXVIII.<br />

2-174

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

Saved successfully!

Ooh no, something went wrong!