16 channel serial interface rs232/rs422 (33 pages)
Summary of Contents for Tews Technologies TPCE863
Page 1
TPCE863 4 Channel High Speed Sync/Async Serial Interface Version 1.0 User Manual Issue 1.0.1 August 2014 TEWS TECHNOLOGIES GmbH Am Bahnhof 7 25469 Halstenbek, Germany Phone: +49 (0) 4101 4058 0 Fax: +49 (0) 4101 4058 19 e-mail: info@tews.com www.tews.com...
Page 2
However TEWS TECHNOLOGIES GmbH reserves the right to change the product described in this document at any time without notice. TEWS TECHNOLOGIES GmbH is not liable for any damage arising out of the application or use of the device described herein.
Page 3
Issue Description Date 1.0.0 Initial Issue September 2012 1.0.1 General Revision August 2014 TPCE863 User Manual Issue 1.0.1 Page 3 of 72...
1 Product Description The TPCE863 is a standard height, half length PCI Express 1.1 compliant module with four high speed serial data communication channels. The serial communication controller is implemented in FPGA logic, along with the bus master capable PCI interface, guaranteeing long term availability and having the option to implement additional functions in the future.
If FIT rates are not available, MIL-HDBK-217F and MIL-HDBK-217F Notice 2 formulas are used for FIT rate calculation. Humidity 5 – 95 % non-condensing Weight TPCE863-10R: 86 g Table 2-1 : Technical Specification TPCE863 User Manual Issue 1.0.1 Page 11 of 72...
3 Handling and Operation Instructions ESD Protection The TPCE863 is sensitive to Electrostatic Discharge (ESD). Packing, unpacking and all other handling of the TPCE863 has to be done in an ESD/EOS protected Area. TPCE863 User Manual Issue 1.0.1 Page 12 of 72...
PCIe interface and the on board PCI bus (i.e. the FPGA). PI7C9X111SL PCIe/PCI Bridge The PI7C9X111SL is a PCI Express to PCI reversible bridge. On the TPCE863 the PI7C9X111SL is used in transparent, forward mode only. 4.2.1 PI7C9X111SL Register Map...
The FPGA implements a set of control & status registers as a PCI target, accessible in the PCI memory space. The FPGA also implements a PCI DMA/Master engine used for the data transfers to and from host/system memory. The FPGA configures from a serial Flash after power-up. TPCE863 User Manual Issue 1.0.1 Page 16 of 72...
4.3.1 PCI Configuration Space The SCC FPGA is assigned PCI device number 0 on the TPCE863 embedded PCI bus. PCI Configuration Space Header Offset Device ID Vendor ID 0x00 (TPCE863: 0x735F) (TEWS Technologies 0x1498) 0x04 Status Command Class Code 0x08...
5 Address Map Register Space The Register Space is accessible in the PCI Memory Space of the TPCE863 embedded PCI bus. The Register Space Base address is found at PCI BAR0 (Offset 0x10) in the PCI Configuration Space of the...
Register Space PCI Base Address + SCC Channel Offset + SCC Register Offset Register Space PCI Base Address: PCI Base Address 0 (Offset 0x10 in the PCI Configuration Space of the FPGA PCI Device) TPCE863 User Manual Issue 1.0.1 Page 20 of 72...
CFGIQSCC2RX Configure Interrupt Queue SCC2 Receive (see above) CFGIQSCC1RX Configure Interrupt Queue SCC1 Receive (see above) CFGIQSCC0RX Configure Interrupt Queue SCC0 Receive (see above) TPCE863 User Manual Issue 1.0.1 Page 22 of 72...
Page 23
Upon action request, the DMA (interrupt) controller will evaluate the configuration interrupt queue base address and length registers which must have been programmed by software before. 20:14 Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 23 of 72...
’0’: No new interrupt vector was transferred into the corresponding queue. ’1’: At least one new interrupt vector was transferred into the corresponding queue. 23:22 Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 25 of 72...
’HOLD’ bit in each receive/transmit descriptor. ’1’ Last Receive/Transmit Descriptor Address mode. The descriptor chain end condition is controlled via registers LRDA/LTDA. Table 5-7 : Global Mode Register TPCE863 User Manual Issue 1.0.1 Page 26 of 72...
DMAC to transfer all data immediately. This may be useful for not frame oriented data transmission, e.g. in ASYNC protocol mode. Table 5-12 : FIFO Control Register 4 TPCE863 User Manual Issue 1.0.1 Page 29 of 72...
TFSIZE0 Main Transmit-FIFO Size (Depth) Channel 0 Main Transmit-FIFO Size (Depth) is 2 power (TFSIZEi + 2) FIFO Size (Depth) in TFSIZEi DWords (4 Bytes) Table 5-14: FIFO Control Register 1 TPCE863 User Manual Issue 1.0.1 Page 30 of 72...
(i=3..0): ’0’: ERR interrupt generation is enabled for the dedicated DMA transmit channel. ’1’: ERR interrupt generation is disabled for the dedicated DMA transmit channel. Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 31 of 72...
Note: To avoid unexpected DMA controller behavior, it is recommended to apply ’IDT’ command only, if the specific DMA channel is in reset state. 18:0 Reserved (0 for reads) Table 5-15: CHiCFG Register TPCE863 User Manual Issue 1.0.1 Page 32 of 72...
5.5.16 CHiLRDA – Channel i Last Receive Descriptor Address Register (i=0...3) (0x00C8, 0x00CC, 0x00D0, 0x00D4) Symbol Description Access Reset Value 31:2 CHiLRDA PCI Base Address of Last Receive Descriptor Table 5-20: CHiLRDA Register TPCE863 User Manual Issue 1.0.1 Page 33 of 72...
5.5.19 ISPR – In-System-Programming Register (0x00F4) This register is reserved for (factory) reprogramming of the FPGA configuration flash. No write accesses shall be done to this address, as permanent damage may occur. TPCE863 User Manual Issue 1.0.1 Page 34 of 72...
LRST Local Reset Self-clearing command bit. The complete local part of the device is reset. Only the registers in the PCI configuration space keep their values. Table 5-23: Global Control Register TPCE863 User Manual Issue 1.0.1 Page 35 of 72...
Recommended after changes in protocol configuration (switching between the protocol engines or sub- modes of HDLC). Note: A receive clock must be present. 15:0 Reserved (0 for reads) Table 5-24: Command Register TPCE863 User Manual Issue 1.0.1 Page 36 of 72...
DPLL is synchronized. ’1’ DPLL is asynchronous (re-synchronization process is started automatically). 18:1 Reserved (0 for reads) DSR3 Data Set Ready Channel 3 (Only on channel 3!) Table 5-25: Status Register TPCE863 User Manual Issue 1.0.1 Page 37 of 72...
Transmitter/Receiver Clock Rate is Data Bit Rate x16. Bits are sampled 16 times. The result is determined by a majority decision of 3 samples around the bit center. NRZ encoding has to be selected. Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 38 of 72...
’1’: Transmitter is always enabled. Note: In ASYNC mode the current byte is completely sent, even if CTS# becomes deasserted during transmission. 17:16 Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 39 of 72...
The receiver does not expect a CRC. Note: A received checksum (2 or 4 bytes) is always forwarded to the receive buffer as data. Reserved (0 for reads) (hdlc) Reserved (0 for reads) TPCE863 User Manual Issue 1.0.1 Page 41 of 72...
Transmit CRC Checking Mode (hdlc) (hdlc) ’0’: The transmit checksum (2 or 4 bytes) is generated and appended to the transmit data. ’1’: The transmit checksum is not generated. Table 5-28: Channel Configuration Register 2 TPCE863 User Manual Issue 1.0.1 Page 42 of 72...
14:8 Reserved (0 for reads) Termination Character (async./isochr.) Defines the termination character which is monitored on the receive data stream if enabled via bit ’TCDE’. Table 5-30: Termination Character Register TPCE863 User Manual Issue 1.0.1 Page 43 of 72...
(hdlc) PLLA CDSC Table 5-31: Interrupt Mask Register Unused interrupts shall be masked to avoid unwanted behavior. Especially CSC and CDSC should be masked if CTS and CD inputs are unconnected. TPCE863 User Manual Issue 1.0.1 Page 44 of 72...
It is set to ’1’, if a character with wrong parity has been received. If enabled via bit ’RFDF’, this error status is additionally stored in the receive status byte generated for each receive character. TPCE863 User Manual Issue 1.0.1 Page 45 of 72...
If CCR0.VIS is set to ‘1’ then masked interrupt status bits will be visible in the ISR. To clear these interrupt flags, the host CPU must write ‘1’ to the corresponding ISR bit. TPCE863 User Manual Issue 1.0.1 Page 46 of 72...
‘0’: No inverting of TxC (the controller generates transmit data bits with the rising TxC edge) ‘1’: TxC is inverted (the controller generates transmit data bits with the falling TxC edge) TPCE863 User Manual Issue 1.0.1 Page 47 of 72...
Each descriptor contains a ’next descriptor address’ field to implement the linked list. Because the DMA controller cannot distinguish between valid and invalid addresses, a ’Hold’ mechanism is implemented to prevent the DMA controller from branching to invalid memory locations. TPCE863 User Manual Issue 1.0.1 Page 49 of 72...
(HDLC) or the end of data block (ASYNC). When transferring the last data from this transmit data section into the internal FIFO the DMAC marks this data with a ’frame end / block end’ indication bit. TPCE863 User Manual Issue 1.0.1 Page 50 of 72...
Page 51
In this case the value in the BTDA register is used as a pointer for the next transmit descriptor. The descriptor start address must be DWORD aligned. TPCE863 User Manual Issue 1.0.1 Page 51 of 72...
Transmit Data Pointer: This 32-bit pointer contains the start address of the transmit data section for a transmit descriptor. Although the TPCE863 works long word oriented, it is possible to begin transmit data section at byte addresses. C: Complete Bit This bit is set by the DMAC if •...
Page 53
When both addresses differ, it branches to the next receive descriptor. Otherwise the corresponding DMAC receive channel is deactivated as long as the host CPU does not write a new value to the LRDA register or provides an action request with ’IDR’ command. TPCE863 User Manual Issue 1.0.1 Page 53 of 72...
Table 6-4 : Receive Data Section Status Byte (HDLC) The contents of the RSTA byte relate to the received HDLC frame and are generated when end-of-frame is recognized at the serial receive interface. TPCE863 User Manual Issue 1.0.1 Page 54 of 72...
DMAC are transferred to the configuration queue IQCFG. The internal blocks provide mask registers for suppressing interrupt indications. Masked interrupts will neither generate an interrupt vector nor an INTA signal or GSTAR indication. TPCE863 User Manual Issue 1.0.1 Page 55 of 72...
FI and HI interrupt indications caused by one descriptor will be generated into one interrupt vector with ’HI’ and ’FI’ bit set. TPCE863 User Manual Issue 1.0.1 Page 56 of 72...
Page 58
Issued if a transmit descriptor contains a hold condition but FE=’0’ or if the last descriptor had NO=0 and FE=’0’. ERR=’0’ No Error (ERR) interrupt is indicated by this vector. ERR=’1’ An Error (ERR) interrupt is indicated by this vector. TPCE863 User Manual Issue 1.0.1 Page 58 of 72...
Table 6-10: SCC Interrupt Vector Source-IDs Bit field [18:0] of the SCC interrupt vector is a copy of the SCC Interrupt Status Register ISR (for detailed information see chapter ‘ISR - Interrupt Status Register’). TPCE863 User Manual Issue 1.0.1 Page 59 of 72...
The receiver will store the frame data (including CRC) plus a status byte. Data in Transmit FIFO data Transmitted / Received Flag data CRC-16 CRC-32 Flag Data Stream Data in Receive FIFO data CRC-16 CRC-32 RSTA Figure 7-1 : HDLC Address Mode 0 TPCE863 User Manual Issue 1.0.1 Page 60 of 72...
- detection of the programmable Termination Character (bit ’TCDE’ and bit field ’TC’ in register TCR). Additionally, the time-out event interrupt as an optional status information indicates that a certain time has elapsed since the reception of the last character (refer to register CCR1). TPCE863 User Manual Issue 1.0.1 Page 61 of 72...
4 more bytes storage available before an overflow may occur. This provides sufficient time for the far end transmitter to react to the change in the RTS signal and stop sending more data. TPCE863 User Manual Issue 1.0.1 Page 62 of 72...
Clock Sources The TPCE863 supports several clock sources for the transmitter and receiver circuits, controlled by the ACR register. Clock source options are three on board oscillators (14.7456 MHz, 24 MHz and 10 MHz), the external RxCLK and TxCLK inputs or the internal clock recovery circuit (DPLL). TxCLK can be an input for the internal transmit clock or an output providing a transmit clock monitor signal (see following figure).
NRZI: A logical ‘0’ is indicated by a transition and a logical ‘1’ by no transition at the beginning of the bit cell. Transmit / Receiver Clock NRZI Figure 7-3 : NRZ and NRZI Data Encoding TPCE863 User Manual Issue 1.0.1 Page 64 of 72...
In the first half of the bit cell, the physical signal level corresponds to the logical value of the data bit. At the center of the bit cell this level is inverted. The transmit clock precedes the receive clock by 90°. Transmit Clock Receiver Clock Manchester Figure 7-5 : Manchester Data Encoding TPCE863 User Manual Issue 1.0.1 Page 65 of 72...
16 (ACR.TCS = ‘100’) or to be the transmit clock generated by the DPLL circuit (ACR.TCS = ‘011’). The mechanism for the DPLL clock recovery depends on the selected data encoding (see chapter “Data Encoding”). TPCE863 User Manual Issue 1.0.1 Page 66 of 72...
AD[23..16] Byte 3 AD[31..24] The TPCE863 expects all accesses by the host/CPU and all data structures in the host/system RAM to be ‘Little Endian’. Transmit data in lower bytes is sent first. Receive data that was received earlier is stored at lower bytes.
The control I/O lines (RTS, CTS, CD) are connected to LTC2844 transceivers without on-chip termination, as termination of these signals is not necessary in the normal case. If the application requires on board termination for these lines please contact TEWS TECHNOLOGIES. TPCE863 User Manual Issue 1.0.1...
9 Module Management On Board LEDs For a quick visual inspection the TPCE863 provides on board LEDs at the component side. These indicate correct voltage supply and FPGA configuration state. Color Description DONE Green Shows whether the FPGA has configured or not Green PCIe Connector provided 3.3V voltage is valid...
TXCA/- TXCA/- TXCB/+ TXCB/+ RXCA/- RXCA/- RXCB/+ RXCB/+ DSRB/+ DTRB/+ DSRA/- DTRA/- Table 10-1 : Front I/O Pin Assignment In V.28 (single-ended) mode, only the signals ending with “A” are used. TPCE863 User Manual Issue 1.0.1 Page 72 of 72...
Need help?
Do you have a question about the TPCE863 and is the answer not in the manual?
Questions and answers