MC6850e MC68A50° MC68B50 CONTROL REGISTER The ACIA Control Register consists of eight bits of write- only buffer that are selected when RS and R/W are tow. This register controls the function of the receiver, transmitter, in- terrupt enables, and the Request-to-Send peri- pheral/modem control output. Counter Divide Select Bits (CRO and CR1) — The Counter Divide Select Bits (CRO and CR1) determine the divide ratios utilized in both the transmitter and receiver sections of tne ACIA. Additionally, these bits are used to provide a master reset for the ACIA which clears the Status Register (except for external conditions on CTS and DCD) and initializes both the receiver and transmitter, Master reset does not affect other Control Register bits. Note that after power-on or a power fail/restart, these bits must be set high to reset the ACIA. After resetting, the clock divide ratio may be selected. These counter select bits provide for the following clock divide ratios: CRi CRO Function 0 0 +1 0 1 +16 1 0 +64 1 1 Master Reset Word Select Bits (CR2, CR3, and CR4) — The Word Select bits are used to select word length, parity, and the number of stop bits. The encoding format is as follows: CR4} CR3} CR2 Function 0 0) 0 7 Bits + Even Parity + 2 Stop Bits 0 Q 1 7 Bits + Odd Parity+2 Stop Bits 0 1 10) 7 Bits + Even Parity + 1 Stop Bit ¢) 1 1 7 Bits + Odd Parity + 1 Stop Bit \ 0 0 8 Bits + 2 Stop Bits 1 0 1 8 Bits+ 1 Stop Bit 1 1 0 8 Bits + Even parity + 1 Stop Bit 1 1 1 8 Bits + Odd Parity + 1 Stop Bit Ward length, Parity Select, and Stop Bit changes are not buffered and therefore become effective immediately. Transmitter Control Bits (CR5 and CR6) — Two Transmit- ter Contral bits provide for the control of the interrupt from the Transmit Data Register Empty condition, the Request-to Send (RTS) output, and the transmission of a Break level (space). The following encoding format is used: CR6{ CRS Function 0 ) ATS = tow, Transmitting Interrupt Orsabied. 0 ! RTS = ‘ow, Transmitting Interrupt Enabled. 1 0 RTS = high, Transmitting Interrupt Disabled. 1 1 RTS = iow, Transmits a Break levei on the Transmit Data Output. Transmitting Inter- rupt Disabied. Receive Interrupt Enable Bit (CR7) - The following inter rupts will be enabled by a high tevel in bit position 7 of the Control Register (CR7!: Receive Data Register Full, Overrun, or a flaw: to-high transitian on the Data Carrier Detect (DCD) signal line. (AA) MOTOROLA Semiconductor Products Inc. STATUS REGISTER Information on the status of the ACIA is available to the MPU by reading the ACIA Status Register. This read-only register is selected when RS is low and R/W is high. Infor- mation stored in this register indicates the status of the Transmit Data Register, the Receive Data Register and error logic, and the peripherai/modem status inputs of the ACIA. Receive Data Register Full (RDRF), Bit 0 — Receive Data Register Full indicates that received data has been trans- ferred to the Receive Data Register. RORF is cleared after an MPU read of the Receive Data Register or by a master reset. The cleared or empty state indicates that the contents of the Receive Data Register are not current. Data Carrier Detect being high also causes RDRF to indicate empty. Transmit Data Register Empty (TDRE), Bit 1 — The Transmit Data Register Empty bit being set high indicates that the Transmit Data Register contents have been trans- ferred and that new data may be entered. The low state in- dicates that the register is full and that transmission of a new character has not begun since the last write data command. Data Carrier Detect (DCD), Bit 2 — The Data Carrier Detect bit will be high when the BCD input from a modem has gone high to indicate that a carrier is not present. This bit going high causes an Interrupt Request to be generated when the Receive Interrupt Enable is set. {It remains high after the DCD input is returned low until cleared by first reading the Status Register and then the Data Register or until a master reset occurs. If the DCD input remains high after read status and read data or master reset has occurred, the interrupt is cleared, the DCD status bit remains high and will follow the DCD input. Clear-to-Send (CTS), Bit 3 — The Clear-to-Send bit in- dicates the state of the Clear-to-Send input from a modem. A low CTS indicates that there is a Clear-to-Send from the modem. in the high state, the Transmit Data Register Empty bit is inhibited and the Clear-to-Send status bit will be high. Master reset does not affect the Clear-to-Send status bit. Framing Error (FE), Bit 4 — Framing error indicates that the received character is improperly framed by a start and a stop bit and is detected by the absence of the first stop bit. This error indicates a synchronization error, faulty transmis- sion, or a break condition. The framing error flag is set or reset during the receive data transfer time. Therefore, this er- ror indicator is present throughout the time that the associated character is available. Receiver Overrun (OVRN), Bit 5 — Overrun is an error flag that indicates that one or more characters in the data stream were Jost. That is, a character or a number of characters were received but not read from the Receive Data Register (ROR) prior to subsequent characters being received. The overrun condition begins at the midpoint of the last bit of the second character received in succession without a read of the ROR having occurred. The Overrun does not occur in the Status Register until the valid character prior to Overrun has