SCN2661 PHILIPS | Alldatasheet
Document overview
- Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
- PDF pages: 19
Technical content
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
11994 Apr 27 853-1070 12793
DESCRIPTION
The Philips Semiconductors SCN2661 EPCI is a universal synchronous/asynchronous data communications controller chip that is an enhanced version of the SCN2651. It interfaces easily to all 8-bit and 16-bit microprocessors and may be used in a polled or interrupt driven system environment. The SCN2661 accepts programmed instructions from the microprocessor while supporting many serial data communications disciplines —synchronous and asynchronous — in the full- or half-duplex mode. Special support for BISYNC is provided. The EPCI serializes parallel data characters received from the microprocessor for transmission. Simultaneously, it can receive serial data and convert it into parallel data characters for input to the microcomputer. The SCN2661 contains a baud rate generator which can be programmed to either accept an external clock or to generate internal transmit or receive clocks. Sixteen different baud rates can be selected under program control when operating in the internal clock mode. Each version of the EPCI (A, B, C) has a different set of baud rates.
FEATURES
- Synchronous operation – 5- to 8-bit characters plus parity – Single or double SYN operation – Internal or external character synchronization – Transparent or non-transparent mode – Transparent mode DLE stuffing (Tx) and detection (Rx) – Automatic SYN or DLE-SYN insertion SYN, DLE and DLESYN stripping – Odd, even, or no parity – Local or remote maintenance loopback mode – Baud rate: DC to 1Mbps (1X clock)
- Asynchronous operation – 5- to 8-bit characters plus parity – 1, 1-1/2 or 2 stop bits transmitted – Odd, even, or no parity – Parity, overrun and framing error detection – Line break detection and generation – False start bit detection – Automatic serial echo mode (echoplex) – Local or remote maintenance loopback mode – Baud rate: DC to 1Mbps (1X clock) DC to 62.5kbps (16X clock) DC to 15.625kbps (64X clock) OTHER FEATURES
- Internal or external baud rate clock
- 3 baud rate sets
- 16 internal rates for each set
- Double-buffered transmitter and receiver PIN CONFIGURA TIONS VCC RxC /BKDET DTR RTS DSR RESET BRCLK TxD TxEMT /DSCHG CTS DCD TxRDYRxRDY R /W CE TxC /XSYNC GND RxD DIP PLCC INDEX CORNER TOP VIEW NOTE: Pin Functions the same as 28-pin DIP. 1812 4 1 SD00077
- Dynamic character length switching
- Full- or half-duplex operation
- TTL compatible inputs and outputs
- RxC and TxC pins are short-circuit protected
- Single +5V power supply
- No system clock required
APPLICATIONS
- Intelligent terminals
- Network processors
- Front-end processors
- Remote data concentrators
- Computer-to-computer links
- Serial peripherals
- BISYNC adaptors
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 2
VCC = +5V +5% DWG #PACKAGES Commercial 0°C to +70°C Industrial -40°C to +85°C DWG # 28-Pin Ceramic Dual In-Line Package (cerdip) 0.6” WideSCN2661BC1F28 SCN2661CC1F28 SCN2661BA1F28 SCN2661CA1F28 0589B 28-Pin Plastic Dual In-Line Package (DIP) 0.6” Wide SCN2661AC1N28 SCN2661BC1N28 SCN2661CC1N28 Contact Factory SOT117-2 28-Pin Plastic Lead Chip Carrier (PLCC) SCN2661AC1A28 SCN2661BC1A28 SCN2661CC1A28 Contact Factory SOT261-3 BLOCK DIAGRAM DATA BUS D0–D7 RESET A 0 A 1 R /W CE DATA BUS BUFFER OPERA TION CONTROL MODE REGISTER 1 BAUD RA TE GENERATOR AND CLOCK CONTROL SNE/DLE CONTROL SYN 1 REGISTER SYN 2 REGISTER DLE REGISTER TRANSMITTER TRANSMIT DA TA TxD MODE REGISTER 2 COMMAND REGISTER STA TUS REGISTER BRCLK TxC /SYNC RxC /BKDET DSR MODEM CONTROL DCD CTS RTS DTR TxEMT/ * DSCHG HOLDING REGISTER TRANSMIT SHIFT REGISTER TxRDY * RECEIVE DA TA RECEIVE RECEIVER RxD RxRDY * HOLDING REGISTER SHIFT REGISTER NOTES: * Open–drain output pin. SD00078 ABSOLUTE MAXIMUM RA TINGS 1 SYMBOL PARAMETER RATING UNIT TA Operating ambient temperature2 Note 4 °C TSTG Storage temperature -65 to +150 °C All voltages with respect to ground3 -0.5 to +6.0 /n636861720000000000000000V NOTES: 1. Stresses above those listed under Absolute Maximum Ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at these or at any other condition above those indicated in the operation section of this specification is not implied. 2. For operating at elevated temperatures, the device must be derated based on +150°C maximum function temperature. 3. This product includes circuitry specifically designed for the protection of its internal devices from the damaging effect of excessive static charge. Nonetheless, it is suggested that conventional precautions be taken to avoid applying any voltages larger than the rated maxima. 4. Over recommended free-air operating temperature range and supply voltage range unless otherwise specified. For conditions shown as MIN or MAX, use the appropriate value specified under recommended operating conditions.
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 3
DC ELECTRICAL CHARACTERISTICS 1, 2, 3 SYMBOL PARAMETER TEST CONDITIONS LIMITS UNITSYMBOL PARAMETER TEST CONDITIONS Min Typ Max UNIT Input voltage VIL VIH Low High 2.0 0.8 V V Output voltage VOL VOH 4 Low High IOL = 2.2mA IOH = -400µA 2.4 0.4 V V IIL Input leakage current VIN = 0 to 5.5V 10 µA 3-State output leakage current ILH ILL Data bus high Data bus low VO = 4.0V VO = 0.45V µA µA ICC Power supply current 150 mA NOTES: 1. Over recommended free-air operating temperature range and supply voltage range unless otherwise specified. For conditions shown as MIN or MAX, use the appropriate value specified under recommended operating conditions. 2. All voltages measurements are referenced to ground. All time measurements are at the 50% level for inputs (except tBRH and tBRL ) and at 3. Typical values are at +25°C, typical supply voltages and typical processing parameters. 4. INTR, TxRDY, RxRDY and TxEMT/DSCHG outputs are open-drain. CAPACITANCE TA = 25°C, VCC = 0V SYMBOL PARAMETER TEST CONDITIONS LIMITS UNITSYMBOL PARAMETER TEST CONDITIONS Min Typ Max UNIT Capacitance C IN C OUT C I/O Input Output Input/Output fC = 1MHz Unmeasured pins tied to ground pF pF pF
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 4
AC ELECTRICAL CHARACTERISTICS 1, 2, 3 SYMBOL PARAMETER TEST CONDITIONS LIMITS UNITSYMBOL PARAMETER TEST CONDITIONS Min Typ Max UNIT Pulse width tRES tCE Reset Chip enable 1000 250 ns ns Setup and hold time tAS tAH tCS tCH tDS tDH tRXS tRXH Address setup Address hold R /W control setup R /W control hold Data setup for write Data hold for write RX data setup RX data hold 150 300 350 ns ns ns ns ns ns ns ns tDD tDF 7 tCED Data delay time for read Data bus floating time for read CE to CE delay C L = 150pF C L = 150pF 600 200 100 ns ns ns Input clock frequency fBRG fBRG fR/T6 Baud rate generator (2661A, B) Baud rate generator (2661C) TxC or RxC 1.0 1.0 dc 4.9152 5.0688 4.9202 5.0738 1.0 MHz MHz MHz Clock width tBRH 5 tBRH 5 tBRL 5 tBRL 5 tR/TH tR/TL6 Baud rate High (2661A, B) Baud rate High (2661C) Baud rate Low (2661A, B) Baud rate Low (2661C) TxC or RxC High TxC or RxC Low 480 480 ns ns ns ns ns ns tTXD tTCS TxD delay from falling edge of TxC Skew between TxD changing and falling edge of TxC output4 C L = 150pF C L = 150pF 0 650 ns ns NOTES: 1. Over recommended free-air operating temperature range and supply voltage range unless otherwise specified. For conditions shown as MIN or MAX, use the appropriate value specified under recommended operating conditions. 2. All voltages measurements are referenced to ground. All time measurements are at the 50% level for inputs (except tBRH and tBRL ) and at 3. Typical values are at +25°C, typical supply voltages and typical processing parameters. 4. Parameter applies when internal transmitter clock is used. 5. Under test conditions of 5.0688MHz fBRG (68661) and 4.9152MHz fBRG (68661A, B), tBRH and tBRL measured at VIH and VIL, respectively. 6. In asynchronous local loopback mode, using 1X clock, the following parameters apply: fR/T = 0.83MHz max and tR/TL = 700ns min. 7. See AC load conditions. BLOCK DIAGRAM The EPCI consists of six major sections. These are the transmitter, receiver, timing, operation control, modern control and SYN/DLE control. These sections communicate with each other via an internal data bus and an internal control bus. The internal data bus interfaces to the microprocessor data bus via a data bus buffer. Operation Control This functional block stores configuration and operation commands from the CPU and generates appropriate signals to various internal sections to control the overall device operation. It contains read and write circuits to permit communications with the microprocessor via the data bus and contains mode registers 1 and 2, the command register, and the status register. Details of register addressing and protocol are presented in the EPCI programming section of this data sheet. Timing The EPCI contains a Baud Rate Generator (BRG) which is programmable to accept external transmit or receive clocks or to divide an external clock to perform data communications. The unit can generate 16 commonly used baud rates, any one of which can be selected for full-duplex operation. See Table 1. Receiver The receiver accepts serial data on the RxD pin, converts this serial input to parallel format, checks for bits or characters that are unique to the communication technique and sends an “assembled” character to the CPU. Transmitter The transmitter accepts parallel data from the CPU, converts it to a serial bit stream, inserts the appropriate characters or bits (based on
1994 Apr 27 5
stream of data on the TxD output pin. indication between the CPU and a modem. storing the SYN1, SYN2, and DLE characters provided by the CPU. Table 1. Baud Rate Generator Characteristics
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 6
68661C (BRCLK = 5.0688MHz) MR23–20 BAUD RATE ACTUAL FREQUENCY 16X CLOCK PERCENT ERROR DIVISOR 0000 50 0.8kHz — 6336 0001 75 1.2 — 4224 0010 110 1.76 — 2880 0011 134.5 2.1523 0.016 2355 0100 150 2.4 — 2112 0101 300 4.8 — 1056 0110 600 9.6 — 528 0111 1200 19.2 — 264 1000 1800 28.8 — 176 1001 2000 32.081 0.253 158 1010 2400 38.4 — 132 1011 3600 57.6 — 88 1100 4800 76.8 — 66 1101 7200 115.2 — 44 1110 9600 153.6 — 33 1111 19200 316.8 3.125 16 NOTE: 16X clock is used in asynchronous mode. In synchronous mode, clock multiplier is 1X and BRG can be used only for TxC. OPERATION The functional operation of the 68661 is programmed by a set of control words supplied by the CPU. These control words specify items such as synchronous or asynchronous mode, baud rate, number of bits per character, etc. The programming procedure is described in the EPCI programming section of the data sheet. After programming, the EPCI is ready to perform the desired communications functions. The receiver performs serial to parallel conversion of data received from a modem or equivalent device. The transmitter converts parallel data received from the CPU to a serial bit stream. These actions are accomplished within the framework specified by the control words. Receiver The 68661 is conditioned to receiver data when the DCD input is Low and the RxEN bit in the commands register is true. In the asynchronous mode, the receiver looks for High-to-Low (mark to space) transition of the start bit on the RxD input line. If a transition is detected, the state of the RxD line is sampled again after a delay of one-half of a bit-time. If RxD is now high, the search for a valid start bit is begun again. If RxD is still Low, a valid start bit is assumed and the receiver continues to sample the input line at one bit time intervals until the proper number of data bits, the parity bit, and one stop bit have been assembled. The data are then transferred to the receive data holding register, the RxRDY bit in the status register is set, and the RxRDY output is asserted. If the character length is less than 8 bits, the High order unused bits in the holding register are set to zero. The parity error, framing error, and overrun error status bits are strobed into the status register on the positive going edge of RxC corresponding to the received character boundary. If the stop bit is present, the receiver will immediately begin its search for the next start bit. If the stop bit is absent (framing error), the receiver will interpret a space as a start bit if it persists into the next bit timer interval. If a break condition is detected (RxD is Low for the entire character as well as the stop bit), only one character consisting of all zeros (with the FE status bit SR5 set) will be transferred to the holding register. The RxD input must return to a High condition before a search for the next start bit begins. Pin 25 can be programmed to be a break detect output by appropriate setting of MR27-MR24. If so, a detected break will cause that pin to go High. When RxD returns to mark for one RxC time, pin 25 will go low. Refer to the Break Detection Timing Diagram. When the EPCI is initialized into the synchronous mode, the receiver first enters the hunt mode on a 0 to 1 transition of RxEN (CR2). In this mode, as data are shifted into the receiver shift register a bit at a time, the contents of the register are compared to the contents of the SYN1 register. If the two are not equal, the next bit is shifted in and the comparison is repeated. When the two registers match, the hunt mode is terminated and character assembly mode begins. If single SYN operation is programmed, the SYN DETECT status bit is set. If double SYN operation is programmed, the first character assembled after SYN1 must be SYN2 in order for the SYN DETECT bit to be set. Otherwise, the EPCI returns to the hunt mode. (Note that the sequence SYN1-SYN1-SYN2 will not achieve synchronization.) When synchronization has been achieved, the EPCI continues to assemble characters and transfer then to the holding register, setting the RxRDY status bit and asserting the RxRDY output each time a character is transferred. The PE and OE status bits are set as appropriate. Further receipt of the appropriate SYN sequence sets the SYN DETECT status bit. If the SYN stripping mode is commanded, SYN characters are not transferred to the holding register. Note that the SYN characters used to establish initial synchronization are not transferred to the holding register in any case. External jam synchronization can be achieved via pin 9 by appropriate setting of MR27-MR24. When pin 9 is an XSYNC input, the internal SYN1, SYN1–SYN2, and DLE–SYN1 detection is disabled. Each positive going signal on XSYNC will cause the receiver to establish synchronization on the rising edge of the next RxC pulse. Character assembly will start with the RxD input at this edge. XSYNC may be lowered on the next rising edge of RxD. This external synchronization will cause the SYN DETECT status bit to be set until the status register is read. Refer to XSYNC timing diagram.
1994 Apr 27 7
Table 2. CPU-Related Signals A0, A1 12,10 I Address lines used to select internal EPCI registers. R /W 13 I Read command when Low, write command when High. valid and that the operation specified by the RW , A1 and A0 inputs should be performed. When High, places the D0–D7 lines in the 3-State condition. CPU. D0 is the least significant bit, D7 the most significant bit. is enabled. It is an open-drain output which can be used as an interrupt to the CPU. open-drain output which can be used as an interrupt to the CPU. can be used as an interrupt to the CPU. See Status Register (SR2) for details. Table 3. Device-Related Signals receiver and transmitter clocks are used. an external jam synchronization input. RxD 3 I Serial data input to the receiver. “Mark” is High, “space” is Low. condition when the transmitter is disabled. when its state changes if CR2 or CR0 = 1. used to indicate data terminal ready. used to indicate request to send. See Command Register (CR5) for details.
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 8
The EPCI is conditioned to transmit data when the CTS input is Low and the TxEN command register bit is set. The 68661 indicates to the CPU that it can accept a character for transmission by setting the TxRDY status bit and asserting the TxRDY output. When the CPU writes a character into the transmit data holding register, these conditions are negated. Data are transferred from the holding register to the transmit shift register when it is idle or has completed transmission of the previous character. The TxRDY conditions are then asserted again. Thus, one full character time of buffering is provided. In the asynchronous mode, the transmitter automatically sends a start bit followed by the programmed number of data bits, the least significant bit being sent first. It then appends an optional odd or even parity bit and the programmed number of stop bits. If, following transmission of the data bits, a new character is not available in the transmit holding register, the TxD output remains in the marking (High) condition and the TxEMT/DSCHG output and its corresponding status bit are asserted. Transmission resumes when the CPU loads a new character into the holding register. The transmitter can be forced to output a continuous Low (BREAK) condition by setting the send break command bit (CR3) High. In the synchronous mode, when the 68661 is initially conditioned to transmit, the TxD output remains High and the TxRDY condition is asserted until the first character to be transmitted (usually a SYN character) is loaded by the CPU. Subsequent to this, a continuous stream of characters is transmitted. No extra bits (other than parity, if commanded) are generated by the EPCI unless the CPU fails to send a new character to the EPCI by the time the transmitter has completed sending the previous character. Since synchronous communication does not allow gaps between characters, the EPCI asserts TxEMT and automatically “fills” the gap by transmitting SYN1s, SYN1–SYN2 doublets, or DLE–SYN1 doubles, depending on the state of MR16 and MR17. Normal transmission of the message resumes when a new character is available in the transmit data holding register. If the send DLE bit in the commands register is true, the DLE character is automatically transmitted prior to transmission of the message character in the THR. EPCI PROGRAMMING Prior to initiating data communications, the 68661 operational mode must be programmed by performing write operations to the mode and command registers. In addition, if synchronous operation is programmed, the appropriate SYN/DLE registers must be loaded. The EPCI can be reconfigured at any time during program execution. A flowchart of the initialization process appears in Figure 1. The internal registers of the EPCI are accessed by applying specific signals to the CE, R/W, A1 and A0 inputs. The conditions necessary to address each register are shown in Table 4. The SYN1, SYN2, and DLE registers are accessed by performing write operations with the conditions A1 = 0, A0 = 1, and R/W = 1. The first operation loads the SYN1 register. The next loads the DLE register. Reading or loading the mode registers is done in a similar manner. The first write (or read) operation addresses mode register 1, and a subsequent operation addresses mode register 2. If more than the required number of accesses are made, the internal sequencer recycles to point at the first register. The pointers are reset to SYN1 register and mode register 1 by a RESET input or by performing a read command register operation, but are unaffected by any other read or write operation. The 68661 register formats are summarized in Tables 5, 6, 7 and 8. Mode registers 1 and 2 define the general operational characteristics of the EPCI, while the command register controls the operation within this basic framework. The EPCI indicates its status in the status register. These registers are cleared when a RESET input is applied. Mode Register 1 (MR1) Table 5 illustrates mode register 1. Bits MR11 and MR10 select the communication format and baud rate multiplier. 00 specifies synchronous format. However, the multiplier in asynchronous format applies only if the external clock input option is selected by MR24 or MR25. MR13 and MR12 select a character length of 5, 6, 7 or 8 bits. The character length does not include the parity bit, if programmed, and does not include the start and stop bits in asynchronous mode. MR14 controls parity generation. If enabled, a parity bit is added to the transmitted character and the receiver performs a parity check on incoming data. MR15 selects odd or even parity when parity is enabled by MR14. In asynchronous mode, MR17 and MR16 select character framing of 1, 1.5, or 2 stop bits. (If 2X baud rate is programmed, 1.5 stop bits defaults to 1 stop bits on transmit.) In synchronous mode, MR17 controls the number of SYN characters used to establish synchronization and for character fill when the transmitter is idle. SYN1 alone is used if MR17 = 1, and SYN1–SYN2 is used when MR17 = 0. If the transparent mode is specified by MR16, DLE–SYN1 is used for character fill and SYN detect, but the normal synchronization sequence is used to establish character sync. When transmitting, a DLE character in the transmit holding register will cause a second DLE character to be transmitted. This DLE stuffing eliminates the software DLE compare and stuff on each transparent mode data character. If the send DLE command (CR3) is active when a DLE is loaded into THR, only one additional DLE will be transmitted. Also, DLE stripping and DLE detect (with MR14 = 0) are enabled. The bits in the mode register affecting character assembly and disassembly (MR12–MR16) can be changed dynamically (during active receive/transmit operation). The character mode register affects both the transmitter and receiver; therefore in synchronous mode, changes should be made only in half-duplex mode (RxEN = 1 or TxEN = 1, but not both simultaneously = 1). In asynchronous mode, character changes should be made when RxEN and TxEN = 0 or when TxEN = 1 and the transmitter is marking in half-duplex mode (RxEN = 0). To effect assembly/disassembly of the next received/transmitted character, MR12 – 15 must be changed within n bit times of the active going state of RxRDY/TxRDY. Transparent and non-transparent mode changes (MR16) must occur within n-1 bit times of the character to be affected when the receiver or transmitter is active. (n – smaller of the new and old character lengths.)
1994 Apr 27 9
Table 4. 68661 Register Addressing SYN2 before DLE can be written. Figure 1. 68661 Initialization Flowchart
1994 Apr 27 10
Table 5. Mode Register 1 (MR1) selected (MR11, MR10) in any case. Table 6. Mode Register 2 (MR2)
- When pin 9 is programmed as XSYNC input, SYN1, SYN1–SYN2, and DLE–SYN1 detection is disabled.
1X and 16X are clock outputs. Table 7. Command Register (CR)
1994 Apr 27 11
Table 8. Status Register (SR) control the frequency of the internal baud rate generator (BRG). Sixteen rates are selectable for each EPCI version (–1,–2,–3). the BRG or an external input) and the function at pins 9 and 25. (RxEN) enable or disable the transmitter and receiver respectively. search (async) or hunt mode (sync). Bits CR1 (DTR) and CR5 (RTS) control the DTR and RTS outputs. Data at the outputs are the logical complement of the register data. all DLE-non-DLE character sequences. internal latch for this bit. and then go High (inactive) one TxC time later. accordance with the mode and status register instructions. disabled. Only the first character of a break condition is echoed. The TxD output will go High until the next valid start is detected.
- Data assembled by the receiver are automatically placed in the
- The transmitter is clocked by the receive clock.
- The TxEMT/DSCHG pin will reflect only the data set change
- The TxEN command (CR0) is ignored.
- In the non-transparent, single SYN mode (MR17 – MR16 = 10),
to the Receive Data Holding register (RHR).
- In the non-transparent, double SYN mode (MR17 – MR16 = 00),
ately preceded by SYN1, are not transferred the RHR.
- In transparent mode (MR16 = 1), character in the data stream
DLE detect and SYN detect status bits (SR3 and SR5).
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 12
- The transmitter output is connected to the receiver input. 2. DTR is connected to DCD and RTS is connected to CTS. 3. The receiver is clocked by the transmit clock. 4. The DTR , RTS and TxD outputs are held High. 5. The CTS, DCD, DSR and RxD inputs are ignored. Additional requirements to operate in the local loopback mode are that CR0 (TxEN), CR1 (DTR) and CR5 (RTS) must be set to 1. CR2 (RxEN) is ignored by the EPCI. The second diagnostic mode is the remote loopback mode (CR7 – CR6 = 11). In this mode: 1. Data assembled by the receiver are automatically placed in the transmit holding register and retransmitted by the transmitter on the TxD output. 2. The transmitter is clocked by the receiver clock. 3. No data are sent to the local CPU, but he error status conditions (PE, FE) are set. 4. The RxRDY, TxRDY, and TxEMT/DSCHG outputs are held High. 5. CR0 (TxEN) is ignored. 6. All other signals operate normally. Status Register The data contained in the status register (as shown in Table 8) indicates receiver and transmitter conditions and modem/data set status. SR0 is the transmitter ready (TxRDY) status bit. It, and its corresponding output, are valid only when the transmitter is enabled. If equal to 0–, it indicates that the transmit data holding register has been loaded by the CPU and the data has not been transferred to the transmit register. If set equal to 1, it indicates that the holding register is ready to accept data from the CPU. This bit is initially set when the transmitter is enabled by CR0, unless a character has previously been loaded into the holding register. It is not set when the automatic echo or remote loopback modes are programmed. When this bit is set, the TxRDY output pin is Low. In the automatic echo and remote loopback modes, the output is held High. SR1, the receiver ready (RxRDY) status bit, indicates the condition of the receive data holding register. If set, it indicates that a character has been loaded into the holding register from the receive shift register and is ready to be read by the CPU. If equal to zero, there is no new character in the holding register. This bit is cleared when the CPU reads the receive data holding register or when the receiver is disabled by CR2. When set, the RxRDY output is Low. The TxEMT/DSCHG bit, SR2, when set, indicates either a change of state of the DSR or DCD inputs (when CR2 or CR0 = 1) or that the transmit shift register has completed transmission of a character and no new character has been loaded into the transmit data holding register. Note that in synchronous mode this bit will be set even though the appropriate “fill” character is transmitted. TxEMT will not go active until at least one character has been transmitted. It is cleared by loading the transmit data holding register. The DSCHG conditions is enabled when TxEN = 1 or RxEN = 1. It is cleared when the status register is read by the CPU. If the status register is read twice and SR2 – 1 while SR6 and SR7 remain unchanged, then a TxEMT condition exists. When SR2 is set, the TxEMT /DSCHG output is Low. SR3, when set, indicates a received parity error when parity is enabled by MR14. In synchronous transparent mode (MR16 = 1), with parity disabled, it indicates that a character matching DLE register was received and the present character is neither SYN2 or DLE. This bit is cleared when the next character following the above sequence is loaded into RHR, when the receiver is disabled, or by a reset error command, CR4. The overrun error status bit, SR4, indicates that the previous character loaded into the receive holding register was not ready the CPU at the time of new received character was transferred into it. This bit is cleared when the receiver is disabled or by the reset error command, CR4. In asynchronous mode, bit SR5 signifies that the received character was not framed by a stop bit; i.e., only the first stop bit is checked. If RHR = 0 when SR5 = 1, a break condition is present. In synchronous non-transparent mode (MR16 = 0), it indicates receipt of the SYN1 character in single SYN mode or the SYN1 – SYN2 pair in double SYN mode. In synchronous transparent mode (MR16 = 1), this bit is set upon detection of the initial synchronizing characters (SYN or SYN1 – SYN2) and, after synchronization has been achieved, when a DLE–SYN1 pair is received. The bit is reset when the receiver is disabled, when the reset error command is given in asynchronous mode, or when the status register is read by the CPU in the synchronous mode. SR6 and SR7 reflect the conditions of the DCD and DSR inputs, respectively. A Low input sets its corresponding status bit, and a High input clears it.
1994 Apr 27 13
Table 9. 68661 EPCI vs 2651 PCI
- SYN1 stripping in double sync
- Terminate ASYNC transmission (drop
Reset CR0 when TxEMT goes from 1 to 0.
- Internal BRG used for RxC.
** Internal BRG used for TxC. C L = Load capacitance includes JIG and probe capacitance.
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 14
BRCLK, TxC , RxC 1/fBRG tR/TH tBRH tR/TL tBRL 1/fR/T CLOCK TRANSMIT RECEIVE TxC (INPUT)
1 BIT TIME
(1, 16, OR 64 CLOCK PERIODS) TxD TxC (OUTPUT) tTxD tTCS tTxD RxD RxC (IX) tRXS tRXH tCE tCED CE A 0, A1 R /W tAS tCS tAH tCH D 0–D 7 (WRITE) tDS tDH BUS FLOATING NOT VALID BUS FLOATINGDATA VALID tDD tDF D 0–D 7 (READ) READ AND WRITE SD00052
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 15
TIMING DIAGRAMS (Continued) 1 2 3 4 5 DATA 1 1 2 3 4 5 DATA 2 1 2 3 4 5 DATA 3 1 2 3 4 5 SYN 1 1 2 3 4 5 DATA 4 1 2 3 4 5 DATA 1 A B C 1 2 3 4 5A B C DATA 2 1 2 3 4 5A B C DATA 3 1 2A DATA 4 D D DATA 1 DATA 2 DATA 3 DATA 4 DATA 1 DATA 2 DATA 3 DATA 4 TxC (1X) TxD TxEN TxRDY TxEMT CE FOR WRITE OF THR TxD TxEN TxRDY TxEMT CE FOR WRITE OF THR ASYNCHRONOUS MODE SYNCHRONOUS MODE TxRDY, TxEMT (Shown for 5-bit characters, no parity, 2 stop bits [in asynchronous mode]) NOTES: A = Start bit B = Stop bit 1 C = Stop bit 2 D = TxD marking condition TxEMT goes low at the beginning of the last data bit, or, if parity is enabled, at the beginning of the parity bit. SD00053
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 16
TIMING DIAGRAMS (Continued) SD00081 tes tH 1X RxC XSYNC RxD RxC + 16 OR 64 RxD X 0 1 2 3 4 CHARACTER ASSEMBL Y EXTERNAL SYNCHRONIZA TION WITH XSYNC tes = XSYNC SETUP TIME = 300ns tH = XSYNC HOLD TIME = ONE RxC BREAK DETECTION TIMING MISSING STOP BIT DETECTED SET FE BIT* 1st DATA BIT SAMPLED LOOK FOR START BIT = LOW (IF RxD IS HIGH, LOOK FOR HIGH TO LOW TRANSITION) FALSE ST ART BIT CHECK MADE (RxD LOW) Rx CHARACTER = 5 BITS, NO PARITY MISSING ST OP BIT DETECTED, SET FE BIT. 0 → RHR, ACTIVATE RxRDY . SET BKDET PIN RxD → INPUT RxSR UNTIL A MARK T O SPACE TRANSITION OCCURS. NOTE: * If the stop bit is present, the start bit search will commence immediately.
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 17
TIMING DIAGRAMS (Continued) 1 2 3 4 5 SYN 1 1 2 3 4 5 DATA 1 1 2 3 4 5 DATA 2 1 2 3 4 5 DATA 3 1 2 3 4 5 DATA 4 1 2 3 4 5 DATA 1 A B C 1 2 3 4 5A B C DATA 2 1 2 3 4 5A DATA 3 D READ RHR (DATA 1) READ RHR (DATA 3) READ STATUS RxC RxD RxEN RxRDY CE FOR READ RxD RxEN RxRDY CE FOR READ ASYNCHRONOUS MODE SYNCHRONOUS MODE RxRDY (Shown for 5-bit characters, no parity, 2 stop bits [in asynchronous mode]) NOTES: A = Start bit B = Stop bit 1 C = Stop bit 2 D = TxD marking condition 1 2 3 4 5 DATA 5 IGNORED READ RHR (DATA 1) READ RHR (DATA 2) READ RHR (DATA 3) READ RHR (DATA 3) READ STATUS SYNDET STA TUS BIT D_ _ B C 1 2 3A DATA 4 OVERRUN STA TUS BIT SD00054
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 18
(OPT) BAUD RA TE CLOCK OSCILLATOR ASYNCHRONOUS INTERFACE TO CRT TERMINAL CRT TERMINAL ADDRESS BUS CONTROL BUS DATA BUS RxD TxD SCN2661/68661 ASYNCHRONOUS INTERFACE T O TELEPHONE LINES DSR DTR CTS RTS DCD BRCLK ASYNC MODEM BAUD RA TE CLOCK OSCILLATOR PHONE LINE INTERFACE TELEPHONE LINE
Philips Semiconductors Product specification SCN2661/SCN68661Enhanced programmable communications interface (EPCI)
1994 Apr 27 19
TYPICAL APPLICATIONS (Continued) ADDRESS BUS CONTROL BUS DATA BUS RxD TxD SCN2661/68661 SYNCHRONOUS TERMINAL OR PERIPHERAL DEVICE SYNCHRONOUS INTERFACE T O TERMINAL OR PERIPHERAL DEVICE ADDRESS BUS CONTROL BUS DATA BUS RxD TxD SCN2661/68661 SYNCHRONOUS INTERFACE T O TELEPHONE LINES DCD RTS DSR DTR SYNC MODEM PHONE LINE INTERFACE TELEPHONE LINE RxC TxC RxC TxC CTS SD00083