0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MT90220AL

MT90220AL

  • 厂商:

    MITEL

  • 封装:

  • 描述:

    MT90220AL - Octal IMA/UNI PHY Device - Mitel Networks Corporation

  • 数据手册
  • 价格&库存
MT90220AL 数据手册
MT90220 Octal IMA/UNI PHY Device Features • • • • • • Cost effective, single chip, 8-port ATM IMA and UNI processor Up to 4 IMA groups over 8 T1/E1 links can be implemented Supports MIXED mode; links not assigned to an IMA group can be used in UNI mode Versatile PCM Interface to most popular T1 or E1 framers, reducing development time Supports Symmetrical and Asymmetrical Operation Supports both Common Transmit Clock (CTC) and Independent Transmit Clock (ITC) clocking modes Supports T1 ISDN lines Provides UTOPIA Level 2 MPHY Interface (MT90220 device slaved to ATM device) Complies with ITU G.804 recommendations for performing cell mapping into T1 and E1 transmission systems Provides ATM framing using cell delineation according to the ITU I.432 cell delineation process DS5036 ISSUE 4 December 1999 Ordering Information MT90220AL 208 Pin MQFP -40°C to +85°C • Provides Header Error Control (HEC) verification and generation, error detection, Filler cell filtering (IMA mode) and Idle/ Unassigned cell filtering (UNI mode) Provides statistics to support MIB Connects to popular asychronous SRAM Provides statistics on the number of HEC errors 8 bit Microprocessor Interface, compatible with Intel and Motorola 3.3V operation / 5V tolerant inputs MQFP-208 pin JTAG Test support • • • • • • • • • • • RX External Static RAM 4 Internal IMA Processors T1/E1 Framers 2.048 or 1.544 Mb/s Utopia I/F CTRL Utopia Level 2 BUS 8 . . . . P/S Cell Delineator 8 x CD Circuit 8 P/S T1/E1 Framers 1 Utopia FiFo . . . Transmission . 8 x TC Circuit Convergence 1 T1/E1 Framers 8 Serial PCM Ports Processor I/F Figure 1 - MT90220 Block Diagram with Built-in IMA functions for 4 IMA Groups over up to 8 links 1 MT90220 Applications • Cost effective single chip solution to implement IMA and UNI links over T1 or E1 in all public or private UNI, NNI and B-ICI applications ATM Edge switch IMA and UNI Line Card Design Can be used for cost reduction in current applications based on FPGA implementation Hardware functions that are implemented in the MT90220 device are: • • • • • Utopia Level 2 PHY Interface Incoming HEC verification and correction (optional), Generation of a new HEC byte Format outgoing bytes into multi-vendor PCM formats Retrieve ATM Cells from the incoming multivendor PCM format Perform cell delineation Provide various counters to assist in performance monitoring • • Description The MT90220 device is targeted to systems implementing the ATM FORUM UNI specifications for T1/E1 rates or Inverse Multiplexing for ATM (IMA). In the MT90220 architecture, up to 8 physical and independent T1/E1 streams can be terminated through the utilization of off-the-shelf, traditional T1/ E1 framers and LIUs. This allows ATM designers to leverage previous T1/E1 design experience, hardware and software implementation, and to select the best T1/E1 framer for the required application. The MT90220 device provides ATM system designers with a flexible architecture when implementing ATM access over existing and deployed trunk interfaces, allowing a migration towards ATM service technology. In addition to allowing for the design of ATM UNI specifications for T1/E1 rates, the MT90220 device is compliant with the ATM FORUM IMA specifications for controlling IMA groups of up to 8 trunks in a single chip. The MT90220 can be configured to operate in different modes to facilitate the implementation of the IMA function at both CPE and Central Office sites. For systems targeting ATM over T1/E1 with IMA and UNI operating simultaneously, the MT90220 device provides the ideal architecture and capabilities. The device provides up to 4 internal IMA circuits and allows for bandwidth scaleability through the use of the UTOPIA MPHY, Level 2 specification at 25Mhz. The implementation of the IMA as per AF-PHY0086.001 Inverse Multiplexing for ATM (IMA) Specification Version 1.1 is divided into hardware and software functions. Hardware functions are implemented in the MT90220 device and software functions are implemented by the user. Additional hardware functions are included to assist in the collection of statistical information to support MIB implementation. • • Hardware functions that are implemented by the IMA processor in the MT90220 device are: • • • Transmit scheduler (one per IMA group) Generation of the TX IMA Data Cell Rate Generation and insertion of ICP cells, Filler Cells and Stuff Cells in IMA mode and Idle Cells in UNI (non-IMA) mode; the ICP cells are programmed by the user and the Filler and Idle cells are pre-defined Retrieve and process ICP cells in IMA Mode Perform IMA Frame synchronization Management of RX links to be part of the internal re-sequencer when active Extraction of RX IMA Data Cell Rate Verification of delays between links Perform re-sequencing of ATM cells using external asynchronous Static RAM Can accommodate more than 400 msec of link differential delay depending on the amount of external memory Provide structured Interrupt scheme to report various events. • • • • • • • • 2 MT90220 Table of Contents 1.0 Device Architecture ....................................................................................................................................... 1.1 Software Functions..................................................................................................................................... 1.1.1 Link State Machines........................................................................................................................... 1.1.2 IMA Group State Machines ................................................................................................................ 1.1.3 Link Addition, Removal or Restoration............................................................................................... 1.1.4 Interrupt.............................................................................................................................................. 1.1.5 Signaling and Rate Adjustment.......................................................................................................... 1.1.6 Performance Monitoring..................................................................................................................... 1.2 Hardware Functions ................................................................................................................................... 8 8 8 8 8 8 8 8 9 2.0 The ATM Transmit Path ................................................................................................................................. 9 2.1 Cell_In_Control........................................................................................................................................... 9 2.2 The ATM Transmission Convergence ...................................................................................................... 10 2.2.1 TX Cell Ram and TX FIFO Length ................................................................................................... 10 2.3 Parallel to Serial PCM Interface ............................................................................................................... 11 2.4 ATM Transmit Path in IMA Mode ............................................................................................................. 11 2.4.1 IMA Frame Length (M) ..................................................................................................................... 11 2.4.2 Position of the ICP Cell in the IMA Frame........................................................................................ 11 2.4.3 Transmit Clock Operation ................................................................................................................ 11 2.4.4 Stuff Cell Rate .................................................................................................................................. 12 2.4.5 IMA Data Cell Rate .......................................................................................................................... 12 2.4.6 IMA Controller (RoundRobin Scheduler).......................................................................................... 12 2.4.7 ICP Cell Generator........................................................................................................................... 12 2.4.8 IMA Frame Programmable Interrupt ................................................................................................ 14 2.4.9 Filler Cell Definition .......................................................................................................................... 14 2.4.10 TX IMA Group Start-Up.................................................................................................................... 14 2.4.11 TX Link Addition ............................................................................................................................... 14 2.4.12 TX Link Deletion............................................................................................................................... 14 2.5 ATM Transmit Path in UNI Mode ............................................................................................................. 15 3.0 The ATM Receive Path................................................................................................................................. 15 3.1 Cell Delineation Function ......................................................................................................................... 15 3.2 De-Scrambling and ATM Cell Filtering ..................................................................................................... 16 3.3 ATM Receive Path in IMA Mode .............................................................................................................. 16 3.3.1 ICP Cell Processor........................................................................................................................... 17 3.3.1.1 IMA Frame Synchronization...................................................................................................... 17 3.3.1.2 Link Information......................................................................................................................... 18 3.3.1.3 RX OAM Label .......................................................................................................................... 18 3.3.2 Out of IMA Frame (OIF) Condition ................................................................................................... 18 3.3.3 Link Out Of IMA Frame (LIF) Synchronization ................................................................................. 18 3.3.4 Filler Cell Handling ........................................................................................................................... 18 3.3.5 Stuff Cell Handling ........................................................................................................................... 18 3.3.6 Received ICP Cell Buffer .................................................................................................................. 18 i MT90220 Table of Contents 3.3.7 Rate Recovery ................................................................................................................................. 19 3.3.8 Cell Buffer/RAM Controller............................................................................................................... 19 3.3.9 Cell Sequence Recovery ................................................................................................................. 19 3.3.10 Delay Between Links ....................................................................................................................... 20 3.3.10.1 RX Recombiner Delay Value .................................................................................................... 20 3.3.10.2 RX Maximum Operational Delay Value..................................................................................... 20 3.3.10.3 Link Out of Delay Synchronization (LODS)............................................................................... 20 3.3.10.4 Negative Delay Values.............................................................................................................. 21 3.3.10.5 Measured Delay Between Links................................................................................................ 21 3.3.10.6 Incrementing/Decrementing the Recombiner Delay ................................................................. 21 3.3.11 RX IMA Group Start-Up ................................................................................................................... 21 3.3.12 Link Addition .................................................................................................................................... 22 3.3.13 Link Deletion .................................................................................................................................... 22 3.3.14 Disabling an IMA Group ................................................................................................................... 22 3.4 The ATM Receive Path in UNI ................................................................................................................. 22 4.0 Description of the PCM Interface................................................................................................................ 4.1 Serial to Parallel (S/P) and Parallel to Serial (P/S) Converters ................................................................ 4.2 PCM System Interface Modes.................................................................................................................. 4.2.1 Mode 2 and 6: ST-BUS Interface for T1 .......................................................................................... 4.2.1.1 Detailed ST-BUS Spaced Mapping (3 of Every 4 Channels) .................................................... 4.2.1.2 Detailed ST-BUS Grouped Mapping (24 Consecutive Channels)............................................. 4.2.1.3 Detailed ST-BUS ISDN Mapping (T1 ISDN Modes) ................................................................. 4.2.2 Mode 4 and 8: ST-BUS lnterface for E1 .......................................................................................... 4.2.3 Mode 1 and 5: Generic PCM Interface for T1 .................................................................................. 4.2.3.1 1.544 MHz Clock....................................................................................................................... 4.2.3.2 2.048 MHz Clock....................................................................................................................... 4.2.4 Mode 3 and 7: Generic PCM Interface for E1 .................................................................................. 4.2.5 TXSYNC Signal in Mode 5 and 7..................................................................................................... 4.3 Clocking Options ...................................................................................................................................... 4.3.1 Verification of the RXSYNC Period .................................................................................................. 4.3.2 Verification of the TXSYNC Period .................................................................................................. 4.3.3 Primary and Secondary Reference Signals ..................................................................................... 4.3.4 Verification of Clock Activity ............................................................................................................. 4.3.5 Clock Selection ................................................................................................................................ 23 23 24 25 26 26 26 26 26 27 27 27 28 28 28 28 28 30 30 5.0 UTOPIA Interface Operation........................................................................................................................ 5.1 ATM Input Port ......................................................................................................................................... 5.2 ATM Output Port ...................................................................................................................................... 5.3 UTOPIA Operation With a Single PHY..................................................................................................... 5.4 UTOPIA Operation with Multiple PHY ...................................................................................................... 5.5 UTOPIA Operation in UNI Mode .............................................................................................................. 5.6 UTOPIA Operation in IMA Mode .............................................................................................................. 5.7 Examples of UTOPIA Operation Modes................................................................................................... ii 30 30 31 31 31 31 32 32 MT90220 Table of Contents 6.0 Support Blocks............................................................................................................................................. 6.1 Counter Block........................................................................................................................................... 6.1.1 UTOPIA Input I/F counters............................................................................................................... 6.1.2 Transmit PCM I/F Counters ............................................................................................................. 6.1.3 Receive PCM I/F Counters .............................................................................................................. 6.1.4 Access to the Counters .................................................................................................................... 6.2 Interrupt Block .......................................................................................................................................... 6.2.1 IRQ Master Status and IRQ Master Enable Registers..................................................................... 6.2.2 IRQ Link Status and IRQ Link Enable Registers.............................................................................. 6.2.2.1 Bit 7 and 6 of IRQ Link 0 Status and IRQ Link 0 Enable Registers .......................................... 6.2.3 IRQ Link UNI Overflow and IRQ UTOPIA Input UNI Overflow Status Registers ............................. 6.2.4 IRQ IMA Group Overflow Status and Enable Registers................................................................... 6.2.5 IRQ IMA Overflow Status and RX UTOPIA IMA Group FIFO Overflow Enable Registers .............. 6.3 Register and Memory Map ....................................................................................................................... 6.3.1 Access to the Various Registers ...................................................................................................... 6.3.2 Direct Access ................................................................................................................................... 6.3.3 Indirect Access................................................................................................................................. 6.3.4 Clearing of Status Bits...................................................................................................................... 6.3.4.1 Toggle Bit .................................................................................................................................. 6.3.5 Test Modes ...................................................................................................................................... 33 33 33 33 33 33 34 34 35 35 36 36 36 36 36 37 37 37 37 37 7.0 Register Descriptions .................................................................................................................................. 7.1 Utopia Register Description...................................................................................................................... 7.2 TX Registers Description.......................................................................................................................... 7.3 TX ICP Register Description .................................................................................................................... 7.4 RX Registers Description ......................................................................................................................... 7.5 RX ICP Cell Registers Description ........................................................................................................... 7.6 External SRAM Register Description ....................................................................................................... 7.7 RX Delay Registers Description ............................................................................................................... 7.8 RX Recombiner Registers Description ..................................................................................................... 7.9 TX/RX and PLL Control Registers Description......................................................................................... 7.10 Counter Registers Description ................................................................................................................ 7.11Interrupt Registers Description ................................................................................................................. 7.12 Miscellaneous Registers Description ...................................................................................................... 38 41 45 50 52 57 60 62 65 67 73 75 78 8.0 Application Notes......................................................................................................................................... 79 8.1 Connecting the MT90220 to Various T1/E1 Framers ............................................................................... 79 9.0 AC/DC Characteristics................................................................................................................................. 85 iii MT90220 Table of Contents Packaging Information...................................................................................................................................... 100 List of Changes.................................................................................................................................................. 102 List of Abbreviations and Acronyms............................................................................................................... 104 ATM Glossary .................................................................................................................................................... 104 iv MT90220 List of Figures Figure 2 - Pin Connections ..................................................................................................................................... 3 Figure 3 - Functional Block Diagram -Transmitter in IMA Mode........................................................................... 10 Figure 4 - Functional Block Diagram of the Transmitter in UNI Mode ................................................................... 14 Figure 5 - Cell Delineation State Diagram ............................................................................................................ 15 Figure 6 - SYNC State Block Diagram ................................................................................................................. 15 Figure 7 - The MT90220 Receiver Circuit in IMA Mode ....................................................................................... 17 Figure 8 - Example of UNI Mode Operation ......................................................................................................... 23 Figure 9 - PCM Mode 2 and 6: ST-BUS Interface for T1 (Spaced Mapping) ....................................................... 25 Figure 10 - PCM Mode 2 and 6: ST-BUS Interface for T1 (Grouped Mapping) ................................................... 26 Figure 11 - PCM Mode 4 and 8: ST-BUS Interface for E1 ................................................................................... 27 Figure 12 - Mode 1 and 5: Generic PCM Interface for T1 .................................................................................... 28 Figure 13 - Mode 3 and 7: Generic PCM Interface for E1 .................................................................................... 29 Figure 14 - TXCK and TXSYNC Output Pin Source Options ............................................................................... 29 Figure 15 - ATM Interface to MT90220 ................................................................................................................ 32 Figure 16 - ATM Interface to Multiple MT90220s ................................................................................................. 32 Figure 17 - ATM Mixed-Mode Interface to One MT90220.................................................................................... 33 Figure 18 - IRQ Register Hierarchy ...................................................................................................................... 34 Figure 19 - PCM MODE 2 AND 4: Synchronous ST-BUS Mode.......................................................................... 80 Figure 20 - PCM MODE 2 and 4 CTC Mode ......................................................................................................... 81 Figure 21 - PCM MODE 2 AND 4: ITC Mode ....................................................................................................... 82 Figure 22 - PCM MODE 1 and 3: Generic PCM System Interface........................................................................ 83 Figure 23 - PCM MODE 5 and 7: Asynchronous Operations ................................................................................ 84 Figure 24 - ST-BUS Functional Timing Diagram .................................................................................................. 86 Figure 25 - ST-BUS Timing Diagram.................................................................................................................... 87 Figure 26 - Generic PCM Interface Timing Diagram ............................................................................................. 88 Figure 27 - Detailed Generic PCM Interface Timing Diagram .............................................................................. 89 Figure 28 - Setup and Hold Time Definition ......................................................................................................... 91 Figure 29 - Tri-State Timing.................................................................................................................................. 91 Figure 30 - External Memory Interface Timing - Read Cycle ............................................................................... 92 Figure 31 - External Memory Interface Timing - Write Cycle................................................................................ 93 Figure 32 - CPU Interface Timing - Read Access ................................................................................................ 95 Figure 33 - CPU Interface Motorola Timing - Write Access.................................................................................. 96 Figure 34 - CPU Interface Intel Timing - Write Access......................................................................................... 97 Figure 35 - JTAG Port Timing............................................................................................................................... 98 Figure 36 - System Clock and Reset.................................................................................................................... 99 Figure 37 - Metric Quad Flat Package - 208 Pin ................................................................................................ 100 v MT90220 List of Tables Pin Description ....................................................................................................................................................... 4 Pinout Summary ..................................................................................................................................................... 7 Table 1 - IDCR Integration Register Value ........................................................................................................... 12 Table 2 - ICP Cell Description .............................................................................................................................. 13 Table 3 - Cell Acquisition Time............................................................................................................................. 16 Table 4 - Differential Delay for Various Memory Configuration ............................................................................ 19 Table 5 - Conversion Factors Time/Cell (msec) ................................................................................................... 20 Table 6 - PCM Modes........................................................................................................................................... 24 Table 7 - PCM Clock and Mapping Options ......................................................................................................... 24 Table 8 - T1Channel Mapping Using 3 Channels Every 4 Channels ................................................................... 25 Table 9 - T1 Channel Mapping Using 24 Consecutive Channels......................................................................... 26 Table 10 - Channel Mapping from ST-BUS to E1 ................................................................................................ 26 Table 11 - Register Summary............................................................................................................................... 38 Table 12 - UTOPIA Input Link Address Registers ................................................................................................ 41 Table 13 - UTOPIA Input Group Address Registers............................................................................................. 41 Table 14 - UTOPIA Input Link PHY Enable Register ........................................................................................... 41 Table 15 - UTOPIA Input Group PHY Enable Register ........................................................................................ 42 Table 16 - Utopia Input Control Register .............................................................................................................. 42 Table 17 - UTOPIA Output Link Address Registers ............................................................................................. 42 Table 18 - UTOPIA Output Group Address Registers......................................................................................... 43 Table 19 - UTOPIA Output Link PHY Enable Register......................................................................................... 43 Table 20 - UTOPIA Output Group PHY Enable Register ..................................................................................... 43 Table 21 - RX UTOPIA IMA Group FIFO Overflow Enable Register.................................................................... 44 Table 22 - RX UTOPIA Link FIFO Overflow Enable Register .............................................................................. 44 Table 23 - TX Cell RAM Control Register............................................................................................................ 45 Table 24 - TX UTOPIA FIFO Level Register ........................................................................................................ 45 Table 25 - TX FIFO Length Definition Register 1 ................................................................................................. 45 Table 26 - TX FIFO Length Definition Register 2 ................................................................................................ 45 Table 27 - TX FIFO Length Definition Register 3 ................................................................................................. 46 Table 28 - TX FIFO Length Definition Register 4 ................................................................................................ 46 Table 29 - TX FIFO Length Definition Register 5 ................................................................................................ 46 Table 30 - TX FIFO Length Definition Register 6 ................................................................................................. 46 Table 31 - TX Group Control Mode Registers ..................................................................................................... 47 Table 32 - TX Link ID Registers .......................................................................................................................... 47 Table 33 - TX ICP Cell Offset Registers.............................................................................................................. 47 Table 34 - TX IDCR Integration Registers............................................................................................................ 48 Table 35 - TX Link Control Registers ................................................................................................................... 48 Table 36 - TX IMA Control Registers................................................................................................................... 49 Table 37 - TX IMA Mode Status Register............................................................................................................ 49 Table 38 - TX ICP Cell Handler Register.............................................................................................................. 50 Table 39 - TX ICP Cell Interrupt Enable Register................................................................................................ 50 Table 40 - TX ICP Cell Registers ........................................................................................................................ 51 Table 41 - RX Link Control Registers .................................................................................................................. 52 Table 42 - Cell Delineation Register.................................................................................................................... 52 Table 43 - Loss of Delineation Register ............................................................................................................... 52 Table 44 - IMA Frame Delineation Register ........................................................................................................ 53 Table 45 - RX OAM Label Register ..................................................................................................................... 53 vi MT90220 List of Tables Table 46 - RX OIF Status Register...................................................................................................................... 53 Table 47 - RX OIF Counter Clear Command Register ........................................................................................ 54 Table 48 - RX Load Values/Link Select Register ................................................................................................ 54 Table 49 - RX Link IMA ID Registers................................................................................................................... 54 Table 50 - RX ICP Cell Offset Register ............................................................................................................... 55 Table 51 - RX Link Frame Sequence Number Register ...................................................................................... 55 Table 52 - RX Link SCCI Sequence Number Register........................................................................................ 55 Table 53 - RX Link OIF Counter Value Register ................................................................................................. 55 Table 54 - RX Link ID Number Register ............................................................................................................... 56 Table 55 - RX State Register............................................................................................................................... 56 Table 56 - RX ICP Cell Type RAM Register 1...................................................................................................... 57 Table 57 - ICP Cell Type RAM Register 2........................................................................................................... 58 Table 58 - RX ICP Cell Buffer Increment Read Pointer Register ........................................................................ 58 Table 59 - RX ICP Cell Level FIFO Status Register............................................................................................. 59 Table 60 - Test Mode Enable Register................................................................................................................. 59 Table 61 - SRAM Control Register ...................................................................................................................... 60 Table 62 - RX External SRAM Read/Write Data ................................................................................................. 60 Table 63 - RX External SRAM Read/Write Address 0.......................................................................................... 60 Table 64 - RX External SRAM Read/Write Address 1......................................................................................... 60 Table 65 - RX External SRAM Read/Write Address 2......................................................................................... 60 Table 66 - RX External SRAM Control Register.................................................................................................. 62 Table 67 - Increment/Decrement Delay Control Register.................................................................................... 62 Table 68 - RX Delay Select Register................................................................................................................... 63 Table 69 - RX Delay MSB Register ..................................................................................................................... 63 Table 70 - RX Delay LSB Register ...................................................................................................................... 63 Table 71 - RX Delay Link Number Register ........................................................................................................ 63 Table 72 - RX Guardband/Delta Delay LSB Register........................................................................................... 64 Table 73 - RX Guardband/Delta Delay MSB Register.......................................................................................... 64 Table 74 - RX Maximum Operational Delay LSB Register................................................................................... 64 Table 75 - RX Maximum Operational Delay MSB Register.................................................................................. 64 Table 76 - RX Recombiner Registers.................................................................................................................. 65 Table 77 - RX Recombiner Delay Control Registers ........................................................................................... 65 Table 78 - Enable Recombination Status ............................................................................................................ 66 Table 79 - RX Reference Link Control Registers ................................................................................................ 66 Table 80 - RX IDCR Integration Registers .......................................................................................................... 66 Table 81 - TX PCM Link Control Register Number 2 ........................................................................................... 67 Table 82 - TX PCM Link Control Register Number 1 ........................................................................................... 68 Table 83 - RX PCM Link Control Register........................................................................................................... 69 Table 84 - PLL Reference Control Register ........................................................................................................ 70 Table 85 - Clock Activity Register........................................................................................................................ 71 Table 86 - RX Sync. Status Register................................................................................................................... 71 Table 87 - TX Sync. Status Register ................................................................................................................... 72 Table 88 - TX Clock Disabled Status................................................................................................................... 72 Table 89 - PLL REF Clock Disabled Status/Device Rev ..................................................................................... 72 Table 90 - Counter Byte Number 3 Register ....................................................................................................... 73 Table 91 - Counter Byte Number 2 Register ....................................................................................................... 73 Table 92 - Counter Byte Number 1 Register ....................................................................................................... 73 vii MT90220 List of Tables Table 93 - Select Counter Register ..................................................................................................................... 74 Table 94 - Counter Transfer Command Register ................................................................................................. 74 Table 95 - IRQ Master Status Register ................................................................................................................ 75 Table 96 - IRQ Master Enable Register .............................................................................................................. 75 Table 97 - IRQ Link Status Registers .................................................................................................................. 75 Table 98 - IRQ Link Enable Registers ................................................................................................................. 76 Table 99 - IRQ IMA Group Overflow Status Register.......................................................................................... 76 Table 100 - IRQ IMA Group Overflow Enable Register....................................................................................... 76 Table 101 - IRQ IMA Overflow Status Registers ................................................................................................. 76 Table 102 - IRQ UTOPIA UNI Overflow Status Registers................................................................................... 77 Table 103 - IRQ Link UNI Overflow Status Registers.......................................................................................... 77 Table 104 - General Status Register ................................................................................................................... 78 Table 105 - Test 1 Register ................................................................................................................................. 78 Table 106 - Test 2 Register .................................................................................................................................. 78 Absolute Maximum Conditions ............................................................................................................................. 85 Recommended Operating Conditions ................................................................................................................... 85 DC Electrical Characteristics ................................................................................................................................. 86 AC Electrical Characteristics - PCM PORT ST-BUS Interface Mode................................................................... 86 AC Electrical Characteristics - Generic PCM Interface Mode .............................................................................. 88 AC Electrical Characteristics - Utopia Interface Transmit Timing......................................................................... 90 AC Electrical Characteristics - Receive Timing .................................................................................................... 90 AC Electrical Characteristics - External Memory Interface Timing - Read Access............................................... 92 AC Electrical Characteristics - External Memory Interface Timing - Write Access............................................... 93 AC Electrical Characteristics - CPU Interface Timing - Read Cycle..................................................................... 95 AC Electrical Characteristics - CPU Interface Motorola Timing - Write Cycle ...................................................... 96 AC Electrical Characteristics - CPU Interface Intel Timing - Write Cycle ............................................................. 97 AC Electrical Characteristics - JTAG Port and RESET Pin Timing ...................................................................... 98 AC Electrical Characteristics - System Clock and Reset...................................................................................... 99 Metric Quad Flat Package Dimensions ............................................................................................................... 100 viii MT90220 VSS PLLREF_0 PLLREF_1 TEST3 TEST4 DSTI_0 RXSYNCI_0 VDD RXCKI_0 VSS RXCKI_1 DSTI_1 RXSYNCI_1 DSTI_2 RXSYNCI_2 VSS RXCKI_2 VDD RXCKI_3 VSS DSTI_3 RXSYNCI_3 DSTI_4 RXSYNCI_4 VSS RXCKI_4 VDD RXCKI_5 VDD DSTI_5 RXSYNCI_5 RXSYNCI_6 DSTI_6 VSS RXCKI_6 VDD RXCKI_7 VSS DSTI_7 RXSYNCI_7 DSTO_0 TXSYNCIO_0 VDD TXCKIO_0 VSS TXCKIO_1 VDD DSTO_1 TXSYNCIO_1 DSTO_2 TXSYNCIO_2 VSS 156 154 152 150 148 146 144 142 140 138 136 134 132 130 128 126 124 122 120 118 116 114 112 110 108 106 158 102 160 100 162 98 164 96 166 94 168 92 170 90 172 88 174 86 176 84 178 82 180 80 182 184 186 74 188 72 190 70 192 68 194 66 196 64 198 62 200 60 202 58 204 56 206 54 208 2 4 6 8 10 12 14 16 18 20 22 24 26 28 30 32 34 36 38 40 42 44 46 48 50 52 104 VSS REFCK_3 REFCK_2 REFCK_1 REFCK_0 SR_A_18 SR_A_17 SR_A_16 SR_A_15 SR_A_14 VDD VSS SR_A_13 SR_A_12 SR_A_11 SR_A_10 VDD VSS SR_A_9 SR_A_8 SR_A_7 SR_A_6 SR_A_5 VDD VSS SR_A_4 SR_A_3 SR_A_2 SR_A_1 SR_A_0 SR_WE SR_D_7 SR_D_6 SR_D_5 SR_D_4 SR_D_3 VDD VSS SR_D_2 SR_D_1 SR_D_0 SR_CS_1 SR_CS_0 VSS VDD RXSOC RXCLAV VDD RXDATA_7 RXDATA_6 RXDATA_5 VSS 208 PIN MQFP 78 76 VSS TXCKIO_2 VDD TXCKIO_3 VSS DSTO_3 TXSYNCIO_3 DSTO_4 TXSYNCIO_4 VSS TXCKIO_4 VDD TXCKIO_5 VSS DSTO_5 TXSYNCIO_5 DSTO_6 TXSYNCIO_6 VDD TXCKIO_6 VSS TXCKIO_7 VDD DSTO_7 TXSYNCIO_7 VSS VDD TEST2 TEST1 VDD CLK VSS TCK TMS TDI TRST TDO UP_IRQ VDD UP_A_0 UP_A_1 UP_A_2 UP_A_3 UP_A_4 UP_A_5 UP_A_6 UP_A_7 UP_A_8 UP_A_9 UP_A_10 RESET VSS VDD VSS RXADDR_4 RXADDR_3 RXADDR_2 RXADDR_1 RXADDR_0 VDD RXCLK VSS RXENB VDD VSS TX_CLAV TXSOC TXDATA_7 TXDATA_6 TXDATA_5 TXDATA_4 TXDATA_3 TXDATA_2 TXDATA_1 TXDATA_0 TXENB VDD TXCLK VSS TXADDR_4 TXADDR_3 TXADDR_2 TXADDR_1 TXADDR_0 UP_CS UP_OE UP_RW VSS VDD UP_D_7 UP_D_6 UP_D_5 UP_D_4 UP_D_3 UP_D_2 UP_D_1 UP_D_0 VSS VSS RXDATA_4 RXDATA_3 RXDATA_2 RXDATA_1 RXDATA_0 Figure 2 - Pin Connections 3 MT90220 Pin Description Pin # Name I/O Description ATM Input Port Signals (UTOPIA Transmit Interface) 22, 23, 24, 25, 26, 27, 28, 29 21 TxData [7:0] TxSOC I UTOPIA Transmit Data Bus. Byte-wide data driven from ATM LAYER device to MT90220. Bit 7 is the MSB. All arriving data between the last byte of the previous cell and the first byte of the following cell (indicated by the SOC signal) is ignored. UTOPIA Transmit Start of Cell Signal. Active HIGH signal asserted by the ATM LAYER device when TxData[7:0] contains the first valid byte of the cell. After this signal is high, the following 52 bytes should contain valid data. The MT90220 waits for another TxSOC signal after reading a complete cell. UTOPIA Transmit Clock. Transfer clock from the ATM Layer device to the MT90220 which synchronizes data transfers on TxData[7:0]. This signal is the clock of the incoming data. Data is sampled on the rising edge of this signal. UTOPIA Transmit Data Enable. Active LOW signal asserted by the ATM LAYER device during cycles when TxData contains valid cell data. I 32 TxClk I 30 20 TxEnb TxClav I O UTOPIA Transmit Cell Available Indication Signal. For cell-level flow control in a MPHY environment, TxClav is an active high tri-stateable signal from the MT90220 to the ATM LAYER device. A polled MT90220 drives TxClav only during each cycle following one with its address on the TxAddr lines. The polled MT90220 asserts TxClav high to indicate it can accept the transfer of a complete cell, otherwise it deasserts the signal. I Transmit Address.Five bit wide true data driven from the ATM to the PHY layer to poll and select the appropriate MT90220. TxAddr[4] is the MSB. Each MT90220 keeps its addresses. The value for the Tx and Rx portions of the MT90220 can be different 34, 35, 36, 37, 38 TxAddr [4:0] ATM Output Port Signals (UTOPIA Receive Interface) (see Note 1) 205, 206, 207, 2, 3, 4, 5, 6 202 RxData [7:0] RxSOC O UTOPIA Receive Data Bus. Byte-wide data driven from MT90220 to ATM layer device. RxData[7] is the MSB. To support multiple PHY configurations, RxData is tri-stateable, enabled only in cycles following those with RxEnb asserted. O UTOPIA Receive Start of Cell Signal. Active high asserted by the MT90220 when RxData contains the first valid byte of a cell. To support multiple PHY configurations, RxSOC is tri-stateable, enabled only in cycles following those with RxEnb asserted. I UTOPIA Receive Byte Clock. This signal is the clock of the outgoing data. Data changes after the rising edge of this signal. The RxClk needs to be synchronized with the system clock. UTOPIA Receive Data Enable. Active LOW signal asserted by the ATM layer device to indicate that RxData[7:0] and RxSOC will be sampled at the end of the next cycle. In multiple PHY configurations, RxEnb* is used to tri-state RxData and RxSOC MT90220 outputs. In that case, RxData and RxSOC would be enabled only in cycles following those with RxEnb asserted. 15 RxClk 17 RxEnb I 203 RxClav O UTOPIA Receive Cell Available Indication Signal. For cell-level flow control in a MPHY environment, RxClav is an active high tri-stateable signal from the MT90220 to ATM LAYER device. A polled MT90220 drives RxClav only during each cycle following one with its address on the TxAddr lines. The polled MT90220 asserts RxClav high to indicate it has a complete cell available for transfer to the ATM Layer device, otherwise it de-asserts the signal. 4 MT90220 Pin Description (continued) Pin # 9, 10, 11, 12, 13 Name RxAddr [4:0] I/O I Description Receive Address. Five bit wide true data driven from the ATM to PHY layer to select the appropriate MT90220. RxAddr[4] is the MSB. Each MT90220 keeps its address. The value for the Tx and Rx portions of the MT90220 can be different. Receiver Static Memory Interface Signals (see Note 1) 188, 189, 190, 191, 192, 195, 196,197 162, 163, 164, 165, 166, 169, 170, 171, 172, 175, 176, 177, 178, 179, 182, 183, 184, 185, 186 187 198, 199 sr_d [7:0] I/O Static Memory Data Bus. Data Bus to exchange data between the MT90220 and the external static memory. sr_a [18:0] O Static Memory Address Bus. The signal is used to select an entry in the external static memory. sr_we sr_cs_1, 0 O Static Memory Read/Not Write. If low, data is written from the MT90220 to the memory. If high, data is read from the memory to the MT90220. O Static Memory Chip Control Signal. Processor Interface Signals (see Note 2) 44, 45, 46, 47, 48, 49, 50, 51 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65 41 up_d [7:0] up_a [10:0] I/O Processor Data Bus. Data Bus to exchange data between the MT90220 and a local processor. I Processor Address Bus. They are used to select the internal registers and memory positions of the MT90220. up_r/w or up_wr I Processor Read/Not Write. Motorola Mode. This is an input signal. If low, data is written from the processor to the MT90220. If high, data is read from the MT90220 to the processor. Processor Not Write (Intel Mode). This is an input signal. If low, data is written from the processor to the MT90220. De-asserting this signal to high will terminate a write access cycle. Output enable Motorola Mode. This is an input signal. This signal should be tied to GND for Motorola timing mode. Processor Not Read (Intel Mode). This is an input signal. If low, data is read from the MT90220. Processor Chip Select. This is an active low input signal. If this signal is high, the MT90220 ignores all other signals on its processor bus. If this signal is low, the MT90220 accepts the signals on its processor bus. De-asserting this signal to high will terminate an access cycle. 40 up_oe or up_rd up_cs I 39 I 67 up_irq O Processor Interrupt Request. If this signal is low, the MT90220 signals to the processor that an interrupt condition is pending inside the MT90220. Otherwise no interrupt is pending inside the MT90220. Open drain signal. PCM Interface Signals 5 MT90220 Pin Description (continued) Pin # 81,88, 90, 97,99,107, 109,116 118, 124, 127, 134, 136, 143, 145, 151 83, 85, 92, 94, 101, 103, 111, 113 Name DSTo [7:0] DSTi [7:0] I/O Description O Serial PCM Data Output 7-0. A 1.544 Mbit/s or 2.048 Mbps serial stream which contain 24 (T1) or 32 (E1) PCM or data channels received on T1 or E1 line. The output is set to high impedance for unused channels and if the link is not used. I Serial PCM Data Input 7-0. A 1.544 Mbit/s or 2.048 Mbps serial stream which contains the 24 (T1) or 32 (E1) PCM or data channels on T1 or E1 line. TXCKi/o [7:0] I/O PCM Interface Transmit Clock 7-0. This pin is an input for PCM Modes 2, 4, 5 and 7. It is an output for Interface Modes 1, 3, 6 and 8 (see Section 4.2, PCM System Interface Modes). It is the clock for serial PCM data transmission of the T1 and E1 framers. The TXCK source is software selectable and can be either one of the eight RXCK or one of the four REFCK signals. It is used for internal transmit timing and should be connected to the Transmit Clock of the framer. 1. The TXCK is 4.096 MHz for ST-BUS applications. 2. For generic PCM Interfaces (non ST-BUS or asynchronous line termination), these outputs can be programmed to provide either a 1.544 MHz (T1) or 2.048 MHz (T1 or E1) clock. 80, 87, 89, TXSYNCio I/O Transmit Line 8KHz Frame Pulse 7-0. This pin is an input for Interface Modes 2, 96, 98, [7:0] 4, 5 and 7. It is an output for Interface Modes 1, 3, 6 and 8 (see PCM Section 4.2, 106, 108, PCM System Interface Modes). 115 It is the 8 kHz reference used as transmit synchronization for the PCM system interface. When an output, the TXSYNC is generated from the TXCK signal and is independent from other TXSYNC signals. Two output modes can be programmed: 1. For ST-BUS applications, it is a low going pulse (F0), that delimits the 32 channel frame of the ST-BUS interface at DSTi and DSTo lines (see Figure 25 - ST-BUS Timing Diagram for this sync pulse). The frame pulse is typically received through the RXSYNC[0] pin. 2. For generic PCM Interfaces, it can be programmed to generate either a positive or negative pulse polarity that lines up with the first bit of the PCM system interface. 117, 125, 126, 133, 135, 142, 144, 150 RXSYNCi [7:0] I Receive line 8KHz Frame Pulse 7-0. This signal represents the 8 KHz reference received from the incoming T1 or E1 line. The MT90220 can be programmed to accept different 8 KHz pulse formats at this input. 1. For ST-BUS applications, it is a low going pulse (F0), which delimits the 32 channel frame of ST-BUS interface at DSTi and DSTo lines. See STBUS timing diagram for this sync pulse. 2. For generic PCM Interfaces, it can be programmed to accept either positive or negative pulse polarities. PCM Interface Receive Clock 7-0. This input line represents the clock for the receive serial PCM data of the T1 and E1 framers. The T1 or E1 frequency value to be received at this input clock is defined by the user through an internal register. 1. For ST-BUS applications, input pin RXCKi receives the 4.096 MHz signal. 2. For generic PCM Interfaces, these inputs can be programmed to accept either a 1.544 MHz (T1) or 2.048 MHz (T1 or E1) clock. 120, 122, 129, 131, 138, 140, 146, 148 RXCKi [7:0] I 154, 155 158, 159, 160, 161 PLLREF [1:0] REFCK [3:0] O Output reference to an external PLL. See 4.3 Description of the PCM Interface for details. I Input reference clock inputs 3 to 0. Receive the de-jittered transmit clock reference to be internally routed to the T1/E1 framer transmit clocks (output pins TXCK[7:0]. See “Description of the PCM Interface” on page 23. for more details. System Signals 6 MT90220 Pin Description (continued) Pin # 74 76 54 72 71 70 68 69 Name Clk Test1 Reset TCK TMS TDI TDO TRST I/O I I I I I I Description System Clock (25 MHz nominal). In the MT90220, this clock is used for all internal operations of the device. Test1. This signal should be high for normal operation. The signal should be pulled up for normal operation. System Reset. This is an active low input signal. It causes the device to enter the initial state. The Clk signal must be active to reset the internal registers. JTAG Test Clock. It should be pulled down if not used JTAG Test Mode Select. TMS is sampled on the rising edge of TCK. TMS has an internal pull- up resistor. JTAG Test Data Input. O JTAG Test Data Output. Note: TDO is tristated by TMS pin. I TAG Test Reset (active low). Should be asserted LOW on power-up and during reset. Must be HIGH for JTAG boundary-scan operation. Note: This pin has an internal pull-down. Test2. It should be pulled down for normal operation. Test3. It should be pulled down for normal operation. Test4. It should be pulled up for normal operation. NOT 5V TOLERANT 77 153 152 Test2 Test3 Test4 I I I Notes: 1. Static memory stores the received cells. RAM is used for reordering the cells 2. These signals are used to transfer data between the MT90220 and the local processor Pinout Summary Type TX UTOPIA RX UTOPIA Microprocessor Interface External Memory Interface TX PCM Interface RX PCM Interface PLL Interface Miscellaneous Power Ground Total 208 75 45 32 25 24 4 10 2 1 25 31 31 Input 16 7 14 Output 1 10 1 22 8 8 8 16 I/O Power Ground 7 MT90220 1.0 Device Architecture The MT90220, supported by software, implements the ATM Forum Inverse Multiplexing for Asynchronous Transfer Mode (IMA) Specification. This approach minimizes the impact of any changes that might occur in the specification. Actions are implemented by the MT90220 and decisions by the software. The MT90220 supports following two major modes of operation: • the IMA mode (as defined by the ATM Forum IMA Specification) • the User Network Interface (UNI) mode Up to four IMA Groups can be implemented. Any of the eight PCM Interfaces can be assigned dynamically to any of these IMA Groups. A different UTOPIA PHY address is assigned to each of the IMA Groups. The UNI mode is used to transfer the cells from the UTOPIA Interface to a PCM port without any overhead. Up to 8 UTOPIA PHY addresses can be supported in UNI mode. The MT90220 also supports a mixed mode where the PCM Interfaces not assigned to an IMA Group can be used in UNI mode. The IMA implementation is divided into hardware and software functions. The MT90220 implements the hardware functions. The software functions are implemented by the user. The hardware and software functions are described below. Notice that a number of MT90220 functions are included to assist in the collection of statistical information. This information supports the MIB implementation. 1.1 Software Functions For the MT90220 to comply with the IMA specification, the following functions must be implemented by software: • the transmit and receive Link State Machines (LSM) • the IMA Group State Machines (GSM) • the IMA Group Traffic State Machines (GTSM) • the Operations and Maintenance (OAM) functions 1.1.1 Link State Machines The software implemented transmit and receive LSMs are independent (i.e., each link has its own LSM). LSMs rely on various events from the 8 MT90220 interface, such as cell errors, excessive delay between-links, etc.; or, from the T1 or E1 framer, such as Loss Of Signal (LOS), Loss Of Frame (LOF), Remote Alarm Indication (RAI) etc. On-chip registers are used to generate the ICP cells that communicate the LSM states to the Far End (FE). 1.1.2 IMA Group State Machines The IMA GSMs and Group Traffic State Machines (GTSM) must be implemented in software. One of each state machine should be implemented for each IMA Group. On-chip registers are used to generate the ICP cells that communicate the various states to the FE. 1.1.3 Link Addition, Removal or Restoration The addition, removal or restoration of a link is controlled by software using the various control registers in the MT90220 and in the T1 or E1 framers. Decisions are based on the MT90220 and T1 or E1 framers status registers. 1.1.4 Interrupt The MT90220 provides numerous registers and counters to implement a polling and/or interrupt mechanism for tracking link and IMA Group status. This traffic in and out information is used by the Management Information Base (MIB) for each IMA Group. 1.1.5 Signaling and Rate Adjustment The microprocessor controls the operation of the T1 or E1 link by providing handshaking between the FE and Near Ends (NE) including such functions as signaling and loopback controls. Rate adjustment is controlled by: • • adding or removing one or more T1 or E1 links providing feedback to the ATM network for adjusting the ATM traffic. 1.1.6 Performance Monitoring Software implements most of the performance monitoring. The MT90220 provides status information for: • the Cell Delineation Block and IMA Frame State Machine • the number of ICP violations • the total number of cells • the number of idle or discarded cells. MT90220 It also provides the content for received ICP cells that contain some changes. The external T1 or E1 framers provide the low level status of the link. The software integrates and responds to the various events. 1.2 Hardware Functions The MT90220 circuitry implements the following functions: • UTOPIA L2 Interface • verification of the incoming HEC (optional) • generation of a new HEC byte • transmit scheduler • generation of the TX IMA Data Cell Rate (IDCR) • generation and insertion of ICP cells, Filler Cells and Stuff Cells in IMA mode • generation of Idle Cells in UNI mode (from onchip copies of the cells) • flexible PCM formatting of the outgoing bytes • retrieval of ATM Cells from the incoming PCM format • cell delineation • retrieval and processing of ICP cells • synchronization of the IMA Frame • management of the internal re-sequencer RX links (when active) • extraction of the RX IDCR • verification of the delays between-links • re-sequencing of ATM cells using external Static RAM • various performance monitoring counters • 8-bit microprocessor interface (adaptable to Intel or Motorola interfaces) The MT90220 can be separated into four major independent blocks and three support blocks. The four major independent blocks are: • the ATM Transmit Path • the ATM Receive Path • the PCM Interface • the UTOPIA Interface The three support blocks are: • the Counter Block • the Interrupt Block • the Microprocessor Interface Block 2.0 The ATM Transmit Path The transmit path corresponds to a cell flow from the ATM Layer towards the T1/E1 interface. The ATM cell path on the transmit side starts at the UTOPIA L2 Interface. Once ATM cells are received at the UTOPIA port, the device transfers these cells to the transmit block. The MT90220 provides ATM cell mapping and transmission convergence blocks to transport ATM cell payloads over eight flexible PCM Interface ports. It uses these PCM Interface ports to communicate with most off-the-shelf T1 or E1 framers. Each of the eight T1/E1 links can be assigned to either an IMA Group or to a UNI link. A single T1/E1 link cannot be assigned to more than one IMA Group. The functional block diagram at Figure 3 illustrates the transmit function of the MT90220. 2.1 Cell_In_Control In general terms, the MT90220 transmit input port has the following properties: • cell level handshaking complies with the ATM Forum UTOPIA L2 Specification • behaves like a UTOPIA MPHY Device • each port can be enabled or disabled independently • generates and optionally verifies the HEC for incoming cells • includes the ATM Forum polynomial when generating the HEC (default option that can be disabled) • either passes or removes incoming Idle cells • either passes or removes incoming Unassigned cells • provides a counter per UTOPIA port for the total number of Idle and Unassigned cells (24 bits) • provides a counter per UTOPIA port for the total number of cells with wrong incoming HEC (24 bits) • provides a counter per UTOPIA port for the total number of cells handled (24 bits) The input port can be enabled to remove (filter) Unassigned or Idle cells. If Unassigned or Idle Cell Filtering is enabled, the device checks for and discards Unassigned or Idle cells. This function is programmed in the UTOPIA Input Control register. Section 5 describes the UTOPIA Interface in more detail. 9 MT90220 ATM In UTOPIA L2 Interface Transmitter Cell RAM FIFO Link 0 (see Note 1) FIFO Link 1 (see Note 1) ICP Cell Modifier and Cell Scrambling ICP Cell Modifier and Cell Scrambling P/S P/S Serial Streams Link 0 Link 1 Cell_In_Control FIFO Link 7 (see Note 1) from IDCR Generator TX Utopia FIFO Group 0 ICP Cell Modifier and Cell Scrambling P/S Link 7 TX Utopia FIFO Group 3 Filler Cell Idle Cell ICP Cell Group 1 ICP Cell Group 2 ICP Cell Group 3 ICP Cell Group 4 ICP Cell Buffer RAM Next ICP Cell Group 1 Next ICP Cell Group 2 Micro I/F Next ICP Cell Group 3 Next ICP Cell Group 4 Round Robin Scheduler and FIFO Selection and Adaptive Shaper (1 of 4) to Cell_In_Control IDCR Generator (1 of 4) Transmitter Reference Link Timing ICP Cell Handler Note 1: This FIFO is the TX UTOPIA FIFO when the link is configured in UNI Mode and it is the TX LINK FIFO when it is configured in IMA Mode. Figure 3 - Functional Block Diagram -Transmitter in IMA Mode 2.2 The ATM Transmission Convergence The Transmit Convergence (TC) function is common for both the IMA and UNI modes. It integrates the circuitry to support ATM cell payload scrambling, HEC generation and the generation of Idle/Filler/ICP cells for use with the T1 and/or E1 trunks. Each of the eight MT90220 ATM TC circuits can use the polynomial X43 + 1 to scramble the ATM cell payload field. The MT90220 ATM cell payload scrambling function can be disabled. The ITU I.432 polynomial X8 + X2 + X + 1 is used to generate the HEC field of the ATM cell. By default, the ATM Forum polynomial X6 + X4 + X2 + 1 is added to the calculated HEC octet. The addition of the ATM Forum polynomial can be disabled. The resulting calculation is then over-written on the HEC field and the ATM cell is ready (i.e., complies with the IMA transmit protocol) for transmission over the PCM Interface. In cases where the TC block requests a cell to be transferred to any of the PCM Interfaces and the TX UTOPIA FIFO has no cell ready for transmission, then the TC block will automatically send an IDLE cell (in UNI) or a Filler cell (in IMA mode) to the line. The default values for the Idle and the Filler cells comply with the ATM IMA Specification and are preloaded in the MT90220 following a reset. The TX Cell RAM Control register can be used to reinitialize the TX Cell RAM. 2.2.1 TX Cell Ram and TX FIFO Length The internal TX Cell Ram can hold up to 64 cells. The following six cells are reserved for MT90220 operation: • one ICP cell for each IMA Group for a total of four cells 10 MT90220 • one common Filler Cell used in IMA mode • one Idle Cell used in UNI mode The remaining 58 cells can be assigned to any of the 20 TX FIFOs. The TX FIFOs are divided in 12 TX UTOPIA FIFOs and 8 TX Link FIFOs.The MT90220 implements one TX UTOPIA FIFO for each link when used in UNI and one for each IMA Group for a total of 12 TX UTOPIA FIFOs. Each TX UTOPIA FIFO is associated with one TX UTOPIA Address. Please refer to the paragraph 5.0 UTOPIA Interface Operation for more details. In addition, for each link to be used in IMA mode, an internal TX Link FIFO is utilized. These TX Link FIFOs are holding the cell streams that are to be sent on each TX serial port. There is a total of 8 TX Link FIFOs and their size is programmed on a per group basis using the TX IMA Control register. When a link is used in UNI mode, its corresponding TX Link FIFO is disabled and the TX UTOPIA FIFO is used. TX UTOPIA FIFO Length Definition registers are used to set the TX UTOPIA FIFO size. A maximum of 15 cells can be assigned to any single FIFO. The size of unused TX UTOPIA FIFOs should be set to zero. The recommended size for the IMA Group TX UTOPIA FIFO is 1. In IMA Mode, the ATM User Cells are first placed in the IMA TX UTOPIA FIFO and then transferred, by the internal round robin scheduler, to the proper TX Link FIFO. The TX UTOPIA FIFO length for each link configured in IMA mode should be set to zero. The TX IMA Control registers are used to set the size of the internal TX Link FIFO. An upper and lower level limit must be set for the internal TX Link FIFO. In UNI Mode, the ATM User Cells are queued in the TX UTOPIA FIFO until sent over the T1/E1 link. The recommended upper limit value for the internal TX Link FIFO is five and the recommended lower limit is one when operating in ITC clocking mode. When operating in CTC mode, the recommended upper limit value for the internal TX Link FIFO is six and the recommended lower limit is one. In the case where CTC mode is used and when the ICP cells on all the links are sent with the same ICP cell offset and when carrying a CBR-type traffic, an upper value of 7 may be required. 2.3 Parallel to Serial PCM Interface ATM cell octet byte alignment conforms to ITU G.804 recommendations for T1 or E1 framer parallel to serial format conversion. The TX PCM Control and RX PCM Control registers are used to select the T1 or E1 mode of operation. Refer to Section 4, Description of the PCM Interface, for more details. 2.4 ATM Transmit Path in IMA Mode The MT90220 supports up to four independent IMA Groups. Each of the eight T1/E1 trunks can be assigned to any one of these IMA Groups. A T1/E1 trunk cannot be assigned to more than one IMA Group. Refer to Figure 3 for a functional block diagram of the transmitter. The IMA transmitter splits the incoming stream into N sub-streams, where 1 ≤ N ≤ 8. Each sub-stream is passed to a separate line interface device that transmits the cells on a physical link. The physical line rate is either 1.544 Mbps (T1) or 2.048 Mbps (E1). The transmitter inserts so-called ICP cells in the various outgoing streams according to the IMA specification. The ICP cells are inserted every M ATM cells on each link. This is the task of the scheduler. 2.4.1 IMA Frame Length (M) The IMA frame length (value of M) can be 256, 128, 64, or 32. The value of M for each IMA Group is set by the TX Group Control Mode registers. M is fixed once an IMA Group is setup and should remain unchanged so long as that group is operational. 2.4.2 Position of the ICP Cell in the IMA Frame The TX ICP Cell Offset registers control the position of the ICP cell in the IMA frame for each link. This parameter should remain unchanged so long as that group is operational. 2.4.3 Transmit Clock Operation The MT90220 supports both the Common Transmit Clock (CTC) and Independent Transmit Clock (ITC) modes of operation. The desired mode is specified by writing to the TX Group Control Mode register. A reference link must be specified in the TX Group Control Mode register. The MT90220 introduces a Stuff cell on the reference link every 2048 cells and determines the appropriate time to insert a Stuff cell on the remaining group links. See paragraph 2.4.4, Stuff Cell Rate, for more details. 11 MT90220 The clocking mode and reference link are fixed once an IMA Group is setup and should remain unchanged so long as that group is operational. The reference link should not change unless problems are reported with the link. 2.4.4 Stuff Cell Rate The Stuff event algorithm differs between CTC and ITC modes. In CTC mode, the Stuff event is typically fixed and appears in the same IMA frame on all IMA Group links. In ITC mode, the Stuff event is determined using an adaptive algorithm that relates the level of the internal TX Link FIFO to that of the TX link FIFO of the Reference link. The MT90220 implements 2 different stuffing algorithms: a fixed stuffing rate and an adaptive stuffing rate. The Stuffing events do not happen more frequently than once every five IMA frames. TX Group Control Mode register bit 3 selects either the adaptive or fixed algorithm. Bit 4 determines the timing mode declared in the ICP cell. There are three possible combinations: • CTC Mode with internal Fixed algorithm • CTC Mode with internal Adaptive algorithm • ITC Mode with internal Adaptive algorithm In CTC mode, when using the Fixed algorithm, the Stuff event is periodic and will appear in the same IMA frame, once every 2048 cells, on each link that is part of the IMA Group. In CTC mode, when using the Adaptive algorithm, the Stuff event will occur at an average rate of once every 2048 cells on each link and may not occur in the same IMA Frame on all the links. In ITC mode, the Stuff event is determined using the adaptive algorithm that relates the level of the internal TX Link FIFO with that of the TX Link FIFO of the Reference link. The reference link has one Stuff event every 2048 cells. The state of bit seven in the TX IMA Control register determines whether a Stuff indication is generated in the first or first four frames preceding a Stuff event. 2.4.5 IMA Data Cell Rate The MT90220 computes the internal TX IMA Data Cell Rate (IDCR) for each IMA Group. The cell rate for the IMA Group reference link, specified in the TX Group Control Mode register, is integrated over a programmable period of time. The preferred integration period is programmed in the TX IDCR 12 Integration register and the value is indicated in Table 1. PCM Mode T1 ISDN (23 channels) T1 (24 channels) E1(30 channels) Preferred Value TX IDCR Integration register 0x09 (216 clocks) 0x0B (218 clocks) 0x0C (219 clocks) Table 1 - IDCR Integration Register Value 2.4.6 IMA Controller (RoundRobin Scheduler) The IMA controller produces the cell stream to be sent to the PCM blocks using the following four cell types: • Data cells received from the UTOPIA port (User cells) • Filler cells • IMA ICP cells with Link status information • Stuff cells At an IDCR clock tick, the RoundRobin scheduler inserts either an ICP cell, a User cell or a Filler cell into the TX Link FIFO of the next link of the IMA group, based on ascending link ID numbers. An ICP cell is inserted every M cells and a stuff event is inserted when indicated by the stuffing algorithm. If it is not time for an ICP cell and if the traffic is not enabled for the link (see bit 6 of the TX Link Control register), then a Filler cell is inserted in the TX Link FIFO. If the traffic is enabled and there is a User cell in the TX Utopia FIFO, then the User cell is transferred from the TX UTOPIA FIFO to the TX Link FIFO. If there is no User cell in the TX UTOPIA FIFO, then a Filler cell is inserted in the TX Link FIFO. 2.4.7 ICP Cell Generator Once per IMA frame, an ICP cell is transmitted on each link of the IMA Group. The content of the ICP cell is controlled both by MT90220 and software. The software content of the ICP cell bytes is stored in buffer RAM. A copy of the ICP cell for each group is kept in the internal Transmitter Cell RAM. The ICP cell to be transmitted on each link is assembled on an as required basis under the control of the internal RoundRobin scheduler and ICP Cell Modifier. Hardware controls the following bytes of the ICP cell: • Byte 5 - the HEC is always calculated and inserted by the MT90220 • Byte 6 - the TX OAM L abel is defined by the software and the value contained in this location is transmitted in all ICP cells, Stuff MT90220 Byte 1-5 6 7 8 9 10 11 12 13 14 15 16 17 18-49 50 51 52-53 Description ICP Cell Header OAM label Cell ID, Link ID IMA Frame Sequence ICP Cell Offset Link Stuff Indication Status Change Indic. IMA ID Group Status and Control Sync. Info. Test Control TX Test Pattern RX Test Pattern Link Status and Control Unused End-to-End Channel CRC Error Control Control Source Content of Header is under S/W control. The HEC is calculated by H/W. S/W control The Link ID is programmed through other registers and inserted by H/W Hardware Control H/W Control. (Programmed by S/W through other registers) H/W Control H/W Control S/W Control S/W Control except for value of M H/W Control (Programmed by S/W through other registers) S/W Control S/W Control S/W Control S/W Control S/W Control S/W Control H/W Calculation Table 2 - ICP Cell Description Software controls all remaining bytes of the ICP cells. It also maintains and updates all bytes that are not directly controlled by the MT90220. A dedicated address is reserved for each ICP cell byte for each of the four IMA Groups. This permits direct access to any of the bytes stored in each of the four ICP Cell registers. Refer to Table 2, ICP Cell Description, for details on the ICP cell byte contents. To avoid updating or corruption problems, the internal copy of the ICP Cell cannot be directly accessed. ICP cells are prepared in a buffer area (RAM inside the MT90220) and transfer commands are issued to copy the content of the ICP cell into the internal Cell RAM area and to start using this new ICP cell. The MT90220 uses a flag (status bit) to indicate that this transfer is underway. Changes should not be made to the content of the ICP cell in the buffer area until the transfer to the internal memory is complete. The status bit is cleared during the transfer and returns to ’1’ on completion of the transfer. IMA Groups are controlled independently. When access to the ICP cell of one group is prohibited, the other ICP cell buffer areas can still be updated. The TX ICP Cell Handler and TX ICP Interrupt Enable registers are used to initiate a transfer and enable an optional interrupt to indicate when the process is complete. • • • • • • • • Cells and Filler cells sent on all the links that are part of the corresponding TX IMA group Byte 7 - the TX Link ID register is used to set the Link Logical ID and the cell type is determined by the internal controller on a per link basis Byte 8 - the frame sequence number is controlled by an internal counter Byte 9 - the TX ICP Cell Offset register is used to set the value. This value is inserted on a per link basis Byte 10 - the link Stuff indication is inserted automatically and the advance indication option is programmed by the TX IMA Control r egister on a per link basis Byte 11 - the SCCI is controlled by internal circuitry. The SCCI is incremented by one for each transfer of the TX ICP cell from the buffer area to the TX Cell RAM. Byte 13 - the value of M is programmed through the TX Group Control Mode register Byte 14 - the TX Group Control Mode r egister is used to set the Transmit Timing Information and define the reference link Bytes 52 and 53 - the calculated CRC-10 Error Control bits are inserted automatically 13 MT90220 The SCCI field is incremented by one for each transfer command performed which includes a change in at least one byte of the ICP cell. • 2.4.8 IMA Frame Programmable Interrupt An optional interrupt is provided at the end of an IMA frame to simplify software implemented changes in the Group Control and Status field. This interrupt can be enabled on an as required and per group basis to implement a frame counter. The TX ICP Cell Handler and TX ICP Interrupt Enable registers are used for the transfer ready and frame interrupt. 2.4.9 Filler Cell Definition The content of the Filler cell is pre-initialized and conforms with the IMA Specification. 2.4.10 TX IMA Group Start-Up Initialize the TX IMA Group start-up as follows: (Note: The startup procedure below is given indicating the most important steps. A more detailed and complete sequence can be found in the MT90220/221 Programmer’s Manual and example code). • Configure the TX PCM port(s) by writing to the TX PCM Link Control register 1 and 2. • Write the value of M, the Timing Mode and the reference link number to the TX Group Control register corresponding to the IMA Group number to be initialized. • Write the Link ID (LID is between 0-31) to TX Link ID registers for each link to be used in the IMA Group. LID should not be changed when a group is operational. Ensure each link that is part of an IMA group has a unique LID (note that the MT90220 does not verify LIDs). • Write the ICP Cell Offset value to TX ICP Cell Offset registers. This value depends on the value of M. Typically, the reference link will have a delay of 0 cells in the IMA Frame and the ICP cell in each other link will be evenly spaced in a multiple of M/N cells (where M is defined in the IMA specification and N is the number of links). The offset value for an operational group should not be changed. Write to the TX Link Control r egisters to put the link(s) in IMA mode and to enable the transfer of ATM User Cells when required. 2.4.11 TX Link Addition The MT90220 supports software controlled link addition to the existing IMA group. Link addition is used to increase the available bandwidth. The TX PCM Link Control register 1 and 2, the TX Link ID and TX ICP Cell Offset registers are initialized first with the proper IMA Group information. The link is assigned to a TX IMA group by writing to the lower 2 bits of the TX Link Control register. The bit 3, 1 and 0 of the Test 2 register have to be written with the proper value. The link is then configured in IMA mode by writing to the bit 2 of the TX Link Control register. The TX IMA Mode Status register is monitored to detect when the link is reported in IMA mode. When the link is in IMA mode, then the bit 3, 1 and 0 of the Test 2 register are reset to 0. TX Link control register bit 6 determines when ATM User cells can be sent. Note that the Test 2 register cannot be used as a read/modify/write register. The values that are written and the values that are read are independant. Note also that the bit 6 of the Test 2 register should always be set to 1. 2.4.12 TX Link Deletion There are two reasons to remove a link: the required bandwidth decreases or a link becomes faulty. The MT90220 supports link deactivation under software control. A link stops transmitting User cells when bit 6 of the TX Link Control register is set to 0. Filler and ICP cells will still be sent on the link. The link is removed from an IMA group by first setting the bit 2 of the TX Link Control register to 1 while keeping the original IMA group number. The IMA group number can be changed only when the link is in UNI mode as ATM In Transmitter Cell RAM Cell_In_Control Tx Link [N] FIFO P/S Serial Streams Link [N] Output Controller and Cell Distribution Figure 4 - Functional Block Diagram of the Transmitter in UNI Mode (For Link[N] where 1 ≤ N ≤ 8 ) 14 MT90220 reported in the TX IMA Mode Status register. It then can be assigned to another IMA group. When removing the last link of a TX IMA group, the TX Utopia FIFO has to be empty. This can easily be done by first disabling the source of ATM cells (ATM Utopia contoller), then disabling the TX Utopia Port using the UTOPIA input Link or Group PHY enable registers while still keeping the "Send User Cell" bit of the TX Link Control Centre register set to 1. The level of the TX Utopia FIFO can be monitored using TX Utopia FIFO Level register. The above procedure can then be applied to assign the link in UNI mode. When the link is configured in UNI mode, IDLE cells are transmitted. Writing to the TX PCM Link Control registers either turns off the transmitter or reconfigures the link into another mode. 2.5 ATM Transmit Path in UNI Mode A maximum of eight independent T1/E1 interfaces can be selected in UNI mode. Figure 4 gives a functional block diagram of the transmitter in UNI mode. ATM cells received from the ATM port are placed in a TX UTOPIA FIFO, waiting to be transmitted. If the Idle/Unassigned cell removal option is selected, these cells are dropped. If the TX UTOPIA FIFO is empty, an Idle cell is sent to the output link. The content of the Idle cell is pre-initialized with the header bytes set at 0x00, 0x00, 0x00 and 0x01. The payload bytes are set to 0x6A. TX UTOPIA FIFO Length Definition registers are used to set the TX UTOPIA FIFO size. The total number of cells in all the TX UTOPIA FIFOs and TX Link FIFO (includes the links used in IMA Mode and the links used in UNI Mode) is limited to 58. Idle Cells are transmitted on the UNI PCM Interface until the bit corresponding to the link in the UTOPIA Input Link PHY Enable register is set. Then, the ATM User cells are transferred from the Input UTOPIA port to the TX PCM port. 3.0 The ATM Receive Path The receive path corresponds to the cell flow from the T1/E1 interfaces to the ATM UTOPIA Interface. The MT90220 provides cell delineation and optional cell filtering to discard Unassigned or Idle cells on each link. The incoming cells are stored in the external RAM required in IMA mode to perform cell recovery due to delay variation between the links introduced by the network. 3.1 Cell Delineation Function This block provides the circuitry necessary to perform functions such as Cell Delineation (CD), cell payload de-scrambling, HEC verification and filtering of Idle (UNI) cells. The CD circuit delineates ATM cells received from the payload of the T1 or E1 frame through the PCM Interface. When performing delineation, correct HEC calculations are interpreted to indicate cell boundaries. The CD circuit performs a sequential byte by byte hunt for a correct HEC sequence. While performing this hunt, the cell delineation state machine is in the HUNT state. Figure 5 depicts a state diagram of the cell delineation operation. Correct HEC (byte by byte) Incorrect HEC (cell by cell) HUNT ALPHA Consecutive Incorrect HEC (cell by cell) PRESYNC SYNC DELTA Consecutive Correct HEC (cell by cell) Figure 5 - Cell Delineation State Diagram When a correct HEC is found, the CD circuit locks on the cell boundary and enters the PRESYNC state. The PRESYNC state keeps checking the HEC to ensure that the previous indication was not false. DELTA Consecutive Correct HCS’s (PRESYNC State) Cell Accepted ATM CELL DELINEATION SYNC STATE HCS Multi-Bit Error Detected (cell discarded) Cell Discarded ALPHA Consecutive Incorrect HCS’s Jump to HUNT State HCS Single Bit Error Detected (corrected or dropped) Correction No HCS Errors Detected Detection Figure 6 - SYNC State Block Diagram 15 MT90220 False indications are interpreted to mean the circuit is not tracking good ATM cells. After entering the PRESYNC state, the first false indication triggers a transition back to HUNT state. If the PRESYNC state HEC is correct, then a transition to the SYNC state occurs after “δ” cells (DELTA in ITU I.432) are correctly received. In the SYNC state, the CD circuit treats the incoming ATM cell stream as stable and the MT90220 functions normally. While in the SYNC state, if an incorrect HEC is obtained “a” consecutive times (ALPHA in ITU I.432), cell delineation is considered lost and a transition is made back to the HUNT state (see Figure 6). As defined by the ITU I.432 recommendations, the value of ALPHA and DELTA determine the robustness of the delineation method. The value of ALPHA and DELTA for the Cell Delineation state machine are defined in the Cell Delineation register. Only one set of values is defined for the eight Cell Delineation state machines. The status of the CD state machine for each link is available in bits 0 and 1 of the RX Cell Delineation State register. The ITU I.432 suggested values are: ALPHA = 7; and DELTA = 6. Loss of Cell Delineation (LCD) is detected by counting the number of incorrect cells while in HUNT state. The MT90220 provides an internal Loss Cell Delineation register to set the threshold for this count. A value of 360 in the LCD register would correspond to 79 msec for E1 and 100 msec for T1 applications. The LCD state for each link is available in bit 1 of the IRQ LinkStatus registers, and in bit 6 of the RX Link ID Number register. The LCD status bit is reporting the current condition of the Cell Delineation State Machine at the time it is read and cannot not be programmed to generate an interrupt when exiting the LCD condition. The software has to poll the status bit to determine when the condition is cleared. Table 3 provides the time, in microseconds, for the CD circuit to receive a full ATM cell from the T1 and E1 frame payloads. Format T1 E1 Average Cell Acquisition Time (µs) 276 221 Table 3 - Cell Acquisition Time While the cell delineation state machine is in the SYNC state, the verification circuit implements the state machine shown in Figure 6. In normal operation, the HEC verification state machine remains in the ’correction’ state. Incoming cells containing no HEC errors are passed to the receive IMA block (RX IMA). Incoming single-bit errors can be corrected if required by the application (i.e., single bit error correction can be enabled or disabled). After correction (when enabled), the resulting ATM cell is passed to the RX IMA block for IMA sequencing control. If a single or multi bit error occurs, the state machine goes to the ’detection’ state. When a cell with a good HEC is detected, the state machine returns to the ’correction’ state. The HEC calculation normally includes the ATM FORUM polynomial (X6 + X4 + X2 + 1). The use of the polynomial can be disabled by writing to bit 1 of the RX Link Control register. 3.2 De-Scrambling and ATM Cell Filtering The CD circuit can de-scramble the cell payload field. The de-scrambling algorithm can be enabled or disabled using bit 5 of the RX Link Control registers. The MT90220 can be programmed, using the RX Link Control registers, to discard received ATM cells with HEC error. HEC error correction is optional and can be enabled by the CPU. When the option to correct an incoming HEC value with 1 bit error is selected, the HEC is corrected and the cell is not counted as a cell with a bad HEC. If the option to remove the cells that are received with a bad HEC is selected, then the incoming cells are replaced by a Filler cell in IMA mode. The cell is simply discarded when in UNI mode. The counter is not incremented if the HEC value is corrected, when the option is enabled. Incoming Idle and Unassigned cells can be detected and dropped automatically. 3.3 ATM Receive Path in IMA Mode The block diagram at Figure 7 illustrates the MT90220 IMA mode receive path. The receiver must rearrange the incoming bit streams from N-links (1 ≤ N ≤ 8) into a single UTOPIA cell stream. 16 MT90220 RAM Area RXCK RXSYNC DSTi [0] S/P Cell Delineation ICP Processing IMA Frame State Machine UTOPIA Interface RAM Controller RX Scheduler RXCK RXSYNC DSTi [7] S/P Cell Delineation ICP Processing IMA Frame State Machine Recovered Cell CLK Link Info Registers ICP Cell With Changes Buffer Rate Recovery Micro Figure 7 - The MT90220 Receiver Circuit in IMA Mode 3.3.1 ICP Cell Processor In IMA mode, the transmitter inserts special ICP cells in the various outgoing streams every M ATM cells to comply with the IMA specification. The receive block is using these ICP cells to synchronize with the Far End transmit side and to reconstruct the ATM cell original sequence. 3.3.1.1 IMA Frame Synchronization The MT90220 implements IMA Frame Synchronization State Machines (IFSM) for each link, as described in Section 11 of the IMA Specification. The values of Alpha, Beta and Gamma are programmable through the Frame Delineation register. Their values are the same for all links. After the link is programmed to be in IMA mode by writing to the RX Link Control register, the IMA Frame State Machine is enabled. At the same time, the parameter’s value of the RX link are latched in internal reference registers and are used to determine if the received ICP cell meets the valid ICP cell criteria to determine IMA frame synchronization. Refer to section 3.3.1.2 and 3.3.1.3 for the list of link’s parameters. Incoming ICP cells are automatically detected by the ICP Processing block. As soon as one valid ICP cell is received, the IMA Frame State Machine moves to the IMA PRESYNC state. When Gamma-valid ICP cells are received, the state machine moves to the IMA SYNC state. In the IMA PRESYNC state, one errored or missing ICP cell causes the state machine to return to the IMA HUNT state. In the IMA SYNC state, the state machine is forced to the IMA HUNT state by any of the following events: • one missing ICP cell • Alpha consecutive invalid ICP cells • Beta consecutive errored ICP cells Bits 3 and 2 of the RX State register report the IMA Frame State Machine state for a selected link. When in IMA HUNT mode, the information required to perform the verification is extracted from the ICP cells received. After the received information is validated, the IMA Group is configured by writing to the RX Reference Link Control, the RX Link Control and RX Recombiner registers. 17 MT90220 3.3.1.2 Link Information All required verification and link validation information is extracted from the ICP received cells. The IMA ID, Link ID (LID), Reference Link Number, ICP Cell Offset and Frame Length can be read and validated before enabling an IMA Group link. Software obtains this information by writing to the RX Load Values register to select a link and by reading the RX Link IMA ID, RX Link ICP Offset, RX Link ID and Reference and RX State registers. This information can also be obtained by collecting all the received ICP cells in the RX ICP Cell Buffer and then processing the content of the ICP cell (i.e., writing to the RX ICP Cell Type RAM register and then reading from the RX ICP cell buffer). The contents of the link information registers should be read after enabling the RX PCM link in the RX PCM Link Control register and before enabling the IMA mode. The link information can be accessed when a link is either in UNI or IMA mode. 3.3.1.3 RX OAM Label The RX OAM Label is treated differently than the other link’s parameters. Four registers, the RX OAM Label registers, 1 per RX IMA Group, are used to defined the RX OAM Label. Its value is written by the software and can be changed at any point in time. However, the RX OAM Label has to match the value contained in the RX ICP cell for the IMA Frame State Machine to reach the ACTIVE state. 3.3.2 Out of IMA Frame (OIF) Condition Status bits in the RX OIF Status register, one bit per link, is reporting OIF conditions. The status bit is latching an OIF condition which corresponds to a transition of the IFSM from SYNC to HUNT. The OIF condition is reported as a status bit only and cannot generate an interrupt. The status bit is cleared by writing a 0 to the corresponding bit. There are 8 OIF counters, one per link. For each OIF transition, the 8-bit counter associated with the link is incremented by one. The counter can be read with indirect access when issuing a load command with the RX Load Values register. The counter can be cleared by writing to the RX OIF Counter Clear Command register. 3.3.3 Link Out Of IMA Frame (LIF) Synchronization A link is declared out of IMA Frame (LIF) synchronization state when the IFSM goes in HUNT mode for ’gamma +2’ frames after it was in SYNC state. This condition is latched in bit 2 of the IRQ Link Status register. Refer to 6.2.2 IRQ Link Status and IRQ Link Enable Registers for more details. The LIF status bit is reporting the current condition of the IMA Frame State Machine at the time it is read and cannot not be programmed to generate an interrupt when exiting the LIF condition. The software has to poll the LIF status bit to determine when the condition is cleared. 3.3.4 Filler Cell Handling The MT90220 scans each incoming cell received for the Filler Cell Indication code. Filler cells are written to external RAM to keep the IMA frame aligned. They are automatically discarded after being read from the external RAM by the recombiner. 3.3.5 Stuff Cell Handling Each incoming ICP cell received is scanned for the Stuff Indication Code. Stuff cells are inserted at the transmit end as two identical and consecutive ICP cells with the Link Stuff Indication Bits set as defined in the IMA specification. The MT90220 automatically discards one of the two Stuff cells without storing it in external RAM. The other is kept and processed as a regular ICP cell. IMA Frame synchronization is maintained for all cases (except case 7, O-19 optional requirements) as described in Figure 20 of the IMA Specification. 3.3.6 Received ICP Cell Buffer An internal buffer is implemented to collect cells from the RX PCM links for analysis by the software. This storage unit is a circular buffer for each link and contains up to three cells per link. The buffer can selectively collect: • all valid cells coming on a RX PCM port • all valid ICP cells • all valid ICP cells which contain new information (as indicated by the SCCI field, valid only when the link is in IMA mode). The type of cells collected is defined in the RX ICP Cell Type RAM registers. A status bit and a maskable IRQ alerts the software when a new cell is waiting for processing in a specific link. These are found in the IRQ Link Status and Enable registers. Valid ICP cells when a link is in UNI mode is determined by a valid HEC byte. When in IMA mode, a valid ICP cell must meet the criteria defined in Table 16 of the ATM IMA spec. Software can directly access the cells in the RX buffer through a two-cell-wide access window. This access window can be advanced, one cell at a time, by issuing a command to move the internal pointer to the next cells. Since the window accesses two cells, 18 MT90220 the last processed cell can be accessed at the window’s base address and the new cell at the base address plus 0x40. The RX ICP Cell Level FIFO register is used to read the level of any of the 8 RX ICP Cell buffers. A ’0’ in this register signifies that no new cell has been received. A ’2’ indicates the possibility that one or more cells have been missed (overflow condition). The cell in the last entry of the circular buffer is the last cell that was meeting the selection criteria. If the Cell FIFO level is 2, it is constantly overwritten by any new valid incoming cell. The cell that is at the window’s base address when the level is 0 is never overwritten as it is kept for reference. The RX ICP Cell Buffer Increment Read Pointer register is used to advance the access window by 1 cell at a time. Upon the command, the Buffer level is decreased by 1. When the level reaches 0, the window is not advanced anymore. During the start-up phase, the software can select to collect all valid ICP cells coming in a RX PCM port and determine if the parameters are acceptable to proceed and start-up an IMA group. In normal IMA operating mode, the software will select to collect only valid ICP with changes. The Status and Control Change Indication (SCCI) is monitored for all valid ICP cells received. If the SCCI field indicates a change in the ICP cells, they are put aside for processing by software. To accelerate the processing of ICP cells that contain changes, any byte of the last and next processed ICP cell can be accessed directly. To reduce the total processing time by the software, only those bytes that need to be read are accessed. The storage unit keeps the last read ICP cell and has room for up to three new ICP cells. 3.3.7 Rate Recovery The MT90220 computes the internal RX IMA Data Cell Rate (IDCR) for each IMA Group. The cell rate of the reference link is integrated over a programmable period of time. Software must specify the reference link for the IMA Group in the RX Reference Link Control register and the period of integration in the RX IDCR Integration register. Refer to TX IMA Data Cell Rate in Section 2.4.5. As an option, the reference link can be extracted automatically from the received ICP cell. This option is selected by bit 4 of the RX Reference Link Control registers. When this option is enabled, the RX Reference Link is always updated to reflect the content of the last valid RXICP cell that was received. 3.3.8 Cell Buffer/RAM Controller The received cells are temporarily stored in external memory buffers until they can be correctly re-ordered for output. Memory size depends on the number of links and the maximum delay allowed between the links. The memory requirements for different configurations is listed in Table 4. The memory is Memory Size (Kbytes) 32Kb 64Kb 128Kb 256Kb 512Kb 1024Kb Delay (msec) T1 links 16 34 69 140 281 560 E1 links 13 27 55 112 225 451 Note: Assuming a Guardband of 4 cells Table 4 - Differential Delay for Various Memory Configuration organized in blocks of 64 bytes. Each block can hold one cell. The following equation can be used to determine the maximum delay value or the required RAM size for a determined delay: [ RAMsize ] 1 -MaxDelay = ---------------------------- -- [ 1 CellTime ] 64 8 To simplify the RAM interface and pin loading, the MT90220 supports the following six, SRAM Control register selectable, external memory configurations: • one 32 KByte SRAM device • two 32 KByte SRAM devices • one 128 KByte SRAM device • two 128 KByte SRAM devices • one 512 KBytes SRAM • two 512 KBytes SRAM devices. To enable the correct memory access, the Test Mode Enable register bit 7 has to be set to 1, the value 0x10 should be written to the RX Delay Link Number register, the bit 3 of the RX External SRAM Control register has to be set to 1 and the bit 6 of Test 2 register has to be set to 1. 3.3.9 Cell Sequence Recovery When an IMA Group is active, the IMA recombiner manages the pointers to the external RAM write and read location for the stored ATM cells. A cell is read out from the buffer located in the external RAM corresponding to the lowest link ID (LID) of the IMA Group and placed in the RX UTOPIA FIFO. After a 19 MT90220 complete cell read, a read pointer is set to the buffer corresponding to the next LID. At the following IDCR clock cycle, the next available cell is read. ICP cells are skipped and Filler cells are discarded. This operation is done in a RoundRobin fashion based on the LID value for each IMA Group link. Faulty conditions (i.e., buffer overflow, excessive delay) are reported through the IRQ Link Status and IRQ UTOPIA Status registers. 3.3.10 Delay Between Links The delay values between links are reflecting the various transit delays though the network. In order to rebuild the original ATM cell sequence, the link that exhibits less transport delay has to be stored until the data from the slowest link (link having the largest transport delay) has arrived. The link that exhibits the largest transport delay will be the link that requires the least cells to be stored. Conversely, the line that exhibits the least transport delay is the link that requires the largest number of cells to be stored. Indirect access is provided to internal registers which hold the various link delay values. The link number and delay type are first selected by writing to the RX Delay Select register. After 2 system clock cycles, the 14-bit value in the RX Delay MSB and LSB and the RX Delay Link Number registers are updated and can be read. The valid delay types are: the Maximum Delay over Time, the Current Maximum Delay and the Current Minimum Delay for an IMA group and the Current Delay values for any links. The delay values can be converted to time values by multiplying the number of cells by the conversion factor listed in the Table 5. Link Type T1 ISDN (23 ch. per frame) T1 (24 ch. per frame) E1 (30 ch. per frame) Time per cell (msec) 0.288 0.276 0.221 The minimum recombiner delay would be the current worst case differential delay. In the example above, the recombiner delay would be set to 12 msec. In this case, a link with larger transport delay than the current worst value cannot be added to an existing IMA group: the cells from this slower link have not arrived when the cells sequence is rebuilt, as the read pointer was set using the previous worst case link. If this slower link is to be added, then the recombiner process has to stop for the time required to receive the cells on the slower link and then the recombiner process can resume. This causes disruption in the operation of the recombiner and will affect the Cell Delay Variation (CDV). To provide an optimal recombiner delay, the MT90220 adds a guardband delay to the current worst case recombination delay when the IMA Group is first started up. Guardband delay is programmable and minimizes the number of disruptions that would otherwise occur in accommodating link delays exceeding the current worst case. The guardband delay is added to the minimum recombiner delay, when the recombiner process is enabled for the first link of an IMA group. The operational delay corresponds to the guardband delay added to the current worst case delay value. The guardband delay value is specified for each IMA group by writing to the Guardband/Delta Delay register. It should be the smallest value possible consistent with minimizing the disruptions and the smallest allowed value is 4. When operational, the value of the guardband delay corresponds to the delay value of the link having the greater transport delay (the link where the data is the last to arrive to the MT90220). 3.3.10.2 RX Maximum Operational Delay Value The various delays on links of the same IMA Group are measured and compared to the programmed ’maximum allowable value’ stored in the RX Maximum Operational Delay register for the IMA Group. This value corresponds to the worst delay value that is expected. This value cannot be larger than the number of cells that can be stored in the external memory. The smallest ’maximum allowable value’ is four cells. These values are independently established for each of the four IMA Groups. 3.3.10.3 Link Out of Delay Synchronization (LODS) If a link to be added is slower and cannot be accommodated by the present guardband, an LODS signal is generated and the link delay value is reported negative. A delay is negative when the 2 most significant bits are set to "1". The value reported is with respect to the read pointer and Table 5 - Conversion Factors Time/Cell (msec) 3.3.10.1 RX Recombiner Delay Value The ICP Cell from each link of the same IMA Group is used to determine the external SRAM read and write pointers. The distance between the read and write pointers is referred to as the recombiner delay. Setting the recombiner delay to the maximum acceptable delay results in a fixed recombiner delay that is not optimum. For example, setting recombiner delay to 25 msec when the worst case delay is 12 msec results in an additional, unnecessary delay of 13 msec. 20 MT90220 represents the minimum number of cells that has to be added to the present guardband before adding the link in the IMA group. See paragraph 3.3.10.6 Incrementing/Decrementing the Recombiner Delay for more details. If a link to be added is faster and would cause its write pointer to be set beyond the RX Maximum operational Delay programmed value, then the link is reported to be faulty through an LODS condition. The recombination process will not be affected as long as the amount of delay is not larger than the total number of cells in the external memory. LODS will also be reported if, during operation, the delay of a link is changing to exhibits higher or lower delay which result in a negative delay value or beyond the RX Maximum Operating Delay value. LODS events are reported by the IRQ Link Status register and the selected Current Maximum Delay register for an IMA Group. 3.3.10.4 Negative Delay Values If the recombiner process is enabled for a link that is exhibiting a negative delay value then the recombiner process will be suspended until the write pointers are moved in such a way that the delay is reported with a positive value of 4. At this time, the recombiner process will resume. No cells are lost. The same behavior applies if the delay value of a link which is part of the round robin process (recombiner bit ON) goes negative: the recombiner process will be suspended until the delay value becomes positive with a value of 4. The latter condition can happen under severe error conditions if the recombiner process of the faulty link is not disabled. 3.3.10.5 Measured Delay Between Links The values and delay type for a selected link(s) or IMA Group can be read using the RX Delay Select register. IMA Group delay types include: the Maximum Delay over time; the Current Maximum Delay and the Current Minimum Delay of an IMA Group. Current Link Delay reports the Current Delay of a link. These values are all reported through a common RX Delay register. The value is in number of cells. All the delay values include the guardband delay value. The RX Delay Link Number register is reporting the link number associated with the delay value that is currently in the RX Delay registers, with the exception for the Maximum Delay over time value, where the link number reported is not valid (reports value of 0). The Maximum Delay over time value can be reset at any time by writing a clear command to bit 5 in the RX Delay Select register. The differential delays can be easily obtained by subtracting the delay values of the links. 3.3.10.6 Incrementing/Decrementing the Recombiner Delay If a link to be added has a delay value which falls beyond the worst current delay value, then there are 2 options: either reject the link or re-adjust the pointers. To readjust the pointers, the number of cells to be added (delta) is specified and corresponds to the amount of extra delay to be added to the current recombination delay. The additional delay is first programmed in the Guardband/Delta Delay register and then a command to increase the delay is issued (using the Increment/Decrement Delay Control register). The MT90220 device stops the recombiner process for the amount of time specified and then resumes the recombiner process. No cells are lost but there is an effect on the CDV. The increment process is completed when the control bit in the Increment/Decrement Delay Control register is returned to a 0 value. If the link exhibiting the longest transmission delay is removed, the recombiner delay can be reduced accordingly. When such a correction occurs, the number of cells corresponding to the delay correction will be lost. To reduce the impact of this correction, its implementation can either be immediate or delayed. The Increment/Decrement Delay Control register is used for this purpose. The amount of delay to be removed (i.e., number of cells) in the recombiner process is controlled by the Guardband/ Delta Delay register. Alternatively, the links can all be placed in blocking mode for the transition period to avoid losing any cells. If a decrement delay command is issued which would result in a negative delay value on one or more links, the following action will take place: the read pointer is re-adjusted as required by the decrease delay command and since the delay is negative, the recombiner process is suspended until the delay on all the link are at least reaching a positive value of 4. Then, the recombiner process will resume. 3.3.11 RX IMA Group Start-Up A quick initialization sequence for the RX IMA Group could be as follows (default values can be used for some registers). (Note: The startup procedure below is given indicating the most important steps. A more detailed and complete sequence can be found in the 21 MT90220 MT90220/221 Programmer’s Manual and example code). • Configure the SRAM parameters using the SRAM Control, RX External SRAM Control and Test Mode Enable registers • Configure the Cell delineation and IMA Frame State Machines parameters by writing to the Cell Delineation, Loss Cell Delineation a nd IMA Frame Delineation registers • Write to the RX Link Control register to select the RX options • Configure the RX PCM port(s) by writing to the RX PCM Link Control register • Configure the RX UTOPIA port by writing to the UTOPIA Output Group PHY Enable a nd UTOPIA OutputGroup Address registers • Validate the IMA parameter values received over the PCM links and configure the link in IMA mode using the RX Recombiner a nd the RX Link Control register • When ready, start the recombiner process by writing to the RX Recombiner register 3.3.12 Link Addition The MT90220 supports software controlled link addition to the existing RX link group. Such an addition can be used to increase available bandwidth. The added link receives Filler cells until the Far End (FE) TX side is active. During this time, the new link’s delay is measured and compared with the current operating limits. The link is either rejected or accepted. The operational delay can be corrected if required as described in 3.3.10.6 Incrementing/ Decrementing the Recombiner Delay. After synchronization is achieved, the added link can be included in the recombiner algorithm using bit 2 of the RX Recombiner register. The link will be effectively included in the IMA Group when the corresponding bit in the Enable Recombination Status register is set. A link may also be added to an IMA Group when the first User cell is received. This is done by writing to the RX Recombiner Delay Control register. 3.3.13 Link Deletion There are two reasons to deactivate a link: • the bandwidth required decreases or • an existing link becomes faulty. Both link deactivation procedures specified in the IMA specification are supported under the control of software. The command to disable the recombination process for a link is issued by writing to bit 2 of the RX Recombiner register. If the delay of the link to be removed is not the worst delay, then no pointer correction is required and the recombiner bit (i.e., bit 2 of RX Recombiner register) for the removed link should be set to 0. If it is the worst case delay, then the pointer values should be corrected to reduce the amount of additional delay introduced by the recombiner. The pointers need to be changed (advanced). This results in reducing the number of cells (the amount of time) required for the recombiner process. To reduce the impact of this correction, its implementation can either be immediate or delayed. A command in the Increment/Decrement Delay Control register is used for this purpose (refer to 3.3.10.6 Incrementing/Decerementing the Recombiner Delay, for more details). 3.3.14 Disabling an IMA Group Before an IMA Group can be disabled, the software should ensure that no User cells are left in memory. As part of the higher level handshaking, the TX FE should have sent Filler cells for a while for the RX side to process all the User cells that could be in the external memory. The procedure to follow is to stop the recombination process and then, wait for the enable process to be reported inactive (in the Enable Recombination Status register) before re-assigning the link to another IMA group or to UNI Mode. 3.4 The ATM Receive Path in UNI Up to eight incoming T1/E1 lines can be connected to the MT90220 receiver and forwarded to the UTOPIA L2 interface served by an external ATMLayer device. Figure 8 illustrates four of the eight possible UTOPIA ports that can be addressed through the UTOPIA Interface. The size of the RX UTOPIA FIFO is fixed. The Idle cells are automatically removed at the RX PCM block and all other valid received cells are transferred to the RX UTOPIA FIFO. 22 MT90220 RXCK RXSYNC DSTi RXCK RXSYNC S/P Cell Delineation Idle Cell Removal DSTi RXCK RXSYNC DSTi RXCK RXSYNC DSTi S/P Cell Delineation Idle Cell Removal UTOPIA Interface S/P Cell Delineation Idle Cell Removal S/P Cell Delineation Idle Cell Removal System Clock Figure 8 - Example of UNI Mode Operation (Using Four of Eight Possible UTOPIA-Output Ports) 4.0 Description of the PCM Interface To provide support for the IMA Asymmetrical mode, the Transmit PCM blocks are independent from the Receive PCM blocks. The TX port of a framer can be connected to any of the MT90220 TX UTOPIA Input ports and the RX port of a framer can be connected to any of the MT90220 RX UTOPIA Output ports. 4.1 Serial to Parallel (S/P) and Parallel to Serial (P/S) Converters Each T1/E1 link has a S/P and P/S unit assigned. The P/S unit takes a byte from the cell RAM and converts it to a serial bit stream. The S/P unit takes a byte from the DSTi input and converts it to parallel format for use by the Cell Delineation block. The system interface supports both the ST-BUS (2.048 Mbps bus) and generic PCM Interface. Note that the ST-BUS is compatible with the so-called MVIP mode that is supported by some T1 or E1 framer manufacturers. The MT90220 generates and receives the PCM channels only (24 or 23 with T1, 30 with E1). The control/status channels of the framers and the signaling channels are not supported by the MT90220. P/S and S/P units can be set-up differently on a per port and per direction basis (i.e. the transmit and receive function of the same port can use different configurations). The following features are supported: • programming links as T1 or E1 • • using ST-BUS and Generic PCM modes enabling/disabling the P/S and S/P units (if they are disabled the associated outputs are Tristated) • mapping T1 links, on a per port and per direction basis, to use either the first 24 channels or 3 of every 4 channels (when STBUS or 2.048 clock modes are selected) • programming T1 links to ignore timeslot 24 and reserve it for signaling (since only 23 timeslots are used to carry the ATM cells, this option should be applied to all links of the same IMA Group) • independently programming the polarity of RXCK, TXCK, RXSYNC and TXSYNC signals (Generic PCM mode only) • generating/accepting TXSYNC and TXCLK signals to support most T1 and E1 framers (depending on the programmed mode) • monitoring RXSYNC signal period and reporting the unexpected occurrence of a synchronization signal (see 4.3.1 Verification of the RXSYNC Period, for more details) • monitoring TXSYNC signal period (when defined as input) and reporting the unexpected occurrence of a synchronization signal (see 4.3.2 Verification of the TXSYNC Period, for more details) • generating a TXSYNC pulse on every PCM frame when defined as output • assigning any TX or RX link to any IMA Group When the TXCK and TXSYNC signals are outputs, the source for the TXCLK is software selectable from any of the eight RXCK inputs or any of the four external REFCKs. The TXSYNC signal is generated 23 MT90220 from the TXCK and is independent from (not aligned with) the RXSYNC or other TXSYNC signals. 4.2 PCM System Interface Modes There are 8 major modes of operation for the PCM interface. The only difference between modes 1 to 4 and modes 5 to 8 is in the direction of the TXCK and TXSYNC signals. In the PCM modes 5 to 8, the direction is the opposite of what is defined in modes 1 to 4. The direction of the TXCK and TXSYNC signals is defined by the bit 4 in the TX PCM Link Control Register #2 and the PCM mode is defined in the TX PCM Link Control Register #1 • Mode 1: Generic PCM interface for T1 applications, TXCK and TXSYNC outputs • Mode 2: ST-BUS interface for T1 applications, TXCK and TXSYNC inputs • Mode 3: Generic PCM interface for E1 applications, TXCK and TXSYNC outputs • Mode 4: ST-BUS interface for E1 applications, TXCK and TXSYNC inputs • Mode 5: Generic PCM interface for T1 applications, TXCK and TXSYNC inputs • Mode 6: ST-BUS interface for T1 applications, TXCK and TXSYNC outputs PCM Major Modes • Mode 7: Generic PCM interface for E1 applications, TXCK and TXSYNC inputs • Mode 8: ST-BUS interface for E1 applications, TXCK and TXSYNC outputs T1 with ISDN services operation is available in PCM Modes 1, 2, 5 and 6. Channel 24 is not used to carry the ATM cells and is reserved for signaling. In this case, 23 channels are used to carry the ATM cells over the links and all the links in the IMA Group must have the same option selected. The signaling channel is always channel 24 in the T1 frame and its position will vary with the PCM frame length. In PCM Mode 1 and 5, the clock can be either 1.544 or 2.048 MHz. If a 2.048 MHz clock is selected, the mapping of the 24 channels can be either grouped (the first 24 consecutive timeslots starting with the Frame Pulse) or spaced (3 of every 4 timeslots, starting with the second timeslot of the 32 timeslot frame). In PCM Modes 1, 3, 5 and 7, polarity of clock and synchronization signals (TXCK, TX SYNC, RXCK and RX SYNC) can be set as either positive or negative. In the ST-BUS mode 2, 4, 6 and 8, the Description E1/T1 T1 T1 E1 E1 T1 T1 E1 E1 ST-BUS/ Generic Generic ST-BUS Generic ST-BUS Generic ST-BUS Generic ST-BUS TXCK/TXSYNC (Input/Output) Output Input Output Input Input Output Input Output TX PCM Control Registers 1 & 2 Reg 1 bit 6 Reg 1 bit 5 0 1 0 1 0 1 0 1 Reg 2 bit 4 0 0 0 0 1 1 1 1 Table 6 - PCM Modes Mode 1 Mode 2 Mode 3 Mode 4 Mode 5 Mode 6 Mode 7 Mode 8 0 0 1 1 0 0 1 1 . PCM Mode Clock Frequency Mapping T1 ISDN (23 channels) T1 Clear Channel (24 channels) E1 (30 channels) Groupeda Yes Yes -- ST-BUS 4.096 MHz Spacedb Yes Yes -Fixedc --Yes 1.544MHz Fixed Yes Yes -- GENERIC 2.048 MHz Grouped Yes Yes -Spaced Yes Yes -Fixed --Yes Table 7 - PCM Clock and Mapping Options a. "Grouped" corresponds to the use of the first 23 or 24 channels (timeslots) from the 32 timeslots available in a frame. b. "Spaced" corresponds to the use of 3 channels every 4 channels (timeslots) from the 32 timeslots available in a frame. c. "Fixed" corresponds to the use of channels 1-15 and 17-31 leaving channels (timeslots) 0 and 16 not used. 24 MT90220 clock and frame pulse are fixed and must conform to the ST-BUS specification. The RXCK and RXSYNC pins are always defined as inputs and are generated by external circuitry. 4.2.1 Mode 2 and 6: ST-BUS Interface for T1 In PCM Mode 2 the TXCK and TXSYNC pins are defined as Inputs and in PCM Mode 6, the TXCK and TXSYNC are defined as outputs. The RXCK and RXSYNC are always defined as input pins. In T1 applications, a DS-1 frame is 193 bits long and corresponds to 1 framing bit and 192 payload bits. The 192 payload bits are divided as 24 channels or time slots of 8 bits each. The MITEL ST-BUS has 32 channels numbered 0 to 31. Two different mapping schemes are selectable. The spaced mapping scheme uses 3 of every 4 channels. The grouped scheme uses the first 24 channels. Refer to Table 8 for details of Spaced DS-1 mapping, Table 9 for Grouped DS1 mapping. All unused channels are tri-state. The MITEL ST-BUS clock value is 4.096 MHz. The frame pulse is 8 kHz and should be as defined in Figure 9 or Figure 10 (see MITEL Application Note MSAN-126). In the PCM Mode 6, the TXCK and TXSYNC pins are defined as outputs. The source for the TXCK is selected using TX PCM Link Control register number 2 and can be any of the eight RXCK or four external REFCK clocks. As there is no PLL inside the MT90220, the source frequency has to be a valid ST4 5 5 6 6 7 8 x 2 4 x 7 9 8 1 0 2 0 2 6 9 1 1 2 1 2 7 1 2 x 2 8 x 1 0 1 3 2 2 2 9 1 1 1 4 2 3 3 0 1 2 1 5 2 4 3 1 DS1 Time slots Voice/Data Channels (DSTi/o) ST-BUS DS1 Time slots Voice/Data Channels (DSTi/o) ST-BUS 0 x 1 6 x 1 1 2 2 3 3 4 x 2 0 x 1 3 1 7 1 4 1 8 1 5 1 9 1 6 2 1 1 7 2 2 1 8 2 3 1 9 2 5 Table 8 - T1Channel Mapping Using 3 Channels Every 4 Channels ST-BUS Bit Cells (DSTx0-7) Serial Bit Stream TXSYNC0-7 RXSYNC0-7 TXCK 0-7 RXCK 0-7 ST-BUS Bit Cells at DSTx0-7 Serial Bit Stream TXSYNC0-7 RXSYNC0-7 TXCK 0-7 RXCK 0-7 Chan. 31 bit 0 Chan. 0 bit 7 ... ... ... ... Chan. 0 bit 0 Chan. 1 bit 7 ... Bit Cell Unused or High Impedance Unused or High Impedance Bit Cell ... ... ... Chan. N-1 bit 0 Chan. N bit 7 ... ... ... ... Chan. N bit 0 Chan. N+1 bit 7 ... Bit Cell Unused or High Impedance Unused or High Impedance Bit Cell ... ... ... NOTE: The value N is 0, 4, 8, 12, 16, 20, 24 or 28 and corresponds to the unused channels. Figure 9 - PCM Mode 2 and 6: ST-BUS Interface for T1 (Spaced Mapping) 25 MT90220 DS1 Time slots Voice/Data Channels (DSTi/o) ST-BUS DS1 Time slots Voice/Data Channels (DSTi/o) ST-BUS 1 0 2 1 3 2 4 3 5 4 6 5 7 6 8 7 9 8 1 0 9 1 1 1 0 2 6 x 1 2 1 1 2 7 x 1 3 1 2 2 8 x 1 4 1 3 2 9 x 1 5 1 4 3 0 x 1 6 1 5 3 1 x 1 7 1 6 1 8 1 7 1 9 1 8 2 0 1 9 2 1 2 0 2 2 2 1 2 3 2 2 2 4 2 3 2 4 x 2 5 x Table 9 - T1 Channel Mapping Using 24 Consecutive Channels Bit Cells at DSTx0-7 Serial Bit Stream Channel 31 bit 0 Channel 0 bit 7 Channel 0 bit 6 ... Channel 23 bit 0 Channel 24 bit 7 ... Unused or High Impedance Bit Cell Bit Cell ... ... ... Bit Cell Unused or High Impedance ... ... ... TXSYNC RXSYNC TXCK RXCK Figure 10 - PCM Mode 2 and 6: ST-BUS Interface for T1 (Grouped Mapping) BUS Clock signal (i.e., 4.096 MHz). The TXSYNC signal is generated by the MT90220 and meets the ST-BUS format. It is not synchronized with any other RXSYNC or TXSYNC signal. 4.2.1.1 Detailed ST-BUS Spaced Mapping (3 of Every 4 Channels) DS1 (T1) links contain 24 bytes of serial voice/data channels distributed over the 32 ST-BUS channels. One mapping option uses 3 of every 4 channels. The channels 0, 4, 8, 12, 16, 20, 24 and 28 of the STBUS are not used. The MT90220 tri-states the DSTo lines during the unused time-slots. See Figure 9. 4.2.1.2 Detailed ST-BUS Grouped Mapping (24 Consecutive Channels) In this option, the 24 bytes of serial voice/data channels of the DS-1 use the first 24 consecutive channels over the 32 ST-BUS channels. The MT90220 tri-states the DSTo lines for the unused channels (25 - 31). Refer to Table 9. 4.2.1.3 Detailed ST-BUS ISDN Mapping (T1 ISDN Modes) When the T1 ISDN modes are selected, channel 24 is not used to carry bytes from ATM cells. This byte is not used in the receive direction. In the transmit direction it is set to a high impedance state. The STBUS mapping is identical as in the T1 (DS1) ’clear channel’ set-up except for the last channel of the T1 (DS1) frame. This last channel is reserved for signaling. 4.2.2 Mode 4 and 8: ST-BUS lnterface for E1 The MITEL ST-BUS has 32 channels, numbered 0 to 31. The PCM-30 payload is mapped to 30 of the 32 ST-BUS timeslots. Channels 0 and 16 are used for framing and signaling information. See Figure 11 and Table 10. In E1 PCM Modes 4 and 8, the MITEL ST-BUS clock value is 4.096 MHz. The frame pulse is 8 kHz and should be as defined in Figure 11. In PCM Mode 4, the TXCK and TXSYNC pins are defined as inputs and are generated by external circuitry. In the PCM Mode 8, the TXCK and TXSYNC pins are defined as outputs. The source for the TXCK is selected using TX PCM Link Control register number 2 and can be any of the eight RXCK or four external REFCK clocks. As there is no PLL inside the MT90220, the source frequency has to be a valid ST-BUS Clock signal (i.e., 4.096 MHz). The TXSYNC signal is generated by the MT90220 and meets the ST-BUS format. It is not synchronized with any other RXSYNC or TXSYNC signal. 4.2.3 Mode 1 and 5: Generic PCM Interface for T1 In PCM Modes 1 and 5, the TXCK clock frequency can be either 1.544 or 2.048 MHz. In the PCM Mode 26 MT90220 ST-BUS Bit Cells (DSTx0-7) Serial Bit Stream TXSYNC RXSYNC TXCK RXCK Channel 31 bit 0 Channel 0 bit 7 ... ... ... ... Channel 0 bit 0 Channel 1 bit 7 ... Bit Cell Unused or High Impedance Unused or High Impedance Bit Cell ... ... ... ST-BUS Bit Cells (DSTx0-7) Serial Bit Stream TXSYNC RXSYNC TXCK RXCK Channel 15 bit 0 Channel 16 bit 7 ... Channel 16 bit 0 Channel 17 bit 7 ... Bit Cell Unused or High Impedance ... ... ... Unused or High Impedance Bit Cell ... ... ... Figure 11 - PCM Mode 4 and 8: ST-BUS Interface for E1 E1 Time-Slots Voice/Data Channels (DSTi/o) E1 Time-Slots Voice/Data Channels (DSTi/o) 0 x 16 x 1 1 16 17 2 2 17 18 3 3 18 19 4 4 19 20 5 5 20 21 6 6 21 22 7 7 22 23 8 8 23 24 9 9 24 25 10 10 25 26 11 11 26 27 12 12 27 28 13 13 28 29 14 14 29 30 15 15 30 31 Table 10 - Channel Mapping from ST-BUS to E1 1, the TXCK and TXSYNC pins are outputs. In the PCM Mode 5, the TXCK and TXSYNC pins are defined as inputs. 4.2.3.1 1.544 MHz Clock In this sub-mode, (selected by clearing the bit 4 of the TX PCM Control Register 1,) the serial PCM Interface rate is equal to the line bit rate. When selected to operate in this sub-mode, the interface clock is 1.544 MHz and the DSTo and DSTi the data lines transport only 24 time-slots plus the DS1 framing bit for a total of 193 bits per frame. The frequency value for TXSYNC and RXSYNC is 8 kHz. The frequency for the TXCK and RXCK is 1.544 Mhz. The edge of the RXCK and TXCK signals used to sample incoming data and transmit the outgoing data is fully programmable on a per link basis. This allows the MT90220 to operate with the majority of available off-the-shelf T1 framers. When operating in the generic PCM system Interface at 1.544 MHz, the MT90220 does not use the first bit of the PCM frame (i.e., the T1 framing bit) to perform the G.804 recommended transmission convergence function (see Figure 12). This frame bit is also ignored on the receive side. The position of the frame bit is indicated by the TXSYNC and RXSYNC signals. 4.2.3.2 2.048 MHz Clock In this sub-mode (selected by setting the bit 4 of the TX PCM Control Register 1) the channel/timeslot mapping for this mode is similar to the ST-BUS mode for T1. The same PCM mapping schemes (grouped or spaced) are supported. The TXCLK and RXCLK are 2.048 MHz signal and the TXSYNC and RXSYNC are a frame pulse of one full bit duration that occurs at the beginning of the frame. The frame rate is 8 KHz. The polarity of the TXCK, RXCK, TXSYNC and RXSYNC and their active edge is programmable using TX PCM Link Control register number 1 and RX PCM Link Control register. 4.2.4 Mode 3 and 7: Generic PCM Interface for E1 The channel/timeslot mapping in this mode is similar to the ST-BUS mode for E1. The differences are: 27 MT90220 T1 Frame Bit Cells at DSTx0-7 Serial Bit Stream TXSYNC bit 193 bit 1 bit 2 ... Bit Cell Unused or High Impedance Bit Cell ... ... TXCK RXSYNC RXCK ... ... Figure 12 - Mode 1 and 5: Generic PCM Interface for T1 • the interface clocks (RXCK and TXCK) operate at 2.048 MHz only • the synchronization signals (TXSYNC and RXSYNC) are valid for one clock cycle (488 nsec) during the first bit of the frame • In PCM Mode 3, the TXCK and TXSYNC pins are defined as outputs. • In PCM Mode 7, the TXCK and TXSYNC are defined as inputs. The edge of the RXCK and TXCK signals that is used to sample the incoming, and transmit the outgoing, data is fully programmable on a per link basis. This allows the MT90220 to operate with the majority of off-the-shelf E1 framers. The MT90220 does not use timeslots 0 and 16 to perform the G.804 transmission convergence function (see Figure 13). 4.2.5 TXSYNC Signal in Mode 5 and 7 can be any of the eight RXCK signals or four external REFCK inputs (see Figure 14). The TXSYNC is generated from the TXCK signal. The RXCK pins are always defined as inputs and the proper signal must be provided to each input. 4.3.1 Verification of the RXSYNC Period The RXSYNC signal is used to align the incoming DSTi data to retrieve all the T1 or E1 channels. The RXSYNC pulse can be present for each PCM frame (8Khz) or once per Superframe (every 12 or 24 PCM frames). The period and position of the RXSYNC is verified for each receive block independently. A status bit (1 per link) in the RX Sync Status register is set if the synchronization pulse occurs at an unexpected time in the frame. The RX block will be re-aligned with this new synchronization pulse. 4.3.2 Verification of the TXSYNC Period The TXSYNC signal is used to align the outgoing DSTo data to retrieve all the T1 or E1 channels. When defined as input, the TXSYNC pulse can be present for each PCM frame (8Khz) or once per Superframe (every 12 or 24 PCM frames). The period and position of the TXSYNC is verified for each transmit block independently. A status bit (1 per link) in the TX Sync Status register is set if the synchronization pulse occurs at an unexpected time in the frame. The TX block will be re-aligned with this new synchronization pulse. 4.3.3 Primary and Secondary Reference Signals Two output pins are provided to simplify the external circuitry required when using an external PLL. These two pins, PLLREF0 and PLLREF1, re-route any of the eight RXCK signals and drive the primary and secondary reference signals of a PLL under software The TXSYNC signal is defined as an input in PCM mode 5 and 7 and is sampled at the bit boundary. A positive delay of 10 nsec is expected between the TXCLK signal at the bit boundary and the time the TXSYNC changes. This may cause some interoperability problems when the MT90220 is connected to some off-the-shelf framers as the TXSYNC can be slightly ahead of the TXCLK signal. In this case, the TXSYNC signal need to be delayed to ensure proper operation of the TX PCM port. 4.3 Clocking Options In PCM Modes 2, 4, 5 and 7, the TXCK and TXSYNC are inputs and are generated by external circuitry. In PCM Modes 1, 3, 6 and 8, the TXCK and TXSYNC are outputs. TXCK source is software selectable and 28 MT90220 ST-BUS Bit Cells (DSTx0-7) Serial Bit Stream TXSYNC Channel 31 bit 0 Channel 0 bit 7 ... ... ... ... ... ... Channel 0 bit 0 Channel 1 bit 7 ... ... ... ... ... Bit Cell Unused or High Impedance Unused or High Impedance Bit Cell TXCK RXSYNC RXCK ST-BUS Bit Cells at DSTx0-7 Serial Bit Stream Channel 15 bit 0 Channel 16 bit 7 ... Channel 16 bit 0 Channel 17 bit 7 ... Bit Cell Unused or High Impedance ... ... ... ... ... Unused or High Impedance Bit Cell ... TXSYNC ... ... ... ... TXCK RXSYNC RXCK Figure 13 - Mode 3 and 7: Generic PCM Interface for E1 Cell Delineation S/P DSTi RXCK RXSYNC TXSYNC TX Cell FIFO P/S DSTo RXCK 0-7 REFCK 0-3 TXCK RXCK 0-7 PLLREF0 PLLREF1 Figure 14 - TXCK and TXSYNC Output Pin Source Options 29 MT90220 control. Refer to Section 8, Application Notes, for examples. 4.3.4 Verification of Clock Activity The MT90220 implements circuitry to determine whether or not a selected clock signal is active. This feature is used to ensure a clock is operational before using it as a source for one or more transmit links. The identity of the clock source to be verified is written to the Clock Activity register. A read of the same register indicates clock activity if bit 7 is ’1’. A value of ’0’ for bit 7 means that no transition was observed on this clock. This circuitry does not measure the frequency of a clock signal, it only detects activity on the eight RXCK, eight TXCK and four REFCK signals. 4.3.5 Clock Selection In normal operation, the clock selection circuitry selects the desired clock signal and ensures a smooth, glitch free, transition between the current clock source and the new clock source. However, if the current clock source is inactive (i.e., no clock transitions), the clock select circuitry must be reset before another clock can be used as reference. Clock select circuitry is reset by writing a 1 to bit 7 of the PLL Reference Control register. Clock source activity can be verified using the Clock Activity register as described in 4.3.4 Verification of Clock Activity. marked by the UTOPIA SOC sync signal. This signal is active during the transfer of the first byte of a cell. The 52 bytes that follow the arrival of the first byte of a cell are interpreted as belonging to the same cell and are stored accordingly (note that SOC sync signals received during the loading of these 52 bytes are ignored). The cell available satus line (Clav) is used to communicate to the ATM controller if the MT90220 has space for a cell in the PHY address that was polled in the previous cycle. Whenever there is space for a cell in teh TX direction or a cell ready in the RX direction, the TXClav and/or RXClav signal will be driven High or Low. When the address does not correspond to any enabled PHY address inside the MT90220, the TXClav and RXClav signal are in High impedance mode. The use of an external pulldown may be required for the proper operation of the Utopia bus in MPHY mode. It should be noted that the bit 6 and 5 of the Test 1 register have to be set to 1 for the proper operation of the RX Utopia port in MPHY mode. 5.1 ATM Input Port The UTOPIA interface input clock TxClk is independent of the system clock. The UTOPIA TxClk can be up to 25MHz. The incoming cell is stored directly in the internal TX Cell RAM where the TX UTOPIA FIFOs are implemented. The TX byte clock (TxClk) can be up to 25 MHz and is checked against the system clock. If the incoming byte clock frequency is lower than 1/128 of the system clock, bit 2 of the General Status register will be set. This bit is cleared by overwriting it with 0. The total space for the UTOPIA input cells for all IMA Groups and links in UNI mode is 58. These 58 cells are shared between 12 TX UTOPIA FIFOs and 8 TX Link FIFOs. The size (length) of each TX UTOPIA FIFO is defined by writing to the TX UTOPIA FIFO Length Definition registers. The maximum value is 15 and the minimum value is 0 (in the case the PHY port is not to be used). The size of the TX Link FIFO is defined on a per group using the TX IMA Control registers. The device will not accept a cell from the UTOPIA Interface if the internal Cell Ram is full. Status bit 0 in the General Status register is set to 1 to indicate the ’no free cell in TX Cell RAM’ condition. The status bit can be cleared by overwriting it with 0. The UTOPIA Input block has the option to verify the HEC of the cell coming from the ATM layer. Four 5.0 UTOPIA Interface Operation The MT90220 supports the UTOPIA L2 Mode for cell level handshake only. Each port can be assigned an address ranging from 0 to 30. The address value of 31 is reserved and should not be used for any MT90220 port. The TX and RX paths of each IMA Group and each link in UNI has its own PHY address. These PHY addresses are defined in the UTOPIA Input link Address registers 1 to 8, UTOPIA Input Group Address register 1 to 4, UTOPIA Output link Address registers 1 to 8, and the UTOPIA Output Group Address registers 1 to 4. The UTOPIA Input LINK PHY Enable and the UTOPIA Output Link PHY Enable registers are used to enable the PHY Address of the links in UNI. The UTOPIA Input Group PHY Enable register and the UTOPIA Output Group PHY Enable registers are used to enable the PHY Address of the IMA Groups. The MT90220 port uses handshaking signals to process data streams. The start of a cell (SOC) is 30 MT90220 different options are available and are selected by bit 1 and 0 of the UTOPIA Input Control register. • The ’00’ option is used to always accept a cell from the ATM layer. The HEC is verified and if wrong, the UTOPIA Input counter associated with the UTOPIA port for cells with bad HEC is incremented. The MT90220 will re-generate a valid HEC based on the content of the 4-byte header that was received. • The ’01’ option is used to verify the HEC of an incoming cell. If the HEC value is wrong and if it can be corrected (1 bit error), then the cell is corrected and accepted as a good cell. The bad HEC counter is not incremented if the HEC is corrected. The bad HEC counter is incremented if the HEC value cannot be corrected. In this mode, the cell is always accepted. The MT90220 will re-generate a valid HEC based on the content of the 4-byte header that was received. • The ’10’ option is used to verify the HEC on the incoming cell and discard the cell if the HEC value is wrong. The bad HEC counter is incremented if a cell is discarded. • The ’11’ option is similar to mode ’01’ except that if the HEC value cannot be corrected, then the cell is discarded. If the HEC value is corrected, the bad HEC counter is not incremented. 5.2 ATM Output Port The MT90220 supports a 53 byte cell stream via the ATM output port. Cells received at the ATM output port are stored in the RX UTOPIA FIFO before being processed by the UTOPIA Interface. The output of the UTOPIA Interface can be stopped by the ATM Layer device by de-asserting the RxEnb* signal. The start of a cell is marked with the SOC signal, which is active during the transmission of the first byte of a cell. The following 52 bytes are expected to belong to the same cell. The RX byte clock (RxClk) can be up to 25 MHz and is checked against the system clock. If the incoming byte clock frequency is lower than 1/128 of the system clock, bit 3 of the General Status register will be set. This bit is cleared by overwriting it with 0.The RxClk signal has to be synchronized with the System Clock for the proper operation of the MT90220. Typically, both frequencies are equal but the RxClk frequency can be lower. Overflow conditions in the RX UTOPIA FIFO associated with any of the 12 PHY RX Addresses cause a status bit to be set in either the IRQ UTOPIA UNI Overflow Status or IRQ IMA Group Overflow Status register. These status bits are cleared by overwriting them with 0. Additionally, for each status bit there is an Interrupt Enable bit in the associated RX UTOPIA Link FIFO Overflow Enable or RX UTOPIA IMA Group FIFO Overflow Enable register. When enabled, the status bit is reported in an Interrupt register. See 6.2 Interrupt Block for more details. The size of the RX UTOPIA FIFO is fixed at two cells for the UNI PHY Addresses and four cells for the IMA Group PHY Addresses. 5.3 UTOPIA Operation With a Single PHY A single ATM layer device with a UTOPIA L2 MPHY port can be connected to the ATM input port of one MT90220. Another ATM-Layer device using the UTOPIA L2 MPHY input interface is used to receive ATM cells from the MT90220. The address pins should be set to the value programmed by the management interface. In this mode, the bit 6 and 5 of the Test 1 register are not to be set to 1 for the proper operation of the RX Utopia port. 5.4 UTOPIA Operation with Multiple PHY When more than one MT90220 are connected to a single ATM Layer device the single TxClav and RxClav scheme is used. Direct Status Indication and Multiplexed Status Polling schemes are not supported. The necessary polling is performed by the ATM-Layer device. The UTOPIA Interface transmit and receive addresses, provided by the ATM-Layer device, are used to de-multiplex the ATM-cell stream to as many as eight MT90220s. The maximum available bandwidth for eight E1 lines served by each MT90220 device is 2 MBytes/s. 5.5 UTOPIA Operation in UNI Mode In UNI Mode, each Utopia port inside an MT90220 corresponds to a physical T1 or E1 line. Up to eight PHY ports can be supported by one MT90220. Up to eight MT90220 can be connected to a UTOPIA bus. The ports in the same device represent only one electrical load on the UTOPIA bus. The UTOPIA Interface supports up to 31 PHY addresses so a maximum of 31 PHY addresses are supported by the MT90220. The MPHY address at the input port of MT90220 (TxAddr[4:0]) is used to store the cell in one specific TX UTOPIA FIFO. 31 MT90220 The MPHY address at the output port (RxAddr[4:0]) is used to retrieve the cells from the proper RX UTOPIA FIFO. 5.6 UTOPIA Operation in IMA Mode In IMA mode, up to eight MT90220s, with up to four UTOPIA ports each (one port per IMA Group), can be served by an external UTOPIA L2 ATM-Layer device. This provides up to 31 different logical IMAchannels. Note that port 31 (1F in hexadecimal format) is reserved. 5.7 Examples of UTOPIA Operation Modes Figure 15 shows the connection of one ATM Device with one MT90220. ATM Layer TxClk TxEnb* TxAddr TxClav TxData TxSOC ATM Rxclk RxEnb* RxAddr RxClav RxData RxSOC MT90220 Physical Layer Framer . . . . . Framer Figure 15 - ATM Interface to MT90220 Figure 16 shows the connection of one ATM Device with more than one MT90220. Figure 17 illustrates the implementation of a mixed mode using only 1 MT90220. Links that are not used for IMA Groups are available in UNI mode. Unused links are programmed to set their outputs to high impedance mode. ATM Layer Txclk TxEnb* TxAddr TxClav TxData TxSOC ATM Rxclk RxEnb* RxAddr RxClav RxData RxSOC Txclk TxEnb* TxAddr TxClav TxData TxSOC Physical Layer Framer MT90220 Framer Framer MT90220 Rxclk RxEnb* RxAddr RxClav RxData RxSOC Framer Figure 16 - ATM Interface to Multiple MT90220s 32 MT90220 3 UTOPIA Ports (3 Links in UNI Mode) (UNI) ATM Layer Device 1 UTOPIA Port (IMA Group #1) 1 UTOPIA Port (IMA Group #2) (3 links) 8 (2 links) Framer Figure 17 - ATM Mixed-Mode Interface to One MT90220 6.0 Support Blocks 6.1 Counter Block The MT90220 includes 112 24-bit counters to provide statistical information on the device’s operation. All the counters are cleared by a hardware reset. A maskable interrupt can be generated when the counter overflows. A predetermined value can also be loaded in a counter. This feature can be used to generate an interrupt after a specified number of cells is processed. Counter values are incremented by 1 for every event occurrence and, when the count goes to all 1’s, will overflow (to all 0’s). 6.1.1 UTOPIA Input I/F counters There are four counters associated with the each of the 12 UTOPIA Inputs (from ATM layer to the MT90220) for a total of 48 counters. These counters record the following information: • the total number of cells received at the UTOPIA Input I/F • the total number of Idle Cells received at the UTOPIA Input I/F, removed or not • the total number of Unassigned Cells received at the UTOPIA Input I/F, removed or not • the number of cells having a single or multiple bit error in the HEC, removed or not but not including the cells where the HEC is corrected 6.1.2 Transmit PCM I/F Counters There are four counters associated with the each of the eight transmit PCM links for a total of 32 Transmit counters. These counters record the following information: • the total number of cells sent through the PCM link • the total number of Idle/Filler cells sent through the PCM link • the total number of Stuff cells sent through the PCM link • the total number of ICP cells sent through the PCM link 6.1.3 Receive PCM I/F Counters There are four counters associated with each of the eight receive PCM links for a total of 32 Receive counters. These counters record the following information and are active as soon as the RX PCM port is enabled: • the total number of cells received through the PCM link or total number of Stuff events received on the link (option selected in RX Link Control r egisters) • the total number of Idle/Filler cells received through the PCM link, , with good or bad HEC • the total number of ICP Cells with violation received through the PCM link • the total number of cells with wrong HEC received through the PCM link but not including the cells where the HEC is corrected 6.1.4 Access to the Counters Accessing (READ) counters is a three step function. First, the desired counter must be selected by writing to the Counter Select Register. Second, the READ command (’0x00x101’) is written to the Counter Transfer Command register. This command causes the current three byte count value to be copied from the specified counter to the three byte-wide Counter Bytes registers (note that this value is unchanged until another counter read command is issued). And third, the Counter Bytes registers are read to obtain the three byte count value of the selected counter. Pre-loading (WRITE) a counter is also a three step function. First, the three byte, pre-load value, is written to the three byte-wide Counter Bytes registers. Second, the identification of the counter to be pre-loaded is written to the Counter Select Register. And third, the WRITE command (’0x00x001’) is written to the Counter transfer Command register. 33 MT90220 The IRQ enable bit of a counter is set, or reset, by selecting the counter and writing to the appropriate bit of the Counter Transfer Command register. The value ’0x001010’ enables the counter IRQ and ’xxx00010’ disables (masks) it. 6.2 Interrupt Block The MT90220 can generate interrupts from many sources. All interrupt sources can be enabled or disabled. Write action is required to clear the source of interrupt. Interrupts are grouped on a per link basis, with six sub-categories for each link and two special types for the IMA Group configuration. These special interrupts are only present in the Link 0 IRQ Status register. Refer to Figure 18 for a representation of the interrupt register hierarchy. 6.2.1 IRQ Master Status and IRQ Master Enable Registers There is a Master IRQ Status register that reports interrupts generated by any event on any of the eight links. Each bit of this register corresponds to a link. A ’1’ in a bit position indicates that the associated link is reporting an interrupt condition. For each bit in the IRQ Master Status register, there is a corresponding bit in the IRQ Master Enable register. When any IRQ source is active and the corresponding Enable bit is ’1’, then the IRQ pin will go LOW (active). The IRQ Master Status register always reports the current state of the source(s) of interrupt. It does not latch the interrupt request(s); it only reports that one or more bit(s) in one or more IRQ Link Status register(s) is (are) set. The bits that are read as active (’1’ value) are cleared when the source of the interrupt is cleared or when the corresponding bit(s) in the IRQ Link Enable register(s) is (are) set to 0. Writing to or reading from the IRQ Master Status register has no effect on the level of the interrupt pin. Link 7 Link 6 Link 5 Link 4 Link 3 Link 2 Link 1 Link 0 1 UTOPIA RX FIFO Overflow 4 UTOPIA Counters 4 TX Counters 4 RX Counters S T A T U S 0 LCD LIF LODS IV New RX ICP 8 x IRQ Link Registers Link 7 1 x IRQ Master Registers S T A T U S E N A B L E Link UNI Overflow Status READY BIT/ICP CELL TIME * IMA GRP CNTRS * 7 Frame Pulse Transfer Done S T A T U S E N A B L E S T A T U S E N A B L E IRQ PIN Link 0 UTOPIA IMA Group Counters E N A B L E S T A T U S S T A T U S TX ICP Cell Handler Register 1 UTOPIA RX FIFO Overflow 4 UTOPIA Counters IMA Group IMA OVERFLOW OVERFLOW 1 set of registers 4 registers Note *: These 2 IRQ signals are only present in IRQ Status register for Link 0. Figure 18 - IRQ Register Hierarchy 34 MT90220 6.2.2 IRQ Link Status and IRQ Link Enable Registers There are eight IRQ Link Status and eight IRQ Link Enable registers; one of each per link. The following six types of interrupts are reported (in the six least significant bits of the IRQ Link Status registers) for each link: • Bit 5 latched: reports that an ICP Cell with changes was received on a RX PCM link. • Bit 4 latched: reports an IV (ICP Cell violation) condition on a RX PCM link. • Bit 3 latched: reports an LODS (Link is Out of Delay Synchronization) condition on a RX PCM link. • Bit 2 latched: reports an LIF (Loss of IMA Frame) condition on a RX PCM link. • Bit 1 latched: reports an LCD (Loss of Cell Delineation) condition on a RX PCM link. Bit 0 (LSB) is a status bit. It reports an interrupt for an overflow condition in one or more of the 12 counters associated with the link. It is also used to report an overflow condition in the UTOPIA RX FIFO associated with a PCM link in UNI mode. If enabled, a counter generates an interrupt request when it overflows (i.e starts over from 0 after reaching the maximum counter value). 6.1 Counter Block paragraph for more details on the operation of the counters. These 13 sources of overflow can be identified through the IRQ Link FIFO Overflow and IRQ UTOPIA FIFO Overflow status registers. Refer to section 6.2.3 IRQ Link UNI Overflow and IRQ UTOPIA Input UNI Overflow Status Registers for more details. Reading the IRQ Link Status register does not clear the source of interrupt. The bit 0 status is reset by any one of the following procedures: • • disabling (masking) the IRQ for this specific counter clearing the overflow status bit in the IRQ Link UNI Overflow and IRQ UTOPIA UNI Overflow Status registers • disabling the interrupt in the RX UTOPIA Link FIFO Overflow Enable or in the corresponding Link (in UNI mode) Counter registers. Bits 1, 2, 3, 4 and 5 of the IRQ Link Status register are latches that report the source of an interrupt. Writing a ’0’ these bits will reset the status bit (will reset the latch). Writing ’0’ to bit 0 has no effect on the status bit. Writing a ’1’ has no effect on the bits 0 to 5 of the IRQ Link Status register. Each one of these six interrupt sources can be enabled by writing a ’1’ in the IRQ Link Enable register to the bit corresponding to the interrupt source. In some situations, an interrupt source can be masked as part of an interrupt service routine. This makes it possible to detect further interrupts of higher priority. For example, if an interrupt for a counter is received, the source of the interrupt can be masked by writing 0 to the bit 0 and then starting a separate process, outside of the Interrupt Service Routine. The independent process would read, reload and re-enable the counter to produce another interrupt service request, if necessary. At the end of this process, the enable bit in the IRQ Link Enable register would be set to ’1’ to detect any future interrupt requests. 6.2.2.1 Bit 7 and 6 of IRQ Link 0 Status and IRQ Link 0 Enable Registers Bits 7 (MSB) and 6 of the IRQ Link 0 Status register have a special meaning. Bit 7 reports an overflow condition in any of the counters or UTOPIA RX FIFOs associated with one of the four IMA Groups. Refer to 6.2.4 IRQ IMA Group Overflow Status and Enable Registers for more details. Bit 7 is a status bit and is cleared by disabling the IRQ for this specific counter or disabling (masking) the FIFO overflow condition by writing to the RX UTOPIA IMA Group FIFO Overflow Enable register. Bit 6 is used to report the following two event types: • • the ICP cell internal transfer is complete (reported by any IMA Group TX ICP Cell Ready bit) the end of an IMA frame on the reference link of an IMA Group The second type of event assists in implementing the software counter required to verify that Group Status and Control field information is sent for at least 2 consecutive IMA frames. The eight interrupt sources are enabled independently by writing to the TX ICP Cell Handler Enable register. There is also an associated Control/Status register (TX ICP Cell Handler register) that reports the interrupt source and the state of the transfer of an ICP Cell or the occurrence of the end of an IMA frame. The Frame status bits are cleared by writing 0 to the bit. The Ready bit is set to 1 when the transfer is complete. Bit 6 is a latched bit in the IRQ Link 0 Status register and is cleared by overwriting it with 0. 35 MT90220 Each of these two interrupt sources can be masked by writing a ’1’ to the bit corresponding to the interrupt source in the IRQ Link 0 Enable register. 6.2.3 IRQ Link UNI Overflow and IRQ UTOPIA Input UNI Overflow Status Registers The IRQ Link UNI Overflow and the IRQ UTOPIA Input UNI Overflow Status registers report the overflow condition from any of the counters associated with the TX PCM link, the RX PCM link or the TX UTOPIA I/F. They also report the overflow condition from the level of the UTOPIA RX FIFO when the link is used in UNI mode. The 13 interrupt sources are organized in the following two registers: • an 8-bit register that reports the overflow condition from the eight counters associated with a TX or RX PCM link (the IRQ Link UNI Overflow Status registers) • a 5-bit register that reports the overflow condition from the four counters associated with the UTOPIA TX I/F to the PCM link used in UNI mode as well as an overflow condition from the RX UTOPIA FIFO associated to a RX PCM link when in UNI mode (the IRQ UTOPIA Input UNI Overflow Status r egisters) The five bits in the IRQ UTOPIA Input UNI Overflow Status registers are latched to report an overflow condition. The status bit is cleared by overwriting it with a 0. Reading the registers or writing a ’1’ to these registers will not change the content of the registers. There is no enable register directly associated to the IRQ Link UNI Overflow Status registers. The source of the interrupt request can be controlled either by enabling the interrupt from the counters or from the RX UTOPIA Link FIFO Overflow Enable register. Refer to 6.1 Counter Block paragraph for more details on the operation of the counters. 6.2.4 IRQ IMA Group Overflow Status and Enable Registers There are 20 sources of IMA Group overflow conditions organized in two levels of registers: • four low level, 5-bit registers (one register per IMA Group) • one intermediate 4-bit register that is used to report the overflow conditions for each IMA Group to minimize the number of accesses to identify the source of an overflow condition The IRQ IMA Group Overflow Status register indicates which one of the four IMA Groups is reporting an overflow condition. When enabled, the bits in this status register reflect any overflow condition reported by the IRQ IMA Overflow Status registers. 36 The IRQ IMA Group Overflow Enable register is used to enable any overflow conditions for a specific IMA Group. Each of the four bits correspond to one of the four IMA Groups. A value of ’1’ enables the report of the overflow condition to the upper IRQ levels. 6.2.5 IRQ IMA Overflow Status and RX UTOPIA IMA Group FIFO Overflow Enable Registers There are five possible sources of overflow conditions that can be reported for each of the 4 IMA Groups. The IRQ IMA Overflow Status register captures (latches) the overflow condition from any of the four counters associated with the UTOPIA TX I/F when the PCM link is used in IMA mode. It also latches when an overflow condition occurs in the RX UTOPIA FIFO associated to a PCM link when in IMA mode. The status bit is cleared by overwriting it with a 0. Reading the registers or writing a ’1’ to these registers will not change the content of the registers. A counter generates an interrupt request, if not masked, when the counter overflows (i.e. starts over from 0 after reaching the maximum counter value refer to paragraph 6.1 for more details on the operation of the counters). An interrupt request can also be generated, if not masked, when an overflow condition is detected in the UTOPIA RX FIFO associated with an IMA Group. There is one enable register used to enable the generation of an interrupt by the overflow condition of the RX UTOPIA FIFO associated with an IMA Group. This is the RX UTOPIA IMA Group FIFO Overflow Enable register. 6.3 Register and Memory Map 6.3.1 Access to the Various Registers Since the MT90220 and microprocessor operate from two different clock sources, access to a MT90220 register is asynchronous. Data is synchronized between the MT90220 and the microprocessor using either direct or indirect (synchronized) methods of access. The direct method is used during a read access whenever data does not change or data changes do not represent any problem. There is no register that clears status bits upon a read access. A write action is always required to clear a status bit. MT90220 The indirect method is identified with ’S’ (indirect and need to synchronize with a ready bit) whereas the direct access is identified with a ’D’ in the register tables. 6.3.2 Direct Access Direct access registers can be written or read directly by the microprocessor, without having to use otherregisters. Upon a write access to the MT90220 internal registers, the data is stored in an internal latch and transferred to the destination register within 2.5 system clock cycles (100 nsec at 25 MHz). No specific action is required if the microprocessor provides at least 100 nsec (with Chip Select signal inactive) between 2 consecutive write accesses or between a write and a read back of the same register. If the microprocessor is faster, then consecutive accesses must be inhibited or wait state(s) introduced (this option is available on most MCUs). 6.3.3 Indirect Access Indirect access registers cannot be accessed directly by the microprocessor. The value is transferred back and forth using registers which hold a copy of the information (data) and internal address of the register. This is required to stabilize the read value. Consider for example the transfer of a TX ICP cell that requires almost 200 system clock cycles. A dedicated ready bit which can optionally generate an interrupt is implemented for this type of transfer. Accessing any of the 24 bit counters provides another example. A ready bit is implemented in the Counter Transfer Command register when the transfer is completed. When accessing indirect registers specified by the RX Delay Select or RX Load Values/Link Select registers, the value in the indirect registers can be read when the write to the selection register is effectively done (i.e. 2.5 system clock cycles after the write cycle is completed). There is no additional delay required. 6.3.4 Clearing of Status Bits The status bits will remain set until cleared by a specific write action from the microprocessor. Status bits are cleared by overwriting a zero to the corresponding position in the source register. Each input status register has a related interrupt enable register. When enabled, setting a bit in the interrupt enable register causes an interrupt to occur in the corresponding status register bit. 6.3.4.1 Toggle Bit Some registers include a toggle bit. Toggle bits are used to indicate a write action to any internal register has taken place. Typically, this bit is toggled 2.5 system clock cycles after performing the write action. To use the toggle bit, its state (either 0 or 1) must be read (polled) and its state is changed (toggled) when a write command is completed. This bit is particularly useful when the processor clock is much faster than the MT90220 system clock. 6.3.5 Test Modes Access is provided to the External SRAM from the microprocessor using a special test mode and test registers (i.e., to assist in debugging or verification). The test mode is enabled by writing to bit 7 of the Test Mode Enable register, writing 0x10 to the RX Delay Link Number register and by writing 0x29 to the RX External SRAM Control register. Indirect access is provided using the RX External SRAM Read/Write Data register for the data to be written or read and the RX SRAM External Address 0, 1 and 2 registers for the address of the SRAM location. The write transfer command is issued using the RX External SRAM Control register. Bit 7 of the RX External SRAM Control is cleared (set to 0) and then returned to 1 when the write action is completed. 37 MT90220 7.0 Register Descriptions Address (Hex) 000 - 007 008 - 00B 00C 00D 00E 040 - 047 048 - 04B 04C 04D 205 221 140 150 14A 14B 14C 14D 14E 14F 0C0 - 0C3 0DD - 0E4 0C4 - 0CB 200 - 203 0CC - 0D3 0D4-0D7 0EF 148 149 300, 340, 380, 3C0 100 - 107 109 108 10A 10C - 10F 115 116 117 118 Access Type D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D D Reset Value (Hex) 00 00 00 00 00 00 00 00 00 00 00 00 00 33 33 33 33 33 33 58 link # link # 05 04 29 00 0F 00 SEE TABLE 0C 67 0C 91 01 00 00 00 00 Table # 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 Description UTOPIA Input Link Address Registers UTOPIA Input Group Address Registers UTOPIA Input Link PHY Enable Register UTOPIA Input Group PHY Enable Register UTOPIA Input Control Register. UTOPIA Output Link Address Registers UTOPIA Output Group Address Registers UTOPIA Output Link PHY Enable Register UTOPIA Output Group PHY Enable Register RX UTOPIA IMA Group FIFO Overflow Enable Register RX UTOPIA Link FIFO Overflow Enable Register TX Cell RAM Control Register TX UTOPIA FIFO Level TX FIFO Length Definition Register 1 TX FIFO Length Definition Register 2 TX FIFO Length Definition Register 3 TX FIFO Length Definition Register 4 TX FIFO Length Definition Register 5 TX FIFO Length Definition Register 6 TX Group Control Mode Register TX Link ID Registers TX ICP Cell Offset Registers TX IDCR Integration Registers TX Link Control Registers TX IMA Control Register TX IMA Mode Status Register TX ICP Cell Handler Register TX ICP Cell Interrupt Enable Register TX ICP Cell Registers (access to ICP cell bytes) RX Link Control Registers Cell Delineation Register Loss Cell Delineation Register IMA Frame Definition Register RX OAM Label RX OIF Status Register RX OIF Counter Clear Command Register RX Load Values/Link Select Register RX Link IMA ID Registers Table 11 - Register Summary 38 MT90220 Address (Hex) 119 11A 11B 11C 11D 11E 1C0 1C1 1C6 1C7 1C3 292 283 291 290 28F 280 281 29D 284 285 286 288, 28A, 28C, 28E 287, 289, 28B, 28D 296, 298, 29A, 29C 295, 297, 299, 29B 180 - 187 282 29F 188 - 18B 18C - 18F 080 - 087 088 - 08F 090 - 097 098 099 09A Access Type D D D D D D D D D D S D S S S S S D D D D D D D D D D D D D D D D D D D D Reset Value (Hex) 00 00 00 00 20 00 00 00 00 00 00 08 00 00 00 00 80 00 00 00 04 00 04 00 00 00 00 00 00 00 05 00 00 00 00 00 00 Table # 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 Description RX ICP Cell Offset Register RX Link Frame Sequence Number Registers RX Link SCCI Sequence Number Registers RX Link OIF Counter Value Register RX Link ID Number Registers RX State Register RX ICP Cell Type RAM Register 1 RX ICP Cell Type RAM Register 2 RX ICP Cell Buffer Increment Read Pointer Register RX ICP Cell Level FIFO Status Register Test Mode Enable Register SRAM Control Register RX External SRAM Read/Write Data RX External SRAM Read/Write Address 0 RX External SRAM Read/Write Address 1 RX External SRAM Read/Write Address 2 RX External SRAM Control Register Increment/Decrement Delay Control Register RX Delay Select Register RX Delay MSB Register RX Delay LSB Register RX Delay Link Number Register RX Guardband/Delta Delay LSB Register, 1 per IMA Group RX Guardband/Delta Delay MSB Register, 1per IMA Group. RX Maximum Operational Delay LSB Register, 1 per IMA Group. RX Maximum Operational Delay MSB Register RX Recombiner Registers RX Recombiner Delay Control Register Enable Recombination Status RX Reference Link Control Registers RX IDCR Integration Register TX PCM Link Control Register #2 TX PCM Link Control Register #1 RX PCM Link Control Register PLL Reference Control register Clock Activity Register RX Sync. Status Register Table 11 - Register Summary 39 MT90220 Address (Hex) 09E 09C 09D 214 215 216 217 207 232 218 222 - 229 219 - 220 235 204 210 - 213 208 - 20F 22A - 231 206 04E 0DA 400, 440 480, 4C0 500, 540 580, 5C0 600, 640 680, 6C0 700, 740 780, 7C0 Access Type D D D S S S S S D D D D D D D D D D D D D D D D D D D D Reset Value (Hex) 00 00 10 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 Table # 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 Description TX Sync. Status Register TX Clock Disabled Status PLL REF Clock Disabled Status/Device Rev. Counter Byte #3 Register Counter Byte #2 Register Counter Byte #1 Register Select Counter register Counter Transfer Command Register IRQ Master Status Register IRQ Master Enable Register IRQ Link Status Registers IRQ Link Enable Registers IRQ IMA Group Overflow Status Register IRQ IMA Group Overflow Enable Register IRQ IMA Overflow Status Registers IRQ UTOPIA UNI Overflow Status Registers IRQ Link UNI Overflow Status Registers General Status Register Test1 register Test2 register Base address for the 2 RX ICP Cell with changes, link 0 Base address for the 2 RX ICP Cell with changes, link 1 Base address for the 2 RX ICP Cell with changes, link 2 Base address for the 2 RX ICP Cell with changes, link 3 Base address for the 2 RX ICP Cell with changes, link 4 Base address for the 2 RX ICP Cell with changes, link 5 Base address for the 2 RX ICP Cell with changes, link 6 Base address for the 2 RX ICP Cell with changes, link 7 Table 11 - Register Summary 40 MT90220 7.1 Utopia Register Description . Tables 12 to 22 describe the UTOPIA registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:0 Type R R/W Unused. Read all 0’s. UTOPIA PHY Address of Link N when in UNI. Table 12- UTOPIA Input Link Address Registers 000 - 007 1 register per link in UNI mode. The TxClk signal must be active for correct register operation. 00 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:0 Type R R/W 008 - 00B 11 reg. per IMA Group. The TxClk signal must be active for correct register operation 00 Description Unused. Read all 0’s. UTOPIA PHY Address of IMA Group N. Table 13 - UTOPIA Input Group Address Registers Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 00C 1 register to enable the links in UNI mode. The TxClk signal must be active for correct register operation 00 Description Enable UTOPIA PHY address of link 7. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 6. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 5. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 4. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 3. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 2. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 1. A 1 enables the PHY port Address. UNI mode. Enable UTOPIA PHY address of link 0. A 1 enables the PHY port Address. UNI mode. Table 14 - UTOPIA Input Link PHY Enable Register 41 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7-4 3 2 1 0 Type R/W R/W R/W R/W R/W Reserved. Write all 0’s. Enable UTOPIA PHY address of IMA Group 3. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 2. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 1. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 0. A 1 enables the PHY port Address. Table 15 - UTOPIA Input Group PHY Enable Register 00D 1 register to enable the IMA Groups. The TxClk signal must be active for correct register operation 00 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 Type R R/W R/W R/W 00E 1 register for all the UTOPIA Input ports. The TxClk signal must be active for correct register operation 00 Description Reserved. UTOPIA Input Reset. A 1 will reset the UTOPIA Input State Machine. All other user programmable registers are not cleared. A 0 is used for normal operation. Reserved. Write 0. Unassigned Cell Filter. A 1 signifies that the Unassigneda cells coming from the ATM layer will be discarded. The Unassigned/Idle cell counter is incremented for each cell discarded. Idle Cell Filter. A 1 signifies that the Idleb cells coming from the ATM layer will be discarded. The Unassigned/Idle cell counter is incremented for each cell discarded. ATM Forum Polynomial. A 1 disables the addition of the ATM Forum Polynomial calculation on the HEC calculated as per I.432. A 0 means that the closest value is included in the HEC value. HEC Verification. 11: Enable HEC error correction if 1 bit is wrong, discard cell if more than 1 bit are wrong. 10: Discard cell if HEC is wrong, no HEC correction. 01: Enable HEC error correction if 1 bit is wrong, no correction if more than 1 bit wrong, cell is not discarded if HEC is wrong. 00: No verification of HEC. Table 16 - Utopia Input Control Register 3 2 R/W R/W 1-0 R/W a. Unassigned Cells have a fixed header corresponding to 00000000 00000000 00000000 0000xxx0. b. Idle Cells have a fixed header corresponding to 00000000 00000000 00000000 00000001 Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:0 Type R R/W 040 - 047 1 register per link in UNI mode. The RxClk signal must be active for correct register operation 00 Description Unused. Read all 0’s. UTOPIA PHY Address of link N when in UNI (non-IMA) mode. Table 17 - UTOPIA Output Link Address Registers 42 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:0 Type R R/W Unused. Read all 0’s. UTOPIA PHY Address of IMA Group N. Table 18 - UTOPIA Output Group Address Registers 048 - 04B 1 reg. per IMA Group.link. The RxClk signal must be active for correct register operation 00 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 04C 1 register to enable the links in UNI mode. The RxClk signal must be active for correct register operation 00 Description Enable UTOPIA PHY address of link 7. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 6. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 5. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 4. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 3. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 2. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 1. A 1 enables the PHY port Address. UNI mode Enable UTOPIA PHY address of link 0. A 1 enables the PHY port Address. UNI mode Table 19 - UTOPIA Output Link PHY Enable Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R R/W R/W R/W R/W R/W R/W R/W 04D 1 register to enable the IMA Groups. The RxClk signal must be active for correct register operation X0000000 Description Watch clock. This bit reflects the level present on the RX UTOPIA Clock pin when this register is read. Reserved, write 0 for normal operation. Reset UTOPIA RX state machines when set to 1. Reserved, write ’0’ for normal operation. Enable UTOPIA PHY address of IMA Group 3. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 2. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 1. A 1 enables the PHY port Address. Enable UTOPIA PHY address of IMA Group 0. A 1 enables the PHY port Address. Table 20 - UTOPIA Output Group PHY Enable Register 43 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7-4 3 2 1 0 Type R R/W R/W R/W R/W Unused. Read all 0’s. When set to 1, the corresponding bit in the Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. IMA Group 3. When set to 1, the corresponding bit in the Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. IMA Group 2. When set to 1, the corresponding bit in the Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. IMA Group 1. When set to 1, the corresponding bit in the Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. IMA Group 0. Table 21 - RX UTOPIA IMA Group FIFO Overflow Enable Register 205 1 register to enable interrupts from IMA Groups. The RxClk signal must be active for correct register operation 00 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 221 1 register to enable interrupts from the links in UNI mode. The RxClk signal must be active for correct register operation 00 Description When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link7. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 6. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 5. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 4. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link3. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 2. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 1. When set to 1, the corresponding bit in the IRQ UTOPIA UNI Overflow Status register can generate an interrupt. A value of 0 inhibits the generation of an interrupt. Link 0. Table 22 - RX UTOPIA Link FIFO Overflow Enable Register 44 MT90220 7.2 TX Registers Description Tables 23 to 37 describe the Transmit registers. Address (Hex): Direct access Reset Value (Bin): Bit # 7 6 5 4:1 0 Type R R/W R/W R/W R/W 140 Used for initialization of the TX Cell RAM (Filler, Idle Cells etc.) 1X000000 Description Goes to 0 during initialization and returns to 1 on completion of initialization. Reserved, write 0 for normal operation. Reserved. Write 0 for normal operation. Reserved, write 0’s for normal operation. Reserved. Write 0 to initialize the Cell RAM. Table 23 - TX Cell RAM Control Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type W W 150 00 Description Write 0 for normal operation. Write 1000 to load the TX Utopia FIFO level of IMA group 0 Write 1001 to load the TX Utopia FIFO level of IMA group 1. Write 1010 to load the TX Utopia FIFO level of IMA group 2. Write 1011 to load the TX Utopia FIFO level of IMA group 3. Reserved, read 0’s. Level of selected FIFO. Table 24 - TX UTOPIA FIFO Level Register 7:5 4:0 R R Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W 14A 33 Description TX FIFO Length Link 1. TX FIFO Length Link 0. Table 25 - TX FIFO Length Definition Register 1 Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W 14B 33 Description TX FIFO Length Link 3. TX FIFO Length Link 2. Table 26 - TX FIFO Length Definition Register 2 45 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W TX FIFO Length Link 5. TX FIFO Length Link 4. Table 27 - TX FIFO Length Definition Register 3 14C 33 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W 14D 33 Description TX FIFO Length Link 7. TX FIFO Length Link 6. Table 28 - TX FIFO Length Definition Register 4 Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W 14E 33 Description TX FIFO Length IMA Group 1. TX FIFO Length IMA Group 0. Table 29 - TX FIFO Length Definition Register 5 Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R/W R/W 14F 33 Description TX FIFO Length IMA Group 3. TX FIFO Length IMA Group 2. Table 30 - TX FIFO Length Definition Register 6 46 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6-5 Type R/W R/W 0C0 - 0C3 1 register per TX IMA Group 58 Description Reserved, write 0 for normal operation. Value of M. These 2 bits specifies the value of M for the IMA Group. 00: M=32, 01: M=64, 10: M=128 11: M=256 Timing Mode inserted in ICP cell. A 0 means that the ITC timing mode is inserted in the ICP cell and a 1 means that the CTC timing mode is inserted in the ICP cell. Timing Mode in RoundRobin scheduler. A 0 means that the ITC timing mode (adaptive) algorithm is selected and a 1 means that the CTC timing mode (fixed) algorithm is selected for internal operation. Reference Link. These 3 bits define which physical link is to be used as reference for timing purposes. Table 31 - TX Group Control Mode Registers 4 3 R/W R/W 2:0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:0 Type R/W R/W 0DD- 0E4 1 register per link, used in IMA mode only. 0DD: 00, 0DE: 01 0DF: 02, 0E0: 03, 0E1: 04, 0E2: 05, 0E3: 06, 0E4: 07 Description Reserved, must write 0 for normal operation. Link ID for the link N. The value can be between 0 and 31. This is the logical value associated to a physical link. Used in IMA mode only. Table 32 - TX Link ID Registers Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 0C4 - 0CB 1 register per link, used in IMA mode only 0C4: 00, 0C5: 01 0C6: 02, 0C7: 03, 0C8: 04, 0C9: 05, 0CA: 06, 0CB: 07 Description Defines the ICP cell offset of link N. The value of M determines which significant bits are used as follows: M=256; bits 7-0 are used, M=128; bits 6-0 are used; M=64; bits 5-0 are used; M=32; bits 4-0 are used. Table 33 - TX ICP Cell Offset Registers 47 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3-0 Type R R/W Unused. Read all 0’s. Defines the integration period for an IMA Group: 1111: Reserved, do not use 1110: 221 clock cycles 1101: 220 clock cycles 1100: 219 clock cycles (preferred value for E1) 1011: 218 clock cycles (preferred value for T1 - 24 channels) 1010: 217 clock cycles 1001: 216 clock cycles (preferred value for T1 - 23 channels) 1000: 215 clock cycles 0111: 214 clock cycles 0110: 213 clock cycles 0101: 212 clock cycles 0100: 211 clock cycles 0011: 210 clock cycles 0010: 209 clock cycles 0001: 208 clock cycles 0000: 207 clock cycles Table 34 - TX IDCR Integration Registers 200 - 203 1 register per TX IMA Group 05 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 Type R/W R/W 0CC - 0D3 1 register per link 04 Description Reserved, write 0 for normal operation. Set to 1 to start sending User Cells in IMA mode. Set to 0 to send always Filler and ICP cells in IMA mode (Note: in UNI mode, the control to send User cells is implemented with the UTOPIA Input Link PHY Enable register). Coset value. A 0 will generate HEC with Coset value, when 1, Coset is not added. Cell Scrambling. A 1 enables the scrambling of the cells on the link N. Reserved, must write a 0 for normal operation. Set to 1 for UNI mode and clear to 0 for IMA mode. Select the IMA group number BEFORE enabling the IMA mode. Defines IMA group number when the link is configured in IMA mode. Select the IMA group number BEFORE enabling the IMA mode. When configuring the link in UNI mode after it was in IMA mode, do not change the IMA group number until the link is reported in UNI mode (refer to TX IMA Mode Status Register). Table 35 - TX Link Control Registers 5 4 3 2 1:0 R/W R/W R/W R/W R/W 48 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6:3 2:0 Type R/W R/W R/W 0D4- 0D7 1 register per IMA Group 29 Description 0 for Stuff Indication 1 frame before Stuff event. 1 for Stuff Indication 4 frames before stuff event. Level overflow limit. Default is 5. Level underflow limit. Default is 1. Table 36 - TX IMA Control Registers Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R R R R R R R R 0EF FF Description 1 means Link 7 is not in IMA mode. 1 means Link 6 is not in IMA mode. 1 means Link 5 is not in IMA mode. 1 means Link 4 is not in IMA mode. 1 means Link 3 is not in IMA mode. 1 means Link 2 is not in IMA mode. 1 means Link 1 is not in IMA mode. 1 means Link 0 is not in IMA mode. Table 37 - TX IMA Mode Status Register 49 MT90220 7.3 TX ICP Register Description Tables 38 to 40 describe the TX ICP registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 148 Controls the transfer of TX ICP cells and frame pulse indication 0F Description When 1 indicates the end of a frame was detected in IMA Group #3. Cleared by writing 0. When 1 indicates the end of a frame was detected in IMA Group #2. Cleared by writing 0. When 1 indicates the end of a frame was detected in IMA Group #1. Cleared by writing 0. When 1 indicates the end of a frame was detected in IMA Group #0. Cleared by writing 0. When 1 indicate that the transfer of the TX ICP cell for IMA Group #3 is complete. Write 0 to initiate a transfer. When 1 indicate that the transfer of the TX ICP cell for IMA Group #2 is complete. Write 0 to initiate a transfer. When 1 indicate that the transfer of the TX ICP cell for IMA Group #1 is complete. Write 0 to initiate a transfer. When 1 indicate that the transfer of the TX ICP cell for IMA Group #0 is complete. Write 0 to initiate a transfer. Table 38 - TX ICP Cell Handler Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 149 Interrupt Enable register for the TX ICP Handler register 00 Description Write a 1 will enable the generation of an interrupt from the end of a frame detection for IMA Group 3. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt from the end of a frame detection for IMA Group 2. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt from the end of a frame detection for IMA Group 1. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt from the end of a frame detection for IMA Group 0. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt when the transfer of the TX ICP cell for the IMA Group 3 is completed. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt when the transfer of the TX ICP cell for the IMA Group 2 is completed. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt when the transfer of the TX ICP cell for the IMA Group 1 is completed. A 0 will inhibit the generation of an interrupt. Write a 1 will enable the generation of an interrupt when the transfer of the TX ICP cell for the IMA Group 0 is completed. A 0 will inhibit the generation of an interrupt. Table 39 - TX ICP Cell Interrupt Enable Register 50 MT90220 Address (Hex): Direct access Reset Value (Hex): Cell Byte # 1-4 5 6 7 8 9 10 11 12 13 14 15 16 17 18-49 50 51 52-53 Address Offset 00-03 04 05 06 07 08 09 0A 0B 0C 0D 0E 0F 10 11-30 31 32 33-34 300, 340, 380, 3C0 for IMA Group 0, 1, 2 and 3 respectively Access these locations directly then use transfer command to copy to internal memory These registers need to be initialized for proper operation Type R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W R/W Description Header of ICP Cell. The values should be set to Byte 0: 0x00, byte 1: 0x00, byte 2: 0x00, byte 3: 0x0B. HEC is always calculated and inserted by the MT90220. OAM, should be set to 0x01 Cell ID, Link ID. The bit 7 (Cell ID) is controlled by the MT90220, the Link ID is provided by the TX Link ID Register. IMA Frame Sequence Number. Inserted by the MT90220. ICP Cell Offset. Inserted by the MT90220 based on the Link Offset register info. Link Stuff Indication. Inserted by the MT90220. Status & Control Change Indication. Inserted by the MT90220. IMA ID Group Status and Control Synchronization Information. Inserted by the MT90220 based on the TX Group Control Mode Register. Tx Test Control Tx Test Pattern Rx Test Pattern Status and Control of links with LID in the range 0-31 Unused End-to-End channel CRC Error Control. Inserted by the MT90220 Table 40 - TX ICP Cell Registers 51 MT90220 7.4 RX Registers Description Tables 41 to 55 describe the Receive registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 Type R/W R/W R/W R/W R/W R/W R/W 100 -107 1 register per link 0C Description A Value of 0 select to count the number of Stuff cells received by the physical link. A value of 1 selects to count the total number of cells received by the link. A value of 1 enables the IMA mode for this link. A value of 0 enables the UNI mode for the link. A value of 1 enables the descrambling of the cell for the link A value of 1 means that the Unassigned cells are discarded upon reception. UNI mode only. A value of 1 means that the Idle cells are discarded upon reception. UNI mode only. A value of 1 enables the discard option of the cells with wrong HEC. A value of 0 will disables the discard option, all the cells will be written to the receive buffer. A value of 1signifies that the ATM Forum polynomial value (coset) is not to be added to the HEC before the verification. A value of 0 means that the HEC as per I.432 only is calculated and compared (i.e. including the coset). A value of 1 enables the correction of the cells with a wrong HEC. A value of 0 disable the correction of the HEC. Table 41 - RX Link Control Registers 0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 Type R/W 109 1 register for all 8 cell delineation state machines 67 Description DELTA parameter value for the Cell Delineation register. The number of consecutive cells with correct HEC to leave the PRESYNC state to go to the SYNC state. The default value is 6. ALPHA parameter value for the Cell Delineation register. The number of consecutive cells with incorrect HEC to leave the SYNC state to go to the HUNT state. The default value is 7. Table 42 - Cell Delineation Register 3:0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 108 1 reg. for all 8 cell delineation state machines 0C Description Contains the number of consecutive cell periods that the CD circuit will count before the incoming ATM cell stream to be considered in LCD state. Each count will be done on a cell by cell basis. The value of this register is multiplied by 2 before being loaded in the internal counter. (The internal counter value can be from 0 to 512). Note that a value of 0 is not allowed as an LCD condition would be generated. Table 43 - Loss of Delineation Register 52 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 Type R/W 10A 1 reg. for all 4 IMA Frame state machines 91 Description ALPHA parameter value for the IMA Frame Delineation.state machine. The number of consecutive invalid ICP cells to leave the IMA SYNC state to go to the IMA HUNT state.The default value is 2. BETA parameter value for the Cell Delineation.state machine. The number of consecutive errored ICP cells to leave the IMA SYNC state to go to the IMA HUNT state. The default value is 2. GAMMA parameter value for the Frame Delineation state machine. The number of consecutive valid ICP cells to leave the IMA PRESYNC state to go to the IMA SYNC state. The default value is 1. Table 44 - IMA Frame Delineation Register 5:3 R/W 2:0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 10C - 10F 1 register per RX IMA group 01 Description RX OAM label value (defines the working RX IMA version). Table 45 - RX OAM Label Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 115 1 register for the 8 RX links 00 Description An OIF state was detected on the physical link 7. Cleared by writing a 0. An OIF state was detected on the physical link 6. Cleared by writing a 0. An OIF state was detected on the physical link 5. Cleared by writing a 0. An OIF state was detected on the physical link 4. Cleared by writing a 0. An OIF state was detected on the physical link 3. Cleared by writing a 0. An OIF state was detected on the physical link 2. Cleared by writing a 0. An OIF state was detected on the physical link 1. Cleared by writing a 0. An OIF state was detected on the physical link 0. Cleared by writing a 0. Table 46 - RX OIF Status Register 53 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 116 1 register for the 8 RX links 00 Description Write a 0 to clear the OIF counter for physical link 7. Write a 0 to clear the OIF counter for physical link 6. Write a 0 to clear the OIF counter for physical link 5. Write a 0 to clear the OIF counter for physical link 4. Write a 0 to clear the OIF counter for physical link 3. Write a 0 to clear the OIF counter for physical link 2. Write a 0 to clear the OIF counter for physical link 1. Write a 0 to clear the OIF counter for physical link 0. Table 47 - RX OIF Counter Clear Command Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3 2:0 Type R R R/W 117 1 register to select the link from which to extract the RX ICP cells values shown in following registers 00 Description Unused. read all 0’s. Reserved. Selects the RX physical link number to update the values from the RX ICP cell. This is used when the RX Link is enabled but in UNI mode to collect the values received over the ICP cells. Table 48 - RX Load Values/Link Select Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 118 The value is updated on completion of the write action in the RX Load Values register 00 Description This register stores the value of the IMA ID extracted from the valid RX ICP cell received on the link selected in the RX Load Values/Link Select register. Table 49 - RX Link IMA ID Registers 54 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 119 The value is updated on completion of the write action in the RX Load Values register 00 Description Defines the ICP cell offset of the link selected in the RX Load Values/Link Select register. The significant bits are used depending on the value of M. M=256; bits 7-0 are used, M=128; bits 6-0 are used; M=64; bits 5-0 are used; M=32; bits 4-0 are used. Table 50 - RX ICP Cell Offset Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 11A The value is updated on completion of the write action in the RX Load Values register 01 Description This register reports the IMA Frame sequence number as reported in the last received valid ICP cell of the selected link. Table 51 - RX Link Frame Sequence Number Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 11B The value is updated on completion of the write action in the RX Load Values register 00 Description This register reports the SCCI sequence number as reported in the last received valid ICP cell of the link selected in the RX Load Values/Link Select register. Table 52 - RX Link SCCI Sequence Number Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 11C The value is updated on completion of the write action in the RX Load Values register 00 Description Content of the OIF counter for the link selected in the RX Load Values/Link Select register. Table 53 - RX Link OIF Counter Value Register 55 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4:0 Type R R R R 11D The value is updated on completion of the write action in the RX Load Values register 20 Description LIF state of the link selected in the RX Load Values/Link Select register. LCD state of the link selected in the RX Load Values/Link Select register. A value of 1 means that the link selected in the RX Load Values/Link Select register is a reference link for his IMA Group. These bits report the link ID number for the link selected in the RX Load Values/Link Select register. Table 54 - RX Link ID Number Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 5:4 3:2 Type R R R 11E The value is updated on completion of the write action in the RX Load Values register 00 Description Unused. Read all 0’s. Frame length (value of M) of the link selected in the RX Load Values/Link Select register. IMA Frame State: 00: Hunt 01: Presync 10: Sync. 11: Stuffed Frame event. Cell Delineation State: 00: Hunt 01: Presync 10: Sync. 11: Unused. Table 55 - RX State Register 1:0 R 56 MT90220 7.5 RX ICP Cell Registers Description Tables 56 to 60 describe the RX ICP registers Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 Type R/W 1C0 Access for RX link 3-0 00 Description These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 3. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 2. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 1. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 0. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. Table 56 - RX ICP Cell Type RAM Register 1 5:4 R/W 3:2 R/W 1:0 R/W 57 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 Type R/W 1C1 Access for RX link 7-4 00 Description These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 7. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 6. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 5. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. These 2 bits select the type of cells stored in the RX ICP Cell buffer for physical link 4. 00: valid RX ICP Cells with changes. 01: All valid RX ICP Cells. 10: All valid RX Cells. 11: No cell written into RX buffer. Table 57 - ICP Cell Type RAM Register 2 5:4 R/W 3:2 R/W 1:0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type W W W W W W W W 1C6 1 reg. for all 8 RX link FIFO 00 Description A value of 1 will increment the position of the read pointer for the physical link 7. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 6. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 5. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 4. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 3. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 2. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 1. A 0 has no effect. A value of 1 will increment the position of the read pointer for the physical link 0. A 0 has no effect. Table 58 - RX ICP Cell Buffer Increment Read Pointer Register 58 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 5:4 3:2 1:0 2:0 Type R R R R W Unused. Read all 0’s. Level of RX ICP Cell FIFO. FIFO write pointer position FIFO read pointer position Select link number for FIFO Status. Table 59 - RX ICP Cell Level FIFO Status Register 1C7 Write to bit 2:0 of this register to select the specific link RX ICP Cell FIFO. The value is immediately updated for a read 00 Description Address (Hex): 1C3 Synchronized access Set Address for an indirect access to write to ICP Cell RAM Reset Value (Hex): 00 Bit # 7 6 5 4 3 2:0 Type R/W R/W R/W R/W R/W R/W Description 0: External SRAM Test Mode is disabled, 1: External SRAM Test Mode is enabled. Reserved, write 0 for normal operation. Reserved, write 0 for normal operation. Reserved, write 0 for normal operation. Reserved, write 0 for normal operation. Reserved, write 0’s for normal operation. Table 60 - Test Mode Enable Register 59 MT90220 7.6 External SRAM Register Description Tables 61 to 65 describe the External SRAM registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4:3 2:0 Type R/W R/W R/W R/W R/W 292 Defines the external SRAM configuration 08 Description Write a 1 to reset the receiver. 0 means no action. Write a 1 to reset the transmitter. 0 means no action. Reserved, write 0 for normal operation. Write 00 for normal operation These 3 bits define the size of the external receive memory: 101: 2 banks of 512K x 8 bits 100: 1 bank of 512K x 8 bits 011: 2 banks of 128K x 8 bits 010: 1bank of 128K x 8 bits 001: 2 banks of 32K x 8 bits 000: 1bank of 32K x 8 bits Table 61 - SRAM Control Register Address (Hex): 283 Synchronized access Set address before the transfer is initiated with the RX External SRAM Control register Reset Value (Hex): 00 Bit # 7:0 Type R/W Description RX External SRAM Read/Write data register. Table 62 - RX External SRAM Read/Write Data Address (Hex): 291 Synchronized access Set address before the transfer is initiated with the RX External SRAM Control register Reset Value (Hex): 00 Bit # 7:0 Type R/W Description RX External SRAM Read/Write Address bit 7:0. Table 63 - RX External SRAM Read/Write Address 0 Address (Hex): 290 Synchronized access Set address before the transfer is initiated with the RX External SRAM Control register Reset Value (Hex): 00 Bit # 7:0 Type R/W Description RX External SRAM Read/Write Address bit 15:8. Table 64 - RX External SRAM Read/Write Address 1 60 MT90220 Address (Hex): 28F Synchronized access Set address before the transfer is initiated with the RX External SRAM Control register Reset Value (Hex): 00 Bit # 7:5 4 3:0 Type R R/W R/W Unused. Read all 0’s Reserved, write 0 for normal operation. RX External SRAM Read/Write Address bit 19:16. Table 65 - RX External SRAM Read/Write Address 2 Description 61 MT90220 7.7 RX Delay Registers Description Tables 66 to 75 describe the RX Delay registers. Address (Hex): 280 Synchronized access Reset Value (Bin): 1X000000 Bit # 7 6 5 4 3 2 1:0 Type R R R/W R/W R/W R/W R/W Description Upon a write to this register, the bit will go to 0 and will return to 1 when the transfer is completed Toggle Bit. Write 0 to initiate a transfer from the MT90220 registers to the external RAM. Write 1 to initiate a transfer from the external RAM to the MT90220 registers. Reserved, write 0 for normal operation. When Test Mode bit is 1; write 1 to enable the direct addressing mode to the External SRAM. When Test Mode bit is 1; write 0 for normal operation.Write 1 for disabling all access to the external RAM except for the uP port (for RAM test purposes) When bit 1 is 1, there is no access to the external RAM (no reset or read or write action done). When bit 1 is 0 and bit 0 is 0, then the external RAM is initialized. When bit 1 is 0 and bit 0 is 1, then a read or write access to the external RAM is performed, as defined by bit 5. Table 66 - RX External SRAM Control Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 281 Used to increment or decrement the recombiner delay for an IMA Group. The value is in the Guardband/Delta Delay register 00 Description Write a 1 to decrement the recombiner delay of IMA Group #3. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to increment the recombiner delay of IMA Group #3. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to decrement the recombiner delay of IMA Group #2. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to increment the recombiner delay of IMA Group #2. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to decrement the recombiner delay of IMA Group #1. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to increment the recombiner delay of IMA Group #1. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to decrement the recombiner delay of IMA Group #0. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Write a 1 to increment the recombiner delay of IMA Group #0. The bit will return to 0 when the delay is adjusted. Writing a 0 has no effect. Table 67 - Increment/Decrement Delay Control Register 62 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 Type R/W 00: normal delay, 01: read pointer, 10: write pointer. Writing a 1 will reset the value of the maximum delay over time register for the selected IMA Group (see bits 1:0). Delay register: 11: Maximum Delay over time 10: Current Maximum Delay for an IMA Group 01: Current Minimum Delay for an IMA Group 00: Current Delay for a link Bits 2:0 are used to specify the physical link number. Bits 1:0 are used to specify the IMA Group number. Table 68 - RX Delay Select Register 29D Used to initiate an update of the RX Delay registers based on the link and delay value to read 00 Description 5 4:3 R/W R/W 2:0 R/W Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 5:0 Type R/W R/W 284 This register contains the delay value (in number of cells) selected by the RX Delay Select Register. The value always include the current guardband delay 00 Description Unused. Read all 0’s. Delay Value (MSB) Table 69 - RX Delay MSB Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 285 This register contains the delay value (in number of cells) selected by the RX Delay Select Register. The value always include the current guardband delay. 04 Description Delay Value (LSB). Table 70 - RX Delay LSB Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4:3 2:0 Type R/W R/W R 286 This register contains the link number associated with the RX Delay value Register. 00 Description Reserved, write 0’s for normal operation. Write 1 to bit 4 and 0 to bit 3 for normal operation. Number of the physical link associated with the value in the RX Delay register. This value is not valid when reading the Maximum Delay over time value is read. Table 71 - RX Delay Link Number Register 63 MT90220 Address (Hex): Direct access in number of cells) Reset Value (Hex): Bit # 7:0 Type R/W 288, 28A, 28C, 28E 1 value for each IMA Group to use for start-up and adding/removing delay (value 04 Description LSB of the Guardband/Delay value Bits 7:0. Table 72 - RX Guardband/Delta Delay LSB Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 5:0 Type R/W R/W 287, 289, 28B, 28D 1 value for each IMA Group to use for start-up and adding/removing delay (value in number of cells) 00 Description Unused. Read 0 after reset. MSB of the Guardband/Delay value Bits 13:8. Table 73 - RX Guardband/Delta Delay MSB Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 296, 298, 29A, 29C 1 register per IMA Group (value in number of cells) 00 Description LSB of the Maximum Operational Delay value Bits 7:0. Table 74 - RX Maximum Operational Delay LSB Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:6 5:0 Type R/W R/W 295, 297, 299, 29B 1 reg. per IMA Group (value in number of cells) 00 Description Unused. Read 0 after reset. MSB of the Maximum Operational Delay value Bits 13:8. Table 75 - RX Maximum Operational Delay MSB Register 64 MT90220 7.8 RX Recombiner Registers Description Tables 76 to 80 describe the RX Recombiner registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7:3 2 1:0 Type R R/W R/W Unused. Read all 0’s. Recombiner Control: 1 to enable the recombiner and a 0 to disable. This bit works in conjunction with the RX Recombiner Delay register. These 2 bits specify which IMA Group the link belongs to: 00: IMA Group #0 01: IMA Group #1 10: IMA Group #2 11: IMA Group #3. Table 76 - RX Recombiner Registers 180 - 187 1 register per RX link 00 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7 Type R/W 282 1 register for all links. Note: the first link of a group SHALL NOT be enabled in delayed recombination mode 00 Description A 1 enables the circuitry to wait for the first User cells to be received before adding the link 7 to the recombiner process. A 0 will include the link 7 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 6 to the recombiner process. A 0 will include the link 6 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 5 to the recombiner process. A 0 will include the link 5 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 4 to the recombiner process. A 0 will include the link 4 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 3 to the recombiner process. A 0 will include the link 3 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 2 to the recombiner process. A 0 will include the link 2 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 1 to the recombiner process. A 0 will include the link 1 in the recombiner as soon as it is enabled in the RX Recombiner register. A 1 enables the circuitry to wait for the first User cells to be received before adding the link 0 to the recombiner process. A 0 will include the link 0 in the recombiner as soon as it is enabled in the RX Recombiner register. Table 77 - RX Recombiner Delay Control Registers 6 R/W 5 R/W 4 R/W 3 R/W 2 R/W 1 R/W 0 R/W 65 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 29F 00 Description Each bit reports the recombination status for a link. A 1 means that the recombination is enabled. The bit 7 reports for link 7 and so on so forth. Do not write to this register. Table 78 - Enable Recombination Status Address (Hex): Direct access Reset Value (Hex): Bit # 7 6:4 3 2:0 Type R R R/W R/W 188 - 18B 1 register per IMA Group 00 Description Unused. Read 0. Reserved. When set to 1, it enables the automatic selection of the Reference link for the Group. When 0, the link specified in bits 2-0 is used as the reference link. These 3 bits specify which physical link is to be used as the reference link for the IMA Group. Table 79 - RX Reference Link Control Registers Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R R/W 18C - 18F 1 register per IMA Group 05 Description Unused. Read all 0s. Defines the integration period for an IMA Group 1111: Reserved. Do not use. 1110: 221 clock cycles 1101: 220 clock cycles 1100: 219 clock cycles (preferred value for E1) 1011: 218 clock cycles (preferred value for T1 - 24 channels) 1010: 217 clock cycles 1001: 216 clock cycles (preferred value for T1 - 23 channels) 1000: 215 clock cycles 0111: 214 clock cycles 0110: 213 clock cycles 0101: 212 clock cycles 0100: 211 clock cycles 0011: 210 clock cycles 0010: 209 clock cycles 0001: 208 clock cycles 0000: 207 clock cycles Table 80 - RX IDCR Integration Registers 66 MT90220 7.9 TX/RX and PLL Control Registers Description Tables 81 to 89 describe the TX/RX and PLL Control registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4 Type R R/W 080 - 087 1 reg. per TX link 00 Description Unused. Read all 0’s. TXCK and TXSYNC Direction: When the bit is 0 (default value) Mode 1: TXCK and TXSYNC are outputs Mode 2: TXCK and TXSYNC are inputs Mode 3: TXCK and TXSYNC are outputs Mode 4: TXCK and TXSYNC are inputs When the bit is 1 Mode 5: TXCK and TXSYNC are inputs Mode 6: TXCK and TXSYNC are outputs Mode 7: TXCK and TXSYNC are inputs Mode 8: TXCK and TXSYNC are outputs These 4 bits are used to select the source for the TXCK for the link: The valid combinations are: 0000: RXCK0 0001: RXCK1 0010: RXCK2 0011: RXCK3 0100: RXCK4 0101: RXCK5 0110: RXCK6 0111: RXCK7 1000: REFCK0 1001: REFCK1 1010: REFCK2 1011: REFCK3 Table 81 - TX PCM Link Control Register Number 2 3:0 R/W 67 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6:5 Type R/W R/W 088 - 08F 1 reg. per TX link 00 Description PCM port tri-state control. TXCLK, TXSYNC and DSTO outputs are active when the bit is 1. The outputs of the Port is in tri-state if the bit is 0. 00: T1, Generic Mode, 1.544MHz or 2.048 MHz Clk, (Mode 1 or 5) 01: T1, ST-BUS Mode, 4.096MHz Clk, (Mode 2 or 6) 10: E1, Generic Mode, 2.048 MHz clk, (Mode 3 or 7) 11: E1, ST-BUS Mode, 4.096MHz Clk, (Mode 4 or 8) The direction of the TXCK and TXSYNC signals (i.e.; input or output) is defined using the TX PCM Link Control register #2 bit 4. This bit defines the PCM clock rate when one of the 2 T1 generic modes is selected. A 1 signifies that a 2.048 MHz clock is used and a 0 signifies that a 1.544 MHz clock is used. This bit is valid only for T1 Generic modes (PCM Mode 1 or 5). This bit defines the position of the PCM channels over the PCM Stream. A value of 1 means that the 24 channels are grouped and transmitted in the first 24 channels on the PCM stream. A value of 0 corresponds to using 3 channels every 4 channels. This bit is valid only for T1 type link, in ST-BUS or Generic mode with a TXCK frequency of 2.048MHz. It is not applicable for T1, Generic mode with TXCK frequency of 1.544MHz. T1 Signaling channel. A value of 1 disables the use of the channel 24 and reserves it for signaling. A value of 0 enables the use of the 24 channels to carry the cells. Valid only for T1 mode. TX Clock polarity: Rising edge of TXCK is used to output new data on DSTo if bit is 1. Falling edge of TXCK is used to output new data on DSTo if bit is 0. Valid in Generic PCM mode only TX frame pulse polarity. Positive if bit is 1, negative if bit is 0. Valid in Generic PCM mode only. Table 82 - TX PCM Link Control Register Number 1 4 R/W 3 R/W 2 R/W 1 R/W 0 R/W 68 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 Type R/W R/W R/W R/W 090 - 097 1 register per RX link 00 Description PCM Input port control. Data present at input port is sent to the Cell Delineation block when the bit is 1. The data at the input port is ignored if the bit is 0. Link Type: A value of 1 selects the E1 link type and 0 select T1 type. PCM format: A value of 1 selects the ST-BUS mode and a 0 selects the Generic PCM mode. This is the PCM clock rate when the generic mode is selected. A 1 signifies a 2.048 Mhz clock and a 0 signifies a 1.544 MHz clock. This is valid only for the T1 in Generic PCM mode. This bit defines the position of the PCM channels over the PCM in Stream. A value of 1 means that the 24 channels are grouped and are received in the first 24 channels on the PCM stream. A value of 0 corresponds to 3 channels every 4 channels. Valid only for T1 type link, ST-BUS mode or Generic PCM mode with a bit rate of 2.048 Mbps. T1 Signaling channel. A value of 1 disables the use of the channel 24 and reserves it for signaling. A value of 0 enables the use of the 24 channels to carry the cells. Valid only for T1 mode. RX Clock polarity: Falling edge is used to sample data at DST if bit is 1. Rising edge of RXCK is used to sample data at DSTi if bit is 0. Valid in Generic PCM mode only RX frame pulse polarity. Positive if bit is 1. Negative if bit is 0. Valid in Generic PCM mode only. Table 83 - RX PCM Link Control Register 3 R/W 2 R/W 1 0 R/W R/W 69 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5:3 Type R/W R/W R/W 098 00 Description Writing a 1 forces the deselecting of the selected clock when it failed. Reserved. Set to 0 for normal operation. These 3 bits are used to select the source for the signal at PLLREF1: The valid combinations are: 000: RXCK0 001: RXCK1 010: RXCK2 011: RXCK3 100: RXCK4 101: RXCK5 110: RXCK6 111: RXCK7 These 3 bits are used to select the source for the signal at PLLREF0: The valid combinations are: 000: RXCK0 001: RXCK1 010: RXCK2 011: RXCK3 100: RXCK4 101: RXCK5 110: RXCK6 111: RXCK7 Table 84 - PLL Reference Control Register 2:0 R/W 70 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4:0 Type R R R/W R/W 099 00 Description Clock Running Status: Cleared by writing to this register, set by the running clock Toggle on every transition of the selected clock Reserved.Write 0 for normal operation. These 5 bits are used to select the clock that is to be verified: The valid combinations are: 00000: REFCK0 00001: REFCK1 00010: REFCK2 00011: REFCK3 00100: TXCK0 00101: TXCK1 00110: TXCK2 00111: TXCK3 01000: TXCK4 01001: TXCK5 01010: TXCK6 01011: TXCK7 01100: RXCK0 01101: RXCK1 01110: RXCK2 01111: RXCK3 10000: RXCK4 10001: RXCK5 10010: RXCK6 10011: RXCK7 Table 85 - Clock Activity Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 09A 1 reg. for all 8 RX links 00 Description PCM RX Sync signal faulty on link 7. Cleared by writing ’0’. PCM RX Sync signal faulty on link 6. Cleared by writing ’0’. PCM RX Sync signal faulty on link 5. Cleared by writing ’0’. PCM RX Sync signal faulty on link 4. Cleared by writing ’0’. PCM RX Sync signal faulty on link 3. Cleared by writing ’0’. PCM RX Sync signal faulty on link 2. Cleared by writing ’0’. PCM RX Sync signal faulty on link 1. Cleared by writing ’0’. PCM RX Sync signal faulty on link 0. Cleared by writing ’0’. Table 86 - RX Sync. Status Register 71 MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 09E 1 reg. for all 8 RX links 00 Description PCM TX Sync signal faulty on link 7. Cleared by writing ’0’. PCM TX Sync signal faulty on link 6. Cleared by writing ’0’. PCM TX Sync signal faulty on link 5. Cleared by writing ’0’. PCM TX Sync signal faulty on link 4. Cleared by writing ’0’. PCM TX Sync signal faulty on link 3. Cleared by writing ’0’. PCM TX Sync signal faulty on link 2. Cleared by writing ’0’. PCM TX Sync signal faulty on link 1. Cleared by writing ’0’. PCM TX Sync signal faulty on link 0. Cleared by writing ’0’. Table 87 - TX Sync. Status Register Address (Hex): Direct access Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R R R R R R R R 09C FF Description A ’1’ signifies that the TX Clock, link 7 is disabled. A ’1’ signifies that the TX Clock, link 6 is disabled. A ’1’ signifies that the TX Clock, link 5 is disabled. A ’1’ signifies that the TX Clock, link 4 is disabled. A ’1’ signifies that the TX Clock, link 3 is disabled. A ’1’ signifies that the TX Clock, link 2 is disabled. A ’1’ signifies that the TX Clock, link 1 is disabled. A ’1’ signifies that the TX Clock, link 0 is disabled. Table 88 - TX Clock Disabled Status Address (Hex): Direct access Reset Value (Hex): Bit # 7:2 1 0 Type R R R 09D 03 Description Unused. Read 0’ss A ’1’ signifies that the PLLREF1 Clock is disabled. A ’1’ signifies that the PLLREF0 Clock is disabled. Table 89 - PLL REF Clock Disabled Status/Device Rev 72 MT90220 7.10 Counter Registers Description Tables 90 to 94 describe the Counter registers Address (Hex): 214 Synchronized access The value in this register is used for internal access to the counter when the transfer command is issued Reset Value (Hex): 00 Bit # 7:0 Type R/W Description A read accesses the MSB (byte 3) of the Counter selected in the Select Counter register. A write will hold the value to be written to the selected counter. Table 90 - Counter Byte Number 3 Register Address (Hex): 215 Synchronized access The value in this register is used for internal access to the counter when the transfer command is issued Reset Value (Hex): 00 Bit # 7:0 Type R/W Description A read accesses the byte #2 of the Counter that was selected in the Select Counter register. A write will hold the value to be written to the selected counter. Table 91 - Counter Byte Number 2 Register Address (Hex): 216 Synchronized access The value in this register is used for internal access to the counter when the transfer command is issued Reset Value (Hex): 00 Bit # 7:0 Type R/W Description A read accesses the byte #1 (Least Significant Byte) of the Counter that was selected in the Select Counter register. A write will hold the value to be written to the selected counter. Table 92 - Counter Byte Number 1 Register 73 MT90220 Address (Hex): 217 Synchronized access The value in this register is used for internal access to the counter when the transfer command is issued Reset Value (Hex): 00 Bit # 7:4 Type R/W Description The valid bit combinations are: 1011: UTOPIA Input, counter of all cells for link 1010: UTOPIA Input, counter of Idle cells for link 1001: UTOPIA Input, counter of Unassigned cells for link 1000: UTOPIA Input, counter of cell with HEC error, single or multiple bit error 0111: TX Link, total number of cells, 0110: TX Link, number of Idle/Filler cells, 0101: TX Link, number of Stuff cells, 0100: TX Link, number of ICP cells, 0011: RX Link, total number of cells (or stuff cells), 0010: RX Link, number of Idle/Filler cells, 0001: RX Link, number of cells with HEC errors, 0000: RX Link, number of bad ICP cells. The valid bit combinations are: 1011: IMA Group 3 when UTOPIA Input counter access 1010: IMA Group 2when UTOPIA Input counter access 1001: IMA Group 1when UTOPIA Input counter access 1000: IMA Group 0when UTOPIA Input counter access 0111: Link 7 0110: Link 6 0101: Link 5 0100: Link 4 0011: Link 3 0010: Link 2 0001: Link 1 0000: Link 0 Table 93 - Select Counter Register 3:0 R/W Address (Hex): 207 Synchronized access Reset Value (Bin): 0XX00000 Bit # 7 6 5 4 3 2 1:0 Type R/W R/W R/W R/W R/W R/W R/W Description Write: 0 for normal operation. Read: 1 when the transfer is done, 0 when the transfer is pending. Reserved, write 0 for normal operation. Reserved, write 0 for normal operation. Reserved, write 0 for normal operation. Value to write to the Enable bit. 1 to enable, 0 to mask interrupt. This value is transferred when the bit 1:0 are 10. 0 will enable the transfer from the uP to the selected counter. 1 will enable the transfer from the selected counter to the uP. 00: Reserved. Do not use. 01: initiate a read or write of the counter value. 10: initiate a read or write of the IRQ enable counter bit. 11: not used. Table 94 - Counter Transfer Command Register 74 MT90220 7.11 Interrupt Registers Description Tables 95 to 103 describe the Interrupt registers. Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R 232 00 Description Each bit represents a link. A ’1’ means that the corresponding link has a valid request for interrupt. The level of the IRQ pin is controlled by the bits in this register and the corresponding bits in the IRQ Master Enable Register. A write does not have any affect on the bits in this register. The status bit is not latched and changing the mask bit in the IRQ Master Register has a direct effect on the level of the IRQ pin. Table 95 - IRQ Master Status Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 218 00 Description Each bit represents a link. A ’1’ means that the interrupt form the corresponding link is enabled and that the level of the IRQ pin is low if the corresponding bit in the IRQ Master Register is set. A ’0’ means that the IRQ level is not affected by the corresponding bit. Table 96 - IRQ Master Enable Register Address (Hex): Direct access Reset Value (Hex): Bit # 7a Type R 222 - 229 1 Status register per link 00 Description A ’1’ in this bit means that at least one of the IRQ sources from the IMA Group Overflow Status Register is requesting service. This bit can be cleared only by service the source of the IRQ. This bit is valid only for the IRQ Link 0 Status register and is reading always a 0 for the IRQ Link 1-7 Status registers. A 1 in this bit means that at least one of the Ready bit used to initiate a transfer of a TX ICP cell for at least 1 of the IMA Group is returned to 1 (meaning that the transfer of the TX ICP cell is complete) or a frame pulse was detected for an IMA Group. This bit is cleared by writing a 0 to it. This bit is valid only for the IRQ Link 0 Status register and is reading always a 0 for the IRQ Link 1-7 Status registers. ICP Cell with changes received. The link has received an ICP cell which contain one or more changes in it. This status bit can be cleared by writing a ’0’ to it. This bit is set when an ICP cell is stored in RX ICP cell buffer as defined in RX ICP cell type RAM register 1or 2. IV. The Link has received an ICP cell which contain a violation as defined in Table 16 of IMA Spec. This status bit can be cleared by writing a ’0’ to it. LODS. The Link is Out of Delay Synchronization. This status bit can be cleared by writing a ’0’ to it. LIF. Loss of IMA Frame. This status bit can be cleared by writing a ’0’ to it. LCD Loss of Cell Delineation. This status bit can be cleared by writing a ’0’ to it. Link Counter Overflow Interrupt. One or more counters associated with the link overflowed. This status bit can be cleared only by reading or writing to the counter(s) which is (are) the source for the IRQ. Table 97 - IRQ Link Status Registers a. Bit 7 is present only for Link 0. In all other Link Status Registers, this bit is set to 0. b. Bit 6 is present only for Link 0. In all other Link Status Registers, this bit is set to 0. 75 6b R/W 5 R/W 4 3 2 1 0 R/W R/W R/W R/W R MT90220 Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 Type R/W 219 - 220 1 Enable register per link Status reg 00 Description Each bit set to ’1’ will enable the generation of the interrupt when the corresponding bit in the IRQ Link Status register is set. Table 98 - IRQ Link Enable Registers Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R R/W 235 XD Description Reserved. Each bit set to ’1’ represent an overflow condition from the IMA Group associated with the bit. There is one bit for each IMA Group. A bit is set when one or more of the 4 counters or the RX UTOPIA FIFO associated with an IMA Group overflows. Table 99 - IRQ IMA Group Overflow Status Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3:0 Type R R/W 204 00 Description Unused. Should read 0’s. Each bit set to ’1’ will enable the generation of the interrupt when the corresponding bit in the IRQ IMA Group Overflow Status register is set. There is one bit for each status bit. Table 100 - IRQ IMA Group Overflow Enable Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:5 4 3 2 1 0 Type R R/W R/W R/W R/W R/W 210 - 213 1 register per IMA Group. The RxClk and TxClk signals must be active for correct register operation 00 Description Unused. Should read 0’s. This bit is set when the RX UTOPIA FIFO associated with an IMA Group overflows. This bit is cleared by writing 0. This bit is set when the counter for all cells associated with an IMA Group overflows. (Input UTOPIA port). This bit is cleared by writing 0. This bit is set when the counter for Idle Cells associated with an IMA Group overflows. (Input UTOPIA port). This bit is cleared by writing 0. This bit is set when the counter for Unassigned Cells associated with an IMA Group overflows. (Input UTOPIA port). This bit is cleared by writing 0. This bit is set when the counter for HEC Errored Cells associated with an IMA Group overflows. (Input UTOPIA port). This bit is cleared by writing 0. Table 101 - IRQ IMA Overflow Status Registers 76 MT90220 Address (Hex): Direct access register operation Reset Value (Hex): Bit # 7:5 4 3 2 1 0 Type R R/W R/W R/W R/W R/W Unused. Should read 0’s. This bit is set when the RX UTOPIA FIFO associated with a Link in UNI mode overflows. This bit is cleared by writing 0. This bit is set when the UTOPIA Input counter for all cells (or all Stuff cells event) associated with a link used in UNI mode overflows. This bit is cleared by writing 0. This bit is set when the UTOPIA Input counter for Idle Cells associated with a link used in UNI mode overflows. This bit is cleared by writing 0. This bit is set when the UTOPIA Input counter for Unassigned Cells associated with a link used in UNI mode overflows. This bit is cleared by writing 0. This bit is set when the UTOPIA Input counter for HEC Errored Cells associated with a link used in UNI mode overflows. This bit is cleared by writing 0. Table 102 - IRQ UTOPIA UNI Overflow Status Registers 208 - 20F 1 register per link. The RxClk and TxClk signals must be active for correct 00 Description Address (Hex): Direct access register operation Reset Value (Hex): Bit # 7 6 5 4 3 2 1 0 Type R/W R/W R/W R/W R/W R/W R/W R/W 22A - 231 1 register per link. The RxClk and TxClk signals must be active for correct 00 Description This bit is set when the TX PCM Link counter for all cells associated with a link used in overflows. This bit is set when the TX PCM Link counter for Idle or Filler Cells associated with a link overflows. This bit is set when the TX PCM Link counter for TX Stuff Cells associated with a link overflows. This bit is set when the TX PCM Link counter for TX ICP Cells associated with a link overflows. This bit is set when the RX PCM Link counter for all cells (or all Stuff cells event) associated with a link overflows. This bit is set when the RX PCM Link counter for Idle or Filler Cells associated with a link overflows. This bit is set when the RX PCM Link counter for HEC Errored Cells associated with a link overflows. This bit is set when the RX PCM Link counter for bad ICP Cells associated with a link overflows. Table 103 - IRQ Link UNI Overflow Status Registers 77 MT90220 7.12 Miscellaneous Registers Description Tables 104 to 106 describe the General Status and Test Register. Address (Hex): Direct access Reset Value (Hex): Bit # 7:4 3 2 1 0 Type R R/W R/W R/W R/W Device Revision Number: reads 0001. Set when the UTOPIA output clock is missing or too slow. This latched bit is cleared by writing a 0. Set when the UTOPIA input clock is missing or too slow. This latched bit is cleared by writing a 0. Overflow of 1 or more of the TX UTOPIA FIFO. Set when there is no free cell in TX Cell RAM. This latched bit is cleared by writing a 0. Table 104 - General Status Register 206 10 Description Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 7:0 Type R W O4E 00 Description Reserved (different than written values). Write 0x60 for normal operation. Table 105 - Test 1 Register Address (Hex): Direct access Reset Value (Hex): Bit # 7:0 7 6 5:4 3 2 1:0 Type R W W W W W W 0DA 00 Description Reserved (different from written values). Write 0 for normal operation. Write 1 for normal operation. Write 00 for normal operation Write 1 before adding a link to an existing IMA group. Write 0 when the link is reported in IMA mode. Write 0 for normal operation. Write IMA group number before adding a link to an IMA group. Table 106 - Test 2 Register 78 MT90220 8.0 Application Notes Inverse Multiplexing for ATM (IMA) divides a highbandwidth stream of ATM cells in a round-robin fashion and sends them over grouped T1/E1 lines in a logical connection (on public or private networks) and recombines the cells to recover the original highbandwidth stream at the receiving end. MITEL’s MT90220 is ideally suited to implement the IMA function. 8.1 Connecting the MT90220 to Various T1/E1 Framers Many off-the-shelf T1/E1 framers require the generation of a 1.544 MHz (T1) or 2.048 MHz (E1) transmit clock reference signal at an input pin. The MT9042 can generate both these clocks and the STBUS back-plane signals (C4,F0). Figure 19 provides an example of PCM Modes 2 and 4 in an IMA implementation using existing T1/E1 framers and a common 2 Mbps ST-Bus backplane. New generation MITEL framers only require the STBUS 4.096 MHz (C4) clock and a Frame Pulse (F0i) at the transmit interface. An internal PLL generates the required 1.544 MHz (T1) or 2.048 MHz (E1) transmit clock. Figure 20 provides an example of PCM Modes 2 and 4 in an IMA implementation based on the MITEL MT90220 and the MITEL MT9074 framers. This configuration supports CTC mode. Although the MT9074 use the ST-Bus format but it is not configured as a common backplane. Figure 21 exemplifies PCM Modes 2 and 4 in an IMA implementation supporting the asynchronous link operation mode. Each T1 or E1 framer uses independent clock and synchronization signals which corresponds to ITC mode. Figure 22 exemplifies PCM Modes 1 and 3 in an IMA implementation supporting the asynchronous link operation mode. Each T1 or E1 framer uses independent clock and synchronization signals. Figure 23 exemplifies PCM Mode 5 and 7 in an IMA implementation supporting the asynchronous link operation mode where the TXCLK signal is provided by the T1 interface. Each T1 framer uses independent clock and synchronization signals. 79 MT90220 TDM Back-Plane (ST-BUS) ST-BUS I/F DATA Existing Mitel T1/E1 Framers Legacy Trunks at 1.5 or 2 Mbps UTOPIA BUS DSTo[0:7] DSTi[0:7] Data Lines ST-BUS I/F DATA Existing Mitel T1/E1 Framers Legacy Trunks at 1.5 or 2 Mbps ATM LAYER BUS MT90220 DEVICE ST-BUS I/F DATA Existing Mitel T1/E1 Framers Legacy Trunks at 1.5 or 2 Mbps TXCK[0-7] RXCK[0-7] TXSYNC[0-7] RXSYNC[0-7] 4.096 MHz 8 kHz ST-BUS I/FCLOCKS Dejittered TX CLK to Framers (1.544 or 2.048 MHz) Receive Clock (1.544 or 2.048 MHz) or 8 kHz References MT9042 Clock Recovery and Dejitter Functions External Source Figure 19 - PCM MODE 2 AND 4: Synchronous ST-BUS Mode (Using ST-BUS/2.048 Mbps Backplane Compatible Framers) 80 MT90220 MT9074/#1 DSTi[0] RXCK[0] TXCK[0] RXSYNC[0] TXSYNC[0] DSTo[0] DSTo C4b F0b DSTi UTOPIA LEVEL 2 MT90220 DEVICE 20 MHz +/-50 PPM BUS MT9074#N DSTi[7] RXCK[7] TXCK[7] RXSYNC[7] TXSYNC[7] DSTo[7] DSTo C4b F0b DSTi Note: The MT9074 #1 is configured in Line Sync. mode and all other MT9074s are configured in Bus Master mode. Figure 20 - PCM MODE 2 and 4 CTC Mode (Using MT9074 T1/E1 Single Chip Transceivers) 81 MT90220 MT9074 DSTi[0] RXCK[0] TXCK[0] RXSYNC[0] TXSYNC[0] DSTo[0] DSTo C4b F0b DSTi UTOPIA LEVEL 2 BUS MT90220 DEVICE 20 MHz +/-50 PPM MT9074 DSTi[7] RXCK[7] TXCK[7] RXSYNC[7] TXSYNC[7] DSTo[7] DSTo C4b F0b DSTi Note: All MT9074 are configured in Line Sync. mode Figure 21 - PCM MODE 2 AND 4: ITC Mode (Using Mitel MT9074 T1/E1 Single Chip Transceivers) 82 MT90220 MT90220 DSTo[0] DSTi[0] TXCKi[0] TXSYNCo[0] RXCKi[0] RXSYNC[0] PCM Data 1.544 or 2.048 MHz 8 kHz [T7] 1.544 or 2.048 MHz 8 kHz [R7] T1/E1 Framers Legacy Trunks at 1.5 or 2 Mbps UTOPIA BUS PCM Data Legacy Trunks at 1.5 or 2 Mbps ATM LAYER BUS T1/E1 Framers PLLREF0-1 DSTo[7] DSTi[7] TXCKi[7] TXSYNCo[7] RXCKi[7] REFCK0-3 RXSYNCi[7] PCM Data 1.544 or 2.048 MHz 8 kHz [T7] 1.544 or 2.048 MHz 8 kHz [R7] T1/E1 Framers Legacy Trunks at 1.5 or 2 Mbps Dejittered TX CLK (1.544 or 2.048 MHz) External Source MT9042 Transmit Clock Dejittering Function Figure 22 - PCM MODE 1 and 3: Generic PCM System Interface (For Applications with Asynchronous Lines) 83 MT90220 TXCKi[0] TXSYNCo[0] DSTo[0] DSTi[0] RXSYNC[0] RXCKi[0] EFP0 ED0 ID0 IFP0 ICLK0 TLCLK0 TLD0 RLD0 RLCLK0 UTOPIA Level 2 BUS TXCKi[7] TXSYNCo[7] DSTo[7] DSTi[7] RXSYNC[7] RXCKi[7] MT90220 Note: The PM4388 is configured in Clock Master, full DS1 mode EFP7 ED7 ID7 IFP7 ICLK7 PM4388 TOCTL TLCLK7 TLD7 RLD7 RLCLK7 Figure 23 - PCM MODE 5 and 7: Asynchronous Operations (Using Octal T1 Framer) 84 MT90220 9.0 AC/DC Characteristics Absolute Maximum Conditions* Parameter 1 2 3 4 Supply Voltage Voltage at Digital Inputs Current at Digital Inputs Storage Temperature Symbol VDD VI II TST Min -0.3 -1.0 -10 -40 Max 3.9 6.5 10 125 Units V V mA ˚C * Exceeding these values may cause permanent damage. Functional Operation under these conditions is not implied. Note: Input pins are 5 Volt compatible type Recommended Operating Conditions - Voltages are with respect to ground (Vss) unless otherwise stated Characteristics 1 2 Operating Temperature Supply Voltage Sym TOP VDD Min -40 3.0 3.3 Typ‡ Max 85 3.6 Units ˚C V Test Conditions ‡ Typical figures are at 25°C, VDD=3.3V, and for design aid only: not guaranteed and not subject to production testing DC Electrical Characteristics* - Voltages are with respect to ground (Vss) unless otherwise stated Characteristics 1 2 3 4 5 Supply Current Input High Voltage (Digital Inputs) Input Low Voltage (Digital Inputs) Input Leakage (Digital Inputs) Input Leakage Sym IDD VIH VIL IIL IIL -35 2.0 -0.5 1 -115 Min Typ‡ 150 Max 300 5.5 0.8 10 -214 Units mA V V µA µA VI = 0 to VDD For pins DSTi[7:0], REFCK[3:0], TXCKio[7:0], TXSYNC[7:0], RXSYNCi[7:0], RXCKi[7:0], TDI, TEST1, TMS, TCK For pin TEST2 Test Conditions System Clock 25 MHz. PCM clock @ 2.048MHz 6 7 8 9 Input Leakage Input Pin Capacitance Output High Voltage (Digital Outputs) Output High Current (Digital Outputs) IIL CI VOH IOH 35 115 222 10 µA pF V 2.4 -6 mA Source VOH=2.4 V, all output and bidirectional pins except External SRAM and PLLREF 0 and 1 interface pins. Source VOH=2.4 V, all External SRAM and PLLREF 0 and 1 interface pins 10 11 12 Output High Current (Digital Outputs) Output Low Voltage (Digital Outputs) Output Low Current (Digital Outputs) IOH VOL IOL VSS 6 -4 0.4 mA V µA Source VOL=0.4 V, all output and bidirectional pins except External SRAM and PLLREF 0 and 1 interface pins. 85 MT90220 DC Electrical Characteristics* - Voltages are with respect to ground (Vss) unless otherwise stated Characteristics 13 14 15 Output Low Current (Digital Outputs) Output Pin Capacitance High Impedance Leakage (Digital I/O) Sym IOL CO IOZ -10 1 Min 4 10 10 Typ‡ Max Units mA pF mA VO = 0 to VDD Test Conditions Source VOL=0.4 V, all External SRAM and PLLREF 0 and 1 interface pins. * DC Electrical Characteristics are over recommended temperature and supply voltage ‡ Typical figures are at 25°C, VDD=3.3V, and for design aid only: not guaranteed and not subject to production testing AC Electrical Characteristics† - PCM PORT ST-BUS Interface Mode - Voltages are with respect to ground (Vss) unless otherwise stated Characteristic 1 2 3 4 5 6 7 8 9 C4i Clock Width High or Low C4i Clock Period Frame Pulse Setup Frame Pulse Hold Time DSTi 0-7 Serial Input Setup DSTi 0-7 Serial Input Hold DSTo 0-7 Serial Output Delay DSTo 0-7 Delay Active to High-Z DSTo 0-7 Serial High-Z to Active Sym t4W t4CYC tFPS tFPH tSIS tSIH tSOD tDZ tZD Min 110 Typ‡ 122 244 Max 134 Units ns ns ns ns ns ns Test Conditions 4 1 3 0 25 25 0 10 25 ns ns ns CL = 150pF CL = 150pF CL = 150pF † Characteristics are over recommended operating conditions unless otherwise stated ‡ Typical figures are at 25°C, VDD=3.3V, and for design aid only: not guaranteed and not subject to production testing ST-BUS Bit Cells at DSTi/o 0-7 TXSYNC 0-7/ RXSYNC 0-7 TXCK 0-7/ RXCK 0-7 Channel 31 Bit 0 Channel 0 Bit 7 Channel 0 Bit 6 Channel 0 Bit 5 Figure 24 - ST-BUS Functional Timing Diagram 86 MT90220 PCM Bit Stream Bit Cell tFPH TXSYNC 0-7/ RXSYNC 0-7 tFPS t4W t4W TXCK 0-7/ RXCK 0-7 t4cyc Bit Cell Bit Cell tSIH DSTi0-7 tSIS tSOD DSTo0-7 tDZ tZD Figure 25 - ST-BUS Timing Diagram 87 MT90220 AC Electrical Characteristics† - Generic PCM Interface Mode Characteristic 1 TXCK/RXCK Clock period for T1, 1.544 MHz mode for E1, 2.048 MHz mode TXCK/RXCK Clock Width High or Low for T1, 1.544 MHz mode for E1, 2.048 MHz mode Frame Pulse Setup Frame Pulse hold DSTi 0-7 Serial Input Setup DSTi 0-7 Serial Input Hold DSTo 0-7 Serial Output Delay TXSYNC/RXSYNC Frame Pulse delay after TXCK/RXCK active border TXSYNC when input (PCM Mode 5 & 7) is sampled at the end of the bit period TXSYNC when input (PCM Mode 5 & 7) is sampled at the end of the bit period Sym tcyc 648 488 t4W 260 195 tFPS tFPH tSIS tSIH tSOD tFPD 4 1 3 0 25 25 ns ns ns ns ns ns CL = 150pF CL = 150pF ns Min Typ‡ Max Units ns Test Conditions duty cycle 40 / 60% 2 3 4 5 6 7 8 9 tFPSi 25ns .5 tcyc .5 tcyc 10 tFPSH † Characteristics are over recommended operating conditions unless otherwise stated ‡ Typical figures are at 25°C, VDD=3.3V, and for design aid only: not guaranteed and not subject to production testing PCM Bit Cells T1 (1.544 Mbps) PCM Bit Cells E1 (2.048 Mbps) TXSYNC0-7/ RXSYNC0-7 Channel 24 LSB Bit Framing Bit Channel 1 MSB Bit Channel 1 Bit 2 Channel 31 LSB Bit Channel 0 MSB Bit Channel 0 Bit 2 Channel 0 Bit 3 Positive Pulse BIT Transmitted at Rising Edge BIT Sampled at Falling Edge TXCK0-7/ RXCK0-7 TXSYNC0-7/ RXSYNC0-7 TXCK0-7/ RXCK0-7 Negative Pulse BIT Transmitted at Falling Edge BIT Sampled at Rising Edge Figure 26 - Generic PCM Interface Timing Diagram (Frame Pulse Location) 88 MT90220 T1 PCM Stream 1.544MHz T1/E1 PCM Stream 2.048MHz Channel 24 LSB Bit Channel 31 LSB Bit Framing Bit Channel 0 MSB Bit Channel 1 MSB Bit Channel 0 Bit 2 RXSYNC0-7 RXCK0-7 Positive Polarity Selected tFPS tFPH t4W tCYC Bit Sampled With Falling Edge tSIH tFPSH tSIS tFPSI tFPD tFPD tFPSH DSTi 0-7 TXSYNC0-7 INPUT TXSYNC0-7 Positive Polarity Selected TXCK0-7 tSOD DSTo 0-7 t4W tCYC Bit Transmitted With Rising Edge Negative Polarity Selected RXSYNC0-7 tFPS tFPH RXCK0-7 Rising Edge Bit Sampled With tSIH TXSYNC0-7 INPUT tSIS DSTi 0-7 tFPSI tFPSH tFPD tFPD Negative Polarity Selected TXSYNC0-7 TXCK0-7 tSOD DSTo 0-7 Bit Transmitted With Falling Edge Figure 27 - Detailed Generic PCM Interface Timing Diagram 89 MT90220 AC Electrical Characteristics - Utopia Interface Transmit Timing Signal name TxClk DIR A->P Item Description TxClk frequency (nominal) TxClk duty cycle TxClk peak-to-peak jitter TxClk rise/fall time TxData[7:0], TxSOC, TxEnb*, TxAddr[4:0] TxClav[0] A->P tT5 tT6 AP Item Description RxClk frequency (nominal) RxClk duty cycle RxClk peak-to-peak jitter RxClk rise/fall time RxEnb*, RxAddr[4:0] A->P tT5 tT6 RxData[7:0], RxSOC, RxClav[0] A
MT90220AL 价格&库存

很抱歉,暂时无法提供与“MT90220AL”相匹配的价格&库存,您可以联系我们找货

免费人工找货