02.07.2013 Views

PDP11 PeripheralsHbk 1972 - Trailing-Edge

PDP11 PeripheralsHbk 1972 - Trailing-Edge

PDP11 PeripheralsHbk 1972 - Trailing-Edge

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.

3. Receive Procedure.<br />

The programmmer initializes the receiver by setting the Receiver Enable bit. The<br />

Bit Assembly Table (BAT) and the Circular Buffer (CB) are used for receiving. Nei·<br />

ther table need be set up by software. BAT need not be referenced by software; as<br />

it is merely the place in which incoming characters are assembled. Once a charac·<br />

ter is completely assembled it will be placed in the Circular Buffer and a character<br />

done interrupt will occur, if the receive interrupt is enabled. The program must<br />

then go to the Receiver Service Routine and service any entries in the Circular<br />

Buffer. Bits 0-7 of the CB entries contain the received data character right justified.<br />

The line number is contained in Bits 9-12. Bit 13 will contain a one if the received<br />

character contained an odd number of one's and this can be used for parity<br />

checking. Bit 14 will be set if the fjrst stop bit on a character is a space;<br />

software then must determine by inspecting the character whether it is a valid<br />

break or a dropped bit. Bit 15 is the Flag Bit for the word. If Bit 15 is set then the<br />

core word contains a received character. The program must clear this bit after<br />

ser'/icing the character in the Circular Buffer. Therefore, the Receive Service Routine<br />

sequentially processes characters until it discovers a 0 in Bit 15 of a word in<br />

the Circular Buffer. This indicates that all characters have been processed.<br />

4. Transmit Procedure.<br />

The Current Address Table (CAT) and the Byte Count Table (BCT) are used for<br />

transmitting. Software must create an output buffer containing each message<br />

somewhere in core. The starting address of this buffer is loaded into/the word of<br />

the CAT which corresponds to the line on which the message is to be transmitted.<br />

The two's complement of the total number of characters to be transmitted is<br />

loaded into the corresponding word of the BCT as two's complement. Characters<br />

in" the buffer are packed one per byte, right justified, in sequential bytes. Once the<br />

BCT and CAT entries are loaded, the appropriate bit of the Buffer Active Register<br />

(BAR) is set and transmission will proceed until all characters have been transmitted.<br />

At the end of the transmission an interrupt is generated and software<br />

checks the BAR to see which lines have completed message transmission.<br />

135

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

Saved successfully!

Ooh no, something went wrong!