MC6850e MC68A50¢e MC68B50 double buffering}. The second character will be automatical- ly transferred into the Shift Register when the first character transmission is completed. This sequence continues until all the characters have been transmitted. RECEIVE Data is received from a peripheral by means of the Receive Data input. A divide-by-one clock ratio !s provided for an ex- ternally synchronized clock (to its data) while the divide- by-16 and 64 ratios are provided for internal synchronization. Bit synchronization in the divide-by-16 and 64 modes is in- itiated by the detection of 8 or 32 low samples on the receive line in the divide-by- 16 and 64 modes respectively. False start bit deletion capability insures that a full half bit of a start bit has been received before the internal clock is synchronized to the bit time. As a character is being received, parity (odd or even) will be checked and the error indication wil! be available in the Status Register along with framing error, overrun error, and Receive Data Register full. In a typical receiving sequence, the Status Register is read to determine if a character has been received from a peripheral. If the Receiver Data Register is full, the character is placed on the 8-bit ACIA bus when a Read Data command is received from the MPU. When parity has been selected for a 7-bit word (7 bits plus parity), the receiver strips the parity bit (D7 =0) so that data alone is transferred to the MPU. This feature reduces MPU programming. The Status Register can con- tinue to be read to determine when another character ts available in the Receive Data Register. The receiver is also double buffered so that a character can be read from the data register as another character is being received in the shift register. The above sequence continues until all characters have been received. INPUT/OUTPUT FUNCTIONS ACIA INTERFACE SIGNALS FOR MPU The ACIA interfaces to the M6800 MPU with an 8-bit bidirectional data bus, three chip select lines, a register select line, an interrupt request line, read/write line, and enable line. These signals permit the MPU to have complete control over the ACIA. ACIA Bidirectional Data (00-D7) — The bidirectional data lines (D0-D7) allow for data transfer between the ACIA and the MPU. The data bus output drivers are three-state devices that remain in the high-impedance (off) state except when the MPU performs an ACIA read operation. ACIA Enable (E) — The Enable signal, E, is a high- impedance TTL-compatible input that enables the bus in- put/output data buffers and clocks data to and from the ACIA. This signal will normally be a derivative of the MC6800 $2 Clock or MC6809 E clock. Read/Write (R/W) — The Read/Write fine is a high- impedance input that is TTL compatible and is used to con- trol the direction of data flow through the ACIA‘s input/out- put data bus interface. When Read/Write is high (MPU Read cycle), ACIA output drivers are turned on and a selected register is read. When it is low, the ACIA output drivers are (AA) MOTOROLA Semiconductor Products Inc. turned off and the MPU writes into a selected register. Therefore, the Read/Write signal is used to select read-only or write-only registers within the ACIA. Chip Select (CSO, CS1, CS2) — These three high- impedance TTL-compatible input lines are used to address the ACIA. The ACIA is selected when CSO and CS1 are high and C82 is low. Transfers of data to and from the ACIA are then performed under the control of the Enable Signal, Read/Write, and Register Select. Register Select (RS) — The Register Select line is a high- impedance input that is TTL compatibie. A high level is used to select the Transmit/Receive Data Registers and a low fevel the Contro!/Status Registers. The Read/Write signal line is used in conjunction with Register Select to select the read-cnly or write-only register in each register pair. Interrupt Request (IRQ) — Interrupt Request is a TTL- compatible, open-drain (no internal pullup}, active low out- put that is used to interrupt the MPU. The IRQ output re- mains low as long as the cause of the interrupt is present and the appropriate interrupt enable within the ACIA is set The TRG status bit, when high, indicates the [RO output is in the active state. interrupts result from conditions in both the transmitter and receiver sections of the ACIA. The transmitter section Causes an interrupt when the Transmitter interrupt Enabled condition is selected (CR5eCR6), and the Transmit Data Register Empty (TDRE) status bit is high. The TORE status bit indicates the current status of the Transmitter Data Register except when inhibited by Clear-to-Send (CTS) be- ing high or the ACIA being maintained in the Reset condi- tion. The interrupt is cleared by writing data into the Transmit Data Register. The interrupt is masked by disabling the Transmitter Interrupt via CR5 or CR6 or by the loss of CTS which inhibits the TDRE status bit. The Receiver sec- tion causes an interrupt when the Receiver Interrupt Enable is set and the Receive Data Register Full (RDRF) status bit is high, an Overrun has occurred, or Data Carrier Detect (DCD) has gone high. An interrupt resulting from the RDRF status bit can be cleared by reading data or resetting the ACIA. In- terrupts caused by Overrun or loss of DCD are cleared by reading the status register after the error condition has oc- curred and then reading the Receive Data Register or reset- ting the ACIA. The receiver interrupt is masked by resetting the Receiver Interrupt Enable. CLOCK INPUTS Separate high-impedance TTL-compatible inputs are pro- vided for clocking of transmitted and received data. Clock frequencies of 1, 16, or 64 times the data rate may be selected. Transmit Clock (Tx CLK} — The Transmit Clock input is used for the clocking of transmitted data. The transmitter in- itiates data on the negative transition of the clock. Receive Clock (Rx CLK) — The Receive Clock input is used for synchronization of received data. (In the + 1 mode, the clock and data must be synchronized externally.) The receiver samples the data on the positive transition of the clock.