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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
DS34T102GN

DS34T102GN

  • 厂商:

    AD(亚德诺)

  • 封装:

    BGA484

  • 描述:

    IC TDM/PACKET CHIP 484-BGA

  • 数据手册
  • 价格&库存
DS34T102GN 数据手册
19-4835; 8/09 DS34T101, DS34T102, DS34T104, DS34T108 Single/Dual/Quad/Octal TDM-over-Packet Chip General Description These IETF PWE3 SAToP/CESoPSN/TDMoIP/HDLC compliant devices allow up to eight E1, T1 or serial streams or one high-speed E3, T3, STS-1 or serial stream to be transported transparently over IP, MPLS or Ethernet networks. Jitter and wander of recovered clocks conform to G.823/G.824, G.8261, and TDM specifications. TDM data is transported in up to 64 individually configurable bundles. All standardsbased TDM-over-packet mapping methods are supported except AAL2. Frame-based serial HDLC data flows are also supported. With built-in fullfeatured E1/T1 framers and LIUs. These ICs encapsulate the TDM-over-packet solution from analog E1/T1 signal to Ethernet MII while preserving options to make use of TDM streams at key intermediate points. The high level of integration available with the DS34T10x devices minimizes cost, board space, and time to market. Applications TDM Circuit Extension Over PSN o Leased-Line Services Over PSN o TDM Over GPON/EPON o TDM Over Cable o TDM Over Wireless Cellular Backhaul Over PSN Multiservice Over Unified PSN HDLC-Based Traffic Transport Over PSN Features  Full-Featured IC Includes E1/T1 LIUs and Framers, TDMoP Engine, and 10/100 MAC  Transport of E1, T1, E3, T3 or STS-1 TDM or Other CBR Signals Over Packet Networks  Full Support for These Mapping Methods: SAToP, CESoPSN, TDMoIP AAL1, HDLC, Unstructured, Structured, Structured with CAS  Adaptive Clock Recovery, Common Clock, External Clock and Loopback Timing Modes  On-Chip TDM Clock Recovery Machines, One Per Port, Independently Configurable  Clock Recovery Algorithm Handles Network PDV, Packet Loss, Constant Delay Changes, Frequency Changes and Other Impairments  64 Independent Bundles/Connections  Multiprotocol Encapsulation Supports IPv4, IPv6, UDP, RTP, L2TPv3, MPLS, Metro Ethernet  VLAN Support According to 802.1p and 802.1Q  10/100 Ethernet MAC Supports MII/RMII/SSMII  Selectable 32-Bit, 16-Bit or SPI Processor Bus  Operates from Only Two Clock Signals, One for Clock Recovery and One for Packet Processing  Glueless SDRAM Buffer Management  Low-Power 1.8V Core, 3.3V I/O See detailed feature list in Section 7. Ordering Information Functional Diagram PART CPU Bus DS34T108 Octal E1/T1/J1 Transceiver Framers E1/T1 Interfaces Circuit Emulation Engine 10/100 Ethernet MAC BERT & CAS LIUs TDM Access Buffer Manager SDRAM Interface Clock Adapters Clock Inputs xMII DS34T101GN DS34T101GN+ DS34T102GN DS34T102GN+ DS34T104GN DS34T104GN+ DS34T108GN DS34T108GN+ PORTS TEMP RANGE PIN-PACKAGE 1 1 2 2 4 4 8 8 484 TEBGA 484 TEBGA 484 TEBGA 484 TEBGA 484 TEBGA 484 TEBGA 484 HSBGA 484 HSBGA -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C -40C to +85C +Denotes lead(Pb)-free/RoHS-compliant package (explanation). ________________________________________________________ Maxim Integrated Products 1 Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device may be simultaneously available through various sales channels. For information about device errata, go to: www.maxim-ic.com/errata. For pricing, delivery, and ordering information, please contact Maxim Direct at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table of Contents 1 INTRODUCTION ...................................................................................................................................10 2 ACRONYMS AND GLOSSARY............................................................................................................10 3 APPLICABLE STANDARDS ................................................................................................................13 4 DETAILED DESCRIPTION ...................................................................................................................14 5 APPLICATION EXAMPLES .................................................................................................................16 6 BLOCK DIAGRAM................................................................................................................................18 7 FEATURES ...........................................................................................................................................20 8 OVERVIEW OF MAJOR OPERATIONAL MODES ..............................................................................25 8.1 INTERNAL MODE ................................................................................................................................25 8.1.1 Internal One-Clock Mode........................................................................................................................... 26 8.1.2 Internal Two-Clock Mode........................................................................................................................... 26 8.2 EXTERNAL MODE ..............................................................................................................................27 9 PIN DESCRIPTIONS.............................................................................................................................28 9.1 SHORT PIN DESCRIPTIONS ................................................................................................................28 9.2 DETAILED PIN DESCRIPTIONS ............................................................................................................30 10 FUNCTIONAL DESCRIPTION............................................................................................................44 10.1 POWER-SUPPLY CONSIDERATIONS ..................................................................................................44 10.2 CPU INTERFACE .............................................................................................................................44 10.3 SPI INTERFACE ...............................................................................................................................47 10.3.1 SPI Operation .......................................................................................................................................... 47 10.3.2 SPI Modes ............................................................................................................................................... 48 10.3.3 SPI Signals .............................................................................................................................................. 49 10.3.4 SPI Protocol............................................................................................................................................. 49 10.4 CLOCK STRUCTURE.........................................................................................................................52 10.5 RESET AND POWER-DOWN ..............................................................................................................53 10.6 TDM-OVER-PACKET BLOCK.............................................................................................................54 10.6.1 Packet Formats ....................................................................................................................................... 54 10.6.2 Typical Application................................................................................................................................... 63 10.6.3 Clock Recovery ....................................................................................................................................... 65 10.6.4 Timeslot Assigner (TSA).......................................................................................................................... 66 10.6.5 CAS Handler............................................................................................................................................ 67 10.6.6 AAL1 Payload Type Machine .................................................................................................................. 71 10.6.7 HDLC Payload Type Machine ................................................................................................................. 74 10.6.8 RAW Payload Type Machine .................................................................................................................. 75 10.6.9 SDRAM and SDRAM Controller.............................................................................................................. 79 10.6.10 Jitter Buffer Control (JBC) ..................................................................................................................... 80 10.6.11 Queue Manager..................................................................................................................................... 83 10.6.12 Ethernet MAC ........................................................................................................................................ 95 10.6.13 Packet Classifier.................................................................................................................................... 98 10.6.14 Packet Trailer Support......................................................................................................................... 101 10.6.15 Counters and Status Registers ........................................................................................................... 102 10.6.16 Connection Level Redundancy ........................................................................................................... 102 10.6.17 OAM Signaling..................................................................................................................................... 103 10.7 GLOBAL RESOURCES ....................................................................................................................104 10.8 PER-PORT RESOURCES ................................................................................................................104 10.9 DEVICE INTERRUPTS .....................................................................................................................104 2 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.9.1 TDMoP Interrupts .................................................................................................................................. 104 10.9.2 LIU, Framer and BERT Interrupts ......................................................................................................... 106 10.10 ELASTIC STORES AND FRAMER SYSTEM INTERFACE .....................................................................108 10.10.1 Elastic Store Initialization..................................................................................................................... 108 10.10.2 Minimum Delay Mode.......................................................................................................................... 109 10.10.3 Additional Elastic Store Information .................................................................................................... 109 10.11 FRAMERS ....................................................................................................................................111 10.11.1 T1 and E1 Framing Formats ............................................................................................................... 111 10.11.2 T1 Transmit Frame Synchronizer........................................................................................................ 115 10.11.3 Signaling.............................................................................................................................................. 115 10.11.4 T1 Datalink .......................................................................................................................................... 118 10.11.5 E1 Datalink .......................................................................................................................................... 120 10.11.6 Maintenance and Alarms..................................................................................................................... 121 10.11.7 E1 Automatic Alarm Generation.......................................................................................................... 123 10.11.8 Error Count Registers.......................................................................................................................... 124 10.11.9 DS0 Monitoring Function ..................................................................................................................... 125 10.11.10 Framer and Payload Loopbacks ....................................................................................................... 126 10.11.11 Per-Channel Loopback...................................................................................................................... 126 10.11.12 Per-Channel Idle Code Insertion ....................................................................................................... 126 10.11.13 Digital Milliwatt Code Generation ...................................................................................................... 127 10.11.14 In-Band Loop Code Generation and Detection (T1 Only) ................................................................. 127 10.11.15 G.706 Intermediate CRC-4 Recalculation (E1 Only)......................................................................... 128 10.11.16 SLC–96 Operation (T1 Only)............................................................................................................. 128 10.12 HDLC CONTROLLERS .................................................................................................................129 10.12.1 Receive HDLC Controller .................................................................................................................... 130 10.12.2 Transmit HDLC Controller ................................................................................................................... 132 10.13 LINE INTERFACE UNITS (LIU) .......................................................................................................134 10.13.1 LIU Operation ...................................................................................................................................... 135 10.13.2 LIU Transmitter.................................................................................................................................... 136 10.13.3 LIU Receiver........................................................................................................................................ 138 10.13.4 Jitter Attenuator ................................................................................................................................... 140 10.13.5 LIU Loopbacks..................................................................................................................................... 141 10.14 BIT ERROR RATE TEST FUNCTIONS (BERTS)...............................................................................144 10.14.1 BERT General Description .................................................................................................................. 144 10.14.2 BERT Features.................................................................................................................................... 144 10.14.3 BERT Configuration and Monitoring.................................................................................................... 144 10.14.4 BERT Receive Pattern Detection ........................................................................................................ 145 10.14.5 BERT Transmit Pattern Generation .................................................................................................... 147 10.15 LIU - FRAMER CONNECTIONS ......................................................................................................148 11 DEVICE REGISTERS .......................................................................................................................149 11.1 ADDRESSING .................................................................................................................................149 11.2 TOP-LEVEL MEMORY MAP .............................................................................................................150 11.3 GLOBAL REGISTERS ......................................................................................................................151 11.4 TDM-OVER-PACKET REGISTERS....................................................................................................159 11.4.1 Configuration and Status Registers....................................................................................................... 160 11.4.2 Bundle Configuration Tables ................................................................................................................. 174 11.4.3 Counters ................................................................................................................................................ 184 11.4.4 Status Tables......................................................................................................................................... 187 11.4.5 Timeslot Assignment Tables ................................................................................................................. 189 11.4.6 CPU Queues ......................................................................................................................................... 191 11.4.7 Transmit Buffers Pool ............................................................................................................................ 196 11.4.8 Jitter Buffer Control................................................................................................................................ 197 11.4.9 Transmit Software CAS ......................................................................................................................... 201 11.4.10 Receive Line CAS ............................................................................................................................... 203 11.4.11 Clock Recovery ................................................................................................................................... 204 11.4.12 Receive SW Conditioning Octet Select ............................................................................................... 205 3 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.13 Receive SW CAS ................................................................................................................................ 206 11.4.14 Interrupt Controller............................................................................................................................... 207 11.4.15 Packet Classifier.................................................................................................................................. 213 11.4.16 Ethernet MAC ...................................................................................................................................... 214 11.5 FRAMER, LIU AND BERT REGISTERS.............................................................................................224 11.5.1 Receive Framer Registers..................................................................................................................... 224 11.5.2 Transmit Formatter Registers................................................................................................................ 272 11.5.3 LIU Registers......................................................................................................................................... 303 11.5.4 BERT Registers..................................................................................................................................... 312 12 JTAG INFORMATION.......................................................................................................................320 13 DC ELECTRICAL CHARACTERISTICS ..........................................................................................325 14 AC TIMING CHARACTERISTICS.....................................................................................................326 14.1 LIU CHARACTERISTICS ..................................................................................................................326 14.2 LIU AND FRAMER TDM INTERFACE TIMING.....................................................................................327 14.3 CPU INTERFACE TIMING ................................................................................................................330 14.4 SPI INTERFACE TIMING..................................................................................................................331 14.5 SDRAM INTERFACE TIMING ..........................................................................................................332 14.6 TDM-OVER-PACKET TDM INTERFACE TIMING ................................................................................335 14.7 ETHERNET MII/RMII/SSMII INTERFACE TIMING ..............................................................................338 14.8 CLAD AND SYSTEM CLOCK TIMING ................................................................................................340 14.9 JTAG INTERFACE TIMING ..............................................................................................................341 15 APPLICATIONS ................................................................................................................................342 15.1 CONNECTING A SERIAL INTERFACE TRANSCEIVER ..........................................................................342 15.2 CONNECTING AN ETHERNET PHY OR MAC ....................................................................................343 15.3 IMPLEMENTING CLOCK RECOVERY IN HIGH SPEED APPLICATIONS ..................................................345 15.4 CONNECTING A MOTOROLA MPC860 PROCESSOR ........................................................................345 15.4.1 Connecting the Bus Signals .................................................................................................................. 345 15.4.2 Connecting the H_READY_N Signal..................................................................................................... 348 15.5 WORKING IN SPI MODE .................................................................................................................349 15.6 CONNECTING SDRAM DEVICES ....................................................................................................349 16 PIN ASSIGNMENT............................................................................................................................350 16.1 BOARD DESIGN FOR MULTIPLE DS34T10X DEVICES ......................................................................350 16.2 DS34T101 PIN ASSIGNMENT ........................................................................................................361 16.3 DS34T102 PIN ASSIGNMENT ........................................................................................................362 16.4 DS34T104 PIN ASSIGNMENT ........................................................................................................363 16.5 DS34T108 PIN ASSIGNMENT ........................................................................................................364 17 PACKAGE INFORMATION ..............................................................................................................365 18 THERMAL INFORMATION...............................................................................................................365 19 DATA SHEET REVISION HISTORY.................................................................................................366 4 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 List of Figures Figure 5-1. TDMoP in a Metropolitan Packet Switched Network .............................................................................. 16 Figure 5-2. TDMoP in Cellular Backhaul ................................................................................................................... 17 Figure 6-1. Top-Level Block Diagram ........................................................................................................................ 18 Figure 6-2. TDM Cross-Connection Block Diagram .................................................................................................. 19 Figure 8-1. Internal Mode Block Diagram................................................................................................................. 25 Figure 8-2. Internal One-Clock Mode ....................................................................................................................... 26 Figure 8-3. Internal Two Clock Mode (Framed)........................................................................................................ 27 Figure 8-4. Internal Two Clock Mode (Unframed) .................................................................................................... 27 Figure 10-1. CPU Interface Functional Diagram ...................................................................................................... 44 Figure 10-2. Write Access, 32-Bit Bus...................................................................................................................... 45 Figure 10-3. Read Access, 32-Bit Bus...................................................................................................................... 46 Figure 10-4. Read/Write Access, 16-Bit Bus ............................................................................................................ 46 Figure 10-5. Write Access to the SDRAM, 16-Bit Bus.............................................................................................. 47 Figure 10-6. Read Access to the SDRAM, 16-Bit Bus ............................................................................................. 47 Figure 10-7. SPI Interface with One Slave ............................................................................................................... 48 Figure 10-8. SPI Interface Timing, SPI_CP=0.......................................................................................................... 48 Figure 10-9. SPI Interface Timing, SPI_CP=1.......................................................................................................... 48 Figure 10-10. TDM-over-Packet Encapsulation Formats ......................................................................................... 55 Figure 10-11. Single VLAN Tag Format ................................................................................................................... 56 Figure 10-12. Stacked VLAN Tag Format ................................................................................................................ 56 Figure 10-13. UDP/IPv4 Header Format .................................................................................................................. 56 Figure 10-14. UDP/IPv6 Header Format .................................................................................................................. 57 Figure 10-15. MPLS Header Format ........................................................................................................................ 58 Figure 10-16. MEF Header Format........................................................................................................................... 58 Figure 10-17. L2TPv3/IPv4 Header Format ............................................................................................................. 59 Figure 10-18. L2TPv3/IPv6 Header Format ............................................................................................................. 60 Figure 10-19. Control Word Format.......................................................................................................................... 60 Figure 10-20. RTP Header Format ........................................................................................................................... 61 Figure 10-21. VCCV OAM Packet Format................................................................................................................ 62 Figure 10-22. UDP/IP-Specific OAM Packet Format................................................................................................ 63 Figure 10-23. TDM Connectivity over a PSN ........................................................................................................... 64 Figure 10-24. TDMoP Packet Format in a Typical Application................................................................................. 64 Figure 10-25. TDMoMPLS Packet Format in a Typical Application ......................................................................... 64 Figure 10-26. CAS Transmitted in the TDM-to-Ethernet Direction........................................................................... 67 Figure 10-27. Transmit SW CAS Table Format for E1 and T1-ESF Interfaces........................................................ 68 Figure 10-28. Transmit SW CAS Table Format for T1-SF Interfaces ...................................................................... 68 Figure 10-29. E1 MF Interface RSIG Timing Diagram (two_clocks=1) .................................................................... 68 Figure 10-30. T1 ESF Interface RSIG Timing Diagram (two_clocks=0) .................................................................. 69 Figure 10-31. T1 SF Interface RSIG (two_clocks=0) – Timing Diagram.................................................................. 69 Figure 10-32. CAS Transmitted in the Ethernet-to-TDM Direction........................................................................... 70 Figure 10-33. E1 MF Interface TSIG Timing Diagram.............................................................................................. 71 Figure 10-34. T1 ESF Interface TSIG Timing Diagram ............................................................................................ 71 Figure 10-35. T1 SF Interface TSIG Timing Diagram............................................................................................... 71 Figure 10-36. AAL1 Mapping, General..................................................................................................................... 72 Figure 10-37. AAL1 Mapping, Structured-Without-CAS Bundles............................................................................. 73 Figure 10-38. HDLC Mapping................................................................................................................................... 74 Figure 10-39. SAToP Unstructured Packet Mapping ............................................................................................... 75 Figure 10-40. CESoPSN Structured-Without-CAS Mapping.................................................................................... 76 Figure 10-41. CESoPSN Structured-With-CAS Mapping (No Frag, E1 Example)................................................... 76 Figure 10-42. CESoPSN Structured-With-CAS Mapping (No Frag, T1-ESF Example)........................................... 77 Figure 10-43. CESoPSN Structured-With-CAS Mapping (No Frag, T1-SF Example) ............................................. 77 Figure 10-44. CESoPSN Structured-With-CAS Mapping (Frag, E1 Example) ........................................................ 78 Figure 10-45. SDRAM Access through the SDRAM Controller................................................................................ 80 Figure 10-46. Loop Timing in TDM Networks........................................................................................................... 80 Figure 10-47. Timing in TDM-over-Packet ............................................................................................................... 81 5 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-48. Jitter Buffer Parameters ..................................................................................................................... 82 Figure 10-49. TDM-over-Packet Data Flow Diagram ............................................................................................... 84 Figure 10-50. Free Buffer Pool Operation ................................................................................................................ 88 Figure 10-51. TDM-to-Ethernet Flow ........................................................................................................................ 89 Figure 10-52. Ethernet-to-TDM Flow ........................................................................................................................ 90 Figure 10-53. TDM-to-TDM Flow.............................................................................................................................. 91 Figure 10-54. TDM-to-CPU Flow .............................................................................................................................. 92 Figure 10-55. CPU-to-TDM Flow .............................................................................................................................. 93 Figure 10-56. CPU-to-Ethernet Flow ........................................................................................................................ 94 Figure 10-57. Ethernet-to-CPU Flow ........................................................................................................................ 95 Figure 10-58. Ethernet MAC..................................................................................................................................... 96 Figure 10-59. Format of TDMoIP Packet with VLAN Tag......................................................................................... 99 Figure 10-60. Format of TDMoMPLS Packet with VLAN Tag .................................................................................. 99 Figure 10-61. Format of TDMoMEF Packet with VLAN Tag .................................................................................... 99 Figure 10-62. Structure of Packets with Trailer ...................................................................................................... 102 Figure 10-63. Interrupt Pin Logic ............................................................................................................................ 105 Figure 10-64. LIU, Framer and BERT Interrupt Information Flow Diagram............................................................ 107 Figure 10-65. CRC-4 Recalculate Method ............................................................................................................. 128 Figure 10-66. Receive HDLC Servicing Example................................................................................................... 131 Figure 10-67. Transmit HDLC Servicing Example.................................................................................................. 133 Figure 10-68. LIU External Components, Longitudinal Protection ......................................................................... 134 Figure 10-69. T1/J1 Transmit Pulse Templates ..................................................................................................... 137 Figure 10-70. E1 Transmit Pulse Templates .......................................................................................................... 137 Figure 10-71. Typical Rx Monitor Application......................................................................................................... 138 Figure 10-72. Jitter Tolerance, T1 Mode ................................................................................................................ 139 Figure 10-73. Jitter Tolerance, E1 and 2048kHz Modes ........................................................................................ 139 Figure 10-74. Jitter Attenuation .............................................................................................................................. 141 Figure 10-75. Analog Loopback.............................................................................................................................. 141 Figure 10-76. Local Loopback ................................................................................................................................ 142 Figure 10-77. Remote Loopback ............................................................................................................................ 142 Figure 10-78. Dual Loopback ................................................................................................................................. 143 Figure 10-79. PRBS Synchronization State Diagram............................................................................................. 146 Figure 10-80. Repetitive Pattern Synchronization State Diagram.......................................................................... 147 Figure 10-81. LIU + Framer Connections ............................................................................................................... 148 Figure 11-1. 16-Bit Addressing ............................................................................................................................... 149 Figure 11-2. 32-Bit Addressing ............................................................................................................................... 149 Figure 11-3. Partial Data Elements (shorter than 16 bits) ...................................................................................... 149 Figure 11-4. Partial Data Elements (16 to 32 bits long).......................................................................................... 150 Figure 12-1. JTAG Block Diagram.......................................................................................................................... 320 Figure 12-2. JTAG TAP Controller State Machine ................................................................................................. 321 Figure 14-1. Receive Framer Timing Using the RCLKF Pin................................................................................... 327 Figure 14-2. Receive Framer Timing Using the RCLK Pin..................................................................................... 328 Figure 14-3. Receive Framer Timing, Elastic Store Enabled ................................................................................. 328 Figure 14-4. Receive Framer Timing, Line Side with LIU Not Used....................................................................... 328 Figure 14-5. Transmit Formatter Timing Using the TCLKF Pin.............................................................................. 329 Figure 14-6. Transmit Formatter Timing, Elastic Store Enabled ............................................................................ 330 Figure 14-7. Transmit Formatter Timing, Line Side with LIU Not Used.................................................................. 330 Figure 14-8. RST_SYS_N Timing........................................................................................................................... 330 Figure 14-9. CPU Interface Write Cycle Timing ..................................................................................................... 331 Figure 14-10. CPU Interface Read Cycle Timing ................................................................................................... 331 Figure 14-11. SPI interface Timing (SPI_CP = 0)................................................................................................... 332 Figure 14-12. SPI interface Timing (SPI_CP = 1)................................................................................................... 332 Figure 14-13. SDRAM Interface Write Cycle Timing .............................................................................................. 333 Figure 14-14. SDRAM Interface Read Cycle Timing.............................................................................................. 334 Figure 14-15. TDMoP TDM Timing, One-Clock Mode (Two_clocks=0, Tx_sample=1) ......................................... 335 Figure 14-16. TDMoP TDM Timing, One Clock Mode (Two_clocks=0, Tx_sample=0) ......................................... 336 Figure 14-17. TDMoP TDM Timing, Two Clock Mode (Two_clocks=1, Tx_sample=1, Rx_sample=1) ................. 336 Figure 14-18. TDMoP TDM Timing, Two Clocks Mode (Two_clocks=1, Tx_sample=0, Rx_sample=0) ............... 336 6 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 14-19. TDMoP TDM Timing, Two Clocks Mode (Two_clocks=1, Tx_sample=0, Rx_sample=1) ............... 337 Figure 14-20. TDMoP TDM Timing, Two Clocks Mode (Two_clocks=1, Tx_sample=1, Rx_sample=0) ............... 337 Figure 14-21. MII Management Interface Timing ................................................................................................... 338 Figure 14-22. MII Interface Output Signal Timing................................................................................................... 338 Figure 14-23. MII Interface Input Signal Timing ..................................................................................................... 339 Figure 14-24. RMII Interface Output Signal Timing ................................................................................................ 339 Figure 14-25. RMII Interface Input Signal Timing................................................................................................... 339 Figure 14-26. SSMII Interface Output Signal Timing.............................................................................................. 340 Figure 14-27. SSMII Interface Input Signal Timing................................................................................................. 340 Figure 14-28. JTAG Interface Timing Diagram....................................................................................................... 341 Figure 15-1. Connecting Port 1 to a Serial Transceiver ......................................................................................... 342 Figure 15-2. Connecting the Ethernet Port to a PHY in MII Mode ......................................................................... 343 Figure 15-3. Connecting the Ethernet Port to a MAC in MII Mode......................................................................... 343 Figure 15-4. Connecting the Ethernet Port to a PHY in RMII Mode....................................................................... 343 Figure 15-5. Connecting the Ethernet Port to a MAC in RMII Mode ...................................................................... 344 Figure 15-6. Connecting the Ethernet Port to a PHY in SSMII Mode..................................................................... 344 Figure 15-7. Connecting the Ethernet Port to a MAC in SSMII Mode .................................................................... 344 Figure 15-8. External Clock Multiplier for High Speed Applications ....................................................................... 345 Figure 15-9. 32-Bit CPU Bus Connections ............................................................................................................. 346 Figure 15-10. 16-Bit CPU Bus Connections ........................................................................................................... 347 Figure 15-11. Connecting the H_READY_N Signal to the MPC860 TA Pin ......................................................... 348 Figure 15-12. Internal CPLD Logic to Synchronize H_READY_N to the MPC860 Clock ...................................... 348 Figure 16-1. DS34T101 Pin Assignment (TE-CSBGA Package) ........................................................................... 361 Figure 16-2. DS34T102 Pin Assignment (TE-CSBGA Package) ........................................................................... 362 Figure 16-3. DS34T104 Pin Assignment (TE-CSBGA Package) ........................................................................... 363 Figure 16-4. DS34T108 Pin Assignment (HSBGA Package)................................................................................. 364 List of Tables Table 3-1. Applicable Standards............................................................................................................................... 13 Table 9-1. Short Pin Descriptions ............................................................................................................................. 28 Table 9-2. Internal E1/T1 LIU Line Interface Pins .................................................................................................... 30 Table 9-3. External E1/T1 LIU Line Interface Pins ................................................................................................... 31 Table 9-4. Framer TDM Interface Pins ..................................................................................................................... 32 Table 9-5. TDM-over-Packet Engine TDM Interface Pins ........................................................................................ 34 Table 9-6. SDRAM Interface Pins............................................................................................................................. 36 Table 9-7. Ethernet PHY Interface Pins (MII/RMII/SSMII)........................................................................................ 37 Table 9-8. Global Clock Pins .................................................................................................................................... 39 Table 9-9. CPU Interface Pins .................................................................................................................................. 40 Table 9-10. JTAG Interface Pins .............................................................................................................................. 42 Table 9-11. Reset and Factory Test Pins ................................................................................................................. 42 Table 9-12. Power and Ground Pins ........................................................................................................................ 43 Table 10-1. CPU Data Bus Widths ........................................................................................................................... 45 Table 10-2. SPI Write Command Sequence ............................................................................................................ 50 Table 10-3. SPI_ Read Command Sequence .......................................................................................................... 51 Table 10-4. SPI Status Command Sequence........................................................................................................... 52 Table 10-5. Reset Functions..................................................................................................................................... 53 Table 10-6. Ethernet Frame Fields ........................................................................................................................... 55 Table 10-7. IPv4 Header Fields (UDP) ..................................................................................................................... 57 Table 10-8. UDP Header Fields................................................................................................................................ 57 Table 10-9. IPv6 Header Fields (UDP) ..................................................................................................................... 58 Table 10-10. MPLS Header Fields ........................................................................................................................... 58 Table 10-11. MEF Header Fields.............................................................................................................................. 58 Table 10-12. IPv4 Header Fields (L2TPv3) .............................................................................................................. 59 Table 10-13. L2TPv3 Header Fields......................................................................................................................... 59 7 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-14. IPv6 Header Fields (L2TPv3) .............................................................................................................. 60 Table 10-15. Control Word Fields............................................................................................................................. 60 Table 10-16. RTP Header Fields .............................................................................................................................. 61 Table 10-17. VCCV OAM Payload Fields................................................................................................................. 62 Table 10-18. UDP/IP-Specific OAM Payload Fields................................................................................................. 63 Table 10-19. CAS – Supported Interface Connections for AAL1 and CESoPSN .................................................... 68 Table 10-20. CAS Handler Selector Decision Logic................................................................................................. 69 Table 10-21. AAL1 Header Fields ............................................................................................................................ 72 Table 10-22. SDRAM Access Resolution ................................................................................................................. 79 Table 10-23. SDRAM CAS Latency vs. Frequency.................................................................................................. 79 Table 10-24. Buffer Descriptor First Dword Fields (Used for all Paths) ................................................................... 85 Table 10-25. Buffer Descriptor Second Dword Fields (TDM  ETH and CPU  ETH).......................................... 86 Table 10-26. Buffer Descriptor Second Dword Fields (ETH  CPU) ...................................................................... 86 Table 10-27. Buffer Descriptor Third Dword Fields (ETH  CPU) .......................................................................... 87 Table 10-28. Start of an 802.3 Pause Packet........................................................................................................... 97 Table 10-29. Handling IPv4 and IPv6 Packets ......................................................................................................... 98 Table 10-30. TDMoIP Port Number Comparison for TDMoIP Packet Classification ............................................. 100 Table 10-31. Bundle Identifier Location and Width................................................................................................. 100 Table 10-32. Registers Related to the Elastic Store............................................................................................... 108 Table 10-33. Elastic Store Delay After Initialization................................................................................................ 109 Table 10-34. T1-SF Framing Pattern and Signaling Bits........................................................................................ 111 Table 10-35. T1-ESF Framing Pattern and Signaling Bits ..................................................................................... 112 Table 10-36. SLC-96 Framing Pattern and Signaling Bits ..................................................................................... 112 Table 10-37. E1 CRC-4 Multiframe Framing Pattern ............................................................................................. 114 Table 10-38. Registers Related to Setting Up the Framer and Formatter.............................................................. 114 Table 10-39. Registers Related to the Transmit Synchronizer............................................................................... 115 Table 10-40. Registers Related to Signaling .......................................................................................................... 116 Table 10-41. Timeslot Number Schemes ............................................................................................................... 116 Table 10-42. Registers Related to T1 Transmit BOC............................................................................................. 118 Table 10-43. Registers Related to T1 Receive BOC.............................................................................................. 119 Table 10-44. Registers Related to Legacy T1 Transmit FDL ................................................................................. 119 Table 10-45. Registers Related to Legacy T1 Receive FDL .................................................................................. 119 Table 10-46. Registers Related to Maintenance and Alarms................................................................................. 121 Table 10-47. T1 Alarm Criteria ............................................................................................................................... 122 Table 10-48. E1 Alarm Criteria ............................................................................................................................... 123 Table 10-49. E1 LOF Sync and Resync Criteria .................................................................................................... 123 Table 10-50. T1 Line Code Violation Counting Options ......................................................................................... 124 Table 10-51. E1 Line Code Violation Counting Options ......................................................................................... 124 Table 10-52. T1 Path Code Violation Counting Options......................................................................................... 125 Table 10-53. T1 Frames Out Of Sync Counting Options........................................................................................ 125 Table 10-54. Registers Related to DS0 Monitoring ................................................................................................ 125 Table 10-55. Registers Related to Framer and Payload Loopbacks...................................................................... 126 Table 10-56. Registers Related to T1 In-Band Loop Code Generator ................................................................... 127 Table 10-57. Registers Related to T1 In-Band Loop Code Detection .................................................................... 128 Table 10-58. Registers Related to SLC96.............................................................................................................. 128 Table 10-59. LIU External Components ................................................................................................................. 134 Table 10-60. Transformer Specifications................................................................................................................ 135 Table 10-61. Pseudorandom Pattern Generation................................................................................................... 145 Table 10-62. Repetitive Pattern Generation ........................................................................................................... 145 Table 11-1. Top-Level Memory Map....................................................................................................................... 150 Table 11-2. Global Registers .................................................................................................................................. 151 Table 11-3. TDMoP Memory Map .......................................................................................................................... 159 Table 11-4. TDMoP Configuration Registers.......................................................................................................... 160 Table 11-5. TDMoP Status Registers ..................................................................................................................... 160 Table 11-6. Counters Types ................................................................................................................................... 184 Table 11-7. CPU Queues ....................................................................................................................................... 191 Table 11-8. Jitter Buffer Status Table ..................................................................................................................... 197 Table 11-9. Bundle Timeslot Table......................................................................................................................... 197 8 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 11-10. Transmit Software CAS Registers..................................................................................................... 201 Table 11-11. Receive Line CAS Registers ............................................................................................................. 203 Table 11-12. Clock Recovery Registers ................................................................................................................. 204 Table 11-13. Receive SW Conditioning Octet Select Registers............................................................................. 205 Table 11-14. Receive SW CAS Registers .............................................................................................................. 206 Table 11-15. Interrupt Controller Registers ............................................................................................................ 207 Table 11-16. Packet Classifier OAM Identification Registers................................................................................. 213 Table 11-17. Ethernet MAC Registers.................................................................................................................... 214 Table 11-18. Ethernet MAC Counters .................................................................................................................... 219 Table 11-19. Framer, LIU, BERT Memory Map...................................................................................................... 224 Table 11-20. Receive Framer Registers................................................................................................................. 224 Table 11-21. Transmit Formatter Registers............................................................................................................ 272 Table 11-22. LIU Registers..................................................................................................................................... 303 Table 11-23. BERT Registers................................................................................................................................. 312 Table 12-1. JTAG Instruction Codes ...................................................................................................................... 323 Table 12-2. JTAG ID Code ..................................................................................................................................... 323 Table 13-1. Recommended DC Operating Conditions ........................................................................................... 325 Table 13-2. DC Electrical Characteristics............................................................................................................... 325 Table 14-1. Input Pin Transition Time Requirements ............................................................................................. 326 Table 14-2. Transmitter Characteristics ................................................................................................................. 326 Table 14-3. Receiver AC Characteristics ............................................................................................................... 327 Table 14-4. Transmit AC Characteristics................................................................................................................ 329 Table 14-5. CPU Interface AC characteristics........................................................................................................ 330 Table 14-6. SPI Interface AC Characteristics......................................................................................................... 331 Table 14-7. SDRAM Interface AC Characteristics.................................................................................................. 332 Table 14-8. TDMoP TDM Interface AC Characteristics.......................................................................................... 335 Table 14-9. TDMoP TDM Clock AC Characteristics............................................................................................... 335 Table 14-10. MII Management Interface AC Characteristics ................................................................................. 338 Table 14-11. MII Interface AC Characteristics........................................................................................................ 338 Table 14-12. MII Clock Timing................................................................................................................................ 338 Table 14-13. RMII Interface AC Characteristics ..................................................................................................... 339 Table 14-14. RMII Clock Timing ............................................................................................................................. 339 Table 14-15. SSMII Interface AC Characteristics................................................................................................... 339 Table 14-16. SSMII Clock Timing ........................................................................................................................... 339 Table 14-17. CLAD1 and CLAD2 Input Clock Specifications................................................................................. 340 Table 14-18. JTAG Interface Timing....................................................................................................................... 341 Table 15-1. SPI Mode I/O Connections.................................................................................................................. 349 Table 15-2. List of Suggested SDRAM Devices..................................................................................................... 349 Table 16-1. Common Board Design Connections .................................................................................................. 350 9 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 1 Introduction The DS34T101/2/4/8 family of products combine E1/T1 LIUs and framers and TDM-over-packet circuit emulation circuitry into one die. Dedicated payload-type engines are included for TDMoIP (AAL1), CESoPSN, SAToP, and HDLC. Products in the DS34T10x family provide the mapping/demapping capability to enable the transport of TDM data (Nx64kbps, E1, T1, J1, E3, T3, STS-1) or other constant bit-rate data over IP, MPLS or Ethernet networks. These products enable service providers to migrate to next generation networks while continuing to provide legacy voice, data and leased-line services. They allow enterprises to transport voice and video over the same IP/Ethernet network that is currently used only for LAN traffic, thereby minimizing network maintenance and operating costs. Packet-switched networks, such as IP networks, were not designed to transport TDM data and have no inherent clock distribution mechanism. Therefore, when transporting TDM data over packet switched networks, the TDM demapping function needs to accurately reconstruct the TDM service clock(s). The DS34T10x devices perform this important clock recovery task, creating recovered clocks with jitter and wander levels that conform to ITU-T G.823/824 and G.8261, even for networks which introduce significant packet delay variation and packet loss. The circuit emulation technology in the DS34T10x products that makes this possible is called TDM-over-Packet (TDMoP) and complements VoIP in those cases where VoIP is not applicable or where VoIP price/performance is not sufficient. Most importantly, TDMoP technology provides higher voice quality with lower latency than VoIP. Unlike VoIP, TDMoP can support all applications that run over E1/T1 circuits, not just voice. TDMoP can also provide traditional leased-line services over IP and is transparent to protocols and signaling. Because TDMoP provides an evolutionary, as opposed to revolutionary approach, investment protection is maximized. 2 Acronyms and Glossary Acronyms AAL1 AAL2 ATM BGA BW CAS CBR CCS CE CESoP CESoPSN CLAD CPE CSMA CSMA/CD DS0 DS1 DS3 HDLC IEEE IETF IP JBC IWF LAN ATM Adaptation Layer Type 1 ATM Adaptation Layer Type 2 Asynchronous Transfer Mode Ball Grid Array Bandwidth Channel Associated Signaling Constant Bit-Rate Common channel signaling Customer Edge Circuit Emulation Service over Packet Circuit Emulation Services over Packet Switched Network Clock Rate Adapter Customer Premises Equipment Carrier Sense Multiple Access Carrier Sense Multiple Access with Collision Detection Digital Signal Level 0 Digital Signal Level 1 Digital Signal Level 3 High-Level data Link Control Institute of Electrical and Electronics Engineers Internet Engineering Task Force Internet Protocol Jitter Buffer Control Interworking Function Local Area Network 10 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 LIU LOF LOS MAC MEF MFA MII MPLS OC-3 OCXO OFE OSI OSI-RM PDU PDV PE PRBS PSN PSTN PWE3 QoS RMII Rx or RX SAR SAToP SDH SMII SN SONET SS7 SSMII STM-1 TDM TDMoIP TDMoP TSA Tx or TX UDP VoIP VPLS WAN Line Interface Unit Loss of Frame (i.e. loss of frame alignment) Loss of Signal Media Access Control Metro Ethernet Forum MPLS / Frame Relay Alliance (Now called IP/MPLS Forum) Medium Independent Interface MULTI PROTOCOL LABEL SWITCHING Optical Carrier Level 3 Oven Controlled Crystal Oscillator Optical Front End Open Systems Interconnection Open Systems Interconnection—Reference Model Protocol Data Unit Packet Delay Variation Provider Edge Pseudo-Random Bit Sequence Packet Switched Network Public Switched Telephone Network Pseudo-Wire Emulation Edge-to-Edge Quality of Service Reduced Medium Independent Interface Receive Segmentation and Reassembly Structure-Agnostic TDM over Packet Synchronous Digital Hierarchy Serial Media Independent Interface Sequence Number Synchronous Optical Network Signaling System 7 Source Synchronous Serial Media Independent Interface Synchronous Transport Module Level 1 Time Division Multiplexing TDM over Internet Protocol TDM over Packet Timeslot Assigner Transmit User Datagram Protocol Voice over IP Virtual Private LAN Services Wide Area Network 11 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Glossary BERT – Bit Error Rate Tester, a function used to test the integrity of a data link. A two-block set consisting of a Tx BERT that generates pseudo-random or repetitive patterns and optionally inserts bit errors into the sequence, and an Rx BERT that synchronizes to an incoming pattern and count bit errors. bundle – a virtual path configured at two endpoint TDMoP gateways to carry TDM or constant bit-rate data over a PSN. CLAD – Clock Rate Adapter, an analog PLL that creates an output clock signal that is phase/frequency locked to an input clock signal of a different frequency. A CLAD is said to “convert” one frequency to another or “adapt” (change) a clock’s rate to be a frequency that is useful to some other block on the chip. dword – a 32-bit (4-byte) unit of information (also known as a doubleword) framer – (1) a digital block that finds E1/T1 frame alignment in an incoming serial data stream and provides various types of status and alarm information about the signaling including loss-of-signal, loss-of-frame, frame bit errors, etc. Also known as a receive framer. (2) The word framer is also used generically to stand for the bidirectional block composed of a receive framer and a transmit formatter. formatter – a digital block that generates a serial data stream composed of successive E1/T1 frames (and optionally multiframes) filled with TDM data provided by the system. Also known as a transmit formatter. transceiver – a transmitter/receiver, which for E1/T1 typically means a block containing a receive framer, a transmit formatter, an LIU receiver and an LIU transmitter. E.g., DS34T108 has eight built-in E1/T1 transceivers. 12 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 3 Applicable Standards Table 3-1. Applicable Standards SPECIFICATION ANSI T1.102 T1.107 T1.231.02 T1.403 AT&T TR54016 TR62411 ETSI ETS 300 011 ETS 300 166 ETS 300 233 SPECIFICATION TITLE Digital Hierarchy—Electrical Interfaces, 1993 Digital Hierarchy—Formats Specification, 1995 Digital Hierarchy—Layer 1 In-Service Digital Transmission Performance Monitoring, 2003 Network and Customer Installation Interfaces—DS1 Electrical Interface, 1999 Requirements for Interfacing Digital Terminal Equipment to Services Employing the Extended Superframe Format (9/1989) ACCUNET® T1.5 Service Description and Interface Specification (12/1990) Integrated Services Digital Network (ISDN); Primary rate User Network Interface (UNI); Part 1: Layer 1 Specification V1.2.2 (2000-05) Transmission and Multiplexing (TM); Physical and Electrical Characteristics of Hierarchical Digital Interfaces for Equipment Using the 2 048 kbit/s - Based Plesiochronous or Synchronous Digital Hierarchies V1.2.1 (2001-09) Integrated Services Digital Network (ISDN);Access Digital Section for ISDN Primary Rate, ed.1 (1994-05) IEEE IEEE 802.3 IEEE 1149.1 IETF RFC 4553 RFC 4618 RFC 5086 RFC 5087 ITU-T G.703 G.704 G.706 G.732 G.736 G.775 G.823 G.824 G.8261/Y.1361 I.363.1 I.363.2 I.366.2 I.431 I.432 O.151 Carrier Sense Multiple Access with Collision Detection (CSMA/CD) Access Method and Physical Layer Specifications (2005) Standard Test Access Port and Boundary-Scan Architecture, 1990 Structure-Agnostic Time Division Multiplexing (TDM) over Packet (SAToP) (06/2006) Encapsulation Methods for Transport of PPP/High-Level Data Link Control (HDLC) over MPLS Networks (09/2006) Structure-Aware Time Division Multiplexed (TDM) Circuit Emulation Service over Packet Switched Network (CESoPSN) (12/2007) Time Division Multiplexing over IP (TDMoIP) (12/2007) Physical/Electrical Characteristics of Hierarchical Digital Interfaces (11/2001) Synchronous Frame Structures Used at 1544, 6312, 2048, 8448 and 44736 kbit/s Hierarchical Levels (10/1998) Frame Alignment and Cyclic Redundancy Check (CRC) Procedures Relating to Basic Frame Structures Defined in Recommendation G.704 (1991) Characteristics of Primary PCM Multiplex Equipment Operating at 2048Kbit/s (11/1988) Characteristics of Synchronous Digital Multiplex Equipment Operating at 2048Kbit/s (03/1993) Loss of Signal (LOS) and Alarm Indication Signal (AIS) and Remote Defect Indication (RD) Defect Detection and Clearance Criteria for PDH Signals (10/1998) The Control of Jitter and Wander within Digital Networks which are Based on the 2048kbps Hierarchy (03/2000) The Control of Jitter and Wander within Digital Networks which are Based on the 1544kbps Hierarchy (03/2000) Timing and Synchronization Aspects in Packet Networks (05/2006) B-ISDN ATM Adaptation Layer Specification: Type 1 AAL (08/1996) B-ISDN ATM Adaptation Layer Specification: Type 2 AAL (11/2000) AAL Type 2 Service Specific Convergence Sublayer for Narrow-Band Services (11/2000) Primary Rate User-Network Interface - Layer 1 Specification (03/1993) B-ISDN User-Network Interface – Physical Layer Specification (03/1993) Error Performance Measuring Equipment Operating at the Primary Rate and Above (1992) 13 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SPECIFICATION O.161 Y.1413 Y.1414 Y.1452 Y.1453 MEF MEF 8 MFA MFA 4.0 MFA 5.0.0 MFA 8.0.0 SPECIFICATION TITLE In-Service Code Violation Monitors for Digital Systems (1993) TDM-MPLS Network Interworking – User Plane Interworking (03/2004) Voice Services–MPLS Network Interworking (07/2004) Voice Trunking over IP Networks (03/2006) TDM-IP Interworking – User Plane Networking (03/2006) Implementation Agreement for the Emulation of PDH Circuits over Metro Ethernet Networks (10/2004) TDM Transport over MPLS Using AAL1 (06/2003) I.366.2 Voice Trunking Format over MPLS Implementation Agreement (08/2003) Emulation of TDM Circuits over MPLS Using Raw Encapsulation – Implementation Agreement (11/2004) 4 Detailed Description The DS34T108 is an 8-port device integrating a sophisticated multiport TDM-over-Packet (TDMoP) core and eight full-featured, independent, software-configurable E1/T1 transceivers. The DS34T104, DS34T102 and DS34T101 have the same functionality as the DS34T108, except they have only 4, 2 or 1 ports and transceivers, respectively. Each E1/T1 transceiver is composed of a line interface unit (LIU), a framer, an elastic store, an HDLC controller and a bit error rate tester (BERT) block. These transceivers connect seamlessly to the TDMoP block to form a complete solution for mapping and demapping E1/T1 to and from IP, MPLS or Ethernet networks. A MAC built into the TDMoP block supports connectivity to a single 10/100 Mbps PHY over an MII, RMII or SSMII interface. The DS34T10x devices are controlled through a 16 or 32-bit parallel bus interface or a high-speed SPI serial interface. TDM-over-Packet Core The TDM-over-Packet (TDMoP) core is the enabling block for circuit emulation and other network applications. It performs transparent transport of legacy TDM traffic over Packet Switched-Networks (PSN). The TDMoP core implements payload mapping methods such as AAL1 for circuit emulation, HDLC method, structure-agnostic SAToP method, and the structure-aware CESoPSN method. The AAL1 payload-type machine maps and demaps E1, T1, E3, T3, STS-1 and other serial data flows into and out of IP, MPLS or Ethernet packets, according to the methods described in ITU-T Y.1413, Y.1453, MEF 8, MFA 4.1 and IETF RFC 5087 (TDMoIP). It supports E1/T1 structured mode with or without CAS, using a timeslot size of 8 bits, or unstructured mode (carrying serial interfaces, unframed E1/T1 or E3/T3/STS-1 traffic). The HDLC payload-type machine maps and demaps HDLC dataflows into and out of IP/MPLS packets according to IETF RFC 4618 (excluding clause 5.3 – PPP) and IETF RFC 5087 (TDMoIP). It supports 2-, 7- and 8-bit timeslot resolution (i.e. 16, 56, and 64 kbps respectively), as well as N × 64 kbps bundles (n=1 to 32). Supported applications of this machine include trunking of HDLC-based traffic (such as Frame Relay) implementing Dynamic Bandwidth Allocation over IP/MPLS networks and HDLC-based signaling interpretation (such as ISDN D-channel signaling termination – BRI or PRI, V5.1/2, or GR-303). The SAToP payload-type machine maps and demaps unframed E1, T1, E3 or T3 data flows into and out of IP, MPLS or Ethernet packets according to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 4553. It supports E1/T1/E3/T3 with no regard for the TDM structure. If TDM structure exists it is ignored, allowing this to be the simplest mapping/demapping method. The size of the payload is programmable for different services. This emulation suits applications where the provider edges have no need to interpret TDM data or to participate in the TDM signaling. The PSN network must have almost no packet loss and very low packet delay variation (PDV) for this method. The CESoPSN payload-type machine maps and demaps structured E1, T1, E3 or T3 data flows into and out of IP, MPLS or Ethernet packets with static assignment of timeslots inside a bundle according to ITU-T Y.1413, Y.1453, 14 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 MEF 8, MFA 8.0.0 and the IETF RFC 5086 (CESoPSN). It supports E1/T1/E3/T3 while taking into account the TDM structure. The level of structure must be chosen for proper payload conversion such as the framing type (i.e. frame or multiframe). This method is less sensitive to PSN impairments but lost packets could still cause service interruption. E1/T1 Transceivers The LIU in each transceiver is composed of a transmitter, a receiver and a jitter attenuator. Internal software configurable impedance matching is provided for both transmit and receive paths, reducing external component count. The transmit interface is responsible for generating the necessary waveshapes for driving the E1/T1 twisted pair or coax cable and providing the correct source impedance depending on the type of cable used. T1 waveform generation includes DSX–1 line build-outs as well as CSU line build-outs of 0dB, -7.5dB, -15dB, and -22.5dB. E1 waveform generation includes G.703 waveshapes for both 75 coax and 120 twisted cables. The receive interface provides the correct line termination and recovers clock and data from the incoming line. The receive sensitivity adjusts automatically to the incoming signal level and can be programmed for 0dB to -43dB or 0dB to -12dB for E1 applications and 0dB to -15dB or 0dB to -36dB for T1 applications. The jitter attenuator removes phase jitter from the transmitted or received signal. The crystal-less jitter attenuator can be placed in either the transmit or receive path and requires only a T1- or E1-rate reference clock, which is typically synthesized by the CLAD1 block from a common reference frequency of 10MHz, 19.44MHz, 38.88MHz or 77.76MHz. In the framer block, the transmit formatter takes data from the TDMoP core, inserts the appropriate framing patterns and alarm information, calculates and inserts CRC codes, and provides the HDB3 or B8ZS encoding (zero code suppression) and AMI line coding. The receive framer decodes AMI, HDB3 and B8ZS line coding, finds frame and multiframe alignment in the incoming data stream, reports alarm information, counts framing/coding/CRC errors, and provides clock, data, and frame-sync signals to the TDMoP core. Both transmit and receive paths have built-in HDLC controller and BERT blocks. The HDLC blocks can be assigned to any timeslot, a portion of a timeslot or to the FDL (T1) or Sa bits (E1). Each controller has 64-byte FIFOs, reducing the amount of processor overhead required to manage the flow of data. The BERT blocks can generate and synchronize with pseudo-random and repetitive patterns, insert errors (singly or at a constant error rate) and detect and count errors to calculate bit error rates. 15 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 5 Application Examples In Figure 5-1, a DS34T10x device is used in each TDMoP gateway to map TDM services into a packet-switched metropolitan network. TDMoP data is carried over various media: fiber, wireless, G/EPON, coax, etc. Figure 5-1. TDMoP in a Metropolitan Packet Switched Network 16 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 5-2. TDMoP in Cellular Backhaul Other Possible Applications Point-to-Multipoint TDM Connectivity over IP/Ethernet The DS34T10x devices support NxDS0 TDMoP connections (known as bundles) with or without CAS (Channel Associated Signaling). There is no need for an external TDM cross-connect, since the packet domain can be used as a virtual cross-connect. Any bundle of timeslots can be directed to another remote location on the packet domain. HDLC Transport over IP/MPLS TDM traffic streams often contain HDLC-based control channels and data traffic. These data streams, when transported over a packet domain, should be treated differently than the time-sensitive TDM payload. DS34T10x devices can terminate HDLC channels in the TDM streams and optionally map them into IP/MPLS/Ethernet for transport. All HDLC-based control protocols (ISDN BRI and PRI, SS7 etc.) and all HDLC data traffic can be managed and transported. Using a Packet Backplane for Multiservice Concentrators A communications device with all the above-mentioned capabilities can use a packet-based backplane instead of the more expensive TDM bus option. This enables a cost-effective and future-proof design of communication platforms with full support for both legacy and next-generation services. 17 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 6 Block Diagram Figure 6-1. Top-Level Block Diagram TXENABLE neg pos/dat clk pos/dat clk E1CLK T1CLK Jitter Attenuator LIUDn neg pos/dat clk neg RCLKn (out)/RCLKFn (in) RDATFn LIU & Framer (1 of 8) LIU Transmitter clk pos/dat TTIPn neg Waveshape, Line Driver LIU Receiver Clock and Data Recovery T1CLK RESREF TRINGn RTIPn RRINGn RXTSEL E1CLK TCLKOn TDATFn LIUDn 1 0 1 LIUDn 0 RCLK 8 8 8 8 TSYNC out 8 TCLK 8 TSER (data) TSIG 8 T(S)SYNC in 8 TSYSCLK 8 RSYNC out RSER (data) 8 Tx Elastic Store RCLK RF/MSYNC all 8 ports RSIG RSYSCLK 1 of 8 ports RSYNC in Rx Elastic Store Tx HDLC Tx Formatter FSYSCLK Rx HDLC RLOFn/RLOSn RSERn RFSYNCn/RMSYNCn Tx BERT B8ZS/HDB3 Encoder Rx Framer Rx BERT B8ZS/HDB3 Decoder 8 8 8 8 TCLKFn TSYSCLKn/ECLKn TSERn TSYNCn/TSSYNCn TDMn_TCLK TDMn_TX_SYNC TDMn_TX_MF_CD RSYSCLKn RSYNCn TDM Cross-Connection and External Interfaces Figure 6-2 TDMn_RCLK TDMn_RX TDMn_RX_SYNC TDMn_RSIG_RTS TCLK TSIG_CTS 8 8 TX (data) TX_SYNC RX (data) RCLK 8 T1CLK E1CLK RX_SYNC 8 8 TDMn_TX TDMn_TSIG_CTS TDMn_ACLK 8 Clock Recovery Machines CLK_CMN CLAD1 CLK_HIGH MCLK T1CLK TDMoP Block all 8 ports Payload Type Machines RAW SAToP CESoPSN AAL1 E1CLK 38.88MHz 2.048/1.544MHz FSYSCLK Timeslot Assigner HDLC Data Byte Enable Mask Address Bank Select Control SDRAM Controller Jitter Buffer Control Packet Classifier Queue Manager Ethernet MAC 10/100 50 or 75MHz CLAD2 MII_TX_ERR MII_TX_EN MII_TXD[3:0] CLK_SSMII_TX CLK_MII_TX MII_CRS MII_COL MII_RX_ERR MII_RX_DV MII_RXD[3:0] CLK_MII_RX CLK_SYS CLK_SYS_S SCAN MBIST HIZ_EN SCEN STMD MBIST_EN MBIST_DONE MBIST_FAIL JTAG JTMS JTCLK JTDI JTDO JTRST_N 8 Counters & Status Registers H_CS_N H_R_W_N H_WR_BE[0]_N / SPI_CLK H_WR_BE[1]_N / SPI_MOSI H_WR_BE[2]_N / SPI_SEL_N H_WR_BE[3]_N / SPI_CI H_READY_N H_INT[1:0] CPU Interface H_AD[24:1] 8 CAS Handler H_D[31:1] H_D[0] / SPI_MISO RSIG_RTS H_CPU_SPI_N DATA_31_16_N 8 SD_D[31:0] SD_DQM[3:0] SD_A[11:0] SD_BA[1:0] SD_CLK SD_CS_N SD_WE_N SD_RAS_N SD_CAS_N RST_SYS_N MDIO MDC 18 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 6-2. TDM Cross-Connection Block Diagram 1 per Port Port n shown Framer TX Interface Clock 1 8 8 FRMRn[2:0] TCLKFn pin 1 TDMn_TCLK pin ref_clk[n] Framer n TSER (Data) 1 0 ref_clk[8] 0 1 TDM1_TX (Data) TSERn pin 0 TDM8_TX (Data) SYNCNTLn[2:0] MODE tsync_ref[n] TDMn_TX_SYNC pin tsync_ref[n] Framer 8 TSYNC out F/MSYNC Framer n TSYNC out Framer n TSIG 1 0 MODE TSYNCn/TSSYNCn pin MODE Signaling Data FRMRn[2:0] Framer 1 TSYNC out Framer n T(S)SYNC in Clock TDMn_TCLK TSYSCLKn/ECLKn pin MODE Data TDMoPacket TX Interface MODE ref_clk[1] 0 MODE Framer n TSYSCLK TSYSCLKn/ECLKn pins RCLKn TDMn_ACLK pins E1CLK T1CLK 8 ref_clk[n] MODE Framer n TCLK CLKCNTLn[4:0] TDMn_TX_MF_CD pin tsync_ref[n] FRMRn[2:0] 1 0 tsync_ref[1] 1 F/MSYNC TDMn_TX_MF TDMn_CD 0 FRMRn[2:0] tsync_ref[8] MODE TDMn_TX_SYNC Signaling TDM1_TSIG_CTS 1 0 TDM8_TSIG_CTS Framer RX Interface Framer n RSYSCLK Clock MODE 1 0 RSYSCLKn pin ref_clk[n] TDMIn[2:0] TDMoPacket RX Interface TDMIn[2:0] TDMn_RCLK pin ref_clk[1] CLKMODE ref_clk[8] Framer 1 RCLK 0 0 TCLKOn pin Framer 8 RCLK 1 1 Clock MODE 1 0 TDMn_RCLK TDMRCLKSn TDMIn[2:0] MODE Framer 1 RSER (Data) TDMn_RX pin Data 1 0 TDMIn[2:0] Framer 8 RSER (Data) tsync_ref[1] TDMIn[2:0] TDMn_RX_SYNC pin UNFRMMODE CLKMODE Framer 1 RF/MSYNCn tsync_ref[8] Data TDMn_RX (Data) 0 MODE 1 0 F/MSYNC TDMn_RX_SYNC 1 Framer 8 RF/MSYNCn F/MSYNC Framer n RSYNC out RSYNCn pin MODE Framer n RSYNC in 1 0 TDMIn[2:0] Framer 1 RSIG Signaling CLKMODE tsync_ref[n] Note: All named control signals in this diagram come from global registers GCR1, GCR2, and FMRTOPISM1-4. MODE=GCR1.MODE & !GCR1.INTMODEn. MODE=0: Internal Mode MODE=1: External Mode CLOCKMODE=0: 1 Clock Mode CLOCKMODE=1: 2 Clock Mode MODE TDMn_RSIG_RTS pin UNFRMMODE 1 0 Signaling TDMn_RSIG_RTS Framer 8 RSIG 19 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 7 FEATURES Global Features              TDMoP Interfaces o DS34T101: 1 E1/T1 LIU/Framer/TDMoP interface o DS34T102: 2 E1/T1 LIUs/Framers/TDMoP interfaces o DS34T104: 4 E1/T1 LIUs/Framers/TDMoP interfaces o DS34T108: 8 E1/T1 LIUs/Framers/TDMoP interfaces o All four devices: optionally 1 high-speed E3/DS3/STS-1 TDMoP interface o All four devices: each interface optionally configurable for serial operation for V.35 and RS530 Ethernet Interface o One 10/100 Mbps port configurable for MII, RMII or SSMII interface format o Half or full duplex operation o VLAN support according to 802.1p and 802.1Q including stacked tags o Fully compatible with IEEE 802.3 standard End-to-end TDM synchronization through the IP/MPLS domain by on-chip, per-port TDM clock recovery 64 independent bundles/connections, each with its own: o Transmit and receive queues o Configurable jitter-buffer depth o Connection-level redundancy, with traffic duplication option Flexible on-chip cross-connection capability o Internal bundle cross-connect capability, with DS0 resolution o Any framer receiver port to any TDMoP block receive interface to maintain bundle connectivity o Any TDMoP block transmit interface to any framer transmit port to maintain bundle connectivity Packet loss compensation and handling of misordered packets Glueless SDRAM interface Complies with MPLS-Frame Relay Alliance Implementation Agreements 4.1, 5.1 and 8.0 Complies with ITU-T standards Y.1413 and Y.1414. Complies with Metro Ethernet Forum 3 and 8 Complies with IETF RFC 4553 (SAToP), RFC 5086 (CESoPSN) and RFC 5087 (TDMoIP) IEEE 1146.1 JTAG boundary scan 1.8V and 3.3V Operation with 5.0V tolerant I/O Clock Synthesizers    Clocks to operate LIUs, jitter attenuators, framers, BERTs and HDLC controllers can be synthesized from a single clock input for both E1 and T1 operation (10MHz, 19.44MHz, 38.88MHz or 77.76MHz on the CLK_HIGH pin or 1.544MHz or 2.048MHz on the MCLK pin) Clocks to operate the TDMoP clock recovery machines can synthesized from a single clock input (10MHz, 19.44MHz, 38.88MHz or 77.76MHz on the CLK_HIGH pin) Clock to operate TDMoP logic and SDRAM interface (50MHz or 75MHz) can be synthesized from a single 25MHz clock on the CLK_SYS pin Line Interface Units (LIUs)         Receives E1, T1 and G.703 2048kHz synchronization signal Fully software configurable including software-selectable internal Tx and Rx termination Suitable for both short-haul and long-haul applications Receive sensitivity options from (0dB to -12dB) to (0dB to -43dB) for E1 and to (0dB to -36dB) for T1 Receive signal level indication: 0dB to -37.5dB Internal receive termination options for 75, 100, 110, and 120 lines Receive monitor-mode gain settings of 14dB, 20dB, 26dB, and 32dB Flexible transmit waveform generation 20 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108            T1 DSX-1 line build-outs T1 CSU line build-outs of 0dB, -7.5dB, -15dB, and -22.5dB E1 waveforms include G.703 waveshapes for both 75 coax and 120 twisted-pair cables Several local and remote loopback options including simultaneous local and remote Analog loss of signal detection AIS generation independent of loopbacks Alternating ones and zeros generation Receiver power-down Transmitter power-down Transmitter short-circuit limiter with current limit exceeded indication Transmit open-circuit-detected indication Jitter Attenuator    Crystal-less jitter attenuator with programmable buffer depth (16, 32, 64 or 128 bits) Can be placed in either the receive path or the transmit path or disabled Limit trip indication Framer/Formatter                         Fully independent transmit and receive functionality Full receive and transmit path transparency T1 SF and ESF framing formats per T1.403, and expanded SLC-96 support (TR-TSY-008). E1 FAS framing, CRC-4 multiframe per G.704/G.706, and G.732 CAS multiframe Transmit-side synchronizer Transmit midpath CRC recalculate (E1) Detailed alarm and status reporting with optional interrupt support Large path and line error counters  T1: BPV, CV, CRC-6, and framing bit errors  E1: BPV, CV, CRC-4, E-bit, and frame alignment errors  Timed or manual counter update modes T1 Idle Code Generation on a per-channel basis in both transmit and receive paths  User defined code generation  Digital Milliwatt code generation ANSI T1.403-1999 support G.965 V5.2 link detect Ability to monitor one DS0 channel in both the transmit and receive paths In-band repeating pattern generators and detectors for loop-up and loop-down codes Bit Oriented Code (BOC) support Software and hardware signaling support Interrupt generation on change of signaling data Optional receive signaling freeze on loss-of-frame, loss-of-signal, or frame slip Hardware pins provided to indicate loss-of-frame (LOF) or loss-of-signal (LOS) Automatic RAI generation to ETS 300 011 specifications RAI-CI and AIS-CI support Expanded access to Sa and Si bits Option to extend carrier loss criteria to a 1ms period as per ETS 300 233 Japanese J1 support Ability to calculate and check CRC-6 according to the Japanese standard 21 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108   Ability to generate RAI (yellow alarm) according to the Japanese standard T1 to E1 conversion Framer/Formatter TDM Interface          Independent two-frame receive and transmit elastic stores Independent control and clocking Controlled slip capability with status Support for T1-to-E1 conversion Ability to pass the T1 F-bit position through the elastic stores in the 2.048MHz TDM mode Hardware signaling capability Receive signaling reinsertion Availability of signaling in a separate signal BERT testing to the system interface TDM-over-Packet Block      Enables transport of TDM services (E1, T1, E3, T3, STS-1) or serial data over packet-switched networks SAToP payload-type machine maps/demaps unframed E1/T1/E3/T3/STS-1 or serial data flows to/from IP, MPLS or Ethernet packets according to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 4553. CESoPSN payload-type machine maps/demaps structured E1/T1 data flows to/from IP, MPLS or Ethernet packets with static assignment of timeslots inside a bundle according to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 5086. AAL1 payload-type machine maps/demaps E1/T1/E3/T3/STS-1 or serial data flows to/from IP, MPLS or Ethernet packets according to ITU-T Y.1413, MEF 8, MFA 4.1 and IETF RFC 5087. For E1/T1 it supports structured mode with/without CAS using 8-bit timeslot resolution, while implementing static timeslot allocation. For E1/T1, E3/T3/STS-1 or serial interface it supports unstructured mode. HDLC payload-type machine maps/demaps HDLC-based E1/T1/serial flow to/from IP, MPLS or Ethernet packets. It supports 2-, 7- and 8-bit timeslot resolution (i.e. 16, 56, and 64 kbps respectively), as well as N x 64 kbps bundles. This is useful in applications where HDLC-based signaling interpretation is required (such as ISDN D channel signaling termination, V.51/2, or GR-303), or for trunking packet-based applications (such as Frame Relay), according to IETF RFC 4618. TDMoP TDM Interfaces      Supports single high-speed E3, T3 or STS-1 interface on port 1 or one (DS34T101), two (DS34T102), four (DS34T104) or eight (DS34T108) E1, T1 or serial interfaces For single high-speed E3, T3 or STS-1 interface, AAL1 or SAToP payload type is used For E1 or T1 interfaces, the following modes are available: o Unframed – E1/T1 pass-through mode (AAL1, SAToP or HDLC payload type) o Structured – fractional E1/T1 support (all payloads) o Structured with CAS – fractional E1/T1 with CAS support (CESoPSN or AAL1 payload type) For serial interfaces, the following modes are available: o Arbitrary continuous bit stream (using AAL1 or SAToP payload type) o Single-interface high-speed mode on port 1 up to STS-1 rate (51.84 Mbps) using a single bundle/connection. o Low-speed mode with each interface operating at N x 64 kbps (N = 1 to 63) with an aggregate rate of 18.6Mbps o HDLC-based traffic (such as Frame Relay) at N x 64 kbps (N = 1 to 63) with an aggregate rate of 18.6Mbps). All serial interface modes are capable of working with a gapped clock. TDMoP Bundles  64 independent bundles, each can be assigned to any TDM interface 22 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108         Each bundle carries a data stream from one TDM interface over IP/MPLS/Ethernet PSN from TDMoP source device to TDMoP destination device Each bundle may be for N x 64kbps, an entire E1, T1, E3, T3 or STS-1, or an arbitrary serial data stream Each bundle is unidirectional (but frequently coupled with opposite-direction bundle for bidirectional communication) Multiple bundles can be transported between TDMoP devices Multiple bundles can be assigned to the same TDM interface Each bundle is independently configured with its own: o Transmit and receive queues o Configurable receive-buffer depth o Optional connection-level redundancy (SAToP, AAL1, CESoPSN only). Each bundle can be assigned to one of the payload-type machines or to the CPU For E1/T1 the device provides internal bundle cross-connect functionality, with DS0 resolution TDMoP Clock Recovery    Sophisticated TDM clock recovery machines, one for each TDM interface, allow end-to-end TDM clock synchronization, despite the packet delay variation of the IP/MPLS/Ethernet network The following clock recovery modes are supported: o Adaptive clock recovery o Common clock (using RTP) o External clock o Loopback clock The clock recovery machines provide both fast frequency acquisition and highly accurate phase tracking: o Jitter and wander of the recovered clock are maintained at levels that conform to G.823/G.824 traffic or synchronization interfaces. (For adaptive clock recovery, the recovered clock performance depends on packet network characteristics.) o Short-term frequency accuracy (1 second) is better than 16 ppb (using OCXO reference), or 100 ppb (using TCXO reference) o Capture range is ±90 ppm o Internal synthesizer frequency resolution of 0.5 ppb o High resilience to packet loss and misordering, up to 2% without degradation of clock recovery performance o Robust to sudden significant constant delay changes o Automatic transition to holdover when link break is detected TDMoP Delay Variation Compensation     Configurable jitter buffers compensate for delay variation introduce by the IP/MPLS/Ethernet network Large maximum jitter buffer depths: o E1: up to 256 ms o T1 unframed: up to 340 ms o T1 framed: up to 256 ms o T1 framed with CAS: up to 192 ms o E3: up to 60 ms o T3: up to 45 ms o STS-1: up to 40 ms. Packet reordering is performed for SAToP and CESoPSN bundles within the range of the jitter buffer Packet loss is compensated by inserting either a pre-configured conditioning value or the last received value. TDMoP CAS Support   On-chip CAS handler terminates E1/T1 CAS when using AAL1or CESoPSN in structured-with-CAS mode. CPU intervention is not required for CAS handling. 23 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Test and Diagnostics              IEEE 1149.1 JTAG support Per-channel programmable on-chip bit error-rate testing (BERT) Pseudorandom patterns including QRSS User-defined repetitive patterns Error insertion single and continuous Total-bit and errored-bit counts Payload error insertion Error insertion in the payload portion of the T1 and E1 frame in the transmit path Errors can be inserted over the entire frame or selected channels Insertion options include continuous and absolute number with selectable insertion rates F-bit corruption for line testing Loopbacks (remote, local, analog, and per-channel loopback) MBIST (memory built-in self test) CPU Interface        32 or 16-bit parallel interface or optional SPI serial interface Byte write enable pins for single-byte write resolution Hardware reset pin Software reset supported Software access to device ID and silicon revision On-chip SDRAM controller provides access to SDRAM for both the chip and the CPU CPU can access transmit and receive buffers in SDRAM used for packets to/from the CPU (ARP, SNMP, etc.) 24 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 8 Overview of Major Operational Modes 8.1 Internal Mode The default mode of the device is internal one-clock mode. Internal mode is used to internally connect the framers to the TDMoP block. Internal mode additionally configures many unused TDM interface output pins to drive low. Unused TDM interface input pins are ignored. Figure 8-1 shows an internal mode version of the Figure 6-1 block diagram with wires to unused inputs and outputs shown in a grey color. All ports of the device are configured in internal mode when GCR1.MODE=0. When GCR1.MODE=1, all ports are configured in external mode by default, but (DS34T108 only) individual ports can be configured for internal mode using the GCR1.INTMODEn bits. Figure 6-2 shows how the device is internally connected inside the TDM cross-connect block in internal mode. Figure 8-1. Internal Mode Block Diagram neg pos/dat clk pos/dat clk E1CLK T1CLK Jitter Attenuator LIUDn neg pos/dat clk neg RCLKn (out)/RCLKFn (in) RDATFn LIU & Framer (1 of 8) LIU Transmitter clk TXENABLE TTIPn pos/dat neg Waveshape, Line Driver RESREF LIU Receiver Clock and Data Recovery T1CLK TRINGn RTIPn RRINGn RXTSEL E1CLK TCLKOn TDATFn LIUDn 1 0 1 LIUDn 0 RCLK 8 8 8 TSYNC out 8 TCLK 8 TSER (data) 8 T(S)SYNC in TSIG 8 TSYSCLK 8 RSYNC out 8 RSYNC in RSER (data) 8 Tx Elastic Store RCLK RF/MSYNC all 8 ports RSIG RSYSCLK 1 of 8 ports Tx HDLC Tx Formatter FSYSCLK Rx HDLC RLOFn/RLOSn Rx Elastic Store Tx BERT B8ZS/HDB3 Encoder Rx Framer Rx BERT B8ZS/HDB3 Decoder 8 8 8 8 TDM Cross-Connection and External Interfaces 8 TX (data) 8 TCLK TX_SYNC TSIG_CTS RX (data) RCLK 8 T1CLK E1CLK RX_SYNC 8 8 8 Clock Recovery Machines CLK_CMN CLAD1 CLK_HIGH MCLK T1CLK all 8 ports TDMoP Block RAW SAToP Payload Type Machines CESoPSN AAL1 E1CLK 38.88MHz 2.048/1.544MHz FSYSCLK Timeslot Assigner HDLC Data Byte Enable Mask Address Bank Select Control SDRAM Controller Jitter Buffer Control Packet Classifier Queue Manager Ethernet MAC 10/100 50 or 75MHz CLAD2 MII_TX_ERR MII_TX_EN MII_TXD[3:0] CLK_SSMII_TX CLK_MII_TX MII_CRS MII_COL MII_RX_ERR MII_RX_DV MII_RXD[3:0] CLK_MII_RX CLK_SYS CLK_SYS_S SCAN MBIST HIZ_EN SCEN STMD MBIST_EN MBIST_DONE MBIST_FAIL JTAG JTMS JTCLK JTDI JTDO JTRST_EN 8 Counters & Status Registers H_CS_N H_R_W_N H_WR_BE[0]_N / SPI_CLK H_WR_BE[1]_N / SPI_MOSI H_WR_BE[2]_N / SPI_SEL_N H_WR_BE[3]_N / SPI_CI H_READY_N H_INT[1:0] CPU Interface H_AD[24:1] 8 CAS Handler H_D[31:1] H_D[0] / SPI_MISO RSIG_RTS H_CPU_SPI_N DATA_31_16_N 8 SD_D[31:0] SD_DQM[3:0] SD_A[11:0] SD_BA[1:0] SD_CLK SD_CS_N SD_WE_N SD_RAS_N SD_CAS_N RST_SYS_N MDIO MDC 25 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 8.1.1 Internal One-Clock Mode In internal one-clock mode (GCR1.CLKMODE=0) the receive direction of each TDM port uses the same clock as the transmit direction of that port. The transmit formatter and the receive framer are therefore synchronized together. Since the data received from the LIU receiver or the RDATFn pin is clocked by a different clock (either the clock recovered by the LIU or the RCLKFn pin) the framer’s receive elastic store must be enabled so that the difference between clock frequencies is handled by control slips in the elastic store. Figure 8-2 is a simplified diagram of internal one-clock mode. The CLKCNTLn fields in the FMRTOPISM registers specify the clock to be used for each port. Choices include any of the TSYSCLKn/ECLKn input pins, any of the LIU recovered clocks on the RCLKn pins, any of the TDMoP recovered clocks on the TDMn_ACLK pins, or the E1CLK or T1CLK master clocks from the CLAD1 block. See the ref_clk[n] signal in Figure 6-2. In addition, the SYNCNTLn fields in the FMRTOPISM registers specify the frame-sync pulse to be used for each port. Each port can be configured to use any TSYNC out from any active transmit formatter. See the tsync_ref[n] signal in Figure 6-2. Figure 8-2. Internal One-Clock Mode RCLK[8..1] ECLK[8..1] pin Framer port n CLKCNTL bits TSYNC[8..1] SYNCNTL bits TDMoP Block port n TSIGn TDMn_ACLK TDMn_TCLK TDMn_TX TDMn_TX_SYNC TDMn_TX_MF* TDMn_TSIG RCLKn RSYSCLKn RSERn RPOSn RSYNCn RNEGn RSIGn TDMn_RCLK TDMn_RX TDMn_RX_SYNC TDMn_RSIG Connected to LIU ACLKn TCLKOn TPOSn TNEGn RCLKn ACLK[8..1] E1CLK T1CLK TCLKn TSERn TSYNCn TSYNC *Note: The internal signal input "TDMn_TX_MF" is a don't care when configured in framed mode. 8.1.2 Internal Two-Clock Mode In internal two-clock mode (GCR1.CLKMODE=1) the receive direction and the transmit direction of each TDM port have separate clocks. In this mode data is clocked all the way through the receive framer by the LIU’s recovered clock or the RCLKFn signal and therefore the framer’s receive elastic store does not need to be enabled. Figure 8-3 is a simplified diagram of internal two-clock mode for framed and multiframed applications. The CLKCNTLn fields in the FMRTOPISM registers specify the clock to be used for the transmit side of each port. Choices include any of the TSYSCLKn/ECLKn input pins, any of the LIU recovered clocks on the RCLKn pins, any of the TDMoP recovered clocks on the TDMn_ACLK pins, or the E1CLK or T1CLK master clocks from the CLAD1 block. See the ref_clk[n] signal in Figure 6-2. In addition, the SYNCNTLn fields in the FMRTOPISM registers specify the frame-sync pulse to used for the transmit side of each port. Each port can be configured to use any TSYNC out from any active transmit formatter. See the tsync_ref[n] signal in Figure 6-2. On the receive side, the clock is typically the RCLKn signal for the port as shown in Figure 8-3 while the frame sync signal is the RF/MSYNCn signal. If framing is not needed for a particular application, the device can be configured for unframed mode by setting GCR1.UNFRMMODE=1. In this mode receive frame sync and signaling are squelched between the framer and the TDMoP block. See Figure 6-2 and the simplified diagram of unframed mode in Figure 8-4 for details. 26 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 8-3. Internal Two Clock Mode (Framed) RCLK[8..1] ACLK[8..1] E1CLK T1CLK ECLK[8..1] pin CLKCNTL bits Framer port n SYNCNTL bits Connected to LIU TCLKOn TPOSn TNEGn TCLKn TSERn TSYNCn TSYNC[8..1] ACLKn TDMn_ACLK TDMn_TCLK TDMn_TX TDMn_TX_SYNC TDMn_TX_MF* TDMn_TSIG RCLKn TDMn_RCLK TDMn_RX TDMn_RX_SYNC TDMn_RSIG TSYNC TSIGn RCLKn RCLKn RSERn RPOSn RNEGn RF/MSYNCn RSIGn TDMoP Block port n *Note: The internal signal input "TDMn_TX_MF" is a don't care when configured in framed mode. Figure 8-4. Internal Two Clock Mode (Unframed) RCLK[8..1] ECLK[8..1] pin Framer port n Connected to LIU TCLKOn TPOSn TNEGn ACLK[8..1] E1CLK T1CLK CLKCNTL bits TDMoP Block port n ACLKn TDMn_ACLK TDMn_TCLK TDMn_TX RCLKn TDMn_RCLK TDMn_RX TCLKn TSERn RCLKn RCLKn RPOSn RNEGn RSERn 8.2 External Mode External mode activates all the port interface pins for applications where the connections between the framer and the TDMoP block must be custom-wired externally. Some applications that require a network processor would need wiring like this to be applied between these two points. When GCR1.MODE=1, all ports are configured in external mode by default, but individual ports can be configured for internal mode using the GCR1.INTMODEn configuration bits. Figure 6-2 shows which pins are enabled in external mode. 27 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 9 PIN DESCRIPTIONS 9.1 Short Pin Descriptions Table 9-1. Short Pin Descriptions TYPE(2) PIN NAME(1) Internal E1/T1 LIU Line Interface TXENABLE TTIPn, TRINGn RTIPn, RRINGn RXTSEL RESREF PIN DESCRIPTION I Oa Ia I I LIU Transmit Enable Input (for all LIUs) LIU Transmitter Analog Outputs LIU Receiver Analog Inputs Receive Termination Selection Input (for All LIUs) Reference Resistor for LIU Analog Circuits (precision 10k to ARVSS) O O IO Transmit Clock Output Transmit Data Output Receive Clock Input to Framer (RCLKFn) or Recovered Clock Output from LIU Receiver (RCLKn) Receive Data Input to Framer External E1/T1 LIU Interface TCLKOn TDATFn RCLKFn / RCLKn RDATFn I Framer TDM Interface TCLKFn TSYSCLKn / ECLKn I I TSERn TSYNCn / TSSYNCn I IO RSYSCLKn RSERn RSYNCn RFSYNCn/ RMSYNCn RLOFn/ RLOSn I O IO O O Transmit Clock Input to Formatter Transmit System Clock Input (clock for cross-connect side of elastic store) or External Reference Clock Input Transmit Serial Data Input Transmit Frame/Multiframe Sync Input/Output or Transmit System Frame/Multiframe Sync Input (sync for cross-connect side of elastic store) Receive System Clock Input (clock for cross-connect side of elastic store) Receive Serial Data Output Receive Frame/Multiframe Sync Input/Output Receive Frame Sync or Receive Multiframe Sync Output Receive Loss of Frame Output or Receive Loss of Signal Output TDM-over-Packet Engine TDM Interface TDMn_ACLK TDMn_TCLK TDMn_TX TDMn_TX_SYNC TDMn_TX_MF_CD TDMn_TSIG_CTS TDMn_RCLK TDMn_RX TDMn_RX_SYNC TDMn_RSIG_RTS O Ipu O Ipd IOpd O Ipu Ipu Ipd Ipu TDMoP Recovered Clock Output TDMoP Transmit Clock Input (here transmit means “toward LIU”) TDMoP Transmit Data Output TDMoP Transmit Frame Sync Input TDMoP Transmit Multiframe Sync Input or Carrier Detect Output TDMoP Transmit Signaling Output or Clear to Send Output TDMoP Receive Clock Input (here receive means “toward Ethernet MII”) TDMoP Receive Data Input TDMoP Receive Frame/Multiframe Sync Input TDMoP Receive Signaling Input or Request To Send Input SDRAM Interface SD_CLK SD_D[31:0] SD_DQM[3:0] SD_A[11:0] SD_BA[1:0] SD_CS_N SD_WE_N SD_RAS_N SD_CAS_N O IO O O O O O O O SDRAM Clock SDRAM Data Bus SDRAM Byte Enable Mask SDRAM Address Bus SDRAM Bank Select Outputs SDRAM Chip Select (Active Low) SDRAM Write Enable (Active Low) SDRAM Row Address Strobe (Active Low) SDRAM Column Address Strobe (Active Low) Ethernet PHY Interface (MII/RMII/SSMII) CLK_MII_TX CLK_SSMII_TX MII_TXD[3:0] MII_TX_EN MII_TX_ERR I O O O O MII Transmit Clock Input SSMII Transmit Clock Output MII Transmit Data Outputs MII Transmit Enable Output MII Transmit Error Output 28 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) TYPE(2) CLK_MII_RX MII_RXD[3:0] MII_RX_DV MII_RX_ERR MII_COL MII_CRS MDC MDIO I I I I I I O IOpu PIN DESCRIPTION MII Receive Clock Input MII Receive Data Inputs MII Receive Data Valid Input MII Receive Error Input MII Collision Input MII Carrier Sense Input PHY Management Clock Output PHY Management Data Input/Output Global Clocks CLK_SYS_S CLK_SYS CLK_CMN CLK_HIGH MCLK I I I I I System Clock Selection Input System Clock Input: 25, 50 or 75MHz Common Clock Input (for common clock mode also known as differential mode) Clock High Input (for adaptive clock recovery machines and E1/T1 master clocks) Master Clock Input (for E1/T1 master clocks) CPU Interface H_CPU_SPI_N Ipu Host Bus Interface (1=Parallel Bus, 0=SPI Bus) DAT_32_16_N H_D[31:1] H_D[0] / SPI_MISO H_AD[24:1] H_CS_N H_R_W_N / SPI_CP H_WR_BE0_N / SPI_CLK H_WR_BE1_N / SPI_MOSI H_WR_BE2_N / SPI_SEL_N H_WR_BE3_N / SPI_CI H_READY_N H_INT[1:0] Ipu IO IO I I I I I I I Oz O Data Bus Width (1=32-bit , 0=16-bit) Host Data Bus Host Data LSb or SPI Data Output Host Address Bus Host Chip Select (Active Low) Host Read/Write Control or SPI Clock Phase Host Write Enable Byte 0 (Active Low) or SPI Clock Host Write Enable Byte 1 (Active Low) or SPI Data Input Host Write Enable Byte 2 or SPI Chip Select (Active Low) Host Write Enable Byte 3 (Active Low) or SPI Clock Invert Host Ready Output (Active Low) Host Interrupt Outputs. H_INT[0] for TDMoP. H_INT[1] for LIU and Framer Ipu Ipd Ipu Ipu Oz JTAG Test Reset JTAG Test Clock JTAG Test Mode Select JTAG Test Data Input JTAG Test Data Output Ipu I Ipd Ipd I O O O I O System Reset (Active Low) High Impedance Enable (Active Low) Used for factory tests. Used for factory tests. Used for factory tests. Used for factory tests. Used for factory tests Used for factory tests. Used for factory tests. m = A , B or C. Used for factory tests. DS34T104 only. JTAG Interface JTRST_N JTCLK JTMS JTDI JTDO Reset and Factory Test Pins RST_SYS_N HIZ_N SCEN STMD MBIST_EN MBIST_DONE MBIST_FAIL TEST_CLK TST_CLD TST_Tm, TST_Rm Power and Ground DVDDC DVDDIO DVSS DVDDLIU DVSSLIU ATVDDn ATVSSn ARVDDn ARVSSn ACVDD1, ACVDD2 ACVSS1, ACVSS2 P P P P P P P P P P P 1.8V Core Voltage for Framers and TDM-over-Packet Digital Logic (17 pins) 3.3V for I/O Pins (16 pins) Ground for Framers, TDM-over-Packet and I/O Pins (31 pins) 3.3V for LIU Digital Logic (2 pins) Ground for LIU Digital Logic (2 pins) 3.3 V for LIU Transmitter Analog Circuits (8pins) Ground for LIU Transmitter Analog Circuits (8 pins) 3.3 V for LIU Receiver Analog Circuits (8 pins) Ground for LIU Receiver Analog Circuits (8 pins) 1.8V for CLAD Analog Circuits Ground for CLAD Analog Circuits 29 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Note 1: In pin names, the suffix “n” stands for port number: n=1 to 8 for DS34T108; n=1 to 4 for DS34T104; n=2 for DS34T102; n=1 for DS34T101. All pin names ending in “_N” are active low. Note 2: All pins, except power and analog pins, are CMOS/TTL unless otherwise specified in the pin description. PIN TYPES I = input pin IA = analog input pin IPD = input pin with internal 50k pulldown to DVSS IPU = input pin with internal 50k pullup to DVDDIO IO = input/output pin IOPD = input/output pin with internal 50k pulldown to DVSS IOPU = input/output pin with internal 50k pullup to DVDDIO O = output pin OA = analog output pin OZ = output pin that can be placed in a high-impedance state P = power-supply or ground pin 9.2 Detailed Pin Descriptions Table 9-2. Internal E1/T1 LIU Line Interface Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) TXENABLE I LIU Transmit Enable Input (for All LIUs) 0 = All LIU transmitter outputs TTIPn and TRINGn are disabled (high-impedance) 1 = LIU transmitter outputs TTIPn and TRINGn are enabled/disabled by register fields Registers fields LMCR:TXEN (transmit enable) and LMCR:TPDE (transmit power down) affect the state of TTIPn and TRINGn on a per-port basis when TXENABLE=1. TTIPn, TRINGn Oa LIU Transmitter Analog Outputs The LIU transmitter drives outgoing T1, E1 and J1 physical layer signals on TTIP/TRING differential pairs. The LIU transmitter can provide internal impedance matching for E1 75 ohms, E1 120 ohms, T1 100 ohms or J1 110 ohms. All LIU TTIP/TRING pairs are disabled (high-impedance) when the TXENABLE pin is low. RTIPn, RRINGn Ia RXTSEL I RESREF I Registers fields LMCR:TXEN (transmit enable) and LMCR:TPDE (transmit power down enable) affect the state of TTIP/TRING on a per-port basis when TXENABLE=1. LIU Receiver Analog Inputs The LIU receiver accepts incoming T1, E1 and J1 physical layer signals on the RTIP/RRING differential pair. The LIU receiver can provide internal impedance matching for E1 75 ohms, E1 120 ohms, T1 100 ohms or J1 110 ohms or can work with external termination resistors. See the RXTSEL pin description and section 10.13.3.1. Register field LMCR.RPDE can be used to power down LIU receivers on a per-port basis. When RPDE=1, RTIP and RRING become high-impedance. Receive Termination Selection Input (for All LIUs) This pin configures LIU receivers for internal or external line termination (impedance matching). This pin only affects those LIUs where LTRCR:RHPM=1. In receivers where RHPM=0, LRISMR.RIMPON controls internal vs. external impedance matching on a per-port basis. 0= External termination 1 = Internal termination Reference Resistor for LIU Analog Circuits This pin must be tied to ARVSS through a 10k 1% resistor. The LIU transmitter and receiver use this reference resistor to tune internal termination impedance and other analog circuits. The resistor should be placed as close as possible to the device, and capacitance on the RESREF node must be < 10pF. 30 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-3. External E1/T1 LIU Line Interface Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) TCLKOn O Transmit Clock Output 8mA TCLKOn: This signal is normally synchronous with TCLKFn. However, when framer loopback or payload loopback is enabled (RCR3.FLB=1, PLB=1) it becomes synchronous with RCLKFn/RCLKn. When the internal LIU is disabled (GCR2.LIUD=1), this pin and TDATFn are the clock/data interface to an external LIU (or other component such as an M13 mux or SONET/SDH mapper). TDATFn O Transmit Data Output 8mA When the internal LIU is enabled (GCR2.LIUD=0), this pin is disabled (drives low). When the internal LIU is disabled (LIUD=1), this pin and TCLKOn are the transmit clock/data interface to an external LIU (or other component such as an M13 mux or SONET/SDH mapper). TCR3.ODF must be set to 1 to configure the formatter to output NRZ on TDATFn. TDATFn is updated on the rising edge of TCLKOn. See the timing diagram in Figure 14-7. RCLKFn/RCLKn IO RCLKFn: Receive Framer Clock Input to Framer 8mA This pin has the RCLKFn function when the internal LIU is disabled (GCR2.LIUD=1). In this mode, this pin and RDATFn are the receive clock/data interface to an external LIU (or other component such as an M13 mux or SONET/SDH mapper). RCLKFn must be 1.544MHz for T1 or 2.048MHz for E1. RCLKFn is internally inverted when RIOCR.RCLKINV=1. RCLKn: Recovered Clock Output from LIU Receiver This pin has the RCLKn function when the internal LIU is enabled (GCR2.LIUD=0). In this mode, the T1 or E1 clock recovered by the LIU receiver from the signal on RTIPn/RRINGn is available on this pin. RDATFn I In both modes, when the receive elastic store is disabled (RESCR.RESE=0), RSERn (serial data), RSYNCn and RFSYNCn/ RMSYNCn are updated on the cross-connect side of the framer on the rising edge of RCLKFn/RCLKn. (When the elastic store is enabled, data is clocked into the elastic store on the rising edge of RCLKFn/RCLKn, and data and frame/multiframe sync are clocked out of the elastic store on the rising edge of RSYSCLKn.) See timing diagrams in Figure 14-1 through Figure 14-4. Receive Framer Data Input to Framer When the internal LIU is enabled (GCR2.LIUD=0), this pin is ignored. When the internal LIU is disabled (LIUD=1), this pin and RCLKFn are the receive clock/data interface to an external LIU (or other component such as an M13 mux or SONET/SDH mapper). RCR3.IDF must be set to 1 to configure the framer to accept NRZ data on RDATFn. RDATFn is latched on the falling edge of RCLKFn. See the timing diagram in Figure 14-4. 31 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-4. Framer TDM Interface Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) TCLKFn I Transmit Clock Input to Formatter This pin is only active in external mode (GCR1.MODE=1). In this mode, TCLKFn is the 1.544MHz or 2.048MHz clock that clocks the transmit formatter. When the transmit elastic store is disabled (TESCR.TESE=0), TSERn and TSYNCn/TSSYNCn are latched on the falling edge of TCLKFn. (When the elastic store is enabled, these signals are clocked into the elastic store on the falling edge of TSYSCLKn and out of the elastic store on the falling edge of TCLKFn.) See the timing diagram in Figure 14-5. TCLKFn is internally inverted when TIOCR.TCLKINV=1. TSYSCLKn/ I TSYSCLKn: Transmit System Clock Input ECLKn This pin is only active in external mode (GCR1.MODE=1). When the transmit elastic store is enabled (TESCR.TESE=1), TSERn and TSYNCn/TSSYNCn are clocked into system side (i.e. the cross-connect side) of the transmit elastic store on the falling edge of TSYSCLKn. (Data is clocked out of the transmit elastic store on the falling edge of TCLKFn.) See the timing diagram in Figure 14-6. TSYSCLK is configured for 1.544MHz or 2.048MHz mode using TIOCR.TSCLKM. When the transmit elastic store is disabled, this pin should be tied low. TSERn TSYNCn/ TSSYNCn I IO 8mA ECLKn: External Reference Clock Input This pin provides an external reference clock that can be used to clock the transmit direction of port n. In one-clock mode (GCR1.CLKMODE=0) it can also be used to clock the receive direction of port n. Transmit Serial Data Input This pin is only active in external mode (GCR1.MODE=1). When the transmit elastic store is disabled (TESCR.TESE=0), serial data on TSERn is clocked into the transmit formatter on the falling edge of TCLKFn . When the transmit elastic store is enabled (TESCR.TESE=1), data on TSERn is clocked into the transmit elastic store on the falling edge of TSYSCLKn. See the timing diagrams in Figure 14-5 and Figure 14-6. This pin is only active in external mode (GCR1.MODE=1). GCR1.TSSYNCPE[n]=0 configures this pin to be TSYNCn while TSSYNCPE[n]=1 configures it to be TSSYNCn. TSYNCn: Transmit Frame/Multiframe Sync Input/Output TSYNCn is only used when the transmit elastic store is disabled (TESCR.TESE= 0). It is internally inverted when TIOCR.TSYNCINV=1. When TIOCR.TSIO=0, TSYNC is an input, and a pulse at this pin establishes either frame or multiframe boundaries for the transmit formatter. TIOCR.TSM specifies frame (0) or multiframe (1) mode for TSYNCn. The TSYNCn input is latched on the falling edge of TCLKFn . See the timing diagram in Figure 14-5. When TIOCR.TSIO=1, TSYNC is an output that pulses at either frame or multiframe boundaries. TIOCR.TSM specifies frame (0) or multiframe (1) mode for TSYNCn. If TSYNCn is configured to output pulses at frame boundaries, it also can be set to output doublewide pulses at signaling frames when the formatter is in T1 mode by setting TIOCR.TSDW=1. The TSYNCn output is updated on the rising edge of TCLKFn . See the timing diagram in Figure 14-5. TSSYNCn: Transmit System Frame/Multiframe Sync Input TSSYNCn is only used when the transmit elastic store is enabled (TESCR.TESE=1). It is internally inverted when TIOCR.TSSYNCINV=1 and is always an input. A pulse at this pin establishes either frame or multiframe boundaries for the system side (i.e. cross-connect side) of the transmit elastic store. TIOCR.TSSM specifies frame (0) or multiframe (1) mode for TSSYNCn. TSSYNCn is latched on the falling edge of TSYSCLKn. See the timing diagram in Figure 14-6. 32 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) RSYSCLKn TYPE(2) I RSERn O 8mA RSYNCn IO 8mA PIN DESCRIPTION Receive System Clock Input This pin is only active in external mode (GCR1.MODE=1). When the receive elastic store is enabled (RESCR.RESE=1), RSERn, RFSYNCn/ RMSYNCn and RSYNCn (configured as an output) are clocked out of the system side (i.e. the cross-connect side) of the receive elastic store on the rising edge of RSYSCLKn. (Data is clocked into the receive elastic store on the rising edge of RCLKFn.) See the timing diagram in Figure 14-3. TSYSCLK is set for 1.544MHz or 2.048MHz mode using RIOCR.RSCLKM. When the receive elastic store is disabled, this pin should be tied low. Receive Serial Data Output This pin is only active in external mode (GCR1.MODE=1). In internal mode RSERn is internally held low. When the receive elastic store is disabled RESCR.RESE=0), serial data on RSERn is clocked out of the receive framer on the rising edge of RCLKFn/RCLKn. When the receive elastic store is enabled (RESCR.RESE=1), data on RSERn is clocked out of the receive elastic store on the rising edge of RSYSCLKn. See the timing diagrams in Figure 14-1 through Figure 14-3. Receive Frame/Multiframe Sync Input/Output This pin is only active in external mode (GCR1.MODE=1). It is internally inverted when RIOCR.RSYNCINV=1. When RIOCR.RSIO=1, RSYNC is an input, but is only valid when the receive elastic store is enabled (RESCR.RESE=1). A pulse at this pin establishes either frame or multiframe boundaries for the system side (i.e. the cross-connect side) of the receive elastic store. RIOCR.RSMS1 specifies frame (0) or multiframe (1) mode. RSYNCn is latched on the falling edge of RSYSCLKn. See the timing diagram in Figure 14-3. RFSYNCn/ RMSYNCn O 8mA When RIOCR.RSIO=0, RSYNC is an output that pulses at either frame or multiframe boundaries. RIOCR.RSMS1 specifies frame (0) or multiframe (1) mode. If RSYNCn is configured to output pulses at frame boundaries, it also can be set to output doublewide pulses at signaling frames when the formatter is in T1 mode by setting RIOCR.RSMS2=1. In E1 mode, RSMS2 specifies whether RSYNCn pulses on CAS (0) or CRC-4 (1) multiframe boundaries. RSYNCn is updated on the rising edge of RCLKFn/RCLKn when the receive elastic store is disabled (RESCR.RESE=1) or the rising edge of RSYSCLKn when the receive elastic store is enabled. See the timing diagrams in Figure 14-1 through Figure 14-3. This pin is only active in external mode (GCR1.MODE=1). GCR1.RFMSS=0 configures this pin to be RFSYNCn while RMFSS=1 configures it to be RMSYNCn. RFSYNCn: Receive Frame Sync Output The signal on RFSYNCn is a pulse one RCLKFn/RCLKn period wide every 8kHz. This pulse happens on the same clock cycle that the first bit of the frame is present on the RSERn pin. RFSYNCn is updated on the rising edge of RCLKFn/RCLKn whether or not the receive elastic store is enabled and therefore is only an indicator of the start-of-frame of the recovered data from the receive LIU, not the retimed data from the receive elastic store. See the timing diagrams in Figure 14-1 and Figure 14-2. RMSYNCn: Receive Multiframe Sync Output The signal on RMSYNCn is a pulse one clock period wide every multiframe. This pulse happens on the same clock cycle that the first bit of the multiframe is present on the RSERn pin. When the receive elastic store is disabled (RESCR.RESE=0), RMSYNCn is updated on the rising edge of RCLKFn/RCLKn. When the receive elastic store is enabled (RESCR.RESE=1) RMSYNCn is updated on the rising edge of RSYSCLKn and indicates the multiframe boundary on the system side (i.e. 33 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) RLOFn/RLOSn TYPE(2) O 8mA PIN DESCRIPTION the cross-connect side) side of the elastic store. In E1 mode, RIOCR.RSMS2 specifies whether RMSYNCn pulses on CAS (0) or CRC-4 (1) multiframe boundaries. GCR1.LOSS=0 configures this pin to be RLOFn while LOSS=1 configures it to be RLOSn. RLOFn: Receive Loss of Frame Output RLOFn indicates when the receive framer is searching for frame and multiframe alignment in the incoming data stream. See section 10.11.6. RLOSn: Receive Loss of Signal Output RLOSn indicates when the receive framer detects a loss-of-signal condition. See section 10.11.6. Table 9-5. TDM-over-Packet Engine TDM Interface Pins In this table, the transmit direction is the packet-to-TDM direction while the receive direction is the TDM-to-packet direction. See Figure 6-1, Figure 6-2, Figure 8-2 and Figure 8-3. PIN NAME(1) TDMn_ACLK TYPE(2) O 8mA TDMn_TCLK Ipu PIN DESCRIPTION TDMoP Recovered Clock Output The clock recovered by the TDMoP clock recovery machine is output on this pin. TDM1_ACLK (port 1) is used in high speed E3/T3/STS1 mode. TDMoP Transmit Clock Input This signal clocks the transmit TDM interface of the TDMoP engine. Depending on the value of Port[n]_cfg_reg.tx_sample, outputs TDMn_TX and TDMn_TSIG_CTS are updated on the either the rising edge (0) or falling edge (1) of TDMn_TCLK. Inputs TDMn_TX_SYNC and TDMn_TX_MF_CD are latched on the opposite edge. See the timing diagrams in Figure 14-15 and Figure 14-16. In one-clock mode, TDMn_TCLK also clocks the receive TDM interface of the TDMoP engine. Depending on the value of Port[n]_cfg_reg.tx_sample, outputs TDMn_RX, TDMn_RX_SYNC and TDMn_RSIG_RTS are updated on the either the rising edge (0) or falling edge (1) of TDMn_TCLK. TDMn_TX TDMn_TX_SYNC O 8mA Ipd Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). This pin is only active in external mode (GCR1.MODE=1). Only TDM1_TCLK (port 1) is used in high speed E3/T3/STS1 mode (General_cfg_reg0.High_speed=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Transmit Data Output Serial data from the TDMoP engine is output on this pin. This signal is clocked by TDMn_TCLK. Only TDM1_TX (port 1) is used in high speed E3/T3/STS1 mode (i.e. when General_cfg_reg0.High_speed=1). This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Transmit Frame Sync Input Frame sync information is provided to the TDMoP engine from this pin. In twoclock mode, this signal specifies only transmit frame sync. In one-clock mode, this signal specifies frame sync for both the transmit and receive directions. The signal on this pin must pulse high for one TDMn_TCLK cycle when the first bit of a frame is expected to present on the TDMn_TX pin (and the TDMn_RX pin in one-clock mode). This pulse must be repeated every N*125s where N is a 34 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) TDMn_TX_MF_CD TYPE(2) IOpd PIN DESCRIPTION positive integer (example: if N=16, it pulses every 2ms). Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Transmit Multiframe Sync Input When the interface type is configured for E1 or T1, multiframe sync is provided to the TDMoP engine from this pin. The signal on this pin must pulse high for one TDMn_TCLK cycle when the first bit the multiframe is expected to be present on the TDMn_TX pin. TDMoP Transmit Carrier Detect Output When the interface type is configured for serial, the carrier detect function of this pin is active. When Port[n]_cfg_reg.CD_en=1, the state of this pin is controlled by the value stored in Port[n]_cfg_reg.CD. TDMn_TSIG_CTS O 8mA Port[n]_cfg_reg.Int_type=specifies serial (00), E1 (01) or T1 (10). Port[n]_cfg_reg.Int_type=specifies serial (00), E1 (01) or T1 (10) interface type. This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Transmit Signaling Output When the interface type is configured for E1 or T1, the transmit signaling function of this pin is active. Functional timing is shown in Figure 10-33 and Figure 10-34. TDMoP Clear to Send Output When the interface type is configured for serial, the clear-to-send function of this pin is active. In this mode, the state of this pin is controlled by the value stored in Port[n]_cfg_reg.CTS. TDMn_RCLK Ipu Port[n]_cfg_reg.Int_type specifies serial (00), E1 (01) or T1 (10) interface type. This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Receive Clock Input In two-clock mode, this signal clocks the receive TDM interface of the TDMoP engine: TDMn_RX, TDMn_RX_SYNC and TDMn_RSIG_RTS. In one-clock mode, this signal is ignored, and the TDMn_TCLK signal clocks both the transmit and receive interfaces of the TDMoP engine. TDMn_RX TDMn_RX_SYNC Ipu Ipd Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). Port[n]_cfg_reg.Rx_sample specifies latching on the rising (1) or falling (0) edge. TDM1_RCLK (port 1) is used in high speed E3/T3/STS1 mode. This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Receive Data Input Serial data to the TDMoP engine is input on this pin. In two-clock mode, this signal is clocked by TDMn_RCLK. In one-clock mode, this signal, is clocked by TDMn_TCLK. Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). TDM1_RX (port 1) is used in high speed E3/T3/STS1 mode. This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Receive Frame/Multiframe Sync Input In two-clock mode, this signal is clocked by TDMn_RCLK and specifies frame or multiframe alignment for the receive interface of the TDMoP engine. The signal on this pin must pulse high for one TDMn_RCLK cycle when the first bit of a frame is 35 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) TYPE(2) PIN DESCRIPTION present on the TDMn_RX pin. This pulse must be repeated every N*125s where N is a positive integer (example: if N=16, it pulses every 2ms). In one-clock mode, this signal is ignored and TDMn_TX_SYNC specifies frame alignment for both the transmit and receive interfaces of the TDMoP engine. TDMn_RSIG_RTS Ipu Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. TDMoP Receive Signaling Input When the interface type is configured for E1 or T1, the transmit signaling function of this pin is active. In two-clock mode, this signal is clocked by TDMn_RCLK. In one-clock mode, this signal, is clocked by TDMn_TCLK. TDMoP Request To Send Input When the interface type is configured for serial, the request-to-send function of this pin is active. In this mode, the real-time status of this pin can be read from Port[n]_stat_reg1.RTS_P. Port[n]_cfg_reg.Two_clocks specifies two-clock mode (1) or one-clock mode (0). Port[n]_cfg_reg.Int_type specifies serial (00), E1 (01) or T1 (10) interface type. This pin is only active in external mode (GCR1.MODE=1). See the timing diagrams in Figure 14-15 through Figure 14-20. Table 9-6. SDRAM Interface Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) SD_CLK O SDRAM Clock 8mA All SDRAM interface pins are updated or latched on the rising edge of SD_CLK. See the timing diagrams in Figure 14-13 and Figure 14-14. SD_D[31:0] IO SDRAM Data 8mA MSB is SD_D[31]. SD_DQM[3:0] O SDRAM Byte Enable Mask 8mA SD_DQM[0] is associated with the least significant byte. SD_DQM[3] is associated with the most significant byte. When a SD_DQM pin is high during a write cycle, the associated byte is not written to SDRAM. When a SD_DQM pin is high during a read cycle, the associated byte is not driven out of the SDRAM (the SD_D pins remain high-Z). SD_A[11:0] O SDRAM Address Bus 8mA MSB is SD_A[11]. SD_BA[1:0] O SDRAM Bank Select Outputs 8mA The external SDRAMs used by the device have their memory organized into four banks. These pins specify the bank to be accessed. The bank must be specified on the same SD_CLK edge that the row information is specified on SD_A[11:0]. SD_CS_N O SDRAM Chip Select (Active Low) 8mA Driven low by the device to initiate a memory access (read or write) to the external SDRAM. SD_WE_N O SDRAM Write Enable (Active Low) 8mA Driven low by the device when data is to be written to the external SDRAM. Left high when data is to be read from the external SDRAM. SD_RAS_N O SDRAM Row Address Strobe (Active Low) 8mA Driven low by the device during SD_CLK cycles in which SD_A[11:0] indicates the SDRAM row address. SD_CAS_N O SDRAM Column Address Strobe (Active Low) 8mA Driven low by the device during SD_CLK cycles in which SD_A[11:0] indicates the SDRAM column address. 36 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-7. Ethernet PHY Interface Pins (MII/RMII/SSMII) The PHY interface type is configured by General_cfg_reg0.MII_mode_select[1:0]. 00=MII, 01=Reduced MII (RMII), 11=Source Synchronous Serial MII (SSMII). The MII interface is described in IEEE 802.3-2005 Section 22. The RMII interface is described in this document: http://www.national.com/appinfo/networks/files/rmii_1_2.pdf. The Source Synchronous Serial MII is described in this document: ftp://ftp-eng.cisco.com/smii/smii.pdf. PIN NAME(1) CLK_MII_TX TYPE(2) I PIN DESCRIPTION MII Transmit Clock Input In MII mode a 25MHz clock must be applied to this pin to clock the transmit side of the interface. MII_TXD[3:0], MII_TX_EN and MII_TX_ERR are clocked out of the device on the rising edge of CLK_MII_TX. See the timing diagram in Figure 14-22. In RMII mode a 50MHz clock must be applied to this pin to clock the transmit side of the interface. MII_TXD[3:2] and MII_TX_EN are clocked out of the device on the rising edge of CLK_MII_TX. See the timing diagram in Figure 14-24. CLK_SSMII_TX O 12ma MII_TXD[3:0] O 8mA In SSMII mode, a 125MHz clock must be applied to this pin. This clock is the reference for the CLK_SSMII_TX output. SSMII Transmit Clock Output In SSMII mode, the device provides a 125MHz clock on this pin to clock the transmit side of the interface. MII_TXD[0] (SSMII_TXD) and MII_TXD[1] (SSMII_TX_SYNC) are clocked out of the device on the rising edge of CLK_MII_TX. See the timing diagram in Figure 14-26. This pin is not used in MII and RMII modes. MII Transmit Data Outputs In MII mode, transmit data is passed to the PHY four bits at a time on MII_TXD[3:0] on the rising edge of CLK_MII_TX. See the timing diagram in Figure 14-22. In RMII mode, transmit data is passed to the PHY two bits at a time on MII_TXD[3:2] on the rising edge of CLK_MII_TX while MII_TXD[1:0] are not used. See the timing diagram in Figure 14-24. MII_TX_EN O 8mA MII_TX_ERR O 8mA CLK_MII_RX I In SSMII mode, transmit data is passed to the PHY one bit at a time on MII_TXD[0] (SSMII_TXD) on the rising edge of CLK_SSMII_TX. MII_TXD[1] (SSMII_TX_SYNC) indicates 10-bit segment alignment of the serial data stream. MII Transmit Enable Output In MII mode and RMII, this pin serves as the transmit enable output. In SSMII mode this pin is not used. MI Transmit Error Output In MII mode this pin serves as the transmit error output. In RMII and SSMII modes this pin is not used. MII Receive Clock Input In MII mode a 25MHz clock must be applied to this pin. MII_RXD[3:0], MII_RX_DV, and MII_RX_ERR are clocked into the device on the rising edge of CLK_MII_RX. See the timing diagram in Figure 14-23. In RMII mode this pin is not used, and a 50MHz clock applied to CLK_MII_TX provides timing for both transmit and receive sides of the interface. MII_RXD[3:2], MII_RX_DV and MII_RX_ERR are clocked into the device on the rising edge of CLK_MII_TX. See the timing diagram in Figure 14-25. In SSMII mode a 125MHz clock from the PHY must be applied to this pin. MII_RXD[0] (SSMII_RXD) and MII_RXD[1] (SSMII_RX_SYNC) are clocked into the device on the rising edge of CLK_MII_RX. See the timing diagram in Figure 14-27. 37 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) MII_RXD[3:0] TYPE(2) I PIN DESCRIPTION MII Receive Data Inputs In MII mode, receive data comes from the PHY four bits at a time on MII_RXD[3:0], on the rising edge of CLK_MII_RX. See the timing diagram in Figure 14-23. In RMII mode, receive data comes from the PHY two bits at a time on MII_RXD[3:2] and is latched on the rising edge of CLK_MII_TX. MII_RXD[1:0] are not used. See the timing diagram in Figure 14-25. MII_RX_DV I MII_RX_ERR I MII_COL I MII_CRS I MDC O 8mA MDIO IOpu 8mA In SSMII mode, received data comes from the PHY one bit at a time on MII_RXD[0] (SSMII_RXD) on the rising edge of CLK_MII_RX. MII_RXD[1] (SSMII_RX_SYNC) indicates 10-bit segment alignment of the serial data stream. MII Receive Data Valid Input In MII mode, this pin serves as the receive data valid input. In RMII mode, carrier sense and receive data valid alternate on this pin. See the RMII spec for details. In SSMII mode this pin is not used and should be pulled low or high. MII Receive Error Input In MII mode and RMII mode, this pin serves as the receive error input. In SSMII mode this pin is not used and should be pulled low or high. MII Collision Input In MII mode this pin serves as the collision detection input. In RMII mode and SSMII mode this pin is not used and should be pulled low or high. MII Carrier Sense Input In MII mode this pin serves as the carrier sense input. In RMII mode and SMII mode this pin is not used and should be pulled low or high. PHY Management Clock Output This signal is the clock for the Ethernet PHY management interface, which consists of MDC and MDIO. See the timing diagram in Figure 14-21. PHY Management Data Input/Output This signal is the serial data signal for the Ethernet PHY management interface, which consists of MDC and MDIO. When MDIO is an output, it is updated on the rising edge of MDC. When MDIO is an input, it is latched into the device on the rising edge of MDC. See the timing diagram in Figure 14-21. 38 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-8. Global Clock Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) CLK_SYS_S Ipd System Clock Selection Input This pin specifies the frequency of the clock applied to the CLK_SYS pin. See section 10.4. 0 = 50 or 75 MHz 1 = 25 MHz CLK_SYS I System Clock Input A 25 MHz, 50 MHz or 75 MHz clock (50 ppm or better) must be applied to this pin to clock TDM-over-Packet internal circuitry and the SDRAM interface (SD_CLK). When a 25MHz clock is applied, it is internally multiplied by the CLAD2 block to 50MHz or 75MHz as specified by GCR1.SYSCLKS. The CLK_SYS_S pin specifies whether the CLK_SYS signal is 25MHz (and therefore needs to multiplied up) or 50/75MHz (and therefore is used as-is). See section 10.4. CLK_CMN I Common Clock Input When the TDMoP engine is configured for common clock mode (also known as differential mode), the common clock is applied to this pin. This clock signal has to be a multiple of 8kHz and in the range of 1MHz to 25MHz. The frequency should not be too close to an integer multiple of the service clock frequency. Based on these criteria, the following frequencies are suggested: For systems with access to a common SONET/SDH network, a frequency of 19.44 MHz (2430*8 kHz). For systems with access to a common ATM network, 9.72 MHz (1215*8 kHz) or 19.44 MHz (2430*8 kHz). For systems using GPS, 8.184 MHz (1023*8 kHz). For systems connected by a single hop of 100 Mbit/s Ethernet where it is possible to lock the physical layer clock, 25 MHz (3125*8 kHz). For systems connected by a single hop of Gigabit Ethernet where it is possible to lock to the physical layer clock, 10MHz (1250*8 kHz). When a clock is not needed on this pin, pull it high or low. See section 10.4. CLK_HIGH I Clock High Input A 10, 19.44, 38.88 or 77.76MHz clock can be applied to this pin. From the CLK_HIGH signal, an on-chip frequency converter block (called a clock adapter or CLAD, in this case CLAD1) produces the 38.88MHz reference clock required by the clock recovery machines in the TDMoP block. In addition, CLAD1 also produces from the CLK_HIGH signal the 1.544MHz master clock (T1CLK) and the 2.048MHz master clock (E1CLK) required by the LIUs and framers. GCR1.FREQSEL specifies the frequency of the clock applied to CLK_HIGH. When GCR1.CLK_HIGHD=1, the CLAD disables the 38.88MHz reference clock to the clock recovery machines. When clock recovery is not required (i.e. when none of the recovered clock outputs TDMn_ACLK are used), CLK_HIGH can be held low. When a clock is not applied to CLK_HIGH, GCR1.MCLKE must be set to 1 and a clock must be applied to the MCLK pin to give the CLAD a reference clock from which to produce T1CLK and E1CLK for the LIUs and framers. See section 10.4. The required quality of the CLK_HIGH signal is discussed in section 10.6.3. MCLK I Master Clock Input When the CLK_HIGH pin is not used, a 2.048MHz ±50ppm or 1.544MHz ±32ppm clock must be applied to the MCLK pin, and GCR1.MCLKE must be set to 1. From the MCLK signal, an on-chip frequency converter block (called a clock adapter or CLAD) produces the 1.544MHz master clock (T1CLK) and the 2.048MHz master clock (E1CLK) required by the LIUs and framers. When a clock is present on the CLK_HIGH pin, the CLAD can synthesize T1CLK and E1CLK from the CLK_HIGH signal, and therefore MCLK can be disabled by setting GCR1.MCLKE=0. GCR1.MCLKS specifies whether the signal on MCLK is 1.544MHz or 2.048MHz. See section 10.4. 39 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-9. CPU Interface Pins See the parallel interface timing diagrams in Figure 14-9 and Figure 14-10 and the SPI timing diagrams in Figure 14-11 and Figure 14-12. PIN NAME(1) H_CPU_SPI_N TYPE(2) Ipu DAT_32_16_N Ipu H_D[31:1] IO 8mA H_D[0] / SPI_MISO IO 8mA H_AD[24:1] I H_CS_N I H_R_W_N / SPI_CP I H_WR_BE0_N / SPI_CLK H_WR_BE1_N / SPI_MOSI I I PIN DESCRIPTION Host Bus Interface 0 = SPI serial interface 1 = Parallel interface Data Bus Width 0 = 16-bit 1 = 32-bit In SPI bus mode this pin is ignored. Host Data Bus When the device is configured for a 32-bit parallel interface, H_D[31:0] are the data I/O pins (HD[31] is the MSb). When the device is configured for a 16-bit parallel interface, H_D[15:0] are the data I/O pins (HD[15] is the MSb) and H_D[31:16] are ignored and should be pulled low or high. The DAT_32_16_N pin specifies bus width. In SPI bus mode these pins are ignored. H_D[0]: Host Data LSb In parallel interface mode this pin is H_D[0], LSb of the data bus. SPI_MISO: SPI Data Output (Master In Slave Out) In SPI bus mode this pin is the SPI data output. Host Address Bus H_AD[24] is the MSb. When the host data bus is 32 bits (DAT_32_16_N=1), H_AD[1] should be held low. In SPI bus mode these pins are ignored. Host Chip Select (Active Low) In parallel interface mode this pin must be asserted (low) to read or write internal registers. In SPI bus mode this pin is ignored. H_R_W_N: Host Read/Write Control In parallel interface mode this pin controls whether an access to internal registers is a read or a write. SPI_CP: SPI Clock Phase In SPI interface mode this pin specifies SPI clock phase. See the timing diagrams in Figure 14-11 and Figure 14-12 for details. 0 = input data is latched on the leading edge of the SCLK pulse; output data is updated on the trailing edge 1 = input data is latched on the trailing edge of the SCLK pulse; output data is updated on the leading edge H_WR_BE0_N: Host Write Enable Byte 0 (Active Low) In parallel interface mode during a write access this pin specifies whether or not byte 0 (H_D[7:0]) should be written to the device. This pin is active in both 32-bit and 16-bit modes. 0 = write byte 0 1 = don’t write byte 0 SPI_CLK: SPI Clock In SPI interface mode this pin is the clock for the interface. H_WR_BE1_N: Host Write Enable Byte 1 (Active Low) In parallel interface mode during a write access this pin specifies whether or not byte 1 (H_D[15:8]) should be written to the device. This pin is active in both 32-bit and 16-bit modes. 0 = write byte 1 1 = don’t write byte 1 SPI_MOSI: SPI Data Input (Master Out Slave In) In SPI interface mode this pin is the data input pin for the interface. 40 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 PIN NAME(1) H_WR_BE2_N / SPI_SEL_N H_WR_BE3_N / SPI_CI H_READY_N TYPE(2) I I O 8mA PIN DESCRIPTION H_WR_BE2_N: Host Write Enable Byte 2 (Active Low) In 32-bit parallel interface mode during a write access this pin specifies whether or not byte 2 (H_D[15:8]) should be written to the device. In 16-bit parallel interface mode this pin is ignored and should be pulled high or low. 0 = write byte 2 1 = don’t write byte 2 SPI_SEL: SPI Chip Select (Active Low) In SPI interface mode this pin must be asserted (low) to read or write internal registers. H_WR_BE3_N: Host Write Enable Byte 3 (Active Low) In 32-bit parallel interface mode during a write access this pin specifies whether or not byte 3 (H_D[15:8]) should be written to the device. In 16-bit parallel interface mode this pin is ignored and should be pulled high or low. 0 = write byte 3 1 = don’t write byte 3 SPI_CI: SPI Clock Invert In SPI interface mode this pin specifies the polarity of the SPI_CLK pin. See the timing diagrams in Figure 14-11 and Figure 14-12 for details. 0 = SPI_CLK is normally low and pulses high (leading edge is rising edge) 1 = SPI_CLK is normally high and pulses low (leading edge is falling edge) Host Ready Output (Active Low) In parallel interface mode the device pulls this pin low during a read or write access to signal that the device is ready for the access to be completed. The host processor should not pull H_CS_N high (inactive) to complete the access until the device has pulled H_READY_N low. H_INT[1:0] O 8mA This pin requires the use of an external pull-up resistor. The device actively drives this pin high before allowing it to go high-impedance. See Figure 14-9. Host Interrupt Outputs (Active Low) H_INT[0] indicates interrupt requests from the TDMoP block. H_INT[1] indicates interrupt requests from the LIU, framer and BERT. Optionally, the H_INT[1] signal can be forced inactive at the H_INT[1] pin and internally ORed into the H_INT[0] signal by setting GCR1.IPOR=1. This allows H_INT[0] to indicate interrupt requests from any and all sources in the device. When GCR1.IPI0=1, H_INT[0] is forced high (inactive). When GCR1.IPI1=1, H_INT[1] is forced high (inactive). See section 10.9. 41 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-10. JTAG Interface Pins See the JTAG interface timing diagram in Figure 14-28. PIN NAME(1) JTRST_N TYPE(2) Ipu JTCLK I JTMS Ipu JTDI Ipu JTDO Oz 8mA PIN DESCRIPTION JTAG Test Reset (Active Low) This signal is used to asynchronously reset the test access port controller. After power up, JTRST_N must be toggled from low to high. This action sets the device into the JTAG DEVICE ID mode. Pulling JTRST_N low restores normal device operation. If boundary scan is not used, this pin should be held low. JTAG Test Clock This signal is used to shift data into JTDI on the rising edge and out of JTDO on the falling edge. JTAG Test Mode Select This pin is sampled on the rising edge of JTCLK and is used to place the test access port into the various defined IEEE 1149.1 states. If not used, JTMS should be held high. JTAG Test Data Input Test instructions and data are clocked into this pin on the rising edge of JTCLK. If not used, JTDI can be held low or high (DVDDIO). JTAG Test Data Output Test instructions and data are clocked out of this pin on the falling edge of JTCLK. If not used, this pin should be left unconnected. Table 9-11. Reset and Factory Test Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) RST_SYS_N Ipu System Reset (Active Low) When this pin is held low the entire device is reset. This pin should be held low (active) for at least 200 s before going inactive. CLK_SYS and CLK_HIGH should be stable for at least 200 s before RST_SYS_N goes inactive. See section 10.5 for more information on system resets and block-level resets. HIZ_N I High Impedance Enable (Active Low) When this signal is low while JTRST_N is low, all of the digital output and bidirectional pins are placed in the high impedance state. For normal operation this signal is high. This is an asynchronous input. SCEN I Used during factory test. This pin should be tied to DVSS. STMD I Used during factory test. This pin should be tied to DVSS. MBIST_EN I Used during factory test. This pin should be tied to DVSS. MBIST_DONE O Used during factory test. This pin should be left floating. MBIST_FAIL O Used during factory test. This pin should be left floating. TEST_CLK O Used during factory test. This pin should be left floating. TST_CLD I Used during factory test. This pin should be tied to DVSS. TST_TA, O Test Transmit Probe A/B/C, Test Receive Probe A/B/C TST_TB, Used during factory test. These pins should be left floating. TST_TC, TST_RA, TST_RB, TST_RC 42 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 9-12. Power and Ground Pins TYPE(2) PIN DESCRIPTION PIN NAME(1) DVDDC P 1.8V Core Voltage for Framers and TDM-over-Packet Digital Logic (17 pins) DVDDIO P 3.3V for I/O Pins (16 pins) DVSS P Ground for Framers, TDM-over-Packet and I/O Pins (31 pins) DVDDLIU P 3.3V for LIU Digital Logic (2 pins) DVSSLIU P Ground for LIU Digital Logic (2 pins) ATVDDn P 3.3 V for LIU Transmitter Analog Circuits (8pins) ATVSSn P Ground for LIU Transmitter Analog Circuits (8 pins) ARVDDn P 3.3 V for LIU Receiver Analog Circuits (8 pins) ARVSSn P Ground for LIU Receiver Analog Circuits (8 pins) ACVDD1 P 1.8V for CLAD Analog Circuits ACVDD2 P 1.8V for CLAD Analog Circuits ACVSS1 P Ground for CLAD Analog Circuits ACVSS2 P Ground for CLAD Analog Circuits 43 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10 Functional Description 10.1 Power-Supply Considerations Due to the dual-power-supply nature of the device, some I/Os have parasitic diodes between a 1.8V supply and a 3.3V supply. When ramping power supplies up or down, care must be taken to avoid forward-biasing these diodes because it could cause latchup. Two methods are available to prevent this. The first method is to place a Schottky diode external to the device between the 1.8V supply and the 3.3V supply to force the 3.3V supply to be within one parasitic diode drop below the 1.8V supply (i.e. VDD3.3 > VDD1.8 – 0.4V). The second method is to ramp up the 3.3V supply first and then ramp up the 1.8V supply. 10.2 CPU Interface The CPU interface enables an external CPU to configure and control the device and collect statistics from the device. The CPU interface block identifies accesses (read or write) to on-chip registers and to external SDRAM, forwards accesses to the proper place, and replies to the CPU with the requested data during read accesses. See Figure 10-1. AC timing for the CPU interface is specified in section 14.3. Figure 10-1. CPU Interface Functional Diagram SDRAM DS34T10x SDRAM CONTROLLER ACCESS WITHIN CHIP DATA CONTROL CPU BUS ADDRESS H_INT[1:0] CPU INTERFACE CPU To configure the device for CPU interface mode, the H_CPU_SPI_N pin must be high when the RST_SYS_N (system reset) pin is deasserted. The chip can be configured for 16-bit or 32-bit data bus width by wiring the DAT_32_16_N pin as shown in Table 10-1: 44 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-1. CPU Data Bus Widths Access to DAT_32_16_N Data Bus Chip Internal Value Width Resources 1 0 32 bits 16 bits 32 bit only 16 bit only Access to SDRAM Data Bus Bits MSB H_WR_BE Pins Used 8, 16, 32 bit 8, 16 bit H_D[31:0] H_D[15:0] H_D[31] H_D[15] 3:0 1:0 Burst accesses are not supported. The device uses the big-endian byte order, as explained in section 11.1. The CPU starts an access to the device by asserting the H_CS_N signal (active low), accompanied by the desired read/write state on H_R_W_N, address on H_AD[24:1], write byte enables on the H_WR_BE pins and valid data (for a write access) on the H_D[31:0] pins. In response, the device asserts H_READY_N to indicate that the access has been carried out. The ready assertion indicates that data from the CPU has been written into the device register or external SDRAM (for write access) or that valid data from register/SDRAM is present on the data bus (for read access). In response to H_READY_N assertion, the CPU de-asserts H_CS_N. This causes the chip to de-assert H_READY_N, and thereby finish the CPU access. In order to make CPU operation more efficient, the device immediately asserts H_READY_N during a write access. On successive accesses (write or read) H_READY_N is asserted only after the previous write has been completed. In 32-bit bus mode, H_WR_BE0_N through H_WR_BE3_N serve as write byte enable signals, replacing the functionality of H_AD[1:0] in the address bus. In 16-bit bus mode, H_WR_BE0_N and H_WR_BE1_N serve as write byte enables, replacing the functionality of H_AD[0] in the address bus. These signals enable byte-resolution write access to the external SDRAM. When performing a write access to internal chip resources, all H_WR_BE pins should be asserted since write access to device registers must be done at the full bus width only. Examples of read and write accesses on 32- and 16-bit buses are shown in the figures below. Figure 10-2. Write Access, 32-Bit Bus DAT_32_16_N[0] 32 bit data bus H_CS_N[0] H_AD[24:1] cpu_addr[[1]='don't care' cpu_addr[1]='don't care' cpu_addr[1]='don't care' H_R_W_N[0] H_READY_N[0] [0] H_D[31:24] SDRAM WRITE ACCESS data ignored SDRAM WRITE ACCESS valid INTERNAL valid H_D[23:16] data ignored valid valid H_D[15:8] valid data ignored valid H_D[7:0] data_ignored data ignored valid H_WR_BE3_N[0] H_WR_BE2_N[0] H_WR_BE1_N[0] H_WR_BE0_N[0] Figure 10-2 shows two write accesses to the SDRAM, one to a byte (at address 2) and the other to a word (at addresses 0 and 1), followed by a write access to the internal chip resources. 45 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The write access to the SDRAM is different than the write access to the chip. The SDRAM can be written with byte resolution using the four byte write enables. In contrast, internal chip resources are always written at full CPU data bus width (32 bits in Figure 10-2). The write byte enable signals should always be asserted when writing to internal device registers. For 32-bit CPU bus width, H_AD[1] is ignored, since accesses are always on an even 4-byte boundary. Figure 10-3 shows a read access to the SDRAM followed by a read access to the internal chip resources. Read accesses always occur at CPU data bus width and the H_WR_BE pins are not used (and must be held high). Bytes that are not needed by the CPU can be ignored. Figure 10-3. Read Access, 32-Bit Bus DAT_32_16_N[0] 32bit cpu data bus H_CS_N[0] H_AD[24:1] cpu_addr[1]='don't care' cpu_addr[1]='don't care' H_R_W_N[0] H_READY_N[0] [0] SDRAM READ ACCESS H_D[31:0] valid valid H_WR_BE3_N[0] H_WR_BE2_N[0] H_WR_BE1_N[0] H_WR_BE0_N[0] Figure 10-4 shows a write access to the chip followed by a read access in 16-bit bus mode. In this mode the H_AD[1] signal is used because accesses are on an even 2-byte boundary. Write access to the SDRAM can still be at byte resolution, as illustrated in Figure 10-5. Figure 10-4. Read/Write Access, 16-Bit Bus 16 bit cpu data bus DAT_32_16_N[0] H_CS_N[0] H_AD[24:1] H_R_W_N[0] [0] H_D[15:0] INTERNAL valid INTERNAL valid H_READY_N[0] H_WR_BE1_N[0] H_WR_BE0_N[0] 46 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-5. Write Access to the SDRAM, 16-Bit Bus 16 bit data bus DAT_32_16_N[0] H_CS_N[0] H_AD[24:1] H_R_W_N[0] H_READY_N[0] [0] H_D[15:8] SDRAM WRITE ACCESS valid H_D[7:0] data ignored H_WR_BE1_N[0] H_WR_BE0_N[0] In 16-bit bus mode, read accesses to SDRAM are always 16 bits, as in Figure 10-6. Figure 10-6. Read Access to the SDRAM, 16-Bit Bus 16 bit data bus DAT_32_16_N[0] H_CS_N[0] H_AD[24:1] H_R_W_N[0] H_READY_N[0] [0] SDRAM READ ACCESS H_D[15:8] valid H_D[7:0] valid H_WR_BE1_N[0] H_WR_BE0_N[0] 10.3 SPI Interface The device optionally can be accessed by an external CPU through a Serial Peripheral Interface (SPI). To configure the device for SPI interface mode, the H_CPU_SPI_N pin must be low when the RST_SYS_N (system reset) pin is deasserted. In SPI mode, some of the parallel CPU bus pins take on an SPI-related function while the rest are disabled. See the CPU interface section of Table 9-1 for details. The device functions as an SPI slave. 10.3.1 SPI Operation The SPI is a 4-wire, full-duplex, synchronous interface. The SPI connects an SPI master (which initiates the data transfer) and an SPI slave. The SPI signal wires are as follows:  SPI_CLK is the clock for the serial data (gated clock).  SPI_MOSI is master data output, slave data input. 47 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108  SPI_MISO is master data input, slave data output.  SPI_SEL_N is the slave chip select. The master initiates a data transfer by asserting SPI_SEL_N (low) and generating a sequence of SPI_CLK cycles accompanied by serial data on SPI_MOSI. During read cycles the slave outputs data on SPI_MISO. Each additional slave requires an additional slave chip-select wire. Figure 10-7 illustrates a typical connection between an SPI master and a single SPI slave. Figure 10-7. SPI Interface with One Slave SPI_CLK SPI Master SPI_MOSI SPI_MISO SPI Slave SPI_SEL_N 10.3.2 SPI Modes Two configuration pins define the SPI mode of operation.  The polarity of SPI_CLK is specified by the SPI_CI (clock invert) input pin.  The SPI_CP (clock phase) input pin determines whether the first SPI_CLK transition is used to sample the data on SPI_MISO/SPI_MOSI (which requires the first bit to be ready beforehand on these lines) or to updated the data on the SPI_MISO/SPI_MOSI lines. See Figure 10-8 and Figure 10-9. Figure 10-8. SPI Interface Timing, SPI_CP=0 SPI_SEL_N SPI_CLK(CI=0) SPI_CLK(CI=1) SPI_MOSI(input) msb lsb SPI_MISO(output) msb lsb Figure 10-9. SPI Interface Timing, SPI_CP=1 SPI_SEL_N SPI_CLK(CI=0) SPI_CLK(CI=1) SPI_MOSI(input) msb SPI_MISO(output) msb lsb lsb 48 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.3.3 SPI Signals In SPI mode, the following CPU bus pins change their functionality and operate as SPI signals.   Inputs o SPI_CLK is shared with H_WR_BE0_N o SPI_MOSI is shared with H_WR_BE1_N o SPI_SEL_N is shared with H_WR_BE2_N. Outputs o SPI_MISO is shared with H_D[0]. The SPI configuration is supplied on two external pins as follows:  SPI_CI (clock invert) is shared with H_WR_BE3_N  SPI_CP (clock phase) is shared with H_R_W_N. In the SPI mode the device operates internally in 32-bit mode. 10.3.4 SPI Protocol The external CPU communicates with the device over SPI by issuing commands. There are three command types: 1. Write – performs 32-bit write access 2. Read – performs 32-bit read access 3. Status – verifies that previous access has been finished The SPI_SEL_N signal must be de-asserted between accesses to the device. 10.3.4.1 Write Command The SPI write command proceeds as follows:  The SPI master (CPU) starts a write access by asserting SPI_SEL_N (low).  Then, during each SPI_CLK cycle a SPI_MOSI data bit is transmitted by the master (CPU), while a SPI_MISO bit is transmitted by the slave (the device).  The first bit on SPI_MOSI and SPI_MISO is reserved (don’t care).  The master then transmits two opcode bits on SPI_MOSI. These bits specify a read, write or status command. The value 01b represents a write command. At the same time, the slave transmits the opcode bits of the previous command on SPI_MISO.  The next four bits the master transmits on SPI_MOSI are byte-enable values: byte_en_3, byte_en_2, byte_en_1, and byte_en_0 which are equivalent to the function of the H_WR_BE3_N to H_WR_BE0_N 49 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 signals in CPU bus mode (including being active low). At the same time, the slave transmits the byte enable values of the previous access on SPI_MISO.  The next bit on SPI_MOSI and SPI_MISO is reserved (don’t care).  The next 24 bits the master transmits on SPI_MOSI are address bits, starting from A24 (MSB) and ending with A1 (LSB). At the same time, the slave transmits the address bits of the previous access on SPI_MISO.  The next 32 bits the master transmits on SPI_MOSI are 32 bits of data, starting from D31 (MSB) and ending with D0 (LSB). At the same time, the slave transmits 32 don’t-care bits on SPI_MISO.  Finally the master transmits 8 don’t care bits on SPI_MOSI. During these clock periods the slave transmits 8 bits on SPI_MISO. The first 7 SPI_MISO bits are don’t-care. The 8th bit is a status bit that indicates whether the last access was completed successfully (1) or is still in progress (0). The 0 value indicates that the current operation has not yet completed and that the status command must follow (see section 10.3.4.3).  The master ends the write access by deasserting SPI_SEL_N. The total number of SPI_CLK cycles for a write command is 72. This is summarized in Table 10-2. Table 10-2. SPI Write Command Sequence Bit Number SPI_MOSI SPI_MISO 1 Reserved Reserved 2–3 opcode 01 (write) Previous access opcode 4 H_WR_BE3_N value Previous access H_WR_BE3_N value 5 H_WR_BE2_N value Previous access H_WR_BE2_N value 6 H_WR_BE1_N value Previous access H_WR_BE1_N value 7 H_WR_BE0_N value Previous access H_WR_BE0_N value 8 Reserved Reserved 9–32 Address [24 to 1] Previous access address [24 to 1] 33–64 Data (32 bits) Don’t care (32 bits) 65–71 Don’t care (7 bits) Idle (7 bits) 72 Don’t care (1 bit) Status bit: 1=access has finished, 0=access has not finished 10.3.4.2 Read Command The SPI read command proceeds as follows:  The SPI master (CPU) starts a write access by asserting SPI_SEL_N (low).  Then, during each SPI_CLK cycle a SPI_MOSI data bit is transmitted by the master (CPU), while a SPI_MISO bit is transmitted by the slave (the device).  The first bit on SPI_MOSI and SPI_MISO is reserved (don’t care).  The master then transmits two opcode bits on SPI_MOSI. These bits specify a read, write or status command. The value 10b represents a read command. At the same time, the slave transmits the opcode bits of the previous command on SPI_MISO.  The next four bits the master transmits on SPI_MOSI are byte-enable values: byte_en_3, byte_en_2, byte_en_1, and byte_en_0 which are equivalent to the function of the H_WR_BE3_N to H_WR_BE0_N 50 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 signals in CPU bus mode (including being active low). For a read access, all four of these bits should be 1. At the same time, the slave transmits the byte enable values of the previous access on SPI_MISO.  The next bit on SPI_MOSI and SPI_MISO is reserved (don’t care).  The next 24 bits the master transmits on SPI_MOSI are address bits, starting from A24 (MSB) and ending with A1 (LSB). At the same time, the slave transmits the address bits of the previous access on SPI_MISO.  Next the master transmits 8 don’t care bits on SPI_MOSI. During these clock periods the slave transmits 8 bits on SPI_MISO. The first 7 SPI_MISO bits are don’t-care. The 8th bit is a status bit that indicates whether the current read access was completed successfully (1) or is still in progress (0). Status=0 indicates that the current operation has not yet completed and that the status command must follow (see section 10.3.4.3).  Status=1 indicates that the current read was completed successfully and 32 bits of data follow on SPI_MISO, starting from D31 (MSB) and ending with D0 (LSB). During these 32 clock cycles, the master transmits 32 don’t-care bits on SPI_MOSI.  Status=0 indicates that the current read was not completed and that the status command must follow (see section 10.3.4.3). During the next 32 clock cycles both the master and the slave must transmit don’t-care bits to complete the read command. These 32 bits should be ignored.  The master ends the write access by deasserting SPI_SEL_N. The total number of SPI_CLK cycles for a read command is 72. Table 10-3. SPI_ Read Command Sequence Bit Number SPI_MOSI SPI_MISO 1 Reserved Reserved 2–3 opcode 10 (read) Previous access opcode 4 1 Previous access H_WR_BE3_N value 5 1 Previous access H_WR_BE2_N value 6 1 Previous access H_WR_BE1_N value 7 1 Previous access H_WR_BE0_N value 8 Reserved Reserved 9–32 Address [24 to 1] Previous access Address [24 to 1] 33–39 Don’t care Idle (7 bits) 40 41–72 Don’t care Don’t care Status bit: 1=access has finished, 0=access has not finished Data (32 bits) 10.3.4.3 Status Command The status command differs from read or write commands, since it does not initiate an internal access. Usually a status command follows a read or write command that was not completed as described above. The SPI status command proceeds as follows:  The SPI master (CPU) starts a status command by asserting SPI_SEL_N (low).  Then, during each SPI_CLK cycle a SPI_MOSI data bit is transmitted by the master (CPU), while a SPI_MISO bit is transmitted by the slave (the device). 51 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108  The first bit on SPI_MOSI and SPI_MISO is reserved (don’t care).  The master then transmits two opcode bits on SPI_MOSI. These bits specify a read, write or status command. The value 00b represents a status command. At the same time, the slave transmits the opcode bits of the previous command on SPI_MISO.  The master then transmits 4 don’t care bits on SPI_MOSI. During these clock periods the slave transmits 4 bits on SPI_MISO. The first 3 SPI_MISO bits are don’t-care. The 4th bit is a status bit that indicates whether the last access was completed successfully (1) or is still in progress (0). The 0 value indicates that the last access has not yet completed and that another status command must follow (see section 10.3.4.3).  Status=1 indicates that the last access was completed successfully. If the last access was a read then 32 bits of data follow on SPI_MISO, starting from D31 (MSB) and ending with D0 (LSB). During these 32 clock cycles, the master transmits 32 don’t-care bits on SPI_MOSI. If the last access was a write the during the next 32 clock cycles both the master and the slave must transmit don’t-care bits to complete the status command. These 32 bits should be ignored.  Status=0 indicates that the last access was not completed and that another status command must follow. During the next 32 clock cycles both the master and the slave must transmit don’t-care bits to complete the status command. These 32 bits should be ignored.  The master ends the write access by deasserting SPI_SEL_N. The total number of SPI_CLK cycles for a status command is 40. Table 10-4. SPI Status Command Sequence Bit Number SPI_MOSI SPI_MISO 1 Don’t care Don’t care 2–3 opcode 00 (status) Previous access opcode 4 Don’t care Don’t care 5 Don’t care Don’t care 6 Don’t care Don’t care 7 Don’t care Don’t care 8 Don’t care Status bit: 1=access has finished, 0=access has not finished 9–40* Don’t care* Data* * only if previous access was a read (previous access opcode = 10b). 10.4 Clock Structure When clock recovery is enabled (Clock_recovery_en=1 in General_cfg_reg0), the clock recovery machines of the TDM-over-packet block require a 38.88MHz clock. This clock can come directly from the CLK_HIGH pin, or the CLAD1 block (see Figure 6-1) can convert a 10MHz, 19.44MHz or 77.76MHz clock on CLK_HIGH to 38.88MHz using an analog PLL. The frequency of CLK_HIGH must be specified in GCR1.FREQSEL. 1 When common clock (differential) mode is enabled (RTP_timestamp_generation_mode=1 in General_cfg_reg1), the clock recovery block requires a clock on the CLK_CMN pin in addition to the clock on the CLK_HIGH pin. See the CLK_CMN pin description for recommendations for the frequency of this clock. Often the same clock signal can be applied to both CLK_CMN and CLK_HIGH, for example 19.44MHz. When clock recovery is disabled (Clock_recovery_en=0 in General_cfg_reg0), CPU software can disable the 38.88MHz clock output from CLAD1 to save power by setting GCR1.CLK_HIGHD. Clock recovery must be enabled whenever the TDMoP block must recover one or more service clocks from received packets using either adaptive mode or common clock (differential) mode. 1 52 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 In addition to producing 38.88 MHz for the adaptive clock recovery machines, CLAD1 also make E1 and T1 master clocks for the LIUs and Framers. CLAD1 can make these E1 and T1 master clocks from the CLK_HIGH signal if available. This is not affected by the state of the GCR1.CLK_HIGHD bit. If a clock is not applied to the CLK_HIGH pin because clock recovery is disabled, CLAD1 must have a 2.048MHz or 1.544MHz signal on the MCLK pin from which to make the E1 and T1 master clocks. In this case, MCLK must be enabled by setting GCR1.MCLKE, and the frequency of the MCLK signal must be specified by GCR1.MCLKS. The signal on MCLK should have ±50ppm or better accuracy for E1 or ±32ppm or better for T1 to meet the line rate frequency accuracy requirements of various telecom standards documents. The TDM-over-packet block also requires a 50 MHz or 75 MHz clock (50 ppm or better) to clock its internal circuitry and the SDRAM interface (SD_CLK). When the CLK_SYS_S pin is low, a 50 MHz or 75 MHz clock applied to the CLK_SYS pin is passed directly to the TDMoP block. When the CLK_SYS_S pin is high, a 25 MHz clock on the CLK_SYS pin is internally multiplied by an analog PLL in the CLAD2 block to either 50 MHz or 75 MHz as specified by GCR1.SYSCLKS. 10.5 Reset and Power-Down A hardware reset is issued by forcing the RST_SYS_N pin low. This pin resets the TDM-over-Packet block, the MAC, and all framers, LIUs and BERTs. Note that not all registers are cleared to 0x00 on a reset condition. The register space must be reinitialized to appropriate values after hardware or software reset has occurred. This includes setting reserved locations to 0. A variety of block-specific resets are also available, as shown in Table 10-5. Table 10-5. Reset Functions RESET FUNCTION LOCATION Hardware Device Reset RST_SYS_N Pin Hardware JTAG Reset JTRST_N Pin Resets TDMoP TX, RX paths Rst_reg Resets the SDRAM controller General_cfg_reg0 COMMENTS Transition to a 200us or more logic 0 level resets the device. CLK_SYS and CLK_HIGH/MCLK are recommended to be stable 200us before transitioning out of reset. Resets the JTAG test port. Used to reset the transmit (TX) and receive (RX) paths of the TDM-over-Packet block. The Rst_SDRAM_n bit resets the SDRAM controller. Resets the BERTs GTRR.BSRST This bit resets the Bit Error Rate Testers (BERTs) for all ports. Global Framer and Resets GTRR.FSRST This bit resets the Framers (transmit and receive) for all ports. LIU Interface Reset GTRR.LIRST[8:1] These bits reset the clock recovery state machine and re-center the jitter attenuator FIFO pointers for the corresponding LIUs. LIU Software Resets GTRR.LSRST[7:0] These bits reset the logic and registers for the corresponding LIUs. Framer Receive Reset RMMR.SFTRST This bit resets the Receive Framer. Framer Transmit Reset TMMR.SFTRST This bit resets the Transmit Framer. 53 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 RESET FUNCTION LOCATION COMMENTS HDLC Receive Reset RHC.RHR This bit resets the Receive HDLC controller. HDLC Transmit Reset THC1.THR This resets the Transmit HDLC controller. Elastic Store Receive Reset RESCR.RESR This bit resets the Receive Elastic Store. Elastic Store Transmit Reset TESCR.TESR This bit resets the Transmit Elastic Store. Bit Oriented Code Receive Reset RBOCC.RBR This bit resets the Receive BOC controller. Loop Code Integration Reset RDNCD1, RUPCD1 Spare Code Integration Reset RSCD1 Writing to these registers resets the programmable inband code integration period. Writing to this register resets the programmable in-band code integration period. The device has several features included to reduce power consumption. The individual LIU transmitters can be powered down by setting the TPDE bit in the LIU maintenance control register (LMCR). Note that powering down the transmit LIU results in a High-Z state for the corresponding TTIP and TRING pins, and reduced operating current. The RPDE in the LMCR register can be used to power down the LIU receiver. The LMCR.TXEN (Transmit Enable) bit (per-port) or the TXENABLE pin (all ports) can be used to disable the TTIP and TRING outputs and place them in a high-impedance mode while keeping the LIU transmitter(s) in an active state (powered up). The TXENABLE pin has priority over the TXEN bit. These controls are useful for equipment protection switching applications. 10.6 TDM-over-Packet Block 10.6.1 Packet Formats To transport TDM data through packet switched networks, the TDM-over-Packet block encapsulates the TDM data into Ethernet frames as depicted in Figure 10-10. 54 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-10. TDM-over-Packet Encapsulation Formats Table 10-6. Ethernet Frame Fields Field Preamble Start of Frame Delimiter (SFD) Destination Address and Source Address Type Data and Padding Frame Check Sequence (FCS) Description A sequence of 56 bits (alternating 1 and 0 values) Gives components in the network time to detect the presence of a signal and synchronize to the incoming bit stream. A sequence of 8 bits (10101011) that indicates the start of the frame. The Destination Address field identifies the station or stations that are to receive the frame. The Source Address identifies the station that originated the frame. A Destination Address may specify either an individual address destined for a single station, or a multicast address destined for a group of stations. A Destination Address of all 1s refers to all stations on the LAN and is called the broadcast address. Ethertype. The type of payload contained in the Ethernet frame. This field contains the payload data transferred from the source station to the destination station(s). The maximum size of this field is 1500 bytes. If the payload to be transported is less than 46 bytes, then padding is used to bring the frame size up to the minimum length. A minimum-length Ethernet frame is 64 bytes from the Destination Address field through the Frame Check Sequence. This field contains a 4-byte cyclical redundancy check (CRC) value used for error checking. When a source station assembles a frame, it performs a CRC calculation on all the bits in the frame from the Destination Address through the Pad fields (that is, all fields except the preamble, start frame delimiter, and frame check sequence). The source station stores the calculated value in the FCS field and transmits it as part of the frame. When the frame is received by the destination station, it performs an identical check. If the calculated value does not match the value in the FCS field, the destination station assumes an error has occurred during transmission and discards the frame. 55 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.1.1 VLAN Tag As specified in IEEE Standard 802.1q, the twelve-bit VLAN identifiers enable the construction of a maximum of 4,096 distinct VLANs. For cases where this VLAN limit is inadequate VLAN stacking provides a two-level VLAN tag structure, which extends the VLAN ID space to over 16 million VLANs. Each packet may be sent without VLAN tags, with a single VLAN tag or with two VLAN tags (VLAN stacking). Figure 10-11. Single VLAN Tag Format 0 0 1 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 VLAN Tag Protocol ID (TPID) User CFI VLAN ID Priority Figure 10-12. Stacked VLAN Tag Format The VLAN tag’s Protocol ID (TPID) can be either the typical value of 0x8100 or a value configured in the vlan_2nd_tag_identifier field in Packet_classifier_cfg_reg7.  The User Priority field is used to assign a priority level to the Ethernet packet.  The CFI (Canonical Format Indicator) fields indicate the presence of a Router Information Field.  The VLAN ID, uniquely identifies the VLAN to which the Ethernet packet belongs. 10.6.1.2 UDP/IPv4 Header Figure 10-13. UDP/IPv4 Header Format 56 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-7. IPv4 Header Fields (UDP) Field IPVER IHL IP TOS Total Length Identification Flags Fragment Offset Time To Live Protocol IP Header Checksum Source IP Address Destination IP Address Description IP version number. IPv4 IPVER=4 Length in 32-bit words of the IP header, IHL=5 IP type of service Length in octets of IP header and data IP fragmentation identification IP control flags; must be set to 010 to avoid fragmentation Indicates where in the datagram the fragment belongs; not used for TDM-over-Packet IP time-to-live field; datagrams with zero in this field are to be discarded Must be set to 0x11 to signify UDP Checksum for the IP header IP address of the source IP address of the destination Table 10-8. UDP Header Fields Field Source Port Number, Destination Port Number UDP length UDP checksum Description Either the source or the destination port number holds the bundle identifier. The unused field can be set to 0x85E (2142), which is the user port number assigned to TDM-over-Packet by the Internet Assigned Numbers Authority (IANA). For UDP/IP-specific OAM packets, the bundle identifier is all ones. Length in octets of UDP header and data Checksum of UDP/IP header and data. If not computed it must be set to zero. 10.6.1.3 UDP/IPv6 Header UDP HEADER IP HEADER Figure 10-14. UDP/IPv6 Header Format 57 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-9. IPv6 Header Fields (UDP) Field IPVER Traffic Class Flow Label Description IP version number, for IPv6 IPVER = 6 An 8-bit field similar to the type of service (ToS) field in IPv4. The 20-bit Flow Label field can be used to tag packets of a specific flow to differentiate the packets at the network layer. Similar to the Total Length field in IPv4. This field indicates the total length of the IP header and data in octets. Similar to the Protocol field in IPv4. It determines the type of information following the basic IPv6 header. Must be set to 0x11 to signify UDP. Similar to the Time to Live field in IPv4. Similar to the Source Address field in IPv4, except that the field contains a 128-bit source address for IPv6 instead of a 32-bit source address for IPv4. Similar to the Destination Address field in IPv4, except that the field contains a 128-bit destination address for IPv6 instead of a 32-bit destination address for IPv4. Payload Length Next Header Hop Limit Source IP Address Destination Address 10.6.1.4 MPLS Header Figure 10-15. MPLS Header Format Table 10-10. MPLS Header Fields Field Outer Labels Description MPLS labels, which identify the MPLS LSP, used to tunnel the TDMoMPLS packets through the MPLS network. Also known as tunnel label(s) or transport label(s). The label number can be assigned either manually or using the MPLS control protocol. There can be zero, one or two outer labels. Experimental field Stacking bit: S=1 indicates stack bottom (i.e. the inner label). S=0 for all outer labels. MPLS time to live MPLS inner label (also known as the PW label or the interworking label) contains the bundle identifier used to multiplex multiple bundles within the same tunnel. It is always be at the bottom of the MPLS label stack, and hence its stacking bit is set (S=1). EXP S TTL Inner Label 10.6.1.5 MEF Header Figure 10-16. MEF Header Format 0 0 1 1 2 3 4 5 6 7 8 9 0 2 1 2 3 ECID = BUNDLE IDENTIFIER Table 10-11. MEF Header Fields Field ECID 4 5 6 7 8 9 0 3 1 EXP 2 3 4 5 6 7 8 9 0 1 0x102 Description The Emulated Circuit Identifier (ECID) field. Contains the bundle identifier. 58 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.1.6 L2TPv3/IPv4 Header L2TPv3 HEADER IP HEADER Figure 10-17. L2TPv3/IPv4 Header Format Table 10-12. IPv4 Header Fields (L2TPv3) Field IPVER IHL IP TOS Total Length Identification Flags Fragment Offset Time To Live Protocol IP Header Checksum Source IP Address Destination IP Address See Table 10-7. Must be set to 0x73 to signify L2TPv3 See Table 10-7. Table 10-13. L2TPv3 Header Fields Field Session ID (32 bits) Cookie (32 or 64 bits) Description Description Locally significant L2TP session identifier, Contains the bundle identifier. All bundle identifiers are available for use except 0, which is reserved. Optional field that contains a randomly selected value used to validate association of the packet with the expected bundle identifier 59 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.1.7 L2TPv3/IPv6 Header L2TPv3 HEADER IP HEADER Figure 10-18. L2TPv3/IPv6 Header Format Table 10-14. IPv6 Header Fields (L2TPv3) Field IPVER Traffic Class Flow Label Payload Length Next Header Hop Limit Source Address Destination Address Description See Table 10-9. Must be set to 0x73 to signify LTPv3 See Table 10-9. 10.6.1.8 Control Word Figure 10-19. Control Word Format Table 10-15. Control Word Fields Field RES L R Description Reserved bits. Must be set to zero. Local loss of sync failure. This bit is set by CPU software (Port[n]_cfg_reg.Loss) for packets transmitted out the Ethernet port. A set L bit indicates that the source has detected or has been informed of a TDM physical layer fault impacting the data to be transmitted. This bit can be used to indicate physical layer LOS that should trigger AIS generation at the far end. Once set, if the TDM fault is rectified, the L bit must be cleared. Remote receive failure. This bit is set by CPU software (Tx_R_bit field in bundle configuration) for packets transmitted out the Ethernet port.. A set R bit indicates that the source is not receiving packets at the Ethernet port, i.e., 60 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Field M FRG Length Sequence Number Description there is a failure of that direction of the bi-directional connection. This indication can be used to signal congestion or other network related faults. Receiving remote failure indication may trigger fall-back mechanisms for congestion avoidance. The R bit must be set after a preconfigured number of consecutive packets are not received, and must be cleared once packets are once again received. Defect Modifier failure. These bits are set by CPU software (Port[n]_cfg_reg.Tx_defect_modifier) for packets transmitted out the Ethernet port.. This field is optional. When used it supplements the L-bit meaning. Fragmentation field This field is used for fragmenting multiframe structures into multiple packets in case of CESoPSN structured with CAS bundles. The field is used as follows: 00 = Indicates that the entire (unfragmented) multiframe structure is carried in a single packet. 01 = Indicates the packet carrying the first fragment. 10 = Indicates the packet carrying the last fragment. 11 = Indicates a packet carrying an intermediate fragment. Length field Includes control word, payload and RTP header (if present) unless it is a UDP/IP packet. It is only used when the total length of these fields is less than 64 bytes. Otherwise, it must be set to zero. TDM-over-Packet sequence number, defined separately for each bundle and incremented by one for each TDMoP packet sent for that bundle. The initial value of the sequence number is random (unpredictable) for security purposes, and the value is incremented in wrap-around manner separately for each bundle. Used by the receiver to detect packet loss and restore packet sequence. The HDLC payload type machine supports three different modes for this field: always zero, incremented in wrap-around manner or incremented in wrap-around manner, but skips zero value. For OAM packets, it uniquely identifies the message. Its value is unrelated to the sequence number of the TDMoP data packets for the bundle in question. It is incremented in query messages, and replicated without change in replies. 10.6.1.9 RTP Header Figure 10-20. RTP Header Format Table 10-16. RTP Header Fields Field V P X CC M PT SN TS Description RTP version. Must be set to 2. Padding bit. Must be set to 0. Extension bit. Must be set to 0. CSRC Count. Must be set to 0. Marker bit. Must be set to 0. Payload Type. One PT value MUST be allocated from the range of dynamic values for each direction of the bundle. The same PT value MAY be reused for both directions of the bundle, and also reused between different bundles. Sequence number. Identical to the sequence number in the control word. Timestamp. The RTP header can be used in conjunction with the following modes of timestamp generation: Absolute mode: the chip sets timestamps using the clock from the incoming TDM circuit. As a consequence, the timestamps are closely correlated with the sequence numbers. The timestamp is incremented by one every 125 s. Differential (common clock) mode: The two chips at bundle edges have access to the same high-quality network clock, and this clock source is used for timestamp generation. 61 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Field Description SSRC Identifies the synchronization source. This identifier should be chosen randomly, with the intent that no two synchronization sources within the same RTP session have the same SSRC identifier. 10.6.1.10 TDM-over-Packet Payload This field can contain the following payload types:  AAL1  HDLC  RAW (SAToP or CESoPSN formats)  OAM (VCCV or UDP/IP-specific). The AAL1, HDLC and RAW payload type details are provided in sections 10.6.6, 10.6.7 and 10.6.8, respectively. The formats of the OAM payload types are described below. 10.6.1.10.1 VCCV OAM When using inband performance monitoring, additional OAM packets are sent using the same bundle identifier as the TDM data packets. The OAM packets are identified by having their first nibble (after the PSN specific layers) equal to 0001 and must be separated from TDM data packets before further processing of the control word. The PSN-specific layers are identical to those used to carry the TDM data. Figure 10-21. VCCV OAM Packet Format 0 0 1 1 2 3 4 5 6 7 8 9 0 2 1 2 3 4 5 6 7 8 9 0 3 1 2 3 4 5 6 7 8 9 0 1 PSN-Specific Layers (with same Bundle Identifier as TDM Data Packets) 0001 OAM MSG FMTID Type RES OAM MSG Channel Type Code Service Specific Information Source Transmit Timestamp Destination Receive Timestamp Destination Transmit Timestamp Table 10-17. VCCV OAM Payload Fields Field FMTID RES Channel Type OAM Msg Type OAM Msg Code Source Transmit Timestamp Destination Receive Timestamp Destination Transmit Timestamp Description Must be set to zero Reserved and must be set to zero Must be set to the value allocated by IANA for TDM-over-Packet VCCV OAM See Table 10-18. 10.6.1.10.2 UDP/IP-Specific OAM When using a UDP/IP-Specific OAM, all OAM packet MUST use one of the bundle identifiers preconfigured to indicate OAM (using OAM ID Table). The PSN-specific layers are identical for OAM packets (except for the bundle identifier) to those used to carry the TDM data. 62 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-22. UDP/IP-Specific OAM Packet Format Table 10-18. UDP/IP-Specific OAM Payload Fields Field L, R, M Length OAM Sequence Number OAM Msg Type OAM Msg Code Description Identical to those of the bundle being tested OAM message packet length (in bytes) Uniquely identifies the message. Its value is unrelated to the sequence number of the TDM data packets for the bundle in question. It is incremented in query messages, and replicated without change in replies. Indicates the function of the message. At present, the following are defined: 0: one way connectivity query message 8: one way connectivity reply message Information related to the message; its interpretation depends on the message type. For OAM Msg Type=0 (connectivity query) messages, the following codes are defined: 0: Validate connection 1: Do not validate connection Service Specific Information Source Bundle Identifier Destination Bundle Identifier Source Transmit Timestamp Destination Receive Timestamp Destination Transmit Timestamp For OAM Msg Type=8 (connectivity reply) messages, the available codes are: 0: Acknowledge valid query 1: Invalid query (configuration mismatch) Can be used to exchange configuration information between gateways. If not used, it must contain zero. Its interpretation depends on the payload type. At present, the following is defined for AAL1 payloads: Bits 16–23: Number of timeslots being transported, e.g. 24 for full T1 Bits 24–31: Number of 48-byte AAL1 SAR PDUs per packet, e.g. 8 when packing 8 AAL1 SAR PDUs per packet The bundle identifier used for TDM-over-Packet traffic from the source to the destination. The bundle identifier used for TDM-over-Packet traffic from the destination to source. The time the PSN-bound gateway transmitted the query message. This field and the following fields only appear if delay is being measured. The resolution is configurable to 100 s or 1 s. The time the destination gateway received the query message. The time the destination gateway transmitted the reply message. For more details about OAM Signaling, see Section 10.6.17. 10.6.2 Typical Application In the application below (Figure 10-23), the device is embedded in a TDMoIP gateway to achieve TDM connectivity over a PSN. The TDM-over-Packet packet formats for both IP and MPLS are shown in Figure 10-24 and Figure 10-25, respectively. 63 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-23. TDM Connectivity over a PSN Figure 10-24. TDMoP Packet Format in a Typical Application DA SA VLAN Tag Ethertype IP Header Optional IP Src. IP=X Dst. IP=Y UDP or L2TPv3 Header Bundle ID=A Control Word Payload Type AAL1/ HDLC/SAToP/ CESoPSN/ OAM CRC-32 DA SA VLAN Tag Ethertype IP Header Optional IP Src. IP=Y Dst. IP=X UDP or L2TPv3 Header Bundle ID=A Control Word Payload Type AAL1/ HDLC/SAToP/ CESoPSN/OAM CRC-32 3 DA SA VLAN Tag Ethertype IP Header Optional IP Src. IP=X Dst. IP=Z UDP or L2TPv3 Header Bundle ID=B Control Word Payload Type AAL1/ HDLC/SAToP/ CESoPSN/OAM CRC-32 4 DA SA VLAN Tag Ethertype IP Header Optional IP Src. IP=Z Dst. IP=X UDP or L2TPv3 Header Bundle ID=B Control Word Payload Type AAL1/ HDLC/SAToP/ CESoPSN/OAM CRC-32 1 2 Figure 10-25. TDMoMPLS Packet Format in a Typical Application 1 2 3 4 DA SA VLAN Tag Ethertype Outer MPLS Inner MPLS Optional MPLS Label(s) Label Optional Bundle ID=A Control Payload Type CRC-32 AAL1/ Word HDLC/SAToP/ CESoPSN/OAM DA SA VLAN Tag Ethertype Outer MPLS Inner MPLS Optional MPLS Label(s) Label Optional Bundle ID=B Control Payload Type CRC-32 AAL1/ Word HDLC/SAToP/ CESoPSN/OAM 64 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.3 Clock Recovery The TDM-over-Packet block’s innovative clock recovery process is divided into two successive phases. In the acquisition phase, rapid frequency lock is attained. In the tracking phase, frequency lock is sustained and phase is also tracked. During the tracking phase, jitter is attenuated to comply with the relevant telecom standards even for packet-switched networks with relatively large packet delay variation. Packet loss immunity is also significantly improved. During the acquisition phase, a direct estimation of the frequency discrepancy between the far-end and near-end service clocks continuously drives an internal frequency synthesis device through a band-limited control loop. As a result, frequency acquisition is achieved rapidly (typically less than 10 seconds). The clock recovery capture range is 90 ppm around the nominal service clock for any supported clock rate. Once the frequency-monitoring unit has detected a steady frequency lock, the system switches to its tracking phase. During the tracking phase the fill level of the received-packet jitter buffer drives the internal frequency synthesizer through a similar band-limited control loop. While in the tracking phase, two tasks are performed. First, the far-end service clock frequency is slowly and accurately tracked, while compelling the regenerated near-end service clock to have jitter and wander levels that conform to ITU-T G.823/G.824 requirements, even for networks that introduce high packet delay variation and packet loss. This performance can be attained due to a very efficient jitter attenuation mechanism, combined with a high resolution internal digital PLL (∆ƒ=0.4 ppb). Second, the received-packet jitter buffer is maintained at its fill level, regardless of the initial frequency discrepancy between the clocks. As a result, the latency added by the mechanism is minimized, while immunity against overflow/underflow events (caused by extreme packet delay variation events) is substantially enhanced. The TDM-over-Packet block supports two clock recovery modes: common clock (differential) mode and adaptive mode. The common clock mode is used for applications where the TDMoP gateways at both ends of the PSN path have access to the same high-quality reference clock. This mode makes use of RTP differential mode time-stamps and therefore the RTP header must be present in TDMoP packets when this mode is used. The common reference clock is provided to the chip on the CLK_CMN input pin. The device is configured for common clock mode when Clock_recovery_en=1 in General_cfg_reg0 and RTP_timestamp_generation_mode=1 in General_cfg_reg1. 1 The adaptive clock mode is based solely on packet inter-arrival time and therefore can be used for applications where a common reference clock is not available to both TDMoP gateways. This mode does not make use of timestamps and therefore the RTP header is not needed in the TDMoP packets when this mode is used. The device is General_cfg_reg0 and configured for adaptive clock mode when Clock_recovery_en=1 in RTP_timestamp_generation_mode=0 in General_cfg_reg1. 1 In adaptive mode, for low-speed interfaces (up to 4.6 MHz), an on-chip digital PLL, clocked by a 38.88MHz clock derived from the CLK_HIGH pin, synthesizes the recovered clock frequency. The frequency stability characteristics of the CLK_HIGH signal depend on the wander requirements of the recovered TDM clock. For applications where the recovered TDM clock must comply with G.823/G.824 requirements for traffic interfaces, typically a TCXO can be use as the source for the CLK_HIGH signal. For applications where the recovered clock must comply with G.823/G.824 requirements for synchronization interfaces, the CLK_HIGH signal typically must come from an OCXO. In addition to performing clock recovery for up to eight low-speed (typically E1/T1) signals, the device can also be configured in a high-speed mode in which it supports one E3, T3 or STS-1 signal in and out of port 1. In high-speed mode, the on-chip digital PLL synthesizes the recovered clock frequency divided by 10 (for STS-1) or 12 (for E3 or T3). This clock is available on the TDM1_ACLK output pin and can be multiplied by an external PLL to get the recovered clock of the high-speed signal (see section 15.3). High-speed mode is enabled when High_speed=1 in General_cfg_reg0. 2 For applications where the chip is used only for clock recovery purposes (i.e. data is not forwarded through the chip) the external SDRAM is not needed. 65 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.4 Timeslot Assigner (TSA) The TDM-over-Packet block contains one Timeslot Assigner for each E1/T1 port (framed or multiframed) using a PCM interface. The TSA is bypassed in high-speed mode (i.e. when High_speed=1 in General_cfg_reg0.) The TSA tables are described in section 11.4.5. 2 The TSA assigns 2-, 7- or 8-bit wide timeslots to a specific bundle and a specific receive queue. 2-bit timeslots are used for delivering 16K HDLC channels. The 2 bits are located at the first 2 bits (PCM MSbits, HDLC LSbits) of the timeslot. The next 6 bits of the timeslot cannot be assigned. 7-bit timeslots are used for delivering 56kbps HDLC channels. The 7 bits are located at the first 7 bits (PCM MSbits, HDLC LSbits) of the timeslot. The last bit of the timeslot cannot be assigned. The 2-bit and 7-bit timeslots may be assigned only to the HDLC payload type machine. The AAL1 and RAW payload type machines support only 8-bit timeslots. For unframed/Nx64 interfaces all entries must be configured as 8-bit timeslots. Each port has two TSA tables (banks): one active and the other one shadow. The TSA_int_act_blk status bit in Port[n]_stat_reg1 indicates which bank is currently active. The CPU can only write to the shadow table. After TSA entries are changed in the shadow table the TSA tables should be swapped by changing the TSA_act_blk bit in Port[n]_cfg_reg so that the active table becomes the shadow table and the shadow table becomes the active table. Changes take effect at the next frame sync signal. For an unframed interface the changes take effect up to 256 TDM clock cycles after the TSA_act_blk is changed. After the change occurs, the TSA_int_act_blk bit is updated by the device. Each table consists of 32 entries, one entry per timeslot. The first entry refers to the first timeslot, i.e. the first 8 bits of the frame (where the frame sync signal indicates start-of-frame). The second entry refers to the second timeslot, i.e. the 8 bits after the first 8 bits, and so on. The format of a table entry is shown in section 11.4.5. If a port is configured for an unframed signal format, all 32 entries for that port must have the same settings for all fields. A bundle can only be composed of timeslots from a single TDM port, but timeslots from a TDM port can be assigned to multiple bundles. 66 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.5 CAS Handler 10.6.5.1 CAS Handler, TDM-to-Ethernet Direction In the TDM-to-Ethernet direction, the CAS handler receives the CAS bits (for structured-with-CAS AAL1 or CESoPSN bundles) on the TDMn_RSIG_RTS signal. Depending on the value of the per-bundle Tx_CAS_source configuration bit in the Bundle Configuration Tables, the CAS handler inserts either the CAS bits from the corresponding TDMn_RSIG_RTS signal or the values from the transmit SW CAS tables (section 11.4.9) into the AAL1 or CESoPSN packets, in order to deliver the signaling as part of the AAL1 or CESoPSN payload packets. See Figure 10-26. The transmit SW CAS tables may contain conditioning bits set by CPU software during configuration (per timeslot). If CAS bits received on the TDMn_RSIG_RTS signal change, a per-timeslot maskable interrupt is asserted. The Tx_CAS_change registers in the Error! Reference source not found. indicate which timeslots have changed CAS bits. The Tx_CAS_change_mask registers are available to selectively mask these interrupts. Upon notification that CAS bits have changed, the CPU can read the CAS bits directly from the framer’s receive signaling registers (RS1 to RS16), alter them if needed, and write them into the TDMoP block’s transmit SW CAS tables. Figure 10-26. CAS Transmitted in the TDM-to-Ethernet Direction AAL1/CESoPSN PACKETS IN SDRAM TDMoP FRAMER RECEIVE CAS BITS INTERNAL REGISTER TDM1_RSIG_RTS TDM2_RSIG_RTS TDM3_RSIG_RTS TDM4_RSIG_RTS TDM5_RSIG_RTS TDM6_RSIG_RTS TDM7_RSIG_RTS TDM8_RSIG_RTS CAS HANDLER TRANSMIT SW CAS TABLES MANIPULATED CAS BITS (PER TIMESLOT ) CONDITIONING BITS CPU There is a transmit SW CAS table for each TDM port. Each table consists of 4 rows, and each row contains the CAS bits of eight timeslots. For ports configured for E1, timeslots 1–15 and 17–31 are used and timeslots 0 and 16 are meaningless. For ports configured for T1, timeslots 0–23 are used and timeslots 24–31 are meaningless. Ports configured for T1 SF have two copies of A and B CAS bits arranged A, B, A, B. Other port types have one copy of bits A, B, C and D. These cases are illustrated in Figure 10-27 and Figure 10-28. 67 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-27. Transmit SW CAS Table Format for E1 and T1-ESF Interfaces 31 0 ABCD (TS7) ABCD (TS6) ABCD (TS5) ABCD (TS4) ABCD (TS3) ABCD (TS2) ABCD (TS1) ABCD (TS0) ABCD (TS15) .. .. .. .. .. .. ABCD (TS8) ABCD (TS23) .. .. .. .. .. .. ABCD (TS16) ABCD (TS31) .. .. .. .. .. .. ABCD (TS24) Figure 10-28. Transmit SW CAS Table Format for T1-SF Interfaces 31 0 ABAB (TS7) ABAB (TS6) ABAB (TS5) ABAB (TS4) ABAB (TS3) ABAB (TS2) ABAB (TS1) ABAB (TS0) ABAB (TS15) .. .. .. .. .. .. ABAB (TS8) ABAB (TS23) .. .. .. .. .. .. ABAB (TS16) Table 10-19. CAS – Supported Interface Connections for AAL1 and CESoPSN TDM-to-Packet Packet-to-TDM Transmitted Bits Interface Format Interface Format E1 MF T1 SF T1 ESF T1 ESF T1 SF CAS bits are transferred as-is. E1 MF T1 SF T1 ESF T1 SF T1 ESF Only A and B bits transferred. A and B bits transferred. C and D bits sourced from the SF_to_ESF_low_CAS_bits field in Port[n]_cfg_reg. For structured-with-CAS bundles connecting two T1 SF/ESF interfaces, the per-bundle Tx_dest_framing bit in the Bundle Configuration Tables indicates the destination interface framing type (SF or ESF). The figures below shows the location of the CAS bits in the TDMn_RSIG_RTS data stream for each framing mode. Figure 10-29. E1 MF Interface RSIG Timing Diagram (two_clocks=1) TDMn_RCLK once in 2 milliseconds TDMn_RX_SYNC TDMn_RSIG A B C D Timeslot 30 A B C Timeslot 31 D Timeslot 0 68 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-30. T1 ESF Interface RSIG Timing Diagram (two_clocks=0) TDMn_TCLK Once in 3milliseconds TDMn_RX_SYNC TDMn_RSIG A B C D A Timeslot 22 B C D A Timeslot 23 B C D Timeslot 0 Figure 10-31. T1 SF Interface RSIG (two_clocks=0) – Timing Diagram TDMn_TCLK Once in 1.5 milliseconds TDMn_RX_SYNC TDMn_RSIG A B A B Timeslot 22 A B A B Timeslot 23 A B A B Timeslot 0 TDMn_RX_SYNC can be left unconnected or connected to ground if the framer cannot drive it. The TDMoP block has an internal free running counter that generates this signal internally when not driven by an external source. This internally generated multiframe sync signal is synchronized to the TDMn_RX_SYNC input pulse when present. 10.6.5.2 CAS Handler, Ethernet-to-TDM Direction In the Ethernet-to-TDM direction, the CAS is received from the incoming packets. The AAL1/RAW payload type machine extracts the CAS bits from the TDM-over-packet payload and writes them into the CAS jitter buffers in the SDRAM (for structured-with-CAS AAL1/CESoPSN bundles only). The CAS jitter buffers store the CAS information of up to 128 timeslots of the eight ports. Selectors in the CAS handler send the CAS bits either from the CAS jitter buffers or from the Receive SW CAS tables to the line (next MF) CAS tables (see Figure 10-32). The selectors’ decision logic is shown in Table 10-20. Table 10-20. CAS Handler Selector Decision Logic Condition Timeslot not assigned or assigned to a bundle which is not an AAL1/CESoPSN structured bundle (Rx_assigned=0 or Structured_type=0 for its TSA entry) AAL1 bundle jitter buffer is in underrun state and Rx_CAS_src=1 Timeslot assigned to an AAL1/CESoPSN structured bundle (Rx_assigned=1 and Structured_type=1 for its TSA entry) AAL1/CESoPSN bundle jitter buffer is in underrun state and Rx_CAS_src=0 Source of CAS bits Driven on TDMn_TSIG_CTS for this Timeslot Receive SW CAS tables Corresponding CAS jitter buffer in SDRAM (CAS value is the latest received) 69 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-32. CAS Transmitted in the Ethernet-to-TDM Direction CAS JITTER BUFFERS IN SDRAM TDMoP Framer TDM1_TSIG_CTS TDM2_TSIG_CTS TDM3_TSIG_CTS TDM4_TSIG_CTS TDM5_TSIG_CTS PORTn RECEIVE LINE (NEXT MF) CAS TABLES SELECTOR TDM6_TSIG_CTS TDM7_TSIG_CTS TDM8_TSIG_CTS CAS BITS MANIPULATED CAS BITS (PER TIMESLOT) CAS HANDLER INTERRUPT ON CHANGE TRANSMIT CAS BITS INTERNAL REGISTE R PORTn RECEIVE LINE CAS TABLES PORTn RECEIVE SW CAS TABLES CP U The Receive SW CAS tables contain CAS bits written by CPU software. Each port’s Receive Line CAS table (section 11.4.10) is updated with the CAS bits stored in the Receive Line (Next MF) CAS table when the TDMn_TX_MF_CD signal is asserted to indicate the multiframe boundary. For E1 ports, CAS bits are updated every 2 milliseconds. For T1 SF ports, CAS bits are updated every 1.5 milliseconds. For T1 ESF ports, CAS bits are updated every 3 milliseconds. There is a Receive Line CAS table for each TDM port. These tables hold the CAS information extracted from received packets and subsequently transmitted on TDMn_TSIG signals toward the framers. Each table contains 32 rows, and each row holds the CAS bits of one timeslot. Only the first 24 rows are used for T1 interfaces. For E1 and T1 ESF interfaces, each row holds the A, B, C and D bits. For T1 SF interface where only the A and B bits exist, each row holds the A and B bits duplicated i.e. A, B, A, B. If CAS bits change in the Receive Line CAS table, a per-timeslot interrupt is asserted. The Rx_CAS_change registers in the Error! Reference source not found. indicate which timeslots have changed CAS bits. Upon notification that CAS bits have changed, CPU software can read the CAS bits from the Receive Line (Next MF) CAS table, manipulate them and then write them directly into the framer’s internal transmit signaling registers (TS1 to TS16). In this case, the framer should be configured to use the CAS information from its CAS registers and not from its TSIG inputs. The bits in each Receive Line CAS table are sent to the Framer on the TDMn_TSIG signal, as shown in the figures below. 70 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-33. E1 MF Interface TSIG Timing Diagram TDMn_TCLK once in 2 milliseconds TDMn_TX_MF_CD TDMn_TSIG A B C D A Timeslot 30 B C Timeslot 31 D Timeslot 0 Figure 10-34. T1 ESF Interface TSIG Timing Diagram TDMn_TCLK Once in 3 milliseconds TDMn_TX_MF_CD TDMn_TSIG A B C D A Timeslot 22 B C D Timeslot 23 A B C D Timeslot 0 Figure 10-35. T1 SF Interface TSIG Timing Diagram TDMn_TCLK Once in 1.5 milliseconds TDMn_TX_MF_CD TDMn_TSIG A B A B Timeslot 22 A B A B Timeslot 23 A B A B Timeslot 0 TDMn_TX_MF_CD can be left unconnected or connected to ground if the framer cannot drive it. The TDMoP block has an internal free running counter that generates this signal internally when not driven by external source. This internally generated multiframe sync signal is synchronized to the TDMn_TX_SYNC input pulse when present. 10.6.6 AAL1 Payload Type Machine For the prevalent case for which the timeslot allocation is static and no activity detection is performed, the payload can be efficiently encoded using constant bit rate AAL1 adaptation. The AAL1 payload type machine maps E1, T1, E3, T3, STS-1 or serial data flows into IP, MPLS or Ethernet packets, and vice versa, according to ITU-T Y.1413, Y.1453, MEF 8, MFA 4.1 and IETF RFC 5087 TDMoIP. In this mapping method, data is actually mapped into 48-byte AAL1 SAR PDUs as described in I.361.1 section 2.4.2 rather than full 53-byte ATM cells. 10.6.6.1 TDM-to-Ethernet Direction In the TDM-to-Ethernet direction, the AAL1 payload type machine concatenates the bundle’s timeslots into structures and then slices and maps the structures into 46- or 47-octet AAL1 SAR PDU payloads. After adding the AAL1 SAR PDU header and pointer as needed, the AAL1 SAR PDUs are concatenated and inserted into the payload of the layer 2/layer 3 packet. 71 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-36. AAL1 Mapping, General The structure of the AAL1 header is shown in Table 10-21 below. Table 10-21. AAL1 Header Fields Length Field Description (bits) C SN CRC P 1 3 3 1 E Pointer 1 7 Indicates if there is a pointer in the second octet of the AAL1 SAR PDU. When set, a pointer exists. AAL1 SAR PDU sequence number Cyclic redundancy code on C and SN Even parity bit on C, SN and CRC or the even byte parity LSB for the sequence number octet (P format AAL1 SAR PDUs only) (P format AAL1 SAR PDUs only) Even byte parity MSB for pointer octet (P format AAL1 SAR PDUs only) Indicates the next structure boundary. It is always located at the first possible position in the sequence number cycle in which a structure boundary occurs. The pointer indicates one of 93 octets (46 octets of the current AAL1 SAR PDU + 47 octets of the next AAL1 SAR PDU). P=0 indicates that the first octet of the current AAL1 SAR PDU’s payload is the first octet of the structure. P=93 indicates that the last octet of the next AAL1 SAR PDU is the final octet of the structure. The AAL1 block supports the following bundle types:  Unstructured  Structured-without-CAS  Structured-with-CAS. Unstructured bundles, for E1/T1 interfaces, support rates of N  64 kbps, where N is the number of timeslots configured to be assigned to a bundle. Unstructured bundles may also carry traffic of the whole low-speed interface (up to 4.6 Mbps), E1/T1 interface (2.048Mbps/1.544 Mbps) or high-speed interface (up to 51.84 Mbps). The AAL1 72 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SAR PDU payload contains 47 octets (376 bits) of TDM data without regard to frame alignment or timeslot byte alignment. All AAL1 SAR PDUs are non-P format for unstructured bundles. Structured-without-CAS bundles, for E1/T1 interfaces, support rates of N  64 kbps, where N is the number of timeslots configured to be assigned to a bundle. For this format, the N timeslots from one E1/T1 frame are sequentially mapped into an N-octet structure. This N-octet structure is then mapped into the AAL1 SAR PDU payloads, octet-aligned. This process is repeated until all octets of the AAL1 SAR PDU payload are filled. The last octet of the payload may contain a timeslot other than the last timeslot of the structure. The remaining timeslots of the structure are mapped into the next AAL1 SAR PDU payload in the same manner and the process continues. This is illustrated in Figure 10-37. Figure 10-37. AAL1 Mapping, Structured-Without-CAS Bundles With this mapping each AAL1 SAR PDU can start with a different timeslot. To enable the far end TDMoP function to identify the start of a structure, a pointer to it is sent periodically in one of the even-numbered AAL1 SAR PDUs of every SN cycle. When this pointer is sent, a P-format AAL1 SAR PDU is used. In a P-format AAL1 SAR PDU the first byte of the AAL1 SAR PDU payload contains the pointer, and the last 46 bytes contain payload. Structured-with-CAS bundles, for E1/T1 interfaces, support rates of N  64 kbps, where N is the number of timeslots configured to be assigned to a bundle. This mapping is similar to the structured-without-CAS mapping described above except that the structure is an entire E1/T1 multiframe of the N timeslots assigned to the bundle, and a CAS signaling substructure is appended to the end of the structure. The addition of CAS only affects the structure arrangement and contents. CAS data from one timeslot is 4 bits long, meaning one octet can contain CAS data of 2 timeslots. Bundles containing an odd number of timeslots need a padding of 4 zeroes in the last CAS octet. For example, a 3-timeslot bundle of an E1 frame with CAS yields the following structure octet sequence: TS1, TS2, TS3 repeated 16 times (a whole E1 multiframe) and then CAS1+CAS2, CAS3+padding. 10.6.6.2 Ethernet-to-TDM Direction In the Ethernet-to-TDM direction, AAL1 SAR PDUs of a bundle are being received only after the synchronization process. The synchronization process includes packet SN synchronization, AAL1 SAR PDU SN synchronization, and pointer synchronization. AAL1 SAR PDUs with CRC or parity errors in their header are discarded. Pointer mismatch imposes jitter buffer under-run and bundle resynchronization. AAL1 SAR PDU header errors or pointer errors may be ignored depending on per-bundle configuration. Missing AAL1 SAR PDUs are detected and restored in the jitter buffer. 73 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.7 HDLC Payload Type Machine Handling HDLC in TDM-over-Packet ensures efficient transport of CCS (common channel signaling, such as SS7), embedded in the TDM stream or other HDLC-based traffic, such as Frame Relay, according to IETF RFC 4618 (excluding clause 5.3 – PPP) and RFC 5087 (TDMoIP). For the E1 interface, each bundle supports the rates of 16 kbps or N  64 kbps, where N is the number of timeslots configured to be assigned to a bundle (between 1 to 32). For the T1 interface, each bundle supports the rates of 16 kbps, 56 kbps (not supported for T1 SF interface), full T1 (1.544 Mbps) or N  64 kbps, where N varies from 1 to 24. In the TDM-to-Ethernet direction, the HDLC block monitors flags until a frame is detected. It removes bit stuffing, collects the contents of the frame and checks the correctness of the CRC, alignment and frame length. Valid frame length is anything greater than 2 bytes and less than Tx_max_frame_size in HDLC_Bundle[n]_cfg[95:64]. Erroneous frames are discarded. Good frames are mapped as-is into the payload of the configured layer 2/3 packet type (without the CRC, flags or transparency zero-insertions). In the Ethernet-to-TDM direction, when a packet is received, its CRC is calculated, and the original HDLC frame reconstituted (flags are added, bit stuffing is performed, and CRC is added). Figure 10-38. HDLC Mapping 74 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.8 RAW Payload Type Machine The RAW payload type machine support the following bundle types:  Unstructured According to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 4553 (SAToP).  Structured without CAS According to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 5086 (CESoPSN).  Structured with CAS According to ITU-T Y.1413, Y.1453, MEF 8, MFA 8.0.0 and IETF RFC 5086 (CESoPSN). 10.6.8.1 Unstructured Unstructured bundles usually carry the data of a whole TDM port. This port may be low-speed such as an E1, T1 or Nx64k bit stream or high-speed such as an E3, T3 or STS1 signal. In an unstructured bundle, the packet payload is comprised of N bytes of the TDM stream without regard for byte or frame alignment. In the receiving device, the TDM data is extracted from the packet payload and inserted as a bit stream into the jitter buffer, from which it is then extracted and sent to the TDM port. Figure 10-39. SAToP Unstructured Packet Mapping The packetization delay of an unstructured (SAToP) bundle is: T = N x 8 x the bit time of the TDM interface. The minimum packetization time of an Ethernet packet for an unstructured (SAToP) bundle is as follows:   60 s for high speed mode 125 s for low speed mode 10.6.8.2 Structured without CAS In a structured-without-CAS bundle, the packet payload is comprised of the assigned timeslots from N TDM frames as illustrated in Figure 10-40. 75 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-40. CESoPSN Structured-Without-CAS Mapping The packetization delay of a CESoPSN structured-without-CAS bundle is: T = N x 125 s (i.e. N x the frame rate) The minimum packetization time of an Ethernet packet for a structured (with or without CAS) bundle is 125 s. 10.6.8.3 Structured with CAS (without Fragmentation) In a structured-with-CAS bundle, the packet payload is comprised of the assigned timeslots from all the TDM frames in a multiframe (e.g. 16 frames for E1) followed by the CAS signaling substructure, which contains the CAS info for the assigned timeslots. Figure 10-41. CESoPSN Structured-With-CAS Mapping (No Frag, E1 Example) The minimum packetization time of an Ethernet packet for a structured (with or without CAS) bundle is 125 s. The minimum TDM payload of an Ethernet packet for a structured (with or without CAS) bundle is 8 bytes. 76 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-42. CESoPSN Structured-With-CAS Mapping (No Frag, T1-ESF Example) In T1 SF, the multiframe structure is composed of 2 superframes resulting total of 24 TDM frames. The CAS info at the end of the structure contains the CAS info of the 2 corresponding superframes as well. Figure 10-43. CESoPSN Structured-With-CAS Mapping (No Frag, T1-SF Example) TDM payload L2/L3 Header Control Word 1 4 24 1 4 24 1 4 24 FRG bits = 00 Frame (no fragmentation) 11 1 4 24 Frame 1 Frame 121 1 4 Frame 12 24 1 Frame 12 Super-Frame 1 1 4 24 Frame 122 4 A1 A1 A1 B1 B1 B1 A2 A2 A2 B2 B2 B2 TS 1 TS 4 TS 24 1 byte CRC 1 byte 24 1 Frame 1 4 bit pading 4 24 Frame 12 Super-Frame 2 The packetization delay of a CESoPSN structured-with-CAS bundle (not fragmented) is as follows:   Multiframed E1: T = 2 ms T1 SF, ESF: T = 3 ms 10.6.8.4 Structured-with-CAS (with Fragmentation) In order to reduce the packetization delay of structured-with-CAS bundle, the CESoPSN standard supports the option of fragmentation. In this mode, the multiframe data structure is fragmented among several packets. Each packet contains M TDM frames of the assigned timeslots. The last packet also contains the entire multiframe CAS substructure. Because of that, there is limited number of allowed “M” values:    For multiframed E1: M = 1, 2, 4, 8, 16 (16 means single packet with no fragmentation) For T1 SF: M = 1, 2, 3, 4, 6, 8, 12, 24 (24 means single packet with no fragmentation) For T1 ESF: M = 1, 2, 3, 4, 6, 8, 12, 24 (24 means single packet with no fragmentation) The packetization delay of a CESoPSN structured-with-CAS bundle (with fragmentation) is: T = M x 125 s. 77 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-44. CESoPSN Structured-With-CAS Mapping (Frag, E1 Example) TDM payload L2/L3 Header Control Word FRG bits = 01 (first fragment) 2 4 25 2 4 25 Frame 1 2 4 25 Frame 2 CRC First Ethernet packet CRC Intermediate Ethernet packet Frame M TDM payload L2/L3 Header Control Word 2 4 25 2 4 25 FRG bits = 11 Frame (intermediate fragment) M + 1 2 4 25 Frame M+2 Frame 2M TDM payload L2/L3 Header Control Word FRG bits = 10 (last fragment) 2 4 Frame 1 2 4 25 2 4 25 Frame 25 2 4 25 Frame 16 Frame 2 4 A A A B B B C C C D D D TS 2 TS 4 TS 25 1 byte 25 Frame 2 Multi-frame boundary 1 byte Last Ethernet packet CRC 4 bit pading 2 4 25 Frame 16 78 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.9 SDRAM and SDRAM Controller The device requires an external SDRAM for its operation. The following describes how the TDMoP block and the CPU use the SDRAM: The TDMoP block accesses these sections of the SDRAM:  Transmit buffers section This area stores outgoing packets created by the payload-type machines. It is a 1-Mbyte area with base address specified by the Tx_buf_base_add field in General_cfg_reg1. The actual amount of SDRAM used in the transmit buffers section depends on the number of open bundles and the number of buffers assigned to each bundle.  Jitter buffer data section This area stores incoming TDM data after it has been extracted from received packets by the payloadtype machines. It is a 2-Mbyte area with base address specified by the JBC_data_base_add field in General_cfg_reg1. The actual amount of the SDRAM used in the jitter buffer data section depends on the configuration (most applications allocate only 0.5 Mbyte).  Jitter buffer signaling section: This area stores incoming TDM signaling information after it has been extracted from received packets by the payload-type machines. It is a 32-kbyte area, with base address specified by the JBC_sig_base_add field in General_cfg_reg1. This section is used only when structured-with-CAS bundles have been opened. The CPU uses the SDRAM as follows:  The CPU may utilize the sections of SDRAM not used by the TDMoP block in order to send/receive packets through the CPU queues/pools.  The CPU accesses the transmit buffers section in order to initialize the buffer headers before opening a bundle. The built-in SDRAM controller allows glueless connection to an external SDRAM (the TDMoP block supplies the SDRAM clock). Supported SDRAM devices are listed in section 15.6. The TDMoP block typically uses from 1.5 to 3 MB of SDRAM space, depending on configuration. The CPU may use the rest of the memory. The supported resolutions of CPU access to the SDRAM are shown below. Table 10-22. SDRAM Access Resolution Data Bus Width Access to SDRAM 32 bits 16 bits 8, 16, 32 bit 8, 16 bit Prior to operation, the SDRAM controller configuration bits (see the General_cfg_reg0 register) must be configured. First, the CPU must set the configuration bits while maintaining the Rst_SDRAM_n bit low (0). Then, it should deassert the Rst_SDRAM_n bit. The Rst_SDRAM_n bit must not be changed during operation. The SDRAM Controller operates at either 50 or 75 MHz with the following CAS latency options: Table 10-23. SDRAM CAS Latency vs. Frequency Frequency CAS Latency [MHz] [clock cycles] 50 75 2 2 or 3 During operation, the controller’s arbiter receives access requests from various internal hardware blocks and the CPU and grants access permissions based on predefined priorities. The controller automatically refreshes the external SDRAM approximately once every 15 s. 79 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-45. SDRAM Access through the SDRAM Controller SDRAM CLOCK SDRAM CONTROLLER ARBITER ACCESS FROM HW BLOCKS RESET_N CPU PORT CONFIGURATION BITS OTHER PORTS CONFIGURATION REGISTER TDMoPacket CPU 10.6.10 Jitter Buffer Control (JBC) 10.6.10.1 Jitter Buffer Application Routinely in TDM networks, destination TDM devices derive a clock from the incoming TDM signal and use it for transmitting data as depicted in Figure 10-46. This is called loopback timing. Figure 10-46. Loop Timing in TDM Networks When replacing the physical TDM connection with an IP/MPLS network and two TDM-over-Packet devices as shown in Figure 10-47 below, the receiving TDM-over-Packet device (slave) receives packets with variable delays (packet delay variation). After processing, the slave TDMoP device should send TDM data to the destination TDM device at the same clock rate at which the TDM data was originally sent by the source TDM device. To achieve this, the device works in clock recovery mode to reconstruct the source TDM clock to allow the destination TDM device to still work in loopback timing mode. 80 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-47. Timing in TDM-over-Packet The jitter buffer, located in the SDRAM, has two main roles:  Compensate for packet delay variation  Provide fill level information as the independent variable used by the clock recovery machines to reconstruct the TDM clock on a slave TDMoP device. The data enters the buffer at a variable rate determined by packet arrival times and leaves it at a constant TDM rate. In clock recovery mode, the amount of data in the jitter buffer (the “fill level”) steers the clock recovery mechanism. 10.6.10.2 Jitter Buffer Configuration Separate areas are allocated in the external SDRAM for TDM data and for signaling, as described in section 10.6.9. In low-speed mode (High_speed=0 in General_cfg_reg0) both data and signaling areas are divided into eight identical sections, one for each E1/T1/Nx64 interface. These section are further divided as follows:  In E1/T1 structured mode, each per-port data section contains the data of 32 timeslots for E1 or 24 timeslots for T1 (a total of 32*8=256 timeslots for all eight interfaces). Each E1/T1 timeslot is allocated a maximum of 4 kB of space (128kB per interface and a total of 1024 kB for all eight interfaces).  Each signaling section is divided into multiframe sectors, with each sector containing the signaling nibbles of up to 32 timeslots (total of 64 kB for all 8 interfaces).  In serial interface mode or E1/T1 unstructured mode, there is no per-timeslot allocation. The jitter buffer is divided into eight identical sections, one for each interface (each section is 512 kB for HDLC bundles or 128 kB for other bundle types). In high-speed mode (E3, T3, STS-1), the jitter buffer is arranged as one large buffer without division into sections (total of 512 kB). The Jitter Buffer maximum depth in time units (seconds) is calculated according to the following formula: ½ x Buffer area per interface x 8 Rate where: ½ Buffer area per interface 8 Rate = = = = Two halves of the buffer 512 kB for a single high-speed interface or 128 kB for a low-speed interface Number of bits per byte Transmission rate (e.g., 2.048 Mbps) 81 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 For T1 structured-with-CAS, multiply the above formula by 0.75. The jitter buffer depth is defined by the Rx_max_buff_size parameter found in the Bundle Configuration Tables. When the jitter buffer level reaches the value of Rx_max_buff_size, an overrun situation is declared. The Rx_PDVT parameter (also found in the Bundle Configuration Tables) defines the amount of data to be stored in the jitter buffer to compensate for network delay variation. This parameter has two implications:  Rx_PDVT defines the chip’s immunity to the Ethernet network delay variation.  The data arriving from the network is delayed by Rx_PDVT before it is read out of the jitter buffer and forwarded to the framer.. Rx_PDVT must be smaller than Rx_max_buff_size. Also, the difference between Rx_max_buff_size and Rx_PDVT must be larger than the time that it takes to create a packet (otherwise an overrun may occur when the packet arrives). Typically, the recommended value for Rx_max_buff_size is 2* Rx_PDVT + PCT (packet creation time). This provides equal immunity for both delayed and bursty packets. Configuring the jitter buffer parameters correctly avoids underrun and overrun situations. Underrun occurs when the jitter buffer becomes empty (the rate data is entering the buffer is slower than the rate data is leaving). When an underrun occurs the TDMoP block transmits conditioning data instead of actual data towards the TDM interface. The conditioning data is specified by the Receive SW Conditioning Octet Select table for TDM data and the location specified by Rx_CAS_src (SDRAM or Receive SW CAS) for signaling. Overrun occurs when the jitter buffer is full and there is no room for new data to enter (the rate data is leaving the buffer is slower than the rate data is entering). Underrun and overrun require special treatment from the TDMoP hardware, depending on the bundle type. Figure 10-48. Jitter Buffer Parameters The JBC uses a 64 by 32 bit Bundle Timeslot Table to identify the assigned timeslots of each active bundle. The index to the table is the bundle number. The CPU must configure each active bundle entry (setting a bit means that the corresponding timeslot is assigned to this bundle). For unstructured bundles, the whole bundle entry (all 32 bits) must be set. Jitter buffer statistics are stored in a 256-entry table called the Jitter Buffer Status Table. Each TDM port has 32 dedicated entries, one per timeslot. This table stores the statistics of the active jitter buffer for each active bundle. A configurable parameter called Jitter_buffer_index located in the timeslot assignment tables (section 11.4.5) points to the entry in the Jitter Buffer Status Table where the associated jitter buffer statistics are stored. The value of the Jitter_buffer_index should be set as follows: 82 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108  For AAL1/HDLC/RAW structured bundles: the Jitter_buffer_index value is the number of the lowest timeslot in the bundle. For example, if the bundle consists of timeslots 2, 4, 17 on port 3, Jitter_buffer_index=0x2.  For unstructured bundles the Jitter_buffer_index value is 0x0. 10.6.10.3 Jitter Buffer Status and Statistics The CPU accesses the Jitter Buffer Status Table using the Jitter_buffer_index as described above. The status table contains the current jitter buffer status (such as, the current jitter buffer level and its current state (OK, underrun or overrun). The status table also contains two variables, Minimal_level and Maximal_level, which report the minimum and maximum fill levels of the jitter buffer since the last time the two fields were read (available for AAL1 and RAW bundles only). These variables provide information about network packet delay variation. For example, using these values, the CPU can calculate the margins from the top (Rx_max_buff_size) and the bottom of the jitter buffer. If there is margin, CPU software may want to reduce Rx_PDVT to reduce the latency added by the jitter buffer to the incoming TDM data. 10.6.10.4 Jitter Buffer Response to Packet Loss and Misordering The payload-type machines detect that a packet was lost by sequence number error. If a packet is lost, conditioning data (specified by the receive software conditioning registers in section 11.4.12) is inserted into the jitter buffer in place of the lost data to maintain bit integrity (i.e. the number of bits that are inserted into the jitter buffer must equal the number of bits that were transmitted by the far end). If a packet is misordered in a RAW bundle (for example, the packet with the sequence number N arrives after the packet with sequence number N+1) it is reordered by the RAW payload-type machine, and its data is inserted into the appropriate location in the jitter buffer, assuming that the data in this location has not been transmitted to the TDM port yet. 10.6.11 Queue Manager Data flows through the TDMoP block in the following directions:        TDM to Ethernet (implemented in HW) Ethernet to TDM (implemented in HW) TDM to TDM (cross-connect, implemented in HW) TDM to CPU CPU to TDM CPU to Ethernet Ethernet to CPU. These data flows are illustrated in Figure 10-49. Each data flow is described in a subsection below. 83 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-49. TDM-over-Packet Data Flow Diagram 10.6.11.1 Buffer Descriptor Data is transferred between the Ethernet MAC, internal payload-type machines and the external CPU by means of buffers in the SDRAM. Payload data is stored in 2 kB SDRAM buffers along with a buffer descriptor located in the buffer’s first dwords. The buffer pointers are managed inside the TDMoP block and are stored in queues, pools, and other internal blocks. Queues store pointers to SDRAM buffers containing packet data to be processed, while pools store pointers to empty buffers. The pointers are passed from one block to another. Only the block owning the pointer can access the associated buffer. The size of the buffer descriptor size depends on the internal path it is used for: TDM  TDM, TDM  CPU and CPU  TDM: One dword TDM  ETH, CPU  ETH and ETH  TDM: Two dwords ETH  CPU: Three dwords The fields of the buffer descriptor dwords are described in the sections below. 84 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.2 Buffer Descriptor First Dword Used for all paths. Located at offset 0x0 from the start of the buffer. Table 10-24. Buffer Descriptor First Dword Fields (Used for all Paths) Bits Data Element Description [31] [30] MPLS/MEF/L2TIPV3 or UDP/IP-specific OAM RST [29:27] Buffer contents [26:16] Length/Rst_Ts [15] [14:8] Reserved Offset For ETH  TDM and for CPU  TDM indicates that the buffer holds a packet with MPLS / MEF / L2TPv3 Ethertype. For ETH  CPU indicates that the buffer holds a UDP/IP-specific OAM packet. RX Reset command (the bundle is in reset process). For ETHTDM and for CPUTDM: used by the Packet Classifier or by the CPU to inform the next blocks in flow that the bundle was reset. The buffer contains no real data. 000: Backwards-compatible (experimental) format packet going to the AAL1 payloadtype machine 001: Standard format packet going to the AAL1 payload-type machine 010: Reserved 011: Non-TDMoP/MPLS packet (this buffer isn’t assigned to any bundle) 100: Standard format packet going to the HDLC payload-type machine 101: Reserved 110: Standard format packet going to the RAW payload-type machine 111: Backwards-compatible (experimental) format packet going to the HDLC payloadtype machine Packet Length or Payload Length For TDMCPU, TDMTDM, CPUTDM and ETHTDM: payload length in bytes (received bytes + control word if present + RTP header bytes in case of MPLS/MEF packet using RTP and control word) For TDMETH, ETHCPU and CPUETH: packet length in bytes, without CRC For Buffer Contents =101: total length of packets concatenated in the buffer, in bytes For RST packets: the reset timeslot number Note: Length must be less than 1951 bytes. Note: Offset and Length sum must be less than 2000 bytes. Must be set to zero. For ETHCPU, TDMETH and CPUETH: offset in bytes from start of buffer to start of packet For ETHTDM, TDMCPU, CPUTDM: offset in bytes from start of buffer to start of payload or to the control word if present For TDMTDM: bits 13-8 hold the internal bundle number from which the buffer has been transmitted For CPUETH, when Buffer Content (above) is different than 011, must be calculated as follows: tx_payload_offset – header_length [7] HW/SW Type [6] RTP [5:0] Bundle number Note: Offset and Length sum must be less than 2000 bytes. Note: header_length is the number of bytes from start of packet to the control word (or to start of the payload if control word is not used). The pool the buffer has been extracted from and should be returned to. 0: HW buffers pool 1: SW buffers pool For packets coming from Ethernet: 0: destination = payload-type machines 1: destination = CPU For ETHTDM, ETHCPU, TDMTDM and CPU TDM indicates whether the packet includes an RTP header. For TDM TDM: destination internal bundle number. For any other bundle: packet internal bundle number 85 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.3 Buffer Descriptor Second Dword Located at offset 0x4 from the start of the buffer. 10.6.11.3.1 TDM  ETH and CPU  ETH Packets Table 10-25. Buffer Descriptor Second Dword Fields (TDM  ETH and CPU  ETH) Bits Data Element Description 31:15 14 Reserved Stamp 13:7 Ts_offset 6:0 Hdr2_length Must be set to zero. Indicates whether the packet should be time-stamped. Valid only for OAM and for nonTDMoP packets. Otherwise ignored. Indicates the number of dwords from start of buffer to timestamp location. Valid only for OAM and for non-TDMoP packets where Stamp bit is set above. The second header length in bytes not including control word or RTP header (The offset to the second header from start of the buffer is 0x782). Limited to 122 bytes and valid only for AAL1, CESoPSN and SAToP bundles where the Protection_mode setting of the bundle equals to “11” or “10”. 10.6.11.3.2 ETH  CPU Packets Table 10-26. Buffer Descriptor Second Dword Fields (ETH  CPU) Bits Data Element Description 31:30 29 28 27 26 25:24 23 22 21 20 19 18 17 16 15 14 13:11 10 9 8 7 6 Reserved Ipv6 Ipv4 MEF_OAM VCCV_OAM No. of MPLS labels 802.3 Ethernet Reserved L2TPv3/IP Two_Vlan tag VLAN tag UDP/IP IP MEF MPLS Reserved Mpls_over_3_lbls Unicast_not_mine cpu_dst_eth_type OAM bndl_num_not_exist 5 not_tdmoip 4 3 2 ip_not_udp_l2tpv3 arp_chip_ip unknown_eth_type 1 0 not_chip_ip arp_not_chip_ip Must be set to zero. IP packet with IP VER = 6 IP packet with IP VER = 4 MEF OAM packet, i.e. Ethertype equal to Mef_oam_ether_type setting VCCV OAM packet Number of MPLS labels. Equal to “11” for packet with more than 3 labels. 802.3 packet Ethernet packet Must be set to zero. L2TPv3/IP packet Packet with two VLAN tags Packet with one/two VLAN tags UDP/IP packet IP packet (with any IP VER) MEF packet, i.e. Ethertype equal to Mef_ ether_type setting MPLS packet, i.e. packet’s Ethertype equal to 0x8847 or 0x8848 MPLS packet with more than 3 labels Unicast packet with destination address different than MAC addresses Packet with Ethertype equal to CPU_dest_ether_type setting OAM packet A TDM-over-Packet/MPLS/MEF packet destined to the chip but with a bundle identifier that does not match any of one of the chip’s OAM bundle numbers or one of the bundle identifiers assigned to the chip’s internal bundles. UDP/IP packet with destination/source UDP port number different than TDMoIP_port_num1 and TDMoIP_port_num2 IP packet with protocol different than UDP or L2TPv3 ARP packet with destination IP address equal to one of the chip’s IPv4 addresses A packet with Ethertype different than IP, MPLS, ARP, MEF, MEF OAM or CPU Ethertypes. IP packet with destination IP address different than the chip’s IP addresses ARP packet with destination IP address different than the chip’s IP addresses 86 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.4 Buffer Descriptor Third Dword Used for ETH  CPU packets. Located at offset 0x8 from start of the buffer. Table 10-27. Buffer Descriptor Third Dword Fields (ETH  CPU) Bits Data Element Description 31:0 Timestamp 32 bits timestamp latched by the packet classifier upon packet reception. Timestamp resolution is 100 s or 1 s as specified by the OAM_timestamp_resolution field in General_cfg_reg0. 10.6.11.5 RX Arbiter The RX arbiter constantly checks for available packets in the Rx FIFO, the CPU-to-TDM queue and the crossconnect queue. It can do one of the following:     Pass a packet from the Rx FIFO to the payload-type machines Pass a packet from the Rx FIFO to the external SDRAM and insert its pointer into the ETH-to-CPU queue Extract a pointer from the cross-connect queue and pass a packet from the external SDRAM into the payload-type machines Extract a pointer from the CPU-to-TDM queue and pass a packet from the external SDRAM into the payload-type machines. In general, the Rx arbiter handles packets according to the following priorities: 1. Cross-connect queue 2. Rx FIFO (i.e., packets that arrive from the Ethernet port) 3. CPU-to-TDM queue. The Rx_fifo_priority_lvl field in General_cfg_reg0 specifies a priority level for the Rx FIFO. Whenever the fill level of the Rx FIFO is above this threshold, the Rx FIFO becomes the highest priority for the Rx arbiter rather than the Cross-connect queue until the fill level of the Rx FIFO drops below the threshold. 10.6.11.6 TX Ethernet Interface The TX Ethernet interface first checks the Ethernet TX queue. If the queue is not empty, it extracts a pointer, passes the buffer data from the SDRAM to the Ethernet MAC, and returns the pointer to the free buffer pool. If the TX Ethernet queue is empty, the TX Ethernet Interface checks the status of the CPU-to-Ethernet queue. If the queue is not empty, it extracts a pointer, transfers buffer data to the Ethernet MAC, and returns the buffer to the CPU TX Return queue. 10.6.11.7 Free Buffer Pool The free buffer pool mechanism explained below is used for the TDM-to-Ethernet and TDM-to-TDM flows. Before the payload-type machines can process any data, the CPU must initialize the free buffer pool. The free buffer pool contains pointers to SDRAM buffers that are used by the payload-type machines to store packets. There are a total of 512 SDRAM buffers. The CPU needs to pre-assign (statically) these SDRAM buffers to each bundle. The number of buffers allocated per specific bundle depends on the number of timeslots in the bundle. It is recommended to assign 4 buffers per timeslot. The buffers are located in a continuous area in the SDRAM. The buffer address consists of the base address, the buffer number and the displacement within the buffer. The base address is specified by the Tx_buf_base_add field in General_cfg_reg1. Free buffer numbers are contained in linked lists, with a head pointing to the first buffer, each buffer pointing to the next buffer and the last buffer pointing to itself. There are 64 heads (one per bundle), each one containing a validity indication bit (MSB) and another 9 bits pointing to the first free buffer in the linked list. The register descriptions for the Per-Bundle Head Pointers and Per-Buffer Next-Buffer Pointers are in section 11.4.7. 87 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The CPU must define the number of buffers for each bundle by initializing the linked list for the bundle. Software prepares these buffers by writing the Ethernet, IP/MPLS/L2TPv3/MEF headers in advance, so that the payloadtype machines need only to write the packet payload. Since the headers contain bundle-specific data (e.g., destination address), the same buffers are used for the same bundle until the bundle is closed by CPU software. When closing a bundle, the CPU should check that all buffers have been returned, by following the linked list from the head to the last buffer. The buffers of a closed bundle may be used for a different new bundle. The linked list operation is depicted below. Figure 10-50. Free Buffer Pool Operation 88 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.8 TDM to Ethernet Flow Each payload-type machine receives the data of specific bundle timeslots and maps it into packets. To store a new packet in preparation, the machine extracts a pointer from the free buffer pool (section 10.6.11.7) and fills the associated buffer with TDM timeslot data, one by one. When a packet is completed in a buffer, the payload-type machine places the buffer pointer in the Ethernet Tx queue. The Tx Ethernet interface polls the queue, extracts the pointer, and transfers the packets from the buffer to the Ethernet MAC block, to be sent over the Ethernet network. Then, it returns the pointer to the free buffer pool. The buffer can then be used again by the payload-type machine to store subsequent TDM data for the bundle. Figure 10-51. TDM-to-Ethernet Flow 89 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.9 Ethernet to TDM Flow A packet arriving from the Ethernet port passes through the Ethernet MAC block. The MAC block does not store the packet, but it does calculate the CRC to verify packet data integrity. If the packet is bad, the MAC signals this to the packet classifier on the last word of the packet, and the packet classifier discards it. The packet classifier examines the packet header and decides to either discard the packet or transfer it into the chip based on the settings of the packet classifier configuration registers (see Table 11-4). The packet classifier tags the buffer descriptor for one of the following destinations: ETH-to-CPU queue or payload-type machines. The packet classifier stores the packet payload preceded by the buffer descriptor in the Rx FIFO and notifies the Rx arbiter. The Rx arbiter then passes it to one of the payload-type machines. The payload-type machine extracts the TDM data and inserts it into the jitter buffer in the SDRAM. From there, the data is transmitted serially out the TDM port. Figure 10-52. Ethernet-to-TDM Flow 90 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.10 TDM to TDM (Cross-Connect) Flow Each payload-type machine receives the data of bundle-specific TDM timeslots and maps the data into Ethernet packets. To store a packet, the payload-type machine needs an SDRAM buffer which it gets by extracting a buffer pointer from the free buffer pool. It then fills the buffer as it processes the TDM timeslots. When a packet is completed in a buffer, the machine places the buffer pointer in the cross-connect queue. The RX arbiter polls the cross-connect queue, extracts the pointer, transfers the buffer data to the appropriate payload-type machine, and then returns the pointer to the free buffer pool. The payload-type machine then extracts the TDM data and inserts it into the jitter buffer in the SDRAM. From there, the data is transmitted serially out the TDM port. Figure 10-53. TDM-to-TDM Flow 91 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.11 TDM to CPU Flow The payload-type machines identify the destination of their packets according to the per-bundle configuration. Upon getting the first byte of a packet in a bundle destined to the CPU, the machine needs a buffer to store the packet. It therefore checks whether a buffer is available in the TDM-to-CPU pool. If the pool is empty, the machine discards the current data. If a buffer is available, the machine stores the packet payload in the buffer and then adds the buffer pointer to the TDM-to-CPU queue. The CPU polls this queue to look for packets that need to be processed, gets the buffer pointer, and reads the packet from the SDRAM. After processing the packet, the CPU closes the loop by returning the pointer to the TDM-to-CPU pool. The TDM-to-CPU pool and queue can contain up to 128 pointers each. Section 11.4.6 describes the pool and queue registers. Figure 10-54. TDM-to-CPU Flow 92 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.12 CPU to TDM Flow The Rx arbiter polls the CPU-to-TDM queue for new packets waiting in the SDRAM to be processed. If the queue level is greater than zero and there are no buffers pending in the Rx FIFO or the cross-connect queue, the Rx arbiter extracts the pointer and copies the relevant data from the SDRAM buffer to the appropriate payload-type machine. The arbiter then checks whether the CPU Rx return queue is not full to return the pointer. If the return queue is full, the arbiter keeps the pointer and does not poll the CPU-to-TDM queue until it succeeds in returning the pointer. After returning the pointer to the CPU Rx return queue for reuse, the arbiter is ready to take another pointer from the CPU-to-TDM queue. The CPU-to-TDM queue and the CPU Rx return queue can contain up to 32 pointers each. Section 11.4.6 describes the pool and queue registers. Figure 10-55. CPU-to-TDM Flow 93 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.13 CPU to Ethernet Flow The Tx Ethernet interface polls the CPU-to-Ethernet queue for new packets waiting in the SDRAM to be processed. If the queue level is greater than zero and no buffers from the payload-type machines are waiting in the Ethernet Tx queue, the Tx Ethernet interface extracts the pointer and copies the relevant data from the SDRAM buffer to the Ethernet MAC block. It then checks whether the CPU TX return queue is not full to return the pointer. If the return queue is full, it keeps the pointer and does not poll the CPU-to-ETH queue until it succeeds in returning the pointer. After returning the pointer to the CPU TX return queue for reuse, the Tx Ethernet interface is ready to take another pointer from the CPU-to-ETH queue. The CPU-to-Ethernet queue and the CPU Tx return queue can contain up to 32 pointers each. Section 11.4.6 describes the pool and queue registers. Figure 10-56. CPU-to-Ethernet Flow SDRAM CPU TO ETH QUEUE TX ETH INTERFACE CPU TX RETURN QUEUE ETH MAC TDMoP Block LOOP CLOSED BY THE CPU 94 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.11.14 Ethernet to CPU Flow Ethernet packets enter the chip via the Ethernet MAC block and the packet classifier into the Rx arbiter. When the Rx arbiter identifies that a packet is destined to the CPU, it extracts a pointer from the Ethernet-to-CPU pool (if the pool is empty, the Rx arbiter discards the packet) and stores the packet data into the SDRAM in the buffer indicated by the pointer. Then, it sends the pointer to the Ethernet-to-CPU queue (processed by the CPU). If the queue is full, the Rx arbiter keeps the pointer for itself for future use. The Ethernet-to-CPU queue and pool contain up to 128 pointers each. Section 11.4.6 describes the pool and queue registers. Figure 10-57. Ethernet-to-CPU Flow 10.6.12 Ethernet MAC 10.6.12.1 Introduction The Ethernet MAC can operate at 10 or 100 Mbps. It supports MII, RMII (Reduced pin-count MII), and SSMII (source-synchronous serial MII). The MAC interface to the physical layer must be configured by the CPU. The UNH-tested Ethernet MAC complies with IEEE 802.3. Its counters enable the software to generate network management statistics compatible with IEEE 802.3 Clause 5. The Ethernet MAC supports physical layer management through an MDIO interface. The control registers drive the MDIO interface and select modes of operation, such as full or half duplex. Half-duplex flow control is achieved by forcing collisions on incoming packets. Full-duplex flow control supports recognition of incoming pause packets. In the receive path, the MAC checks the incoming packets for valid preamble, FCS, alignment and length, and presents received packets to the packet classifier. Although packets with physical errors are discarded by default, the MAC can be configured to ignore errors and keep such packets. In the transmit path, the MAC takes data from the Tx Ethernet interface, adds preamble and, if necessary, pad and FCS, then transmits data according to the CSMA/CD (carrier sense multiple access with collision detect) protocol. 95 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 In half-duplex mode the start of transmission is deferred if MII_CRS (carrier sense) is active. If MII_COL (collision) becomes active during transmission, a jam sequence is asserted and the transmission is retried after a random back off. MII_CRS and MII_COL have no effect in full-duplex mode. Figure 10-58. Ethernet MAC TDMoPacket TX ETHERNET INTERFACE TX MII ETHERNET MAC PACKET CLASSIFIER RX MII CPU INTERFACE RX FIFO CONFIGURATION, STATISTICS CPU 96 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.12.2 Pause Packet Support Ethernet transmission pause in response to a received pause packet is enabled when Pause_enable=1 in the MAC_network_configuration register. 2 When a valid pause packet is received, the MAC_pause_time register is updated with the packet’s pause time regardless of its current contents and regardless of the state of Pause_enable bit. In addition, the Pause_packet_ Rxd interrupt in the MAC_interrupt_status is triggered if it is enabled in the MAC_interrupt_mask register. If Pause_enable=1 and the value of the MAC_pause_time register is non-zero, no new packet is transmitted. A valid pause packet is defined as having a destination address that matches 0x0180C2000001, an Ethertype of 0x8808, and the pause opcode of 0x0001 as shown in Table 10-28. Table 10-28. Start of an 802.3 Pause Packet Destination Source Ethertype (MAC Control Address Address Frame) 0x0180C2000001 6 bytes Pause opcode Pause Time 0x0001 2 bytes 0x8808 Pause packets that have FCS or other errors are treated as invalid and discarded. Valid received pause packets increment the Pause_packets_Rxd_OK counter. 2 The MAC_pause_time register decrements every 512 bit times after transmission has stopped. For test purposes, the register decrements every MII receive clock cycle instead if Retry_test=1 in the MAC_network_configuration register. If the Pause_enable bit is not set, the decrementing happens regardless of whether transmission has stopped or not. 2 The Pause_time_zero interrupt in the MAC_interrupt_status register is asserted whenever the MAC_pause_time register decrements to zero (assuming it is enabled in the MAC_interrupt_mask). Automatic transmission of pause packets is supported through the transmit pause packet bits of the MAC_network_control register. If either Transmit_pause_packet or Transmit_zero_quantum_pause_ packet is set, a pause packet is transmitted only if Full_duplex=1 in the MAC_network_configuration register and Transmit_enable=1 in the MAC_network_control register. Pause packet transmission takes place immediately if transmit is inactive or if transmit is active between the current packet and the next packet due to be transmitted. The transmitted pause packet comprises the items in the following list: 2 2 2        Destination address of 01-80-C2-00-00-01 Source address taken from the MAC_specific_address registers Ethertype of 0x8808 (MAC control frame) Pause opcode of 0x0001 Pause quantum Fill of 0x00 to take the frame to minimum frame length Valid FCS. The pause quantum used in the generated packet depends on the trigger source for the packet as follows:   If Transmit_pause_packet=1, the pause quantum comes from the MAC_transmit_paulse_quantum register. The Transmit Pause Quantum register resets to a value of 0xFFFF giving a maximum pause quantum as a default. If Transmit_zero_quantum_pause_ packet=1, the pause quantum is zero. After transmission, no interrupts Transmitted_pause_packets. 2 are generated and the only counter incremented is the 2 Pause packets can also be transmitted by the MAC using normal packet transmission methods. It is possible to transmit a pause packet while the transmitter is paused by resetting the Pause_enable bit. 97 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.13 Packet Classifier The Packet Classifier is part of the receive path, immediately following the Ethernet MAC block. It analyzes the header of each incoming packet, by comparing the header fields to the chip’s configured parameters, and then decides whether to discard the packet or add a buffer descriptor and forward the packet to the CPU or one of the payload-type machines. Section 11.4.1 has register descriptions for the packet classifier configuration registers. IP version:    Packets with IP version different than 4 or 6 are always discarded. The chip has three IPv4 addresses and two IPv6 addresses (all software configurable) The chip works in one of four modes defined by two bits in General_cfg_reg1, as described in Table 10-29. Table 10-29. Handling IPv4 and IPv6 Packets IP_version Dual_stack Transmitted Packets IP Version 0 0 IPv4 1 0 IPv6 0 1 IPv4 1 1 IPv6 Received Packets IP Version Receive only IPv4 packets (other IP versions are discarded) Receive only IPv6 packets (other IP versions are discarded) Receive both IPv4 and IPv6 packets (dual stack mode) Receive both IPv4 and IPv6 packets (dual stack mode) Although the chip has more than one IP address, in most cases all three IPv4 addresses should have the same value and both IPv6 addresses should have the same value. The chip also has two configurable MAC addresses. Packets with CRC errors are discarded regardless to their contents, unless the Ethernet MAC has been configured to ignore them (in which case they are treated as correct packets). IP Packets with IP checksum error are discarded, unless the Discard_ip_checksum_err configuration bit is cleared in General_cfg_reg0. Packets other than TDM-over-IP or TDM-over-MPLS or TDM-over-MEF packets destined to the chip are not transferred to the payload-type machines. Instead, they are either discarded or transferred to the CPU according to the nine Discard_switch configuration bits in Packet_classifier_cfg_reg3: Discard_Switch_0: An ARP packet whose Ipv4 destination address is not identical to any of the chip’s Ipv4 addresses is discarded if Discard_Switch_0 is set. Otherwise it is transferred to the CPU. Discard_Switch_1: An IP (both Ipv4 or Ipv6) packet whose IP destination address is not identical to any of the chip’s IP addresses is discarded if Discard_Switch_1 is set. Otherwise it is transferred to the CPU. Discard_Switch_2: A packet whose Ethertype is not known by the block is discarded if Discard_Switch_2 is set. Otherwise it is transferred to the CPU. Discard_Switch_3: An ARP packet whose Ipv4 destination address is identical to one of the chip’s Ipv4 addresses is discarded if Discard_Switch_3 is set. Otherwise it is transferred to the CPU. Discard_Switch_4: An IP packet destined to the chip whose protocol is different than UDP and L2TPv3 is discarded if Discard_Switch_4 is set. Otherwise it is transferred to the CPU. Discard_Switch_5: An IP/UDP packet destined to the chip whose UDP destination/source port number is not identical to one of the chip’s TDM-over-Packet port numbers (according to TDMoIP_port_num_loc in Packet_classifier_cfg_reg3) is discarded if Discard_Switch_5 is set. Otherwise it is transferred to the CPU. Discard_Switch_6: A TDMoP/MPLS/MEF packet destined to the chip whose bundle identifier is not identical to one of the chip’s OAM Bundle Numbers or one of the bundle identifiers 98 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 assigned to the chip’s internal bundles, is discarded if Discard_Switch_6 is set. Otherwise it is transferred to the CPU. Discard_Switch_7: A packet recognized as OAM packet (see section 10.6.13.3) is discarded if Discard_Switch_7 is set. Otherwise it is transferred to the CPU. Discard_Switch_8: A packet with Ethertype equal to CPU_dest_ether_type configuration is discarded when Discard_Switch_8 is set. Otherwise it is transferred to the CPU. A packet is identified as a TDM-over-Packet packet destined to the chip if it meets the following conditions:       It is unicast with its destination address identical to the chip’s MAC addresses, multicast or broadcast It has either no VLAN tags, one VLAN tag or two VLAN tags (supports VLAN stacking). See section 10.6.13.4. Its protocol is UDP/IP or L2TPv3 Its IP address is identical to one of the IP addresses of the chip Its UDP destination port number is identical to one of the chip’s TDM-over-Packet port numbers (optional). See section 10.6.13.1. Its bundle identifier is identical to one of the bundle identifiers assigned to the chip’s internal bundles or the packet is identified as an OAM packet. See section 10.6.13.2. A packet is identified as a TDMoMPLS or TDMoMEF packet destined to the chip if it meets the following conditions:     It is unicast with its destination address identical to the chip’s MAC addresses, multicast or broadcast It has either no VLAN tags, one VLAN tag or two VLAN tags (VLAN stacking) Its Ethertype is MPLS unicast, MPLS multicast, or MEF (see section 10.6.13.5) The bundle identifier located at the inner label is identical to one of the bundle identifiers assigned to the chip’s internal bundles or the packet is identified as an OAM packet. The structure of packets identified as TDM-over-Packet packets destined to a specific bundle of the chip or as OAM packets destined to the chip is shown below. Figure 10-59. Format of TDMoIP Packet with VLAN Tag DA MAC_add/ Broadcast/ Multicast SA VLAN Tag up to 2 tags Eth Type IP IP Header Dst. IP = IP_Add1/ IP_Add2 UDP or L2TPv3 Header Bundle no. = Bundle_Identifier/ OAM_bundle_num Control Word Optional Payload Type AAL1/HDLC/ OAM/RAW CRC-32 Control Word Payload Type AAL1/HDLC/ OAM/RAW CRC-32 Figure 10-60. Format of TDMoMPLS Packet with VLAN Tag DA MAC_add/ Broadcast/ Multicast SA VLAN Tag up to 2 tags Eth Type MPLS Up to 2 MPLS Labels Optional MPLS Label Bundle no. = Bundle_Identifier/ OAM_bundle_num Figure 10-61. Format of TDMoMEF Packet with VLAN Tag DA MAC_add/ Broadcast/ Multicast SA VLAN Tag up to 2 tags Eth Type MEF ECID = Bundle_Identifier Control Word Payload Type AAL1/HDLC/ OAM/RAW CRC-32 Packets that pass the classification process are temporarily stored in the Rx FIFO. This FIFO is used to buffer momentary bursts from the network if the internal hardware is busy. The Rx arbiter transfers the packets from the Rx FIFO to the payload-types machines or to external SDRAM. 99 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.13.1 TDMoIP Port Number The TDMoIP_port_num1 and TDMoIP_port_num2 configuration fields are used by the block to identify UDP/IP TDMoIP packets. Although the chip has two of these fields, in most cases both fields should have the default value (0x085E) as assigned by IANA for TDM-over-Packet. The UDP source Both values are compared against the UDP_SRC_PORT_NUM or the UDP_DST_PORT_NUM of incoming packets as specified by the TDMoIP_port_num_loc field in Packet_classifier_cfg_reg3 (see Table 10-30). Table 10-30. TDMoIP Port Number Comparison for TDMoIP Packet Classification TDMoIP_port_num_loc Value Comparison 00 01 10 11 TDMoIP_port_num1/2 are ignored (no checking is performed) TDMoIP_port_num1/2 are compared to source UDP port # of incoming packets TDMoIP_port_num1/2 are compared to destination UDP port # of incoming packets Reserved 10.6.13.2 Bundle Identifier Location and Width The block determines the packet bundle identifier and its width after determining the packet type. Table 10-31. Bundle Identifier Location and Width Packet Type Bundle Identifier Location MPLS MEF L2TPv3/IP UDP/IP Inner label Inner label Session ID Source UDP port number or destination UDP port number, as specified by Ip_udp_bn_loc in Packet_classifier_cfg_reg3 Bundle Identifier Width 20 bits 20 bits 32 bits 1-16 bits as specified by Ip_udp_bn_mask_n in Packet_classifier_cfg_reg6. 10.6.13.3 OAM Packet Identification The block identifies OAM packets according to one of the following criteria:  UDP/IP-specific OAM packets: Match between the packet’s bundle identifier and one of the values (up to 8 different) configured in the OAM_Identification registers.  VCCV OAM packets: Match between the packet’s control word bits 31:16 and a 1 to 16 bit value specified by the combination of VCCV_oam_mask_n and VCCV_oam_value fields in Packet_classifier_cfg_reg18. Such a match is taken into account only when OAM_ID_in_CW=1 in the Bundle Configuration Tables.  MEF OAM packets: Match Packet_classifier_cfg_reg9. between packet Ethertype and Mef_oam_ether_type in register 10.6.13.4 VLAN Tag Identification A VLAN tag is identified according to one of the following criteria:  Tag protocol identifier = 0x8100  Tag protocol identifier = vlan_2nd_tag_identifier in Packet_classifier_cfg_reg7 (Created to support 0x9100 as a tag identifier) 100 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.6.13.5 Known Ethertypes The block considers the following Ethertypes as known Ethertypes:         IPv4 (0x800) IPv6 (0x86DD) MPLS unicast (0x8847) MPLS multicast (0x8848) ARP (0x806) MEF Ethertype as configured in Mef_ ether_type in Packet_classifier_cfg_reg9 MEF OAM Ethertype as configured in Mef_oam_ether_type in Packet_classifier_cfg_reg9 Specific Ethertype as configured in CPU_dest_ether_type in Packet_classifier_cfg_reg7 10.6.13.6 Received OAM Time-Stamping For any received packet forwarded to the CPU (ETH  CPU path) the third dword of the buffer descriptor holds the timestamp as latched by the block as the packet was received. This timestamp can be used by the CPU for network delays measurements. The timestamp is 1 s or 100 s as specified by the OAM_timestamp_resolution field in General_cfg_reg0. 10.6.13.7 Neighbor Discovery (RFC 2461) Where IPv4 has ARP, IPv6 has NDP, the neighbor discovery protocol. For the purposes of this discussion, NDP and ARP are very similar: one node sends out a request packet (called a neighbor solicitation in NDP), and the node it was looking for sends back a reply (neighbor advertisement) giving its link-layer address. NDP is part of ICMPv6, unlike ARP, which doesn't run over IP. NDP also uses multicast rather than broadcast packets. For NDP (ICMPv6) packets to be forwarded to the CPU, Discard_switch_4 must be cleared. 10.6.13.8 Packet Payload Length Sanity Check The packet classifier performs a sanity check between the payload length of the received packet and the AAL1/SAToP/CESoPSN bundle’s configuration. Discarding packets that fail the sanity check can be disabled per bundle by setting Rx_ discard_sanity_fail=1 in the Bundle Configuration Tables. 10.6.14 Packet Trailer Support There are Ethernet switch chips that in some of their modes transmit packets with a trailer and expect the incoming packets to have a trailer. A trailer is an addition of several bytes at the end of the packet that helps the switch to decide about the incoming packet destination and to tag out-going packets. When the device operates opposite such a switch, the trailer is supported in the following manner:  Transmitted packets: A 1 to 12 byte trailer is added to all transmitted packets. The trailer contents that are stored in the packet buffer (immediately after the buffer descriptor starting from offset 0x8) may be varied per packet.  Received packets: The trailer content is ignored. It is removed from packets destined to the payload-type machines and not transferred with packets destined to CPU.  Trailer size is set for all transmitted/received packets in the Packet_trailer_length field in General_cfg_reg0. The structure of packets with trailer is illustrated in Figure 10-62. 101 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-62. Structure of Packets with Trailer The CRC is calculated over all packet bytes including over the trailer bytes. The transmitted bytes counter and the received bytes counter (section 11.4.3.3) do not count the trailer bytes. 10.6.15 Counters and Status Registers For information about counters and registers in the TDMoP block, see section 11.4. 10.6.16 Connection Level Redundancy The TDMoP block provides optional connection level redundancy for AAL1, SAToP and CESoPSN bundles. In the TDM-to-Ethernet direction, on a bundle basis, each packet may be transmitted once with certain headers, or twice, each time with different headers. When transmitted twice, the packets have the same payload, same control word and same RTP header (if used) but may have different packet headers (including layer 2, 3 and 4 headers). For example, the chip can duplicate a bundle’s packets on transmission where the only difference between the duplicated packets is their bundle number or their VLAN ID. On the receive side, when two redundant streams use different bundle numbers, the chip can be configured to receive only the packets with the first bundle number or the packets with the second bundle number. To enable this feature, CPU software must initialize the transmit buffers of a bundle with both headers. The second header must be located at offset 0x782 from start of the buffer and its length (in bytes) is indicated by the buffer descriptor Hdr2_length field (not including the RTP header length neither the control word length). By changing the Protection_mode configuration field of the bundle, the user can choose (per bundle) whether to transmit each of the packets once with the first or the second header, or twice, each time with a different header. On the receive side, only the packets with their bundle number configured in the Rx_bundle_identifier field of a specific bundle, are forwarded. The CPU may change this value dynamically, in order to switch to the redundant connection at any time. On the receive side, when both streams use the same bundle number, switching from one stream to another is almost seamless. No software intervention is needed as the payload-type machine discards the duplicated packets. During this process the end-to-end delay may change because of different route delays and 1–2 packet of packet loss may occur. 102 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The destination MAC/IP (and/or VLAN) of the duplicated packets can be different as the chip supports more than one MAC/IP address in the packet classifier. 10.6.17 OAM Signaling TDMoP bundles require a signaling mechanism to provide feedback regarding problems in the communications environment. In addition, such signaling can be used to collect statistics related to the performance of the underlying PSN. The OAM procedures detailed below are ICMP-like. 10.6.17.1 Connectivity Check Messages In most conventional IP applications, a server sends some finite amount of information over the network after an explicit request from a client. With TDM-over-Packet, the source sends a continuous stream of packets towards the destination, without knowing whether the destination device is ready to accept them, leading to flooding of the PSN. The problem may occur when a TDM-over-Packet gateway fails or is disconnected from the PSN, or the bundle is broken. After an aging time, the destination gateway disappears from the routing tables, and intermediate routers may flood the network with the TDM-over-Packet traffic in an attempt to find a new path. The solution to this problem is to significantly reduce the number of TDM-over-Packet packets transmitted per second when bundle failure is detected, and to return to full rate only when the bundle is restored. The detection of failure and restoration is made possible by the periodic exchange of one-way connectivity check messages. Connectivity is tested by periodically sending OAM messages from the source gateway to the destination gateway, and having the destination reply to each message. The connectivity check mechanism can also be useful during setup and configuration. Without OAM signaling, one must ensure that the destination gateway is ready to receive packets before starting to send them. Since TDMover-Packet gateways operate full duplex, both must be set up and properly configured simultaneously to avoid flooding. By using the connectivity mechanism, a configured gateway waits until it can detect its destination before transmitting at full rate. In addition, errors in configuration can be readily discovered by using the service-specific field. 10.6.17.2 Performance Measurements In addition to one-way connectivity, the OAM signaling mechanism can be used to request and report on various PSN metrics, such as one-way delay, round trip delay, packet delay variation, etc. It can also be used for remote diagnostics, and for unsolicited reporting of potential problems (e.g. dying gasp messages). 10.6.17.3 Processing OAM Packets In the Ethernet-to-CPU direction, the device identifies OAM packets as described in section 10.6.13.3. In the CPU-to-Ethernet direction the chip timestamps packets when the Stamp field of the buffer descriptor field is set. The timestamp location in the packet is specified by the Ts_offset buffer descriptor field. When the CPU transmits an OAM packet, the buffer descriptor must identify the packet as a non-TDMoP/MPLS packet (i.e. is not assigned to any bundle), as other packet types are not time-stamped in any case. 103 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.7 Global Resources See the top-level block diagram in Figure 6-1. Global resources in the device include CLAD1, CLAD2, the CPU Interface block, and the TDM Cross-Connection and External Interfaces block. These resources are configured in the global registers described in section 11.3. These registers also handle device identification, top-level mode configuration, I/O pin configuration, global resets, and top-level interrupts. 10.8 Per-Port Resources See the top-level block diagram in Figure 6-1. Each port consists of the transmit and receive paths of an E1/T1/J1 LIU, an E1/T1/J1 framer, an HDLC controller, a BERT block, and one port of the TDM Cross-Connection and External Interfaces block, and one port of the TDMoP block. These blocks are described in the following sections:       LIUs: Framers: HDLC: BERT: TDMoP: Cross-Connect: section 10.13 section 10.11 section 10.12 section 10.14 section 10.6 section 8 In addition, when using the TDMoP block in external mode (see section 8.2) the port can be configured as a serial data port that can connect to a serial interface transceiver for V.35 or RS-530 support. This would usually be in a DCE application of some kind. The port can be configured for this mode by setting Port[n]_cfg_reg:Int_type=00. The device also features one 10/100 Ethernet port that can be configured to have an MII, RMII or SSMII interface. The Ethernet port can work in half or full duplex mode and supports VLAN tagging and priority labeling according to 802.1p 802.1Q, including VLAN stacking. Section 11.4.16 describes the Ethernet port. 10.9 Device Interrupts H_INT[0] indicates interrupt requests from the TDMoP block. H_INT[1] indicates interrupt requests from the LIU, framer and BERT. Optionally, the H_INT[1] signal can be forced inactive at the pin and internally ORed into the H_INT[0] signal by setting GCR1.IPOR=1. This allows H_INT[0] to indicate interrupt requests from any and all sources in the device. When GCR1.IPI0=1, H_INT[0] is forced high (inactive). When GCR1.IPI1=1, H_INT[1] is forced high (inactive). See Figure 10-63. 10.9.1 TDMoP Interrupts The Intpend register indicates the source(s) of interrupt(s) from the TDMoP block. If one of the Intpend bits is set, it can be cleared only by writing 1 to it. At reset, all Intpend interrupts are disabled due to the Intmask register default values. Writing 0 to an Intmask bit enables the corresponding Intpend interrupt. 104 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-63. Interrupt Pin Logic The TDMoP interrupts indicated in the Intpend register are of two types. The first type consists of interrupts generated by a single source. The second type consists of interrupts that can originate from any of several possible interrupt sources including the ETH_MAC, CW_bits_change, Rx_CAS_change, Tx_CAS_Change, and JB_underrun interrupts. The JBC_underrun interrupts can be masked per timeslot by setting the appropriate bits in the JBC_underrun_mask registers. The Tx_CAS_change interrupts can be masked per timeslot by setting the appropriate bits in the Tx_CAS_change_mask registers. The CW_bits_change interrupts can be masked per bundle by setting the appropriate bits in the CW_bits_mask registers. In addition, the fields of the control word that cause an interrupt when changed (L, R, M, FRG) can be configured in the CW_bits_change_mask register. When an interrupt is indicated on H_INT[0], the CPU should read the Intpend register to identify the interrupt source and then proceed as follows: Interrupt Type Single-source Interrupts Rx_CAS_change Tx_CAS_change Interrupt Procedure 1. Clear the pending interrupt(s) by writing 1 to the corresponding Intpend bit(s). 2. Service the source of the interrupt. 1. Read the Rx_CAS_change bits in the Intpend register to determine which port(s) are indicating Rx CAS change. 2. Clear the set Rx_CAS_change bits in the Intpend register by writing 1 to them. 3. Read the corresponding Rx_CAS_change register(s) to determine which timeslot(s) have been changed. 4. Clear the set bits in the Rx_CAS_change register(s) by writing 1 to them. 5. Read the corresponding Rx CAS information from the Rx Line CAS registers (section 11.4.10). 1. Read the Tx_CAS_change bits in the Intpend register to determine which port(s) are indicating Tx CAS change. 2. Clear the set Tx_CAS_change bits in the Intpend register by writing 1 to them. 3. Read the corresponding Tx_CAS_change register(s) to determine which timeslot(s) have been changed. 4. Clear the set bits in the Tx_CAS_change register(s) by writing 1 to them. 5. Read the appropriate Tx CAS information from the framers (registers TS1 to TS16). 105 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Interrupt Type CW_bits_change Interrupt Procedure 1. Clear the CW_bits_change bit in the Intpend register by writing 1 to it. 2. Read the CW_bits_change_low_bundles and CW_bits_change_high_bundles registers to determine which bundles(s) have control bits that have changed. 3. Clear the set bits in the CW_bits_change_low_bundles and CW_bits_change_high_bundles registers by writing 1 to them. 4. Read the state of the control word fields from the Packet Classifier Status register in the per-bundle status tables (section 11.4.4.1). 1. Read the JBC_underrun bits in the Intpend register to determine which port(s) are indicating jitter buffer underrun. 2. Clear the set JBC_underrun bits in the Intpend register by writing 1 to them. 3. Read the corresponding JBC_underrun register(s) to determine which buffers had underruns. 4. Clear the set bits in the JBC_underrun register(s) by writing 1 to them. 5. Service the underrun(s) as needed. 1. Clear the ETH_MAC bit in the Intpend register by writing 1 to it. 2. Read the MAC_interrupt_status register to determine the source(s) of interrupts in the MAC (all bits are reset to 0 upon read). 3. Service the source(s) of the interrupt(s). 2 2 JB_underrun_Pn ETH_MAC If a bit in the Intpend register is set and that interrupt is then masked, the device generates an interrupt immediately after the CPU clears the corresponding mask bit. To avoid this behavior, the CPU should clear the interrupt from the Intpend register before clearing the mask bit. 10.9.2 LIU, Framer and BERT Interrupts Figure 10-64 is a flow diagram that shows how to deal with an interrupt on the H_INT[1] pin (or the H_INT[0] pin when GCR1.IPOR=1). The CPU first reads the GTISR register to identify which LIU(s), Framer(s) or BERT(s) are generating the interrupt request(s). For LIU interrupts, the CPU then reads the corresponding LLSR register(s) to identify the source of the interrupt(s). For BERT interrupts, the CPU reads the corresponding BSRL register(s). For framer interrupts, the CPU reads the framer’s interrupt information registers (TIIR, RIIR) to further identify the source of the interrupt(s). If TIIR indicates interrupt(s), the CPU then reads the corresponding transmit latched status register(s) to determine the source(s) of the interrupts. If RIIR indicates interrupt(s), the CPU then reads the corresponding receive latched status register(s) to determine the source(s) of the interrupts. The TIIR and RIIR bits are real-time bits that clear after the corresponding interrupt(s) have been cleared, as long as no additional, unmasked interrupt conditions are present in the associated latched status registers. All latched status bits in the LIUs, framers and BERTs are cleared by the CPU writing 1 to the bit. Latched status bits that have been masked via interrupt mask registers do not affect the bits in the framer interrupt information registers. The Interrupt mask bits prevent individual latched status conditions from generating interrupts, but they do not prevent the latched status bits from being set. Therefore, when servicing interrupts, the CPU should consider the interrupt mask bits in order to exclude latched status bits for which interrupts are masked. This architecture allows the CPU to periodically poll the latched status bits for non-interrupt conditions, while using only one set of registers. 106 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-64. LIU, Framer and BERT Interrupt Information Flow Diagram Interrupts Allowed No Interrupt Condition Exists? Yes Read GTISR status register. What FRAMER, LIU or BERT set an interrupt condition? LIUn BERTn FRAMERn Read corresponding LLSR register. Read corresponding RIIR & TIIR Framer status register. Read corresponding BLSR register. Read Corresponding Framer status register. Service the interrupt by the host and Clear the offending bit by writing a '1' to the bit . 107 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.10 Elastic Stores and Framer System Interface The framer and formatter provide versatile system interfaces with the following capabilities:        Elastic stores can be enabled in the Tx path, the Rx path or both to support controlled slips T1 channels can be mapped/demapped to/from a 2.048MHz TDM data stream E1 channels can be mapped/demapped to/from a 1.544MHz TDM data stream Optional support for signaling in/out of the device on device pins Various options for frame/multiframe sync to be supplied by the framer/formatter or externally supplied System interface TDM signals can be connected internally to the TDMoP core System interface TDM signals can be connected to external components through device pins Each E1/T1 transceiver has a two-frame elastic store for the receive framer and a two-frame elastic store for the transmit formatter. The two elastics stores are fully independent and can be enabled/disabled independently. An elastic store has two main purposes. First, it can be used to absorb small differences in frequency and phase between the clock driving the framer or formatter and an asynchronous (i.e., not frequency locked) system TDM clock. In this mode, the elastic store manages the frequency difference by performing controlled slips, i.e. deleting or repeating entire E1 or T1 frames as needed match the incoming data rate with the outgoing data rate. Second, an elastic store can be used for E1/T1 rate conversion. When the framer or formatter is in T1 mode, the elastic store can rate-convert the T1 data stream to a 2.048MHz TDM data stream by mapping or demapping the DS0s in the T1 to/from some of the DS0s of the 2.048MHz TDM stream. In E1 mode the elastic store can rateconvert the E1 data stream to a 1.544MHz TDM stream by mapping or demapping some of the DS0s in the E1 to/from the DS0s of the 1.544MHz TDM stream. If the elastic store is enabled while in E1 mode, then either CAS or CRC-4 multiframe boundaries are be indicated via the framer’s RMSYNC output as controlled by (RIOCR.RSMS2). If the framer’s RSYSCLK is 1.544MHz, then the RBCS registers specify which channels of the received E1 data stream are be deleted. In this mode, an F-bit location is inserted into the RSER data and set to one. If the two-frame elastic store either fills or empties, a controlled slip occurs. If the buffer empties, then a full frame of data is repeated at RSER and the RLS4.RSLIP and RLS4.RESEM bits are set to a one. If the buffer fills, then a full frame of data is deleted and the RLS4.RSLIP and RLS4.RESF bits are set to a one. Table 10-32. Registers Related to the Elastic Store Register Name Description RIOCR RESCR RLS4 RIM4 TIOCR TESCR TLS1 TIM1 GCR1.TSSYNCPE Receive I/O Configuration Register Receive Elastic Store Control Register Receive Latched Status Register 4 Receive Interrupt Mask Register 4 Transmit I/O Configuration Register Transmit Elastic Store Control Register Transmit Latched Status Register 1 Transmit Interrupt Mask Register 1 Transmit System Sync Pin Enable Functions Page RSYNC config, RSYSCLK frequency Rx enable, align, reset, min delay, etc. Rx full, empty, slip latched status bits Rx interrupt mask bits TSSYNC config, TSYSCLK frequency Tx enable, align, reset, min delay, etc. Tx full, empty, slip latched status bits Tx interrupt mask bits configures pin as TSSYNC vs. SYNC 227 250 256 263 291 292 296 298 151 10.10.1 Elastic Store Initialization Two elastic store initializations may be used to improve performance: elastic store reset and elastic store align. Both of these involve the manipulation of the elastic store’s read and write pointers. This is useful primarily in synchronous applications (where RSYSCLK/TSYSCLK are locked to RCLK/TCLK respectively). Elastic store reset is used to minimize the delay through the elastic store. Elastic store align is used to 'center' the read/write pointers to the extent possible. These initializations are accomplished as shown in Table 10-33. 108 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-33. Elastic Store Delay After Initialization INITIALIZATION Receive Elastic Store Reset Transmit Elastic Store Reset Receive Elastic Store Align Transmit Elastic Store Align REGISTER BIT DELAY RESCR.RESR TESCR.TESR RESCR.RESALGN TESCR.TESALGN N bytes < Delay < 1 Frame + N bytes N bytes < Delay < 1 Frame + N bytes ½ Frame < Delay < 1 ½ Frames ½ Frame < Delay < 1 ½ Frames Note: N = 9 for RSZS = 0 N = 2 for RSZS = 1 10.10.2 Minimum Delay Mode Elastic store minimum delay mode may be used when the elastic store’s system clock is frequency locked to its line clock (i.e., RCLK locked to RSYSCLK on the receive side and TCLK locked to TSYSCLK on the transmit side). RESCR. RESMDM=1 enables receive elastic store minimum delay mode. TESCR.TESMDM=1 enables transmit elastic store minimum delay mode. When minimum delay mode is enabled, the elastic store is forced to a maximum depth of 32 bits rather than its normal two-frame depth. This feature is useful primarily in applications that interface to a 2.048MHz bus. Several restrictions apply when minimum delay mode is used. In addition to the restriction mentioned above that the read and write clocks must be frequency locked, another restriction is that RSYNC must be configured as an output when the receive elastic store is in minimum delay mode. In this mode, the SYNC outputs are always in frame mode (multiframe outputs are not allowed). In a typical application, RSYSCLK and TSYSCLK are locked to RCLK, and RSYNC (frame output mode) is connected to TSSYNC. (Enable TSSYNC by setting GCR1.TSSYNCPE=1 for the appropriate port). The slip zone select bit (RESCR. RSZS) must be set to 1. All of the slip contention logic in the framer is disabled (since slips cannot occur). On power-up, after the RSYSCLK and TSYSCLK signals have locked to their respective line clock signals, the elastic store reset bit (RESCR.RESR) should be toggled to insure proper operation 10.10.3 Additional Elastic Store Information If the receive side elastic store is enabled, then a 1.544MHz or 2.048MHz clock must be provided at the RSYSCLK input to the framer. Frame/multiframe sync can be input on the framer’s RSYNC input or the framer can output frame or multiframe sync on RSYNC configured as an output. See the fields in the RIOCR register for details. If signaling reinsertion is enabled, the robbed-bit signaling data is realigned to the multiframe sync input on RSYNC. Otherwise, a multiframe sync input on RSYNC is treated as a simple frame boundary by the elastic store. The framer always indicates frame boundaries on the line side of the elastic store via the RFSYNC output whether the elastic store is enabled or not. Multiframe boundaries are always indicated via the RMSYNC output. If the elastic store is enabled, then RMSYNC outputs the multiframe boundary on the system side of the elastic store. When the device is receiving T1 and the system TDM interface (RSER et al) is enabled for 2.048MHz operation, the RMSYNC signal outputs the T1 multiframe boundaries as delayed through the elastic store. When the device is receiving E1 and the system TDM interface is enabled for 1.544MHz operation, the RMSYNC signal outputs the E1 multiframe boundaries as delayed through the elastic store. If a 2.048MHz clock is applied to the RSYSCLK input, then the receive blank channel select registers (RBCS) can be used to specify which channels are forced to all ones on the RSER output. 10.10.3.1 Sourcing T1 Channels from a 2.048MHz TDM Stream The transmit elastic store operates with a 2.048MHz system-side data rate (32 timeslots per frame) when the TIOCR.TSCLKM bit is set to 1. In this mode CPU software can specify which of the channels on TSER are mapped into the T1 data stream by programming the transmit blank channel select registers (TBCS). When a bit in these registers is set to one, the elastic store ignores TSER data for that channel. Typically, CPU software configures eight channels to be ignored, leaving 24 channels to fill the T1 signal being generated by the transmit formatter. The default (power-up) configuration is to ignore channels 25 to 32, so that the first 24 TSER channels are mapped into the 24 channels of the T1 data stream. 109 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 For example, if the desired configuration is to transmit channels 2-16 and 18-26 from the 2.048MHz TSER data stream, the TBCS registers should be programmed as follows: TBCS1 = 0x01 :: ignore TSER channel 1 :: TBCS2 = 0x00 TBCS3 = 0x01 :: ignore TSER channel 17 :: TBCS4 = 0xFC :: ignore TSER channels 27-32 :: 10.10.3.2 Mapping T1 Channels Into a 2.048MHz TDM Stream The receive elastic store operates with a 2.048MHz system-side data rate (32 timeslots/frame) when the RIOCR.RSCLKM bit is set to 1. In this mode, CPU software can specify which of the channels of the received T1 signal come out of the framer on RSER by programming the receive blank channel select registers (RBCS). When a bit in these registers is set to one, RSER is forced high during the bits of that channel. Typically, CPU software configures eight channels to be blanked (i.e. filled with all-ones) with the other 24 channels carrying the data from the received T1 signal. The default (power-up) configuration blanks channels 25 to 32, so that the 24 T1 channels are mapped into the first 24 channels of the 2.048MHz RSER signal. If the system blanks channel 1 (timeslot 0) by setting RBCS1.CH1 = 1, then the F-bit from the framer is passed into the MSb of channel 1 of the RSER signal. For example, if: RBCS1 = 0x01 RBCS2 = 0x00 RBCS3 = 0x01 RBCS4 = 0xFC Then on RSER: channel 1 (MSb) = F-bit channel 1 (bits 1-7) = all ones channels 2-16 = T1 channels 1-15 channel 17 = all ones channels 18-26 = T1 channels 16-24 channels 27-32 = all ones Note that when two or more sequential channels are chosen to be blanked, the receive slip zone select bit (RESCR.RSZS) should be set to zero. If the blank channels are distributed (such as 1, 5, 9, 13, 17, 21, 25, 29) then the RSZS bit can be set to one, which may provide a lower occurrence of slips in certain applications. 10.10.3.3 Sourcing E1 Channels from a 1.544MHz TDM Stream The transmit elastic store operates with a 1.544MHz system-side data rate (24 channels / frame + F-bit) when the TIOCR.TSCLKM bit is set to 0. In this mode CPU software can specify which of the channels of the E1 signal are sourced from TSER and which are blanked (i.e. filled with all-ones) by programming the transmit blank channel select registers (TBCS). When a bit in these registers is set to one, the elastic store ignores TSER data for that channel. Typically, out of 32 total channels in the E1 signal being generated by the transmit formatter, CPU software configures eight channels to be blanked, and 24 channels to receive the 24 channels in the TSER signal. The default (power-up) configuration is to blank channels 25 to 32, so that so that the 24 TSER channels are mapped into the first 24 channels of the E1 data stream. 10.10.3.4 Mapping E1 Channels Into a 1.544MHz TDM Stream The receive elastic store operates with a 1.544MHz system-side data rate (24 channels / frame + F-bit) when the RIOCR.RSCLKM bit is set to 0. In this mode, CPU software can specify which of the channels of the received E1 signal come out of the framer on RSER by programming the receive blank channel select registers (RBCS). When a bit in these registers is set to one, RSER is forced high during the bits of that channel. Typically, CPU software configures eight channels to be ignored and 24 channels to come out in the RSER signal. The default (power-up) configuration ignores channels 25 to 32, so that the first 24 E1 channels are mapped into the 24 channels of the 1.544MHz RSER signal. In this mode, the F-bit location at RSER is always set to 1. 110 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 For example, if the desired configuration is to ignore E1 timeslot 0 (channel 1) and timeslot 16 (channel 17), the RBCS registers should be programmed as follows: RBCS1 = 0x01 :: ignore E1 channel 1 :: RBCS2 = 0x00 :: ignore E1 channel 17 :: RBCS3 = 0x01 RBCS4 = 0xFC :: ignore E1 channels 27-32 :: 10.11 Framers The framer cores are software selectable for E1, T1 or J1. (J1 is a variant of T1 used in Japan.) A framer, as used the term is commonly used the telecom industry and in this document, consists of two separate pieces: the receive framer and the transmit formatter. The receive side framer decodes AMI, HDB3 and B8ZS line coding; locates the frame and multiframe boundaries in a received data stream; reports alarm information; counts framing, coding and CRC errors; and provides clock, data, frame sync and optionally signaling signals to the system interface. It is also used for extracting signaling data, T1 FDL data, and E1 Si and Sa bit information. Diagnostic capabilities include loopbacks, and 16-bit loop-up and loop-down code detection. On the transmit side, clock data, frame sync and optionally signaling signals are connected between the transmit formatter and the rest of the system. The formatter inserts the appropriate framing patterns and alarm information, calculates and inserts the CRC codes, and provides the AMI, HDB3 and B8ZS line coding. The transmit formatter is also used for inserting signaling data, T1 FDL data, E1 Si and Sa bit information, and loop-up and loop-down codes. Both the receive framer and the transmit formatter have dedicated HDLC controller blocks. These may be assigned to any timeslot or portion of a timeslot, or to the T1 ESF facilities data link (FDL). The HDLC controller has separate 64-byte Tx and Rx FIFOs to reduce the processor overhead required to manage the flow of HDLC data. The TDM interfaces of the receive frame and transmit formatter provide flexibility in how data is sent to and received from the host system. Elastic stores, the key element in the TDM interfaces, provide a method for performing controlled slips when line clocks are asynchronous vs. system clocks. Elastic stores also enable DS0 mapping from an E1/T1 line to a 2.048MHz or 1.544MHz system-internal TDM data stream. 10.11.1 T1 and E1 Framing Formats 10.11.1.1 T1 Framing Formats T1 frames contain 24 8-bit DS0 channels for voice or data plus an overhead bit called the F-bit. Over a sequence of frames called a multiframe the F-bit values follow a fixed pattern that a receive framer can detect and use to locate the frame and multiframe boundaries in an incoming T1 signal. The F-bit occurs once per frame at the beginning of the frame. In most applications T1 frames are grouped into one of two types of multiframes: 12-frame superframes (SF, also known as D4 framing) or 24-frame extended superframes (ESF). The SF and ESF framing patterns are shown in Table 10-34 and Table 10-35. In the SF mode, the framing bit for frame 12 is ignored if the framer is configured for Japanese yellow alarms (RCR2-T1.RD4RM=1). Table 10-36 shows the framing pattern for another multiframe format known as SLC-96. Table 10-34. T1-SF Framing Pattern and Signaling Bits FRAME Ft Fs SIGNALING NUMBER 1 1 2 0 3 0 4 0 5 1 6 1 A 7 0 111 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 FRAME NUMBER 8 9 10 11 12 Ft Fs SIGNALING 1 1 1 0 0 B Table 10-35. T1-ESF Framing Pattern and Signaling Bits FRAME FRAMING FDL CRC SIGNALING NUMBER 1  2 CRC1 3  4 0 5  6 CRC2  7  8 0 9  10 CRC3 11  12  13  14 CRC4 15  16 0 17   18 CRC5 19  20 1 21  22 CRC6 23  24 1  Table 10-36. SLC-96 Framing Pattern and Signaling Bits FRAME Ft Fs SIGNALING NUMBER 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 0 0 0 1 1 A 0 1 1 1 0 0 B 1 0 0 0 112 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 FRAME NUMBER 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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 Ft Fs SIGNALING 1 C 1 0 1 1 1 0 C1 (concentrator bit) D 1 C2 (concentrator bit) 0 C3 (concentrator bit) 1 C4 (concentrator bit) A 0 C5 (concentrator bit) 1 C6 (concentrator bit) 0 C7 (concentrator bit) B 1 C8 (concentrator bit) 0 C9 (concentrator bit) 1 C10 (concentrator bit) C 0 C11 (concentrator bit) 1 0 (spoiler Bit) 0 D 1 (Spoiler Bit) 1 0 (Spoiler Bit) 0 M1 (Maintenance Bit) 1 M2 (Maintenance Bit) A 0 M3 (Maintenance Bit) 1 A1 (Alarm Bit) 0 A2 (Alarm Bit) B 1 S1 (Switch Bit) 0 S2 (Switch Bit) 1 C S3 (Switch Bit) 0 S4 (Switch Bit) 1 1(Spoiler Bit) 0 0 D 113 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.11.1.2 E1 Framing Formats E1 frames contain 32 8-bit channels. The first DS0 of each frame is used to carry overhead bits for frame alignment, alarm indication and node-to-node communication. The other 31 DS0 channels are available to carry voice and data. In many applications the 17th channel of each frame carries voice-channel signaling information and other overhead. Successive frames in an E1 signal alternate between FAS frames (i.e. frames containing the Frame Alignment Signal in the first DS0) and NFAS frames (i.e. frames that don’t contain the FAS). In FAS frames, the lower seven bits of the first DS0 contain the FAS sequence 0011011. Receive framers can detect the FAS and use it to find frame boundaries in an incoming E1 signal. In most applications E1 frames are grouped into 16-frame CRC-4 multiframes each composed of two submultiframes (SMF). The CRC-4 multiframe framing pattern is shown in Table 10-37. As shown in that table, the MSb of the first DS0 in frames 1, 3, 5, 7, 9 and 11 contains a fixed multiframe alignment pattern of 001011. Receive frames can detect this pattern and use it to find CRC-4 multiframe boundaries in an incoming E1 signal. The C1-C4 bits each sub-multiframe convey a cyclic redundancy check 4 (CRC-4) computed over that SMF in the previous multiframe. The register E1 and E2 bits in SMF II allow a node to indicate CRC-4 errors detected in the received E1 signal. The A bits in NFAS frames are alarm bits and are also known as RAI (remote alarm indication). The SaX bits in NFAS frames are data channels. Collectively all of the Sa4 bits are one data channel. Similarly, Sa5, Sa6, Sa7 and Sa8 bits form four other data channels. These channels can be used in various applicationspecific ways. ITU-T G.704 specifies one use for synchronization status messaging. See ITU-T G.704 for full details of E1 frame and multiframe formats. Table 10-37. E1 CRC-4 Multiframe Framing Pattern SubCRC-4 Type MultiFrame # 1 2 Frame 0 FAS C1 0 1 NFAS 0 1 2 FAS C2 0 3 NFAS 0 1 I 4 FAS C3 0 5 NFAS 1 1 6 FAS C4 0 7 NFAS 0 1 8 FAS C1 0 9 NFAS 1 1 10 FAS C2 0 11 NFAS 1 1 II 12 FAS C3 0 13 NFAS E1 1 14 FAS C4 0 15 NFAS E2 1 Bits 1 to 8 of the Frame 3 4 5 6 7 8 0 A 0 A 0 A 0 A 0 A 0 A 0 A 0 A 1 Sa4 1 Sa4 1 Sa4 1 Sa4 1 Sa4 1 Sa4 1 Sa4 1 Sa4 1 Sa5 1 Sa5 1 Sa5 1 Sa5 1 Sa5 1 Sa5 1 Sa5 1 Sa5 0 Sa6 0 Sa6 0 Sa6 0 Sa6 0 Sa6 0 Sa6 0 Sa6 0 Sa6 1 Sa7 1 Sa7 1 Sa7 1 Sa7 1 Sa7 1 Sa7 1 Sa7 1 Sa7 1 Sa8 1 Sa8 1 Sa8 1 Sa8 1 Sa8 1 Sa8 1 Sa8 1 Sa8 10.11.1.3 Framer/Formatter Configuration Registers that are related to setting up the framer and formatter are shown in the following table. Table 10-38. Registers Related to Setting Up the Framer and Formatter Register Name Description TMMR TCR1-T1 TCR1-E1 TCR2-T1 Transmit Master Mode Register Transmit Control Register 1 (T1 Mode) Transmit Control Register 1 (E1 Mode) Transmit Control Register 2 (T1 Mode) Functions Tx E1/T1 mode, reset, initialization Tx source of the F-Bit Tx source of FAS and Si bits Tx F-Bit corruption, SLC-96 enable Page 286 286 287 288 114 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name Description Functions Page TCR2-E1 TCR3 TSLC TAF TNAF RMMR Transmit Control Register 2 (E1 Mode) Transmit Control Register 3 Transmit SLC96 Control Register 1,2,3 Transmit Align Frame Transmit Non-Align Frame Receive Master Mode Register Tx enable for auto-E bit setting Tx or D4 mode, CRC-4 recalc Tx SLC-96 Bits Tx possible source of Si, FAS bits Tx possible source of Si, A, Sa bits Rx E1/T1 mode, reset, initialization RCR1-T1 RCR1-E1 RCR2-T1 RCR2-E1 RAF RNAF RSLC Receive Control Register 1 (T1 Mode) Receive Control Register 1 (E1 Mode) Receive Control Register 2 (T1 Mode) Receive Control Register 2 (E1 Mode) E1 Receive Align Frame Register E1 Receive Non-Align Frame Register Receive SLC96 Control Register 1,2,3 Rx ESF or D4 mode, Japanese CRC-4 Rx CRC-4 enable/disable Rx SLC-96 enable, LOF Criteria Rx Loss of Signal Criteria Selection Received Si, FAS bits Received Si, A, Sa bits Receive SLC-96 Bits 289 290 280 281 281 244 245 246 229 247 238 239 238 10.11.2 T1 Transmit Frame Synchronizer The transmitter has the ability to identify the T1 SF or ESF frame boundary, as well as the E1 CRC-4 multiframe boundary within the incoming data stream at TSER. The TCR3.TFM control bit determines whether the transmit synchronizer searches for the SF or ESF multiframe. Additional control signals for the transmit synchronizer are located in the TSYNCC Register. The latched status bit TLS3.LOFD indicates that a loss of frame synchronization has occurred, and the real-time bit LOF is set high when the synchronizer is searching for frame/multiframe alignment. The LOFD bit can be enabled to cause an interrupt request if enabled. Note that when the transmit synchronizer is used, the TSYNC signal should be configured as an output (TIOCR.TSIO=1). When TIOCR.TSM=0, the recovered frame sync pulse is output on TSYNC. When TIOCR.TSM=0, the recovered CRC-4 multiframe pulse is output on TSYNC. Other key points concerning the transmit synchronizer: 1. The Tx synchronizer is not operational when the transmit elastic store is enabled. 2. The Tx synchronizer does not perform CRC-6 alignment verification (ESF mode) and does not verify CRC-4 codewords. 3. The Tx synchronizer does not have the ability to search for the CAS multiframe. The registers related to the transmit synchronizer are shown in the following table: Table 10-39. Registers Related to the Transmit Synchronizer Register Name Description TCR3 TIOCR TSYNCC TLS3 TIM3 Transmit Control Register 3 Transmit I/O Configuration Register Transmit Synchronizer Control Register Transmit Latched Status Register 3 Transmit Interrupt Mask Register 3 Functions Page TFM Bit Selects Between D4 and ESF TSYNC Should Be Set as an Output Resynchronization Control for the Provides Latched Status for the Provides Mask Bits for the TLS3 290 291 295 297 299 10.11.3 Signaling The receive framer and transmit formatter support both software- and hardware-based signaling. Interrupts can be generated on changes of signaling data. The framers are additionally equipped with a feature that freezes receive signaling when any of these events occur: loss of signal, loss of frame, or change of frame alignment. The following table lists register related to signaling. 115 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-40. Registers Related to Signaling Register Name Description TS1 - TS16 TSSIE1 - TSSIE4 THSCS1 - THSCS4 RSIGC RSAOI1 - RSAOI3 RS1 - RS16 RSS1 - RSS4 RSCSE1 - RSCSE4 RLS4 RIM4 RSI1 – RSI4 Tx Signaling Registers 1 to 16 Tx Signaling Insertion Enable Registers 1 to 4 Tx Hardware Signaling Channel Select 1 to 4 Rx Signaling Control Register Rx Signaling All-Ones Insertion Registers 1 to 3 Rx Signaling Registers 1 to 16 Rx Signaling Status Registers 1 to 4 Rx Signaling Change of State Enable 1 to 4 Rx Latched Status Register 4 Rx Interrupt Mask Register 4 Rx Signaling Reinsertion Registers 1 to 4 Functions Page Tx ABCD signaling to be inserted Tx per-channel SW sig. insert controls Tx per-channel HW sig. insert controls Rx auto and manual signaling freeze Rx per-channel sig. all-1s insertion Rx ABCD signaling bits received Rx per-channel sig. change status Rx per-channel sig. interrupt enables Rx top-level sig. change latched status Rx top-level sig. change interrupt mask Rx per-channel reinsertion control 279 278 302 229 232 233 259 265 257 263 270 10.11.3.1 Transmit Signaling Operation There are two methods to provide transmit signaling data: software (i.e. from the TS registers) and hardware (i.e. from the formatter’s TSIG input). Both methods may be used simultaneously. The methods are described in the subsections below. 10.11.3.1.1 Software Signaling In the software signaling method, signaling data is loaded into the transmit signaling registers (TS1 - TS16) by the CPU. Each transmit signaling register contains the signaling bits for two DS0 timeslots. On multiframe boundaries, the signaling bits stored in these registers are loaded into a shift register for placement in the appropriate bit position in the outgoing data stream. The CPU can watch for the setting of the TLS1.TMF latched status bit on multiframe boundaries to know when to update any Tx signaling bits that may need to be changed. Signaling data can be sourced from the TS registers on a per-channel basis by using the TSSIE registers. In T1 ESF framing mode, there are four signaling bits per channel (A, B, C, and D). TS1 - TS12 contain a full multiframe of signaling data. In T1 D4 framing mode, there are only two signaling bits per channel (A and B), and the C and D bit positions in the TS registers are ignored. In T1 mode, software signaling is enabled by setting TCR1-T1.TSSE=1. When software signaling is enabled, signaling bits are sourced from the TS registers for each channel where the appropriate bit is set to 1 in the TSSIE registers. In E1 mode, timeslot 16 carries the signaling information. This information can be in either CCS (Common Channel Signaling) or CAS (Channel Associated Signaling) format. Only CAS is supported by the signaling logic described in this section. In E1 mode the TCR1-E1.T16S bit specifies how Tx signaling is sourced. When T16S=1, CAS signaling bits for all timeslots is unconditionally sourced from the TS registers. When T16S=0, signaling bits are sourced from the TS registers for each channel where the appropriate bit is set to 1 in the TSSIE registers. This latter mode allows some signaling data for some channels to be sourced from the TS registers while signaling data for other channels can be sourced from the formatters TSIG input (hardware-based signaling). Note that in E1 the 32 timeslots are referenced by two different channel number schemes in E1. In “channel” numbering, TS0 through TS31 are labeled channels 1 through 32. In “phone channel” numbering, TS1 through TS15 are labeled channels 1 through 15, and TS17 through TS31 are labeled channels 16 through channel 30. This is illustrated below. Table 10-41. Timeslot Number Schemes TS Channel Phone Channel 0 1 1 2 1 2 3 2 3 4 3 4 5 4 5 6 5 6 7 6 7 8 7 8 9 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 116 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.11.3.1.2 Hardware Signaling In the hardware signaling method, signaling data is provided to the transmit formatter using the TSIG input. The signaling information on TSIG is buffered and inserted into the outgoing framed T1 or E1 signal. In both T1 and E1 modes, signaling data can be sourced from TSIG on a per-channel basis by using the THSCS registers. Note that in E1 mode the THSCS control bits are ignored unless TCR1-E1.T16S=0. The signaling insertion capabilities of the transmit formatter are available whether the transmit side elastic store is enabled or disabled. If the elastic store is enabled, the system TDM interface clock (TSYSCLK) can be either 1.544MHz or 2.048MHz. See Figure 10-33 to Figure 10-35 for functional timing of TSIG. 10.11.3.2 Receive Signaling Operation There are two methods for the receive framer to present received signaling data to the system: software (i.e. through the RS registers) and hardware (i.e. on the framer’s RSIG output). Both methods may be used simultaneously. The methods are described in the subsections below. 10.11.3.2.1 Software Signaling In the software signaling method, the framer extracts signaling information from the receive data stream and copies it into the receive signaling registers (RS1 through RS16) where it can be read by the CPU. The signaling information in these registers is always updated on multiframe boundaries. The CPU can watch for the setting of the RLS4.RMF latched status bit on multiframe boundaries to know when to read the signaling information. This function is always enabled. 10.11.3.2.2 Change Of State Indication To free the CPU from the task of continually monitoring the receive signaling registers, the framer can be programmed to alert the system when any channel(s) have a change of signaling state. When a channel’s signaling data changes state, the latched status bit for that channel is set to 1 in the RSS registers. If the corresponding bit in the RSCSE registers is set, then the setting of an RSS register bit causes RLS4.RSCOS to also be set. RSCOS can cause an interrupt request if enabled by the corresponding interrupt enable bit in RIM4. Note that signaling changes are always indicated in the RSS registers regardless of the state of the RSCSE registers. If signaling integration is enabled (RSIGC.RSIE=1) then any new signaling state must be constant for 3 consecutive multiframes before a change of state is indicated in the RSS registers. The signaling integration mode affects all channels in the T1 or E1 signal; it cannot be enabled/disabled on a per-channel basis. With the functionality described above, the CPU can poll RLS4.RSCOS or respond to an interrupt request driven by RSCOS. When RSCOS is found to be high, software can identity which channels have undergone a signaling change of state by reading the RSS registers. Software can then read the corresponding RS1 through RS16 registers to get the new signaling state(s). 10.11.3.2.3 Hardware-Based Receive Signaling In the hardware signaling method, the framer provides signaling data in two places: on the dedicated RSIG output and at the normal position in the receive data stream on the RSER output. A signaling buffer in the framer provides signaling data to RSIG and additionally allows signaling data to be reinserted into the original data stream in a different alignment that is determined by a multiframe signal from the RSYNC input. In this mode, the receive elastic store may be enabled or disabled. If the receive elastic store is enabled, then the system TDM interface clock (RSYSCLK) can be either 1.544MHz or 2.048MHz. In the ESF framing mode, the ABCD signaling bits are output on RSIG in the RCLK cycles when the lower nibble of each channel is output on RSER. The RSIG data is updated once a multiframe (3ms for T1 ESF, 1.5ms for T1 SF, 2ms for E1 CAS) unless a signaling freeze is in effect (see section 10.11.3.2.6). In the SF framing mode, the AB signaling bits are output twice on RSIG in the in the RCLK cycles when the lower nibble of each channel is output on RSER. Hence, bits 5 and 6 contain the same data as bits 7 and 8, respectively, in each channel. These function are always enabled. 117 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.11.3.2.4 Receive Signaling Reinsertion at RSER In this mode, the system provides a multiframe sync at the framer’s RSYNC input, and the signaling data is reinserted based on this alignment. In T1 mode, this results in two versions of the signaling data: the original signaling data based on the Fs/ESF frame positions, and the realigned data based on the system-supplied multiframe sync applied at RSYNC. In voice channels this extra copy of signaling data is of little consequence. Reinsertion can be avoided in data channels since this feature is activated on a per-channel basis. For reinsertion, the elastic store must be enabled, and for T1, the system TDM interface clock (RSYSCLK) can be either 1.544MHz or 2.048MHz. E1 signaling information cannot be reinserted into a 1.544MHz system TDM interface. Signaling reinsertion mode is enabled on a per-channel basis by setting the appropriate bits in the RSI1 - RSI4 registers. In E1 mode, the CPU would generally select all channels or none for reinsertion. 10.11.3.2.5 Force Receive Signaling All Ones In T1 mode only, when RSIGC.RFSA1=1, the CPU can, on a per-channel basis, force the robbed bit signaling bit positions to one by setting the appropriate bit(s) in the RSAOI registers. 10.11.3.2.6 Receive Signaling Freeze When RSIGC.RSFE=1 the signaling data in the four-multiframe signaling buffers is automatically frozen when any of these events occurs: loss of signal (receive carrier loss), loss of frame (OOF event) or change of frame alignment). In T1 mode, this action meets the requirements of Bellcore TR-TSY-000170 for signaling freezing. In addition to automatic signaling freeze, the CPU can force a signaling freeze by setting the RSIGC.RSFF control bit high. The RSIG output provides a hardware indication that a freeze is in effect. The four-multiframe buffer provides a three multiframe delay in the signaling information provided at the RSIG signal (and at RSER if receive signaling reinsertion is enabled). When freezing is enabled, the signaling data is held in the last known good state until the corrupting error condition subsides. When the error condition subsides, the signaling data is held in the old state for at least an additional 9ms (4.5ms in SF framing mode, 6ms for E1 mode) before being updated with new signaling data. 10.11.4 T1 Datalink 10.11.4.1 T1 ESF Transmit Bit-Oriented Code (BOC) Controller The transmit formatter contains a BOC generator that can insert codes into the facilities data link (FDL) of the T1 ESF. This function is only available in T1 ESF mode. The registers related to transmitting bit oriented codes are shown in the following table. Table 10-42. Registers Related to T1 Transmit BOC Register Name Description TBOC THC2 TCR1-T1 Transmit Bit-Oriented Code Register Transmit HDLC Control Register 2 Transmit Control Register Functions BOC message to be transmitted SBOC bit enables Tx of BOC TFPT bit specifies F-bit source Page 280 277 286 The lower six bits of TBOC specify the BOC message to be transmitted. Setting THC2.SBOC=1 causes the transmit BOC controller to immediately begin inserting the BOC sequence into the FDL bit positions. The transmit BOC controller automatically provides the abort sequence. BOC messages are transmitted as long as SBOC is set. Note that the TCR1-T1.TFPT must be set to zero for the BOC message to overwrite F-bit information being sampled on TSER. 10.11.4.2 T1 ESF Receive Bit-Oriented Code (BOC) Controller The receive framer contains a BOC detector that can detects and reports codes in the facilities data link (FDL) of the T1 ESF. This function is only available in T1 ESF mode. The registers related to receiving bit oriented codes are shown in the following table. 118 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-43. Registers Related to T1 Receive BOC Register Name Description RBOCC RBOC RLS7-T1 RIM7-T1 Receive BOC Control Register Receive Bit Oriented Code Register Receive Latched Status Register 7 Receive Interrupt Mask Register 7 Functions reset and filter/disintegration settings received BOC message BOC detected, cleared latched status interrupt mask bits Page 231 238 258 264 In T1 ESF mode, the receive framer continuously monitors the FDL bits for a valid BOC message. The BOC detect status bit RLS7-T1.BD is set after a valid message has been detected for a time specified by the receive BOC filter bits RBOCC.RBF[1:0]. The 6-bit BOC message is then available to be read from the RBOC register. After the CPU clears the BD bit, it remain clears until a new BOC is detected (or the same BOC is detected following a BOC clear event). The BOC clear status bit RLS7-T1.BC is set when a valid BOC is no longer being detected for a time specified by the receive BOC disintegration bits RBOCC.RBD[1:0]. The BD and BC status bits can cause an interrupt request if enabled by the associated interrupt mask bits in the RIM7-T1 register. 10.11.4.3 Legacy T1 Transmit FDL Note: For most applications, BOC controllers or HDLC controllers in the framer and formatter are better tools for communication over the FDL than the TFDL and RFDL registers. The registers related to transmitting over the FDL using the TFDL register are listed in the table below. Table 10-44. Registers Related to Legacy T1 Transmit FDL Register Name Description TFDL TCR2-T1 TLS2 TIM2 Transmit FDL Register Transmit Control Register 2 Transmit Latched Status Register 2 Transmit Interrupt Mask Register 2 Functions 8 bits of FDL data to transmit source of Tx FDL bits transmit FDL empty bit (TFDLE) interrupt mask bit for TFDLE bit Page 280 288 297 299 When enabled with TCR2-T1.TFDLS=0, the transmit formatter sources the FDL (in the ESF framing mode) or the Fs bits (in the SF framing mode) from the transmit FDL register (TFDL). The LSb is transmitted first. After all eight bits have been shifted out of TFDL, the formatter sets TLS2.TFDLE=1 to inform the CPU that the buffer is empty and that more data is needed. TFDLE can cause an interrupt request if enabled by the corresponding interrupt mask bit in TIM2. The CPU has 2ms (8 * 2 * 125s) to update TFDL with a new value. If it is not updated, the old value is transmitted again. Note that in this mode, no zero stuffing is applied to the FDL data. It is strongly suggested that the HDLC controller be used for FDL messaging applications. In the SF framing mode, the formatter sources the Fs framing pattern from the lower six bits of the TFDL register, and TLS2.TFDLE is set every 1.5ms (12 * 125s). For the standard framing pattern, TFDL must be set to 0x1C and TCR2-T1.TFDLS should be set to zero. 10.11.4.4 Legacy T1 Receive FDL Note: For most applications, BOC controllers or HDLC controllers in the framer and formatter are better tools for communication over the FDL than the TFDL and RFDL registers. The registers related to receiving data from the FDL using the RFDL register are listed in the table below. Table 10-45. Registers Related to Legacy T1 Receive FDL Register Name Description RFDL RLS7-T1 RIM7-T1 Receive FDL Register Receive Latched Status Register 7 Receive Interrupt Mask Register 7 Functions 8 bits of received FDL data receive FDL full bit (TFDLF) interrupt mask bit for RFDLF bit Page 237 258 264 In the receive section, the recovered FDL bits or Fs bits are always shifted one-by-one into the receive FDL register (RFDL). The LSb is the first bit received. Since RFDL is 8 bits in length, it fills up every 2ms (8 * 2 * 125s). After all eight bits have been shifted into RFDL, the framer sets RLS7-T1.RFDLF=1 to inform the CPU that the buffer is full and needs to be read. RFDLF can cause an interrupt request if enabled by the corresponding interrupt mask bit 119 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 in RIM7-T1. The CPU has 2ms (8 * 2 * 125s) to read the data from RFDL before it is lost. Note that in this mode, no zero stuffing is applied to the FDL data. It is strongly suggested that the HDLC controller be used for FDL messaging applications. In the SF framing mode, the framer writes the received Fs framing pattern into the lower six bits of the RFDL register, and RLS7-T1.RFDLF is set every 1.5ms (12 * 125s). 10.11.5 E1 Datalink The registers related to E1 datalink are shown in the following table: Register Name Description RAF RNAF RSiAF RSiNAF RSa4 to RSa8 RSAIMR SaBITS Sa6CODE TAF TNAF TSiAF TSiNAF TSa4 to TSa8 TSACR Receive Align Frame Register Receive Non-Align Frame Register Receive Si Bits of the Align Frames Receive Si Bits of the Non-Align Frames Receive Sa Bits Sa Bit Interrupt Mask Register Received Sa Bits Received Sa6 Codeword Transmit Align Frame Register Transmit Non-Align Frame Register Transmit Si Bits of the Align Frame Transmit Si Bits of the Non-Align Frames Transmit Sa4 to Sa8 Transmit Sa Bit Control Register Functions Page Rx first byte of the align frame: Si, FAS Rx first byte of the non-align frame Rx align-frame Si bits Rx non-align-frame Si bits Rx Sa4-Sa8 bits interrupt masks for Sa bit changes last received Sa bit values last validated Sa6 codeword Tx first byte of the align frame: Si, FAS Tx first byte of the non-align frame Tx align-frame Si bits Tx non-align-frame Si bits Tx Sa4-Sa8 bits Tx source control bits for Si, RA, SaX 238 239 239 240 241 230 243 244 281 281 282 282 283 277 2 The framer, when operated in the E1 mode, provides two methods for accessing the Sa and the Si bits, which are the two common channels over which a datalink can be run. The first method involves writing/reading data every E1 double-frame (250s) while the second one involves writing/reading data every CRC-4 multiframe (2ms). 10.11.5.1 Per Double-Frame Access (Method 1) On the receive side, the RAF and RNAF registers always report the contents of the first eight bits of the align frame and the non-align frame, respectively, which includes the Si and Sa bits Both registers are updated at the start of the align frame, which is indicated by the RLS2-E1.RAF status bit. After RAF is set to 1, software has 250s to read the registers before they are overwritten by the bits from the next double-frame. On the transmit side, the TAF and TNAF registers can source the first eight bits of the align frame and the nonalign frame, respectively. Data is sampled from these registers at the start of the align frame, which is indicated by the TLS1.TAF status bit. After TAF is set to 1, software has 250s to update the registers with new values (if needed) before they are sampled again for the next double-frame. TAF and TNAF are the default sources for the FAS, Si, RAI and Sa bits. However, various control fields can cause some of these bits to be sourced from elsewhere. 10.11.5.2 Per CRC-4 Multiframe Access (Method 2) On the receive side, the eight registers RSiAF, RSiNAF, RRA, and RSa4 through RSa8 report the corresponding overhead bits of the CRC-4 multiframe as they are received. These registers are updated at the start of the next CRC-4 multiframe, which is indicated by the RLS2-E1.RCMF status bit. After RCMF is set to 1, software has 2ms to read the registers before they are overwritten by the bits from the next multiframe. On the transmit side, the eight registers TSiAF, TSiNAF, TRA, and TSa4 through TSa8 can source the corresponding overhead bits of the multiframe. The control bits in the TSACR register enable the sourcing of Si/RAI/Sa bits from these registers. Data is sampled from these registers at the start of the multiframe, which is indicated by the TLS1.TMF status bit. After TMF is set to 1, software has 2ms to update the registers (if needed) before they are sampled again for the next multiframe. 120 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.11.5.3 Sa Bit Monitoring and Reporting In addition to the registers outlined above, the framer provides status and interrupt capability in order to detect changes in the state of selected Sa bits. The RSAIMR register can be used to select which Sa bits are monitored for a change of state. When a change of state is detected in one of the enabled Sa bit positions, the RLS7E1.SaXCD status bit is set. If multiple Sa bits have been enabled, the user can read the SaBITS register to determine the current value of each Sa bit. 2 For the Sa6 bits, additional support is available to detect specific codewords per ETSI ETS 300 233. The Sa6CODE register reports the received Sa6 codeword. The codeword must be stable for a period of 3 submultiframes and different from the previous stored value in order to be stored in the Sa6CODE register. Latched status bit RLS7-E1.Sa6CD indicates if the received Sa6 codeword has changed. 2 10.11.6 Maintenance and Alarms The receive framer and transmit formatter provides extensive functions for alarm detection and generation, performance monitoring, and transmission of diagnostic information, including:          Real-time status bits, latched status bits and interrupt mask bits LOS detection RAI detection and generation AIS detection and generation Pulse density violation detection Error counters DS0 monitoring Milliwatt code generation and detection Rx and Tx Slip buffer status Some of the registers related to maintenance and alarms are as follows: Table 10-46. Registers Related to Maintenance and Alarms Register Name Description RRTS1 RRTS3-T1 RRTS3-E1 RLS1 RLS2-T1 RLS2-E1 RLS3-T1 RLS3-E1 RLS4 RLS7-T1 RLS7-E1 RIM1 RIM3-T1 RIM3-E1 RIM4 RIM7-T1 RIM7-E1 ERCNT LCVCR1, LCVCR2 PCVCR1, PCVCR2 FOSCR1, FOSCR2 EBCR1, EBCR2 TLS1 TLS3 TIM1 TIM3 Rx Real-Time Status Register 1 Rx Real-Time Status Register 3 (T1 Mode) Rx Real-Time Status Register 3 (E1 Mode) Rx Latched Status Register 1 Rx Latched Status Register 2 (T1 Mode) Rx Latched Status Register 2 (E1 Mode) Rx Latched Status Register 3 (T1 Mode) Rx Latched Status Register 3 (E1 Mode) Rx Latched Status Register 4 Rx Latched Status Register 7 (T1 Mode) Rx Latched Status Register 7 (E1 Mode) Rx Interrupt Mask Register 1 Rx Interrupt Mask Register 3 (T1 Mode) Rx Interrupt Mask Register 3 (E1 Mode) Rx Interrupt Mask Register 4 Rx Interrupt Mask Register 7 (T1 Mode) Rx Interrupt Mask Register 7 (E1 Mode) Rx Error Count Configuration Register Rx Line Code Violation Count Registers Rx Path Code Violation Count Registers Rx Frames Out-of-Sync Count Registers Rx E-Bit Count Registers Tx Latched Status Register 1 Tx Latched Status Register 3 Tx Interrupt Mask Register 1 Tx Interrupt Mask Register 3 Functions Page Rx real-time RAI, AIS, LOS, LOF Rx up/down/spare code detect Rx V5.2 link, remote MF alarm Rx latched RAI, AIS, LOF, LOF set/clr Rx pulse density, COFA, F-bit error etc Rx FAS/CAS/CRC-4 out of sync Rx code detect, loss of Rx clock Rx V5.2 link, remote MF alarm Rx signaling change, 1-sec timer, etc. Rx RAI-CI, AIS-CI, etc. Rx Sa6 code, Sa-bit change interrupt mask bits for RLS1 interrupt mask bits for RLS3-T1 interrupt mask bits for RLS3-E1 interrupt mask bits for RLS4 interrupt mask bits for RLS7-T1 interrupt mask bits for RLS7-E1 Configuration of the Error Counters 16-bit Rx line code violation counter 16-bit Rx path code violation counter 16-bit frame out-of-sync counter 16-bit E-bit count register loss of Tx clock, Tx pulse density loss of frame alignment interrupt mask bits for TLS1 interrupt mask bits for TLS3 267 268 268 253 254 254 255 256 257 258 258 260 261 262 263 264 265 250 234 234 235 235 296 297 296 297 121 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.11.6.1 Real-Time Status, Latched Status, and Interrupt Mask Bits The device has two types of status bits. Real-time status bits are read-only and indicate the state of a signal at the time it is read. Latched status bits are set when a signal changes state (low-to-high, high-to-low, or both, depending on the bit) and cleared when written with a logic 1 value. Writing a 0 has no effect. When set, some latched status bits can cause an interrupt request if enabled to do so by corresponding interrupt enable bits. Often, but not always, an event-detect latched status bit has a corresponding real-time status bit and a corresponding interrupt mask bit. For example, RRTS1.RLOF is the real-time loss-of-frame bit, RLS1.RLOFD is the loss-of-frame detect latched status bit, and RIM1.RLOFD is the interrupt mask. 10.11.6.2 T1 Alarm Criteria T1 signals have four key alarms: loss-of-signal (LOS), loss of frame (LOF), alarm indication signal (AIS), and remote alarm indication (RAI). Table 10-47 lists the set and clear criteria for these conditions. Table 10-47. T1 Alarm Criteria ALARM SET CRITERIA CLEAR CRITERIA LOS 192 consecutive zeroes received 14 or more ones received out of 112 possible bit positions, starting with the first 1 received. LOF Two or more errored-frame bits out of every four, five, or six frame bits. (Configured by RCR2-T1.OOF[2:1].) Fewer than two errored-frame bits out of every four, five, or six frame bits. (Configured by RCR2-T1.OOF[2:1].) AIS (Notes 1, 3) Four or fewer 0s are received during a 3ms window. Five or more 0s are received during a 3 ms window. SF Bit-2 Mode (Note 2) Bit 2 is set to zero in at least 254 of 256 consecutive channel timeslots. Bit 2 is set to zero in less than 254 of 256 consecutive channel timeslots. SF 12th F-Bit Mode (Note 2) The 12th framing bit is set to 1 for two consecutive occurrences. The 12th framing bit is set to 0 for two consecutive occurrences. ESF Mode 16 consecutive patterns of 0x00FF appear in the FDL. 14 or fewer patterns of 0x00FF appear in 16 consecutive opportunities in the FDL. RAI -3 Note 1: AIS is an unframed all-ones signal. AIS detectors should be able to operate properly in the presence of a 10 error rate and must not declare AIS in the presence of a framed all-ones signal. The BITS transceiver block has been designed to achieve this performance. Note 2: In SF framing mode, the RAI type is configured by the RSFRAI bit in the RCR2-T1.RD4RM register. The method of indicating RAI using the 12th F-Bit in SF mode is also known as Japanese Yellow Alarm. Note 3: The following terms are equivalent: AIS = Blue Alarm, RAI = Yellow Alarm, LOS = RCL (receive carrier loss), LOF = Loss of Frame (previously called RLOS (Rx loss of frame sync) in data sheets for earlier Maxim E1/T1 devices) 10.11.6.3 E1 Alarm Criteria E1 signals have four key alarms: loss-of-signal (LOS), loss of frame (LOF), alarm indication signal (AIS), and remote alarm indication (RAI). Table 10-48 lists the set and clear criteria for these. 122 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-48. E1 Alarm Criteria ALARM LOS SET CRITERIA CLEAR CRITERIA 255 or 2048 consecutive zeros received (determined by RLS1.RLOSC) LOF At least 32 ones received in 255 bit times ITU SPEC G.775 4.2 See Table 10-49. AIS Fewer than three zeros in two frames (512 bits) Three or more zeros in two frames (512 bits) RAI Bit 3 of non-FAS frame set to one three consecutive occasions Bit 3 of non-FAS frame set to zero for three consecutive occasions Table 10-49. E1 LOF Sync and Resync Criteria FRAME OR SYNC CRITERIA MULTIFRAME TYPE O.162 1.6.1.2 O.162 2.1.4 RESYNC CRITERIA ITU SPEC FAS FAS present in frames N and N+2 and FAS not present in frame N+1. If RCR1-E1:FRC=0, three consecutive incorrect FAS. If RCR1-E1:FRC=1, three consecutive incorrect FAS or three consecutive incorrect bit 2 of non-FAS frame G.706 4.1.1 4.1.2 CRC-4 Two valid multiframe alignment words found within 8ms. 915 or more errored CRC-4 blocks out of 1000. G.706 4.2 and 4.3.2 CAS Valid multiframe alignment word found. Two consecutive multiframe alignment words received in error or, for a period of one multiframe, all the bits in timeslot 16 are zero. G.732 5.2 10.11.6.4 T1 AIS-CI and RAI-CI Detection AIS-CI is a repetitive pattern with a 1.26 second period. It consists of 1.11 seconds of unframed all ones pattern followed by 0.15 seconds of all ones modified by the AIS-CI signature. The AIS-CI signature is a repetitive pattern 6176 bits in length in which, if the first bit is numbered bit 0, bits 3088, 3474 and 5790 are logical zeros and all other bits in the pattern are logical ones (see ANSI T1.403). AIS-CI is an unframed pattern, and therefore is defined for all T1 framing formats. The RLS7-T1.RAIS-CI status bit is set when the AIS-CI pattern has been detected while RRTS1.RAIS is set. RAIS-CI is a latched bit that should be cleared by the CPU after it is read. RAIS-CI is set again approximately every 1.26 seconds as long as the AIS-CI condition is present. RAI-CI is a repetitive pattern within the ESF data link with a period of 1.08 seconds. It consists of 0.99 seconds of “00000000 11111111” (right-to-left) followed by 90 ms of “00111110 11111111”. The RLS7-T1.RRAI-CI status bit is set when a bit oriented code of “00111110 11111111” is detected while RRTS1.RRAI is set. The RRAI-CI detector uses the Rx BOC filter bits (RBOCC.RBF[1:0]) to determine the integration time for RAI-CI detection. Like RAIS-CI, the RRAI-CI bit is latched and should be cleared by the CPU after it is read. RRAI-CI is set again approximately every 1.1 seconds as long as the RAI-CI condition is present. It may be useful to enable the 200ms ESF RAI integration time by setting RCR2-T1.RAIIE=1 in networks that utilize RAI-CI. 10.11.7 E1 Automatic Alarm Generation In E1 mode the transmit formatter can be programmed to automatically transmit AIS or RAI in response to events detected by the receive framer. When automatic AIS generation is enabled (TCR2-E1.AAIS=1), if the receive framer detects any of the following conditions then the transmit formatter automatically transmits AIS: Rx loss of signal, Rx loss of frame synchronization, or Rx AIS alarm. 123 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 When automatic remote alarm (RAI) generation is enabled (TCR2-E1.ARA=1), if the receive framer detects any of the following conditions then the transmit formatter automatically transmits RAI: Rx loss of signal, Rx loss of frame synchronization, Rx AIS alarm or CRC-4 multiframe synchronization cannot be found within 128ms of FAS synchronization (if CRC-4 is enabled). RAI generation conforms to ETS 300 011 and ITU G.706 specifications. Note: It is an illegal state to have both automatic AIS generation and automatic remote alarm generation enabled at the same time. 10.11.8 Error Count Registers The receive framer has four internal 16-bit counters that are used to accumulate line coding errors, path errors, and frames out of sync, and far end block errors (FEBE). The values of these counters can be latched into corresponding counter registers to be read by the CPU. Update options for the counter registers include one second boundaries, 42ms (T1 mode only), 62.5ms (E1 mode only) or manually. When ERCNT.EAMS=0, updates are automatic, and ERCNT.ECUS specifies the update period. When ERCNT.EAMS=0, updates are manual. If ERCNT.MCUS=0, updates are triggered manually by a low-to-high transition on ERCNT.MECU. If ERCNT.MCUS=1, updates are triggered manually by a low-to-high transition global configuration bit GCR1.GFCLE. The GFCLE bit can be used to simultaneously trigger updates in multiple framers at the same time. The four counters and their associated count registers are described in the subsections that follow. 10.11.8.1 Line Code Violation Counter and Count Registers Either bipolar violations or code violations can be counted and reported in the LCVCR registers. Bipolar violations are defined as consecutive marks of the same polarity. In T1 mode, if the B8ZS decoding is enabled in framer, then BPVs in B8ZS codewords are not counted. In E1 mode, if HDB3 decoding is enabled in the framer then BPVs in HDB3 codewords are not counted. If ERCNT.LCVCRF=1, then code violations are counted as defined in ITU O.161. Code violations are defined as consecutive bipolar violations of the same polarity. In most applications, the framer should be configured to count BPVs when receiving AMI code and to count CVs when receiving B8ZS- or HDB3-encoded data. This counter increments at all times and is not disabled by loss of frame conditions. The counter saturates at 65,535 and does not rollover. The bit error rate on an E1 line would have to be greater than 10E-2 before this counter would saturate. See the following tables for details of exactly what this register counts in different modes. Table 10-50. T1 Line Code Violation Counting Options B8ZS ENABLED? COUNT EXCESSIVE (RCR1-T1.RB8ZS) WHAT IS COUNTED IN THE LCVCR REGISTERS ZEROS? (ERCNT.LCVCRF) 0 1 0 1 0 0 1 1 BPVs BPVs + occurrences of 16 consecutive zeroes BPVs (but BPVs in B8ZS codewords not counted) BPVs + occurrences of 8 consecutive zeros Table 10-51. E1 Line Code Violation Counting Options HDB3 ENABLED? E1 CODE VIOLATION (RCR1-E1.RHDB3) SELECT (ERCNT.LCVCRF) WHAT IS COUNTED IN THE LCVCR REGISTERS 0 0 1 0 1 don’t care BPVs BPVs (but BPVs in HDB3 codewords not counted) CVs 10.11.8.2 Path Code Violation Counter and Count Registers In T1 mode, Ft, Fs, or CRC-6 errors can be counted and reported in the PCVCR registers. In T1 SF mode, if ERCNT.FSBE=0, only errors in the Ft bit positions are counted. If ERCNT.FSBE=1, errors in both the Ft and Fs bit positions are counted. In T1 ESF mode, only errors in the CRC-6 codewords are counted. The counter stops counting during loss of frame conditions (RRTS1.RLOF=1). Table 10-52 summarizes which errors are counted in each T1 mode of operation. 124 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 In E1 operation, CRC-4 errors are counted and reported in the PCVCR registers.. Since the maximum CRC-4 count in a one second period is 1000, this counter cannot saturate in that length of time. The counter stops counting during loss of frame at either the FAS or CRC-4 level, but it continues to count if only CAS multiframe sync is lost. Table 10-52. T1 Path Code Violation Counting Options FRAMING MODE COUNT Fs ERRORS? SF no SF ESF yes don’t care WHAT IS COUNTED IN THE PCVCR REGISTERS errors in the Ft pattern errors in both the Ft and Fs patterns errors in the CRC-6 codewords 10.11.8.3 Frames Out Of Sync Counter and Count Registers In T1 mode, when ERCNT.MOSCR=1 the number of multiframes that the framer’s synchronizer is out of sync is counted and reported in the FOSCR registers. This number is useful in ESF applications where there is a need to measure the parameters loss of frame count (LOFC) and ESF Error Events as described in AT&T publication TR 54016. When the counter is operated in this mode, it does not stop counting during loss of frame (conditions (RRTS1.RLOF=1). When ERCNT.MOSCR=0, the counter has an alternate operating mode in which it counts either errors in the Ft framing pattern (in T1 SF mode) or errors in the FPS framing pattern (in T1 ESF mode). When the FOSCR is operated in this mode, it stops counting during loss of frame conditions (RRTS1.RLOF=1). Table 10-53 summarizes which errors are counted in each T1 mode of operation. In E1 mode, word errors in the Frame Alignment Signal (FAS) in timeslot 0 are counted. The counter stops counting during loss of frame conditions (RRTS1.RLOF=1). FAS errors are not counted when the framer is searching for FAS alignment and/or CAS or CRC-4 multiframe alignment. Since the maximum FAS word error count in a one second period is 4000, this counter cannot saturate. Table 10-53. T1 Frames Out Of Sync Counting Options FRAMING MODE COUNT MOS OR F–BIT WHAT IS COUNTED IN THE FOSCR REGISTERS ERRORS (ERCNT.MOSCRF) (RCR1-T1.RFM) D4 MOS number of multiframes out of sync D4 F–Bit errors in the Ft pattern ESF MOS number of multiframes out of sync ESF F–Bit errors in the FPS pattern 10.11.8.4 E–Bit Counter and Count Registers This counter is only available in E1 mode. Far End Block Errors (FEBE) are counted and reported in the EBCR registers. These errors are indicated by the far-end system in the E bits, i.e. the first bit of frames 13 and the first bit of frame 15 in the E1 CRC-4 multiframe. See Table 10-37. The counter increments once for each E-bit that is set to 0. Since the maximum E–bit count in a one second period is 1000, this counter cannot saturate. The counter stops counting during loss of frame at either the FAS or CRC-4 level, but it continues to count if only CAS multiframe sync is lost. 10.11.9 DS0 Monitoring Function The transmit formatter can monitor one DS0 (64kbps) channel in the transmit direction, and the Rx framer can separately monitor one DS0 channel in the Rx direction at the same time. The registers related to the control of DS0 monitoring are shown in the following table. Table 10-54. Registers Related to DS0 Monitoring Register Name Description TDS0SEL Transmit DS0 Monitor Select Register Functions Tx channel to be monitored Page 294 125 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name TDS0M RDS0SEL RDS0M Description Transmit DS0 Monitor Register Rx DS0 Monitor Select Register Rx DS0 Monitor Register Functions Tx channel data Rx channel to be monitored Rx monitored data Page 301 228 237 In the transmit direction TCM[4:0] field in TDS0SEL specifies the channel to be monitored. In the Rx direction, the RCM[4:0] field in RDS0SEL specifies the channel to be monitored. Data from the specified channel is available to be read from the TDS0M or RDS0M register respectively. 10.11.10 Framer and Payload Loopbacks Framer loopback (enabled when RCR3.FLB=1) is useful in testing and debugging applications. In FLB, the full E1 or T1 data stream is looped from the line (LIU) side of the transmit formatter to line side of the Rx framer. When FLB is enabled, the following occur: 1. (T1 mode) an unframed all-ones code is output from the transmit formatter toward the LIU (E1 mode) normal data is output from the transmit formatter toward the LIU 2. Data from the LIU or RDATF pin is ignored by the Rx framer 3. All Rx framer signals have timing synchronous with TCLK instead of RCLK. In payload loopback (enabled when RCR3.PLB=1), the 192 bits of payload in each T1 frame or the 248 bits of payload in each E1 frame are looped back (with BPVs corrected) from the Rx framer to transmit formatter. In this mode the Rx frame alignment is automatically provided to the transmit formatter, such that the transmit frame alignment is locked to the Rx frame alignment (i.e., TSYNC is sourced from RSYNC). The T1 F-bits and E1 FAS and NFAS bytes are not looped back. Instead they are reinserted by the formatter (i.e., the formatter modifies the payload as if it were input at TSER). When PLB is enabled, the following occurs: 1. Data from the transmit formatter toward the LIU is synchronous with RCLK instead of TCLK 2. All of the Rx framer signals continue to operate normally 3. Data at the TSER and TSIG inputs to the transmit formatter is ignored Table 10-55. Registers Related to Framer and Payload Loopbacks Register Field Description Functions RCR3.FLB RCR3.PLB Framer Loopback Payload Loopback Tx formatter output looped back to Rx framer input Rx framer payload looped back to Tx formatter input Page 248 248 10.11.11 Per-Channel Loopback The per-channel loopback registers (PCL) determine, in the transmit formatter, which channels (if any) from TSER should be replaced with data from the same channel of the data stream being received by the Rx framer. For this loopback to work correctly, the transmit and Rx clocks and frame syncs must be synchronized. One method to accomplish this would be to tie RCLK to TCLK and RFSYNC to TSYNC with TSYNC configured as an input (TIOCR.TSIO=0). There are no restrictions on which channels can be looped back or how many channels can be looped back. Each bit in the PCL registers represents a DS0 channel transmit formatter’s data stream. When a bit is set to one, data from the corresponding Rx channel replaces the data from TSER for that channel. 10.11.12 Per-Channel Idle Code Insertion Channel data can be replaced by an idle code on a per-channel basis in both the transmit and Rx directions. The 32 Rx idle definition registers (RIDR) specify the 8-bit idle code for each channel. The Rx channel idle code enable registers (RCICE) are used to enable idle code insertion on a per-channel basis. Similarly the 32 TIDR registers 126 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 specify the 8-bit idle code for each channel and the TCICE registers enable idle code insertion on a per-channel basis. 10.11.13 Digital Milliwatt Code Generation The Rx digital milliwatt registers (RDMWE) specify which of the Rx E1/T1 channels should be overwritten with a digital milliwatt code. The digital milliwatt code is an 8-byte repeating pattern that represents a 1kHz sine wave (1E/0B/0B/1E/9E/8B/8B/9E). Each bit in the RDMWE registers represents one channel. If a bit is set to a one, then the Rx data in that channel is replaced with the digital milliwatt code. The TDMWE registers perform the same function in the transmit formatter. 10.11.14 In-Band Loop Code Generation and Detection (T1 Only) 10.11.14.1 Loop Code Generation The transmit formatter can generate a repeating bit pattern from one to eight bits or 16 bits in length. This function is available only in T1 mode. To transmit a pattern, load the pattern to be sent into the transmit code definition registers (TCD1 and TCD2) and specify the length of the pattern in TCR4.TC. When generating a 1-, 2-, 4-, 8-, or 16-bit pattern, both transmit code definition registers must be filled with the proper code. Generation of a 3-, 5-, 6-, or 7-bit pattern only requires TCD1 to be filled. After these register fields are loaded, the pattern is transmitted as long as TCR3.TLOOP=1. Normally (unless the formatter is programmed to not insert the F-bit position) the formatter overwrites the repeating pattern once every 193 bits to insert the F-bit. As an example, to transmit the standard “loop up” code for channel service units (CSUs), which is a repeating pattern of ...10000100001..., set TCD1 = 0x80, TCR4.TC=00, and TCR3.TLOOP=1. Table 10-56. Registers Related to T1 In-Band Loop Code Generator Register Field Description TCD1 TCD2 TCR3.TLOOP TCR4.TC Transmit Code Definition Register 1 Transmit Code Definition Register 2 Transmit Control Register 3 Transmit Control Register 4 Functions pattern to be sent pattern to be sent enable loop code transmission code length Page 300 300 290 293 10.11.14.2 Loop Code Detection The Rx framer can detect a repeating bit pattern from one to eight bits or 16 bits in length. This function is available only in T1 mode. The framer has three programmable pattern detectors. Typically, two of the detectors are used for “loop up” and “loop down” code detection. The CPU writes the codes to be detected into the Rx up code definition registers (RUPCD1 and RUPCD2) and the Rx down code definition registers (RDNCD1 and RDNCD2) and the length of each pattern into the RIBCC register. The third detector is considered “spare” (i.e. extra). and is configured and controlled by the RSCD1/RSCD2 and RSCC registers. When detecting a 16-bit pattern, both Rx code definition registers are used together to form a 16-bit word. For 8-bit patterns both Rx code definition registers are loaded with the same value. Detection of a 1-, 2-, 3-, 4-, 5-, 6-, and 7-bit pattern only requires the first Rx code definition register to be filled. The framer detects repeating pattern codes in both framed and unframed data streams with bit error rates as high as 10E–2. The detectors are capable of handling both F-bit inserted and F-bit overwrite patterns. Writing the least significant byte of a Rx code definition register pair resets the integration period for that detector. The code detector has a nominal integration period of 48ms. This means that after about 48ms of receiving a valid code, the associated status bit (LUP, LDN, and LSP) is set to a one. Note that both real-time status bits and latched status bit are available for LUP, LDN and LSP (RRTS3-T1 and RLS3-T1). Normally codes are sent for a period of 5 seconds. It is recommend that the CPU poll the framer every 50ms to 100ms until 5 seconds has elapsed to ensure that the code is continuously present. 127 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Table 10-57. Registers Related to T1 In-Band Loop Code Detection Register Field Description RIBCC RUPCD1 RUPCD2 RDNCD1 RDNCD2 RSCC RSCD1 RSCD2 RRTS3-T1 RLS3-T1 RIM3-T1 Rx In-Band Code Control Register Rx Up Code Definition Register 1 Rx Up Code Definition Register 1 Rx Down Code Definition Register 1 Rx Down Code Definition Register 2 Rx In-Band Spare Control Register Rx Spare Code Register 1 Rx Spare Code Register 1 Rx Real-Time Status Register 3 Rx Latched Status Register 3 Rx Interrupt Mask Register 3 Functions Page Rx up code and down code length Rx up code definition Rx up code definition Rx down code definition Rx down code definition Rx spare code length Rx spare code register Rx spare code register real-time loop/spare code detect bits latched loop/spare code detect bits interrupt mask bits 247 265 266 266 267 252 259 259 268 255 261 10.11.15 G.706 Intermediate CRC-4 Recalculation (E1 Only) The framer can implement the G.706 CRC-4 recalculation at intermediate path points. When this mode is enabled, the data stream presented at TSER already has the FAS/NFAS, CRC-4 multiframe alignment word and CRC-4 checksum in timeslot 0. The CPU can modify the Sa bit positions and this change in data content can then be used to modify the CRC-4 checksum. This modification, however, does not corrupt any error information the original CRC-4 checksum may contain. In this mode of operation, TSYNC must be configured to multiframe mode (TIOCR.TSM=1). The data at TSER must be aligned to the TSYNC signal. If TSYNC is an input then the system must assert TSYNC aligned at the beginning of the multiframe relative to TSER. If TSYNC is an output, the system must multiframe-align the data presented to TSER. This mode is enabled when TCR3.CRC4R=1. Note that the E1 transmitter must already be configured for CRC insertion with TCR1-E1.TCRC4=1. Figure 10-65. CRC-4 Recalculate Method POS/NEG TO LIU INSERT NEW CRC-4 CODE EXTRACT OLD CRC-4 CODE TSER + CRC-4 CALCULATOR XOR MODIFY Sa BIT POSITIONS NEW Sa BIT DATA 10.11.16 SLC–96 Operation (T1 Only) In a SLC-96 transmission scheme, the standard Fs bit pattern is robbed to make room for a set of message fields. The SLC-96 multiframe is made up of six D4 superframes and is therefore 72 frames long. In the 72-frame SLC–96 multiframe, 36 of the framing bits are the normal Ft pattern and the other 36 bits are divided into alarm, maintenance, spoiler, and concentrator bits as well as 12 bits of the normal Fs pattern. Additional SLC-96 information can be found in Bellcore document TR-TSY-000008. Registers related to SLC-96 functionality are shown in the following table. Table 10-58. Registers Related to SLC96 Register Name Description TFDL TSLC TCR2-T1 Transmit FDL Register Receive SLC 96 Data Link Registers 1 to 3 Transmit Control Register 2 Functions Tx SLC-96 messages in Ft/Fs bits Tx SLC-96 overhead values Tx SLC-96 enable control bit Page 280 280 288 128 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name TLS1 RCR2-T1 RSLC RLS7 Description Transmit Latched Status Register 1 Receive Control Register 2 Receive SLC-96 Data Link Registers 1 to 3 Receive Latched Status Register 7 Functions Page Tx SLC-96 multiframe alignment event Rx SLC-96 enable control bit Rx SLC-96 overhead values Rx SLC-96 multiframe alignment event 296 229 238 258 10.11.16.1 Transmit SLC–96 The TFDL register is used to insert the SLC-96 message fields. To insert the SLC-96 message using the TFDL register, the system should configure the transmit formatter as follows:     TCR2-T1.TSLC96 = 1 TCR2-T1.TFDLS = 0 TCR3.TFM = 1 TCR1-T1.TFPT = 0 Enable Transmit SLC-96 Source Fs bits via TFDL or SLC-96 formatter SF (D4) framing Mode Do not pass through TSER F-bits. With these settings, the transmit formatter automatically inserts the 12-bit alignment pattern in the Fs bits for the SLC-96 data link frame. Data from the TSLC registers is inserted into the remaining Fs bit locations of the SLC-96 multiframe. The status bit TLS1.TSLC96 is set to indicate that the SLC-96 data link buffer has been transmitted and that the user should write new message data into the TSLC registers. The CPU has 9ms after the assertion of TLS1.TSLC96 to write the TSLC registers as needed. If no new data is provided in these registers, the previous values are retransmitted. 10.11.16.2 Receive SLC–96 To enable the receive framer to synchronize onto a SLC–96 pattern, the system should configure the receive framer as follows:     RCR1-T1.RFM = 1 RCR1-T1.SYNCC = 1 RCR2-T1RSLC96 = 1 RCR1-T1.SYNCT = 0 SF (D4) framing mode Set to cross-couple Ft and Fs bits Enable SLC-96 synchronizer Set to minimum sync time The received SLC–96 message bits can be read from the RSLC registers. The RLS7-T1.RSLC96 status bit is useful for retrieving SLC-96 message data. The RSLC96 bit indicates when the framer has updated the RSLC registers with the latest message data from the incoming data stream. After the RSLC96 bit is set, the CPU has 9ms (i.e. until the next RSLC96 interrupt) to retrieve the most recent message data from the RSLC registers. Note that RSLC96 is not set if the framer is unable to detect the 12-bit SLC-96 alignment pattern. 10.12 HDLC Controllers This device has an enhanced HDLC controller that can be mapped into a single timeslot, or the T1 FDL or one of the E1 Sa4 to Sa8 bits. When mapped to a timeslot, the HDLC controller can be configured to use all or only a subset of the bits of the timeslot. The HDLC controller performs all the necessary overhead for generating and receiving Performance Report Messages (PRM) as described in ANSI T1.403 and the messages as described in AT&T TR54016. The HDLC controller automatically generates and detects flags, generates and checks the CRC checksum, generates and detects abort sequences, stuffs and de-stuffs zeros, and byte aligns to the data stream. The 64-byte buffers in the HDLC controller are large enough to allow a full PRM to be received or transmitted without host intervention. The registers related to the HDLC are displayed in the following table. Register Name RHC RHBSE RHFC Description Rx HDLC Control Register Rx HDLC Bit Suppress Register Rx HDLC FIFO Control Functions Rx HDLC mapping to DS0 or FDL Rx bit suppress within the channel Rx FIFO high water mark Page 227 228 251 129 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name RHPBA RHF RRTS5 RLS5 RIM5 THC1 THBSE THC2 THFC TRTS2 TLS2 TIM2 TFBA THF Description Rx HDLC Packet Bytes Available Register Rx HDLC FIFO Register Rx Real-Time Status Register 5 Rx Latched Status Register 5 Rx Interrupt Mask 5 Transmit HDLC Control 1 Transmit HDLC Bit Suppress Transmit HDLC Control 2 Transmit HDLC FIFO Control Transmit HDLC Status Transmit HDLC Latched Status Transmit Interrupt Mask Register 2 Transmit HDLC FIFO Buffer Available Transmit HDLC FIFO Functions Rx real-time byte in FIFO status Rx FIFO read register Rx FIFO fill and packet status Rx FIFO and packet latched status Rx interrupt mask bits Tx HDLC configuration bits Tx bit suppress within the channel Tx HDLC mapping to DS0, etc. Tx FIFO low water mark Tx FIFO fill and packet status Tx FIFO and packet latched status Tx interrupt mask bits Tx real-time buffer available status Tx FIFO write register Page 269 270 269 257 263 275 276 277 294 300 297 299 301 301 10.12.1 Receive HDLC Controller The receive HDLC controller is always enabled. A low-to-high transition on RHC.RHR resets the receive HDLC controller and flushes the receive HDLC FIFO. In T1 ESF mode, the receive HDLC controller can be connected to the FDL (RHC.RHMS=1) or to any DS0 channel (RHMS=0). In E1 mode, it can be connected to an Sa bit channel (RHMS=1) or to any DS0 channel (RHMS=0). The RHC.RHCS field specifies the DS0 channel when RHMS=0. When RHC.RCRCD=1, the received CRC-16 (the frame check sequence or FCS) is written to the FIFO after the last byte of the packet. When RCRCD=0, the CRC-16 is not written to the FIFO. When the receive HDLC controller is connected to a DS0 channel, it can be configured to look at or ignore individual bit positions of the DS0 channel by setting the bit fields of the RHBSE register appropriately. The CPU can read the receive HDLC FIFO one byte at a time by reading the RHF register. When the receive FIFO’s fill status transitions from empty to not-empty, RLS5.RNES is set to one to inform the CPU that something is available to be read from the receive FIFO. The lower seven bits of the RHPBA register (RPBA[6:0]) are a real-time field that indicates the number of bytes available to be read from the receive FIFO. The MSb of RHPBA (the message status bit, MS) indicates whether the bytes indicated by the RPBA field are the end of a message or not. The CPU must take into account the value of the RHPBA.RPBA field when reading the FIFO to prevent FIFO underrun. There is no underrun indication available from the Rx HDLC controller. If software reads the FIFO more slowly than the Rx HDLC controller writes it, the fill level of the FIFO rises. When the HDLC fills above the receive high watermark set in RHFC.RFHWM, the RLS5.RHWMS latched status bit is set. If the FIFO overruns, the current packet being processed is dropped, the FIFO is emptied, and the latched status bit RLS5.ROVR is set to indicate the overrun. The real-time status bits in RRTS5 and the latched status bits in RLS5 plus the message status bit (MS) in RHPBA provide message delineation information to the system. In RRTS5 the packet status field PS[2:0] indicates the realtime status of the packet currently being received: in-progress, OK (i.e. ended without error), CRC error, aborted, terminated because of overrun. In RLS5, the RHOBT latched status bit indicates when the next byte available in the FIFO is the first byte of a message, while the RPS and RPE bits indicate that the Rx HDLC controller has detected the start of packet or the end of a packet, respectively. The latched status bits in RLS5 cause interrupt requests if enabled by the associated interrupt enable bits in RIM5. 10.12.1.1 Receive HDLC Controller Example The receive HDLC controller status and control fields provide flexibility to support various software implementations for receive HDLC servicing. Polling, interrupt-driven or combination approaches are all feasible. A flowchart of an example receive HDLC servicing routine is shown in Figure 10-66 below. 130 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-66. Receive HDLC Servicing Example Configure Receive HDLC Controller (RHC, RHBSE, RHFC) Reset Receive HDLC Controller (RHC.RHR) Start New Message Buffer Enable Interrupts RPE and RHWM NO Interrupt? No Action Required Work Another Process. YES Read Register RHPBA Start New Message Buffer NO RHPBA.MS = 1? Read N Bytes From Rx HDLC FIFO (RHF) (N = RHPBA[5:0]) YES Read N Bytes From Rx HDLC FIFO (RHF) N = RHPBA[5:0] Read RRTS5 for Packet Status, PS[2:0] Take appropriate action 131 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.12.2 Transmit HDLC Controller The transmit HDLC controller is enabled when THC2.THCE=1. A low-to-high transition on THC1.THR resets the transmit HDLC controller and flushes the transmit HDLC FIFO. In T1 ESF mode, the transmit HDLC controller can be connected to the FDL (THC1.THMS=1) or to any DS0 channel (THMS=0). In E1 mode, it can be connected to an Sa bit channel (THMS=1) or to any DS0 channel (THMS=0). The THC2.THCS field specifies the DS0 channel when THMS=0. When THC1.TCRCD=0, the transmit HDLC controller automatically generates the CRC-16 (the frame check sequence or FCS) and transmits it after the last byte of the packet. When TCRCD=1, this automatic CRC generation is disabled. When the transmit HDLC controller is connected to a DS0 channel, it can be configured to fill or ignore individual bit positions of the DS0 channel by setting the bit fields of the THBSE register appropriately. The CPU can write the transmit HDLC FIFO one byte at a time by writing the THF register. When the transmit FIFO’s fill status transitions from full to not-full, TLS2.TNFS is set to one to inform the CPU that space is available in the transmit FIFO for additional data. The lower seven bits of the TFBA register (TFBA[6:0]) are a real-time field that indicates the number of bytes of space available transmit FIFO for additional data. The CPU must take into account the value of the TFBA.TFBA field when writing the FIFO to prevent FIFO overrun. There is no overrun indication available from the Tx HDLC controller. Just before writing the last byte of a message to the Tx HDLC FIFO, the CPU must set THC1.TEOM to delineate the message. If software writes the FIFO more slowly than the Tx HDLC controller reads it, the fill level of the FIFO falls. When the HDLC empties below the transmit low watermark set in THFC.TFLWM, the TLS2.TLWMS latched status bit is set. If the FIFO underruns, the Tx HDLC controller automatically transmits an abort, and the latched status bit TLS2.TUDR is set to indicate the underrun. The real-time status bits in TRTS2 and the latched status bits in TLS2 provide plus the message status bit (MS) in RHPBA provide FIFO empty/full status and message progress status to the system. In TLS2, the TMEND latched status bit indicates when the Tx HDLC controller has finished sending a message. The latched status bits in TLS2 cause interrupt requests if enabled by the associated interrupt enable bits in TIM2. A variety of configuration settings are available using the bits in THC1 and THC2. THC1.NOFS specifies whether one or two flags (0x7E) are sent between consecutive messages. THC1.TFS specifies whether the inter-message fill character between closing flags and opening flags is 0x7E or 0xFF. THC1.TZSD=1 disables the Tx bit stuffer logic. This logic normally inserts a zero into the message bit stream after 5 consecutive ones to prevent the emulation of a flag or abort sequence by the data pattern. When THC1.TEOML=1, the last message written into the Tx FIFO is send repeatedly until the Tx HDLC controller is told to stop. Finally the CPU can abort the message currently being sent by setting THC2.TABT=1. 10.12.2.1 Transmit HDLC Controller Example The transmit HDLC controller status and control fields provide flexibility to support various software implementations for transmit HDLC servicing. Polling, interrupt-driven or combination approaches are all feasible. A flowchart of an example receive HDLC servicing routine is shown in Figure 10-66 above. 132 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-67. Transmit HDLC Servicing Example Configure Transmit HDLC Controller (THC1,THC2,THBSE,THFC) Reset Transmit HDLC Controller (THC1.THR) Enable TLWM Interrupt and Verify TLWM Clear Set THC1.TEOM Read TFBA N = TFBA[6:0] Push Last Byte into Tx FIFO (THF) Enable TMEND Interrupt Push Message Byte into Tx HDLC FIFO (THF) Loop N Last Byte of Message? TMEND Interrupt? YES A YES NO TLWM Interrupt? NO NO Read TUDR Status Bit A YES NO A No Action Required Work Another Process TUDR = 1 YES Disable TMEND Interrupt Prepare New Message Disable TMEND Interrupt Resend Message 133 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.13 Line Interface Units (LIU) Each TDM port of the device has an on-chip line interface unit (LIU). The LIU contains three sections: the transmitter, which drives pulses with standards-compliant waveshapes onto the outbound cable; the receiver, which recovers clock and data from the inbound cable; and the jitter attenuator. The LIU can switch between T1 and E1 operation without changing any external components on either the transmit or Rx side. Figure 10-68 shows a recommended circuitry for software-selectable termination with protection. In this configuration the device can connect to 100 T1 twisted pair, 110 J1 twisted pair, 120 E1 twisted pair or 75 E1 coax without component changes. Table 10-59 lists recommended values and part numbers for the components in Figure 10-68. Table 10-60 lists the performance requirements for the transmit and Rx transformers. Figure 10-68. LIU External Components, Longitudinal Protection TX TIP F1 T1 1 uF T3 TTIPn S3 S1 S7 560 pF S4 TX RING TRINGn 2:1 F2 DS34T10x RX TIP F3 T2 T4 RTIPn S5 S2 S8 RT S6 RX RING RRINGn 1:1 F4 Table 10-59. LIU External Components NAME F1 to F4 S1, S2 S3, S4, S5, S6 S7, S8 T1 and T2 T3 and T4 RT DESCRIPTION PART MANUFACTURER NOTES 1.25A Slow Blow Fuse 1.25A Slow Blow Fuse 25V (max) Transient Suppressor SMP 1.25 F1250T P0080SA MC Bel Fuse Teccor Electronics Teccor Electronics 5 5 1, 5 180V (max) Transient Suppressor P1800SC MC Teccor Electronics 1, 4, 5 40V (max) Transient Suppressor Transformer 1:1CT and 1:2CT (3.3V, SMT) Dual Common-Mode Choke (SMT) Termination Resistor (120, 110, 100, or 75) P0300SC MC PE-68678 PE-65857 — Teccor Electronics Pulse Engineering Pulse Engineering — 1, 5 2, 3, 5 5 8 Note 1: Changing S7 and S8 to P1800SC devices provides symmetrical voltage suppression between tip, ring, and ground. Note 2: The layout from the transformers to the network interface is critical. Traces should be at least 25 mils wide and separated from other circuit lines by at least 150 mils. The area under this portion of the circuit should not contain power planes. Note 3: Some T1 (never in E1) applications source or sink power from the network-side center taps of the Rx/Tx transformers. Note 4: The ground trace connected to the S3/S4 pair and the S5/S6 pair should be at least 50 mils wide to conduct the extra current from a longitudinal power-cross event. Note 5: Alternative component recommendations and line interface circuits can be found in Application Note 324, which is available at www.maxim-ic.com/AN324 or by contacting tech support at www.maxim-ic.com/support. 134 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Note 6: The 1F capacitor in series with TTIPn is only necessary in G.703 2048kHz mode (LTISR.TXG703=1). Note 7: The 560pF on TTIPn/TRINGn must be tuned for your application. Note 8: Resistor RT is not necessary if receiver termination is internal. See LRISMR.RIMPM[2:0]. Table 10-60. Transformer Specifications Specification Turns Ratio, 3.3V Applications Primary Inductance Leakage Inductance Intertwining Capacitance Transmit Transformer DC Resistance Primary (Device Side) Secondary Rx Transformer DC Resistance Primary (Device Side) Secondary Recommended Value 1:1 (Rx) and 1:2 (transmit) ±2% 600H minimum 1.0H maximum 40pF maximum 1.0 maximum 2.0 maximum 1.2 maximum 1.2 maximum 10.13.1 LIU Operation The incoming analog AMI/HDB3 waveform (E1) or analog AMI/B8ZS waveform (T1) is transformer coupled into the RTIP/RRING pins of the LIU receiver. The LIU can be configured for internal termination (software selectable for 75, 100, 110 or 120 applications) or external termination. The LIU receiver recovers clock and data from the incoming analog signal and passes it through the jitter attenuation mux. The receiver contains an active filter that reconstructs the analog received signal for the nonlinear losses that occur in transmission. The receiver circuitry is configurable for various monitor applications. The device has a usable Rx sensitivity of 0dB to -43dB for E1 and 0dB to -36dB for T1, which allows the device to operate on 0.63mm (22AWG) cables up to 2.5km (E1) and 6k feet (T1) in length. Data input to the LIU transmitter is sent via the jitter attenuation mux to the waveshaping circuitry and line driver. The transmitter drives the E1 or T1 line from the TTIP/TRING pins through a coupling transformer. The line driver can handle both CEPT 30/ISDN-PRI lines for E1 and long-haul (CSU) or short-haul (DSX-1) lines for T1. The configuration and status registers related to the LIU block are shown in the following table: Register Name Global Registers GCR1 GTRR GTISR GTIMR LIU Registers LTRCR LTISR LMCR LRSR LSIMR LLSR LRSL LRISMR Description Functions Page Global Control Register 1 Global Transceiver Reset Register Global Transceiver Interrupt Status Register Global Transceiver Interrupt Mask Register various LIU reset and soft reset bits LIU interrupt status bits (one per port) LIU interrupt mask bits (one per port) 151 153 154 155 LIU Transmit Rx Control Register LIU Transmit Impedance Selection Register LIU Maintenance Control Register LIU Real-Time Status Register LIU Status Interrupt Mask Register LIU Latched Status Register LIU Rx Signal Level LIU Rx Impedance and Sensitivity Monitor Register E1/T1 mode, LOS criteria, etc. Transmit impedance, LBO, 2048kHz Loopbacks, Tx/Rx power-down, Tx AIS Rx EQ status, Tx short/open, JA status mask bits for bits in LLSR Rx EQ status, Tx short/open, JA status Rx signal level in dB 304 305 306 307 308 309 310 Rx impedance, sensitivity, monitor 311 135 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.13.2 LIU Transmitter The LIU is configured for E1 or T1/J1 mode by setting the LTRCR.T1J1E1S bit appropriately. 10.13.2.1 Waveshaping The LIU transmitter uses a sequencer and a precision digital-to-analog converter (DAC) to create the waveforms that are transmitted onto the outbound cable. The waveforms meet the latest ANSI, ETSI, ITU and Telcordia specifications (see Figure 10-69 and Figure 10-70). The LTRCR.T1J1E1S field specifies the waveform to be generated, along with the line build out field in LTISR.L[2:0], if applicable. Due to the nature of its design, the transmitter adds very little jitter (less than 0.005UIP-P broadband from 10Hz to 100kHz) to the transmit signal. Also, the waveforms created are independent of the duty cycle of TCLK. 10.13.2.2 Line Build-Out The transmitter line driver can handle both CEPT 30/ISDN-PRI lines for E1 and long-haul (CSU) or short-haul (DSX-1) lines for T1. The L[2:0] field in LTISR specifies the line build-out for E1 and T1. 10.13.2.3 Line Driver Enable/Disable When the TXENABLE pin is low or when LMCR.TXEN=0, the transmitter line driver is disabled, and TTIP/TRING are put in a high-impedance state. When the TXENABLE pin is high and LMCR.TXEN=1, the line driver is enabled. 10.13.2.4 Interfacing to the Line The transmitter is transformer-coupled to the line. Typically, the transmitter interfaces to the outgoing coaxial cable or twisted-pair wiring through a 1:2 step-up transformer. Figure 10-68 shows the arrangement of the transformer with respect to the TTIP and TRING pins. The transmitter termination is always internal. Set LTISR.TIMPOFF=0 and set LTISR.TIMPL[1:0] to specify the termination impedance. Table 10-60 specifies the required characteristics of the transformer. 10.13.2.5 AIS Generation When LMCR.TAIS = 1, the LIU transmitter generates AIS (unframed all ones) using E1CLK or T1CLK from CLAD1 as the timing reference. In addition, when LMCR.ATAIS = 1, the transmitter generates AIS when the LIU receiver indicates loss of signal (LOS). 10.13.2.6 Short-Circuit Detector The LIU transmitter has an automatic short-circuit detector that activates when the short-circuit resistance is approximately 25 or less. LRSR.SCS provides a real-time indication of when the short-circuit limit has been exceeded. Latched status bits LLSR.SCD and SCC are set when LRSR.SCS changes state from low-to-high and high-to-low, respectively. These latched status bits can cause an interrupt request if enabled by the corresponding bits in LSIMR. The short-circuit detector is disabled for CSU modes (i.e., when LTISR.L[2:0] = 101, 110, or 111). 10.13.2.7 Open-Circuit Detector The LIU transmitter can also detect when TTIP and TRING are open circuited. LRSR.OCS provides a real-time indication of when the open-circuit limit has been exceeded. Latched status bits LLSR.OCD and OCC are set when LRSR.OCS changes state from low-to-high and high-to-low, respectively. These latched status bits can cause an interrupt request if enabled by the corresponding bits in LSIMR. The open-circuit detector is disabled for CSU modes (i.e., when LTISR.L[2:0] = 101, 110, or 111). 10.13.2.8 Transmitter Power-Down The transmitter can be powered down to reduce power consumption by setting LMCR.TPDE=1. When the transmitter is powered down, TTIP and TRING are high impedance. 136 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-69. T1/J1 Transmit Pulse Templates 1.2 1.0 -0.77 -0.39 -0.27 -0.27 -0.12 0.00 0.27 0.35 0.93 1.16 0.9 0.8 0.7 NORMALIZED AMPLITUDE MINIMUM CURVE UI Time Amp. MAXIMUM CURVE UI Time Amp. 1.1 0.6 -500 -255 -175 -175 -75 0 175 225 600 750 0.05 0.05 0.80 1.15 1.15 1.05 1.05 -0.07 0.05 0.05 0.5 -0.77 -0.23 -0.23 -0.15 0.00 0.15 0.23 0.23 0.46 0.66 0.93 1.16 -500 -150 -150 -100 0 100 150 150 300 430 600 750 -0.05 -0.05 0.50 0.95 0.95 0.90 0.50 -0.45 -0.45 -0.20 -0.05 -0.05 0.4 0.3 0.2 0.1 0 -0.1 T1.102/87, T1.403, CB 119 (Oct. 79), & I.431 Template -0.2 -0.3 -0.4 -0.5 -500 -400 -300 -200 -100 0 100 200 300 400 500 600 700 TIME (ns) Figure 10-70. E1 Transmit Pulse Templates 1.2 1.1 269ns SCALED AMPLITUDE (in 75 ohm systems, 1.0 on the scale = 2.37Vpeak in 120 ohm systems, 1.0 on the scale = 3.00Vpeak) 1.0 0.9 0.8 0.7 G.703 Template 194ns 0.6 0.5 219ns 0.4 0.3 0.2 0.1 0 -0.1 -0.2 -250 -200 -150 -100 -50 0 50 100 150 200 250 TIME (ns) 137 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.13.3 LIU Receiver The LIU is configured for E1 or T1/J1 mode by setting the LTRCR.T1J1E1S bit appropriately. 10.13.3.1 Interfacing to the Line The LIU receiver accepts incoming T1, E1 and J1 physical layer signals on the RTIP/RRING differential pair. The receiver is designed to be fully software-selectable for E1, T1 or J1 without changing any external components. The receiver can be transformer-coupled or capacitor-coupled to the line. Typically, the receiver interfaces to the incoming coaxial or twisted-pair cable through a 1:1 isolation transformer. Table 10-60 specifies the required characteristics of the transformer. Rx line termination (also known as impedance matching) can be internal or external and is configurable for 75, 100, 110, or 120. For internal impedance matching, set LRISMR.RIMPON=1 and set LRISMR.RIMPM[2:0] to specify the impedance. For external impedance matching, set LRISMR.RIMPON=0, set LRISMR.RIMPM[2:0] to specify the impedance, and use external termination resistors Rt as shown in Figure 10-68. Optionally a 2:1 transformer can be used when LTRCR.RTR=1, but this mode is only compatible with external termination. 10.13.3.2 Rx Sensitivity Rx sensitivity can be adjusted for various application using LRISMR.RSMS[1:0]. 10.13.3.3 Rx Signal Level Indicator The signal strength at RTIP/RRING is reported in 2.5dB increments in LRSL.RSL[3:0]. This feature is helpful when troubleshooting line performance problems. 10.13.3.4 Optional Monitor Mode The LIU receiver can be used in monitoring applications, which typically have flat losses from the use of series resistors. See Figure 10-71. In these applications a pre-amp stage in the receiver can be configured to apply 14dB, 20dB, 26dB, or 32dB of flat gain to compensate for the resistive losses. The monitor mode preamp is enabled by setting LRISMR.RMONEN=1 and configured by LRISMR.RSMS[1:0]. Figure 10-71. Typical Rx Monitor Application PRIMARY T1/E1 TERMINATING DEVICE T1/E1 LINE Rm Rm MONITOR PORT JACK X F M R Rt DS34T108 SECONDARY T1/E1 TERMINATING DEVICE 10.13.3.5 Clock and Data Recovery The LIU receiver has an active filter that reconstructs the received analog signal for the nonlinear losses that occur in transmission. The E1CLK or T1CLK from the CLAD1 block is multiplied by 16 and used to oversample the 138 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 incoming signal to recover clock and data. The receiver has excellent jitter tolerance as shown in Figure 10-72 and Figure 10-73. Figure 10-72. Jitter Tolerance, T1 Mode UNIT INTERVALS (UIpp) 1K DS3100 Jitter Tolerance 100 TR 62411 (Dec. 90) 10 ITU-T G.823 1 0.1 1 10 100 1k FREQUENCY (Hz) 10k 100k Figure 10-73. Jitter Tolerance, E1 and 2048kHz Modes UNIT INTERVALS (UIpp) 1k DS3100 Jitter Tolerance 100 40 10 1.5 1 0.1 Minimum Tolerance Level as per ITU G.823 1 10 20 100 1k FREQUENCY (Hz) 0.2 2.4k 10k 18k 100k Normally, the clock that is output at the RCLK pin is the recovered clock from the E1 or T1 signal on the RTIP/RRING inputs. If the jitter attenuator is placed in the Rx path (LTRCR.JAPS=01), the jitter attenuator restores the RCLK to approximately 50% duty cycle. If the jitter attenuator is placed in the transmit path or is disabled, the RCLK output can exhibit slightly less than 50% duty cycle. This is due to the highly over-sampled digital clock recovery circuitry. When no signal is present at RTIP/RRING, a Rx loss of signal condition occurs (LRSR.LOS=1) and the RCLK signal is derived from either the E1CLK or T1CLK signal. 139 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.13.3.6 Loss-of-Signal Detection In T1 mode, LOS is declared when no pulses are detected (i.e., when the signal level is 3dB below the Rx sensitivity level set by LRISMR.RSMS[1:0]) in a window of 192 consecutive pulse intervals. When LOS occurs, the receiver sets the real-time LOS status bit in LRSR and the latched LOS status bit in LLSR. LLSR.LOS in turn can cause and interrupt request if enabled by LSIMR.LOS. LOS is cleared when 24 or more pulses are detected (amplitude greater than Rx sensitivity threshold) in a 192-bit period (pulse density above 12.5%) and there are no occurrences of 100 or more consecutive zeroes during that period. This algorithm meets the requirements of ANSI T1.231. For example, if Rx sensitivity is set at 18dB below nominal (LRISMR.RSMS[1:0], the LOS set threshold is 24dB below nominal, and the LOS clear threshold is 22dB below nominal. In E1 and 2048kHz modes, if LTRCR:LCS=0 the receiver is configured for ITU G.775 LOS detection. When configured in this manner, LOS is declared when no pulses are detected (i.e., when the signal level is 3dB below the Rx sensitivity level set by LRISMR.RSMS[1:0]) in a window of 255 consecutive pulse intervals. When LOS occurs, the receiver sets the real-time LOS status bit in LRSR and the latched LOS status bit in LLSR. LLSR.LOS in turn can cause and interrupt request if enabled by LSIMR.LOS. LOS is cleared when at least 32 pulses are detected (amplitude greater than Rx sensitivity threshold) in a window of 255 consecutive pulse intervals. In E1 and 2048kHz modes, if LTRCR:LCS=1 the receiver is configured for ETSI 300 233 LOS detection. When configured in this manner, LOS is declared when no pulses are detected (i.e., when the signal level is 3dB below the Rx sensitivity level set by LRISMR.RSMS[1:0]) in a window of 2048 consecutive pulse intervals. When LOS occurs, the receiver sets the real-time LOS status bit in LRSR and the latched LOS status bit in LLSR. LLSR.LOS in turn can cause and interrupt request if enabled by LSIMR.LOS. LOS is cleared when at least one pulse is detected (amplitude greater than Rx sensitivity threshold) in a window of 255 consecutive pulse intervals. 10.13.3.7 Receiver Power-Down The LIU receiver can be powered down to reduce power consumption by setting LMCR.RPDE=1. When the receiver is powered down, all digital outputs from the receiver are held low, and RTIP and RRING become high impedance. 10.13.4 Jitter Attenuator The LIU block contains a jitter attenuator (JA) that can be inserted into the transmit path, inserted into the Rx path or disabled as specified by LTRCR.JAPS[1:0]. The depth of the jitter attenuator’s buffer can be set to 16, 32, 64 or 128 bits using the LTRCR.JADS[1:0] field. Larger buffer depths are used in applications where high-amplitude phase noise is expected. Smaller buffer depths are used in delay sensitive applications. The jitter attenuator’s jitter transfer is shown in Figure 10-74. In E1 mode, the JA’s corner frequency is approximately 0.6Hz. In T1/J1 mode, it is approximately 3.75Hz. The JA is compliant with the specification listed in Table 3-1. The jitter attenuator does it’s job by writing data into a FIFO (the jitter buffer) using the jittered clock and reading data out of the FIFO using a low-noise clock. The read clock comes from a PLL inside the jitter attenuator. This PLL seeks to produce a read-clock frequency that is exactly the same as the long-term-average frequency of the write clock. It does this by looking at FIFO fill level. If the current fill level of the FIFO is less than half full, then FIFO reads must be happening more frequently than FIFO writes and therefore the PLL decreases the read clock frequency. Likewise, if the current fill level of the FIFO is more than half full, then FIFO reads must be happening less frequently than FIFO writes and therefore the PLL increases the read clock frequency. FIFO overflows and underflows (which both result in data errors) are reported in real-time status bits LRSR.JAO and JAU and latched status bit LLSR.JALTS. The jitter attenuator makes use of a clock derived from the E1CLK or T1CLK signal from the CLAD1 block. The clock from which CLAD1 makes E1CLK and T1CLK (either the CLK_HIGH pin or the MCLK pin, see section 10.4) must have very low jitter since jitter on this clock source is passed through to the output of the jitter attenuator. This clock must also have a frequency accuracy better than ±50ppm for E1 applications and ±32ppm for T1/J1 interfaces. 140 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 It is acceptable to provide a gapped/bursty clock at the TCLKFn pin if the jitter attenuator is placed in the transmit side. If the incoming jitter exceeds 120UIP-P (when buffer depth is 128 bits) or 28UIP-P (when buffer depth is 32 bits), then the device sets the jitter attenuator limit trip (LLSR.JALTS). Figure 10-74. Jitter Attenuation ITU G.7XX Prohibited Area TBR12 Prohibited Area -20dB C ve ur A E1 T1 TR 62411 (Dec. 90) Prohibited Area -40dB Cu rve JITTER ATTENUATION (dB) 0dB B -60dB 1 10 100 1K FREQUENCY (Hz) 10K 100K Note: Curve B applies only in T1 mode. 10.13.5 LIU Loopbacks The LIU block provides four loopback paths for diagnostic purposes: analog loopback, local loopback, remote loopback and dual loopback. The loopbacks are enabled by setting LMCR.LB[2:0] to a non-zero value. 10.13.5.1 Analog Loopback In analog loopback, the transmitter’s analog output on TTIP/TRING is looped back to the receiver’s analog input. The signal on RTIP/RRING is ignored during analog loopback. This loopback is shown in Figure 10-75. Figure 10-75. Analog Loopback TCLK TSER Transmit Framer Optional Jitter Attenuator Transmit Transmit Digital Analog Receive Framer Optional Jitter Attenuator Receive Digital RTIP RCLK RSER Line Driver Receive Analog RRING 141 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.13.5.2 Local Loopback In local loopback the AMI-, HDB3- or B8ZS-encoded transmit signal from the transmit formatter is looped back toward the Rx framer. The data is transmitted normally on TTIP/TRING if the line driver is enabled, but the recovered clock and data from the LIU receiver is ignored. This loopback is shown in Figure 10-76. Figure 10-76. Local Loopback TTIP TCLK TSER Transmit Framer Optional Jitter Attenuator Transmit Transmit Digital Analog Receive Framer Optional Jitter Attenuator Receive Digital TRING RTIP RCLK RSER Line Driver Receive Analog RRING 10.13.5.3 Remote Loopback In remote loopback the recovered clock and data from the LIU receiver are looped back to the LIU transmitter. The recovered clock and data are passed to the Rx framer, but the data stream from the transmit formatter is ignored. This loopback is shown in Figure 10-77. Figure 10-77. Remote Loopback TTIP TCLK TSER Transmit Framer Optional Jitter Attenuator Transmit Transmit Analog Digital Receive Framer Optional Jitter Attenuator Receive Digital TRING RTIP RCLK RSER Line Driver Receive Analog RRING 10.13.5.4 Dual Loopback Dual loopback is local loopback and remote loopback at the same time. This loopback is shown in Figure 10-78. 142 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-78. Dual Loopback TTIP TCLK TSER Transmit Framer Optional Jitter Attenuator Transmit Transmit Digital Analog Receive Framer Optional Jitter Attenuator Receive Digital TRING RTIP RCLK RSER Line Driver Receive Analog RRING 143 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.14 Bit Error Rate Test Functions (BERTs) 10.14.1 BERT General Description The BERT (Bit Error Rate Tester) is a software-programmable test-pattern generator and monitor capable of meeting most error performance monitoring requirements for digital transmission equipment. It is used to test and stress communication links. Each E1/T1 transceiver has its own dedicated BERT circuitry. The BERT can generate and synchronize to pseudo-random patterns with a generation polynomial of the form xn + xy + 1 and to repetitive patterns of any length up to 32 bits. The pattern generator (Tx BERT) generates the programmable test pattern, and inserts the test pattern into the data stream. The pattern detector (Rx BERT) extracts the test pattern from the Rx data stream and monitors it. Figure 6-1 shows the location of the BERT blocks in E1/T1 transceiver circuitry. 10.14.2 BERT Features  Programmable PRBS pattern – The Pseudo Random Bit Sequence (PRBS) polynomial (xn + xy + 1) and seed are programmable (length n = 1 to 32, tap y = 1 to n - 1, and seed = 0 to 2n - 1).  Programmable repetitive pattern – The repetitive pattern length and pattern are programmable (length n = 1 to 32 and pattern = 0 to 2n - 1).  24-bit error count and 32-bit bit count registers  Programmable bit error insertion – Errors can be inserted individually or at a specific rate. The rate 1/10n is programmable (n = 1 to 7).  Pattern synchronization at a 10-3 BER – The Rx BERT can synchronization with the pattern in the incoming data stream even in the presence of a bit error rate (BER) as high as 10-3. 10.14.3 BERT Configuration and Monitoring The configuration and status registers related to the BERT block are shown in the following table: Register Name Global Registers GCR2 GTISR GTIMR Framer Registers RXPC RBPBS RBPCS1-4 TXPC TBPBS TBPCS1-4 BERT Registers BCR BPCR BSPR1 BSPR2 TEICR BSR BSRL BSRIE RBECR1 RBECR2 RBCR1 RBCR2 Description Functions Page Global Control Register 2 Global Transceiver Interrupt Status Register Global Transceiver Interrupt Mask Register global counter update (BRPMU) Per-BERT interrupt status bits (BISn) Per-BERT interrupt mask bits (BIMn) 153 154 155 Rx Expansion Port Control Register Rx BERT Port Bit Suppress Register Rx BERT Port Channel Select Registers Transmit Expansion Port Control Register Transmit BERT Port Bit Suppress Register Transmit BERT Port Channel Select Registers Rx BERT enable, direction, un/framed Rx bit suppression within the DS0 Rx DS0 channel selection Tx BERT enable, direction, un/framed Tx bit suppression within the DS0 Tx DS0 channel selection 252 253 271 294 295 303 BERT Control Register BERT Pattern Configuration Register BERT Seed/Pattern Register 1 BERT Seed/Pattern Register 2 Transmit Error Insertion Control Register BERT Status Register BERT Status Register Latched BERT Status Register Interrupt Enable Rx Bit Error Count Register 1 Rx Bit Error Count Register 2 Rx Bit Count Register 1 Rx Bit Count Register 2 pattern load, invert, counter update pattern type, length, feedback, QRSS 32-bit pattern seed value 32-bit pattern seed value error insertion, single or specified rate bit error detected, out of sync latched status, can cause interrupts interrupt mask bits 24-bit error count 24-bit error count 32-bit total bit count 32-bit total bit count 313 314 315 315 316 316 317 317 318 318 319 319 144 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The BERT function must be enabled and configured for each port (see the TXPC and RXPC registers). The BERT can be assigned to any combination of 64kbps channels within the E1/T1 signal using the bits in the TBPCS and RBPCS registers. Individual bit positions within the channels can be suppressed (i.e. not used for patterns) using the bits in the TBPBS and RBPBS registers. The following tables show how to configure the BERT to send and Rx common telecom patterns. Table 10-61. Pseudorandom Pattern Generation BPCR REGISTER PATTERN TYPE PTF[4:0] PLF[4:0] PTS (hex) (hex) 29-1 O.153 (511 type) 04 08 0 11 2 -1 O.152 and O.153 08 0A 0 (2047 type) 215-1 O.151 0D 0E 0 BPCR BSPR2 BSPR1 0 0x0408 0xFFFF 0xFFFF BCR TPIC, RPIC 0 0 0x080A 0xFFFF 0xFFFF 0 0 0x0D0E 0xFFFF 0xFFFF 1 QRSS 20 10 13 0 0 0x1013 0xFFFF 0xFFFF 0 20 02 13 0 1 0x0253 0xFFFF 0xFFFF 0 23 11 16 0 0 0x1116 0xFFFF 0xFFFF 1 2 -1 O.153 2 -1 O.151 QRSS 2 -1 O.151 Table 10-62. Repetitive Pattern Generation BPCR REGISTER PATTERN TYPE PTF[4:0] PLF[4:0] PTS (hex) (hex) all 1s NA 00 1 BPCR BSPR2 BSPR1 0 0x0020 0xFFFF 0xFFFF QRSS all 0s NA 00 1 0 0x0020 0xFFFF 0xFFFE alternating 1s and 0s NA 01 1 0 0x0021 0xFFFF 0xFFFE double alternating and 0s NA 03 1 0 0x0023 0xFFFF 0xFFFC 3 in 24 NA 17 1 0 0x0037 0xFF20 0x0022 1 in 16 NA 0F 1 0 0x002F 0xFFFF 0x0001 1 in 8 NA 07 1 0 0x0027 0xFFFF 0xFF01 1 in 4 NA 03 1 0 0x0023 0xFFFF 0xFFF1 After configuring these bits, the pattern must be loaded into the BERT. This is accomplished via a zero-to-one transition on BCR.TNPL and BCR.RNPL. Monitoring the BERT requires reading the BSR Register which contains the Bit Error Count (BEC) bit and the Out of Synchronization (OOS) bit. The BEC bit is set when the bit error counter is one or more. The OOS is set when the Rx pattern generator is not synchronized to the incoming pattern, which occurs when it receives a minimum of 6 bit errors within a 64-bit window. The Rx BERT Bit Count Registers (RBCR) and the Rx BERT Bit Error Count Registers (RBECR) are updated upon the zero-to-one transition of a performance monitor update signal (either BCR.LPMU or GCR2.BRPMU as specified by BCR.PMUM). This signal updates the registers with the values of the counters since the last update and resets the counters. 10.14.4 BERT Receive Pattern Detection The Rx BERT synchronizes the Rx pattern generator to the incoming pattern. The Rx pattern generator is a 32-bit shift register that shifts data from the least significant bit (LSB, bit 1) to the most significant bit (MSB, bit 32). The input to bit 1 is the feedback. For a PRBS pattern (generating polynomial xn + xy + 1), the feedback is an XOR of bit n and bit y. For a repetitive pattern (length n), the feedback is bit n. The values for n and y are individually 145 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 programmable (1 to 32, y < n) in the BPCR register. The output of the Rx pattern generator is the feedback. If QRSS is enabled (BPCR.QRSS=1) is enabled, the feedback is an XOR of bits 17 and 20, and the output is forced to one if the next 14 bits are all zeros. For PRBS and QRSS patterns, the feedback is forced to one if bits 1 through 31 are all zeros. Depending on the type of pattern programmed, pattern detection performs either PRBS synchronization or repetitive pattern synchronization. 10.14.4.1 Rx PRBS Synchronization PRBS synchronization synchronizes the Rx pattern generator to the incoming PRBS or QRSS pattern. The Rx pattern generator is synchronized by loading 32 data stream bits into the Rx pattern generator, and then checking the next 32 data stream bits. Synchronization is achieved if all 32 bits match the incoming pattern. If at least six incoming bits in the current 64-bit window do not match the Rx pattern generator, automatic pattern resynchronization is initiated. Automatic pattern resynchronization can be disabled by setting BCR:APRD=1. Pattern resynchronization can also be initiated manually by a zero-to-one transition of the Manual Pattern Resynchronization bit (BCR:MPR). The incoming data stream can be inverted before comparison with the Rx pattern generator by setting BCR:RPIC. See Figure 10-79 for the PRBS synchronization state diagram. Figure 10-79. PRBS Synchronization State Diagram Sync 6 of 64 bits with errors 32 bits without errors 1 bit error Verify Load 32 bits loaded 10.14.4.2 Rx Repetitive Pattern Synchronization Repetitive pattern synchronization synchronizes the Rx pattern generator to the incoming repetitive pattern. The Rx pattern generator is synchronized by searching each incoming data stream bit position for the repetitive pattern, and then checking the next 32 data stream bits. Synchronization is achieved if all 32 bits match the incoming pattern. If at least six incoming bits in the current 64-bit window do not match the Rx PRBS pattern generator, automatic pattern re-synchronization is initiated. Automatic pattern resynchronization can be disabled by setting BCR:APRD=1. Pattern resynchronization can also be initiated manually by a zero-to-one transition of the Manual Pattern Resynchronization bit (BCR:MPR). The incoming data stream can be inverted before comparison with the Rx pattern generator by setting BCR:RPIC. See Figure 10-80 for the repetitive pattern synchronization state diagram. 146 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 10-80. Repetitive Pattern Synchronization State Diagram Sync 32 bits without errors 6 of 64 bits with errors 1 bit error Verify Match Pattern Matches 10.14.4.3 Rx Pattern Monitoring Rx pattern monitoring monitors the incoming data stream for both an OOS condition and bit errors and counts the incoming bits. An Out Of Synchronization (BSR.OOS=1) condition is declared when the synchronization state machine is not in the Sync state. An OOS condition is terminated when the synchronization state machine is in the Sync state. A change of state of the OOS status bit sets the BSRL:OOSL latched status bit and can cause an interrupt if enabled by BSRIE.OOSIE. Bit errors are determined by comparing the incoming data stream bit to the Rx pattern generator output. If they do not match, a bit error is declared (BSRL:BEL=1), and the bit error and bit counts are incremented. If they match, only the bit count is incremented. The bit count and bit error count are not incremented when an OOS condition exists. The setting of the BEL status bit can cause an interrupt if enabled by BSRIE.BEIE. 10.14.5 BERT Transmit Pattern Generation The pattern generator generates the outgoing test pattern. The transmit pattern generator is a 32-bit shift register that shifts data from the least significant bit (LSB, bit 1) to the most significant bit (MSB, bit 32). The input to bit 1 is the feedback. For a PRBS pattern (generating polynomial xn + xy + 1), the feedback is an XOR of bit n and bit y. For a repetitive pattern (length n), the feedback is bit n. The values for n and y are individually programmable (1 to 32, y < n) in the BPCR.PLF and PTF fields. The output of the Rx pattern generator is the feedback. If QRSS is enabled (BPCR:QRSS=1), the feedback is an XOR of bits 17 and 20, and the output is forced to one if the next 14 bits are all zeros. For PRBS and QRSS patterns, the feedback is forced to one if bits 1 through 31 are all zeros. When a new pattern is loaded, the pattern generator is loaded with a seed/pattern value before pattern generation starts. The seed/pattern value is programmable (0 – 2n - 1). in the BSPR registers. The generated pattern can be inverted by setting BCR:TPIC. 147 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 10.14.5.1 Transmit Error Insertion Errors can be inserted into the generated pattern one at a time or at a rate of one out of every 10n bits. The value of n is programmable (1 to 7 or off) in the TEICR.TEIR[2:0] configuration field.. Single bit error insertion is enabled by setting TEICR.BEI and can be initiated by a zero-to-one transition of TEICR.TSEI. 10.15 LIU - Framer Connections By default each TDM port of the device has its framer connected to the internal LIU for that port. See Figure 6-1. As a configuration option, the internal LIU for any port can be disabled and the framer for that port can be connected to an external LIU or other component, such as an M13 mux or a SONET/SDH mapper. See Figure 10-81 below. When GCR2.LIUDn=0, the internal LIU is enabled, and the framer is connected to the internal LIU. When GCR2.LIUDn=1, the internal LIU is disabled, and the corresponding RCLKFn and TDATFn pins are enabled to allow the framer to connect to an external component. When GCR2.LIUDn=1, the CPU must also set RCR3.IDF=1 and TCR3.ODF=1 to configure the framer’s LIU interface for NRZ mode. The external component must also be configured for NRZ mode. If the external component is an E1/T1 LIU, it must also have HDB3 or B8ZS encoder and decoder enabled for proper operation. Figure 10-81. LIU + Framer Connections Normal Operation LIU Framer TPOS TNEG TCLK RPOS RNEG RCLK TPOS TPOS TNEG TCLK TNEG TCLK RPOS RPOS RNEG RCLK RNEG RCLK External NRZ Operation To TDATF pin To TCLKO pin Framer TPOS TNEG TCLK RPOS RNEG RCLK TPOS TNEG TCLK RPOS RNEG RCLK To RDATF pin To RCLKF pin 148 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11 Device Registers 11.1 Addressing Device registers and memory can be accessed either 2 or 4 bytes at a time, as specified by configuration pin DAT_32_16_N. In the 16-bit addressing mode, addresses are multiples of 2, while in 32-bit addressing, addresses are multiples of 4. The prefix “0x” indicates hexadecimal (base 16) numbering, as does the suffix “h” (Example: 2FFh). Addresses are always indicated in hexadecimal format. The byte order for both addressing modes is “big-endian” meaning the most significant byte has the lowest address. See byte order numbers in grey in Figure 11-1 and Figure 11-2. Figure 11-1. 16-Bit Addressing Figure 11-2. 32-Bit Addressing ADD 31 H_WR_BE3_N 24 23 H_WR_BE2_N 16 15 H_WR_BE1_N 8 7 H_WR_BE0_N 0 C 8 4 0 Partial data elements (shorter than 16 or 32 bits) are always positioned from LSb to MSb with the rest of the bits left unused. Thus, the bit numbers of data elements shorter than 16 bits are identical for both addressing modes (see bits [12:0] in Figure 11-3) and the CPU can access all bits by a single read/write. Figure 11-3. Partial Data Elements (shorter than 16 bits) Data elements 17 to 32 bits long need one read/write access in 32-bit addressing and two in 16-bit addressing. In Figure 11-4, the 20-bit data element needs one 32-bit CPU access (bits [19:0]) and two 16-bit accesses (bits [15:0] and then [3:0]). 149 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Figure 11-4. Partial Data Elements (16 to 32 bits long) SPI interface mode (H_CPU_SPI_N=0) always uses 32-bit addressing. See section 10.3. 11.2 Top-Level Memory Map Table 11-1. Top-Level Memory Map Address Range Contents Page 0 – 7F,FFF TDM-over-Packet Registers 80,000 – 9F,FFF Reserved 100,000 – 107,FFF Framer, LIU and BERT Registers 224 108,000 – 108,FFF Global Registers 151 109,000 – FFF,FFF Reserved --- External SDRAM --- 1,000,000 – 1,FFF,FFF 159 --- 150 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.3 Global Registers Functions contained in the global registers include device ID, CLAD configuration, TDMoP to framer connections, block resets, and block interrupt status. The global register base address is 0x108,000. Table 11-2. Global Registers Addr Register Name Offset 0x00 04 08 0C 10 14 18 1C 20 24 GCR1 GCR2 GTRR IDR GTISR GTIMR FMRTOPISM1 FMRTOPISM2 FMRTOPISM3 FMRTOPISM4 R/W R/W R/W R/W RO RO R/W R/W R/W R/W R/W GCR1 (Global Control Register) 0x00 Bits Data Element Name R/W Description Page Global Control Register 1 Global Control Register 2 Global Transceiver Reset Register Identification Device Register Global Transceiver Interrupt Status Register Global Transceiver Interrupt Mask Register Framer and TDM-over-Packet Internal Signal Manager 1 Framer and TDM-over-Packet Internal Signal Manager 2 Framer and TDM-over-Packet Internal Signal Manager 3 Framer and TDM-over-Packet Internal Signal Manager 4 151 153 153 154 154 155 155 156 157 158 Default Description R/W 0 INTMODEn - 0 [14] SYSCLKS R/W 0 [13:12] FREQSEL R/W 00 [11] UNFRMMODE R/W 0 Transmit System Frame/Multiframe Sync Pin Enable Bit 31 is TSSYNCPE8; bit 24 is TSSYNCPE1. These bits enable the TSYNCn/TSSYNCn pin to be TSSYNCn when set. The TSSYNCn pin should be enabled for any framer where the transmit elastic store is enabled. 0 = Pin is TSYNCn 1 = Pin is TSSYNCn When GCR1.MODE=0, all ports are configured for internal mode and these bits are ignored. When GCR1.MODE=1, INTMODEn configures port n as follows: 0 = External Mode 1 = Internal Mode These bits are only available on the DS34T108. See section 8 for details. TDMoP System Clock Frequency Select When a 25MHz clock is applied to the CLK_SYS pin (i.e. when the CLK_SYS_S pin is high), this bit configures the CLAD2 block to provide either a 50MHz clock or a 75MHz clock to the TDMoP block. When CLK_SYS_S=0 this bit is a don’t care. See section 10.4. 0 = 50MHz 1 = 75MHz Frequency Select Specifies the frequency of the signal applied to the CLK_HIGH pin. 00 = 38.88MHz (CLAD bypass; 38.88MHz in and out). 01 = 19.44MHz 10 = 10.000MHz 11 = 77.76MHz Unframed Mode Specifies framed or unframed connection between the framers and the TDMoP block. Affects all ports. Only valid in internal mode (GCR1.MODE=0). Ignored in external mode. See section 8.1. 0 = Framed mode 1 = Unframed mode Note: When framing is not needed, the framer still has to be setup to bypass the framer to work properly in Unframed mode. [31:24] TSSYNCPEn [23:15] 151 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 GCR1 (Global Control Register) 0x00 Bits Data Element Name R/W Default Description [10] MODE R/W 0 [9] CLKMODE R/W 0 [8] CLK_HIGHD R/W 0 [7] MCLKS R/W 0 [6] MCLKE R/W 0 [5] GFCLE R/W 0 [4] LOSS R/W 0 [3] RFMSS R/W 0 [2] IPOR R/W 0 [1] IPI1 R/W 0 Mode Select Specifies internal mode or external mode connections for the cross-connect side of the framers and the TDMoP block. In external mode several input and output pins are enabled per port. See section 8. 0 = Internal mode (all ports) 1 = External mode (unless overridden by per-port configuration bits GCR1.INTMODE[8:1]). Clock Mode Selects between one-clock mode and two-clock mode. In twoclock mode transmit and Rx paths have independent clocks. In one-clock mode, transmit and Rx paths are clocked by the transmit clock. Affects all ports. Only valid in internal mode (GCR1.MODE=0). Ignored in external mode. See section 8.1. 0 = One-clock mode 1 = Two-clock mode Note: In “one clock mode” the user must enable the Rx elastic store of all the framers. See RESCR.RESE. CLK_HIGH Disable Disables the 38.88MHz master clock to the clock recovery machines of the TDMoP block to save power. This bit should be set only when not using any of the TDMn_ACLK signals. See section 10.4. 0 = Enabled 1 = Disabled Master Clock Selection When MCLKE=1 (bit 6 below), this bit specifies the frequency of the signal applied to the MCLK pin. See section 10.4. 0 = 1.544MHz (32ppm) 1 = 2.048MHz (50ppm) Master Clock Enable Specifies the input clock from which the 1.544MHz T1CLK and 2.048MHz E1CLK are produced for use by the framers and LIUs. When MCLKE=1, the frequency of the signal on the MCLK pin must be specified by MCLKS (bit 7 above). See the CLAD1 block in Figure 6-1. See section 10.4. 0 = CLK_HIGH 1 = MCLK Global Framer Counter Latch Enable A low-to-high transition on this bit latches the framer error counter values in the corresponding error counter registers (see section 10.11.8). Each framer can be independently enabled to accept this input by setting ERCNT.EAMS=1 and ERCNT.MCUS=1. GFCLE must be cleared and set again to perform another counter register update. Loss of Signal Select This bit controls the function of all RLOSn/RLOFn pins. 0 = RLOF (Rx loss of frame) 1 = RLOS (Rx loss of signal) Rx Frame/Multiframe Sync Select This bit controls the function of all RFSYNCn / RMSYNCn pins. 0 = RFSYNC (Rx frame sync) 1 = RMSYNC (Rx multiframe sync) Interrupt Pin ‘OR’ This bit internally ORs the H_INT[1] signal with the H_INT[0] signal and outputs the result on the H_INT[0] pin. See Figure 10-63. 0 = Normal operation 1 = (H_INT[1] OR H_INT[0]) is output on H_INT[0] Interrupt Pin Inhibit 1 0 = H_INT[1] normal interrupt output behavior 152 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 GCR1 (Global Control Register) 0x00 Bits Data Element Name R/W [0] IPI0 R/W Default 0 Description 1 = H_INT[1] forced inactive (high) See Figure 10-63. Interrupt Pin Inhibit 0 0 = H_INT[0] normal interrupt output behavior 1 = H_INT[0] forced inactive (high) See Figure 10-63. GCR2 (Global Control Register 2) 0x04 Bits Data Element Name R/W Default [31:24] [23:9] [8] Not Used Not Used BRPMU R/W 0 0 0 [7:0] LIUDn R/W 0 Description Must be set to zero. Must be set to zero. BERT Rx Performance Monitor Update This bit causes the Rx BERT performance monitoring registers to be updated for all ports where local performance monitoring update is disabled (BCR.PMUM =1). A 0 to 1 transition causes the performance monitoring registers to be updated with the latest data, and the counters reset. If BRPMU goes low before the local BERT BSR.PMS bit goes high, an update might not be performed. This bit has no for ports where BCR.PMUM=0. This is an asynchronous signal. Line Interface Unit Disable n Bit 7 is LIUD8; bit 0 is LIUD1. When set, each of these bits disables the corresponding internal LIU and enables the corresponding RCLKFn and TDATFn pins for connection to an external LIU (or other component such as an M13 mux or SONET/SDH mapper). 0 = Internal LIU enabled 1 = Internal LIU disabled Note: When LIUD=1, RCR3.IDF and TCR3.ODF must be set to 1 to configure the framer and formatter for NRZ data on RDATFn and TDATFn. Also, unused LIUs can be powered down by setting LMCR.TPDE and LMCR.RPDE. GTRR (Global Transceiver Reset Register) 0x08 Bits Data Element Name R/W Default [31:19] [18] Not Used TOPRST R/W 0 0 [17] BSRST R/W 0 [16] FSRST R/W 0 Description Must be set to zero. TDMoP Core Software Reset When set, this bit resets all of the TDMoP configuration registers to their default value. 0 = Normal operation 1 = Reset the TDMoP core BERT Software Reset All BERT logic and registers are reset on a 0-to-1 transition of this bit. The reset is released when a zero is written to this bit. 0 = Normal operation 1 = Reset all BERTs Framer Software Reset All framer logic and registers are reset on a 0-to-1 transition of this bit. The reset is released when a zero is written to this bit. 0 = Normal operation 1 = Reset all framers 153 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 GTRR (Global Transceiver Reset Register) 0x08 Bits Data Element Name R/W Default [15:8] LIRSTn R/W 0 [7:0] LSRSTn R/W 0 Description LIU Line Interface Reset n Bit 15 is LIRST8; bit 8 is LIRST1. A zero-to-one transition resets the receiver’s clock recovery state machine and re-centers the jitter attenuator (JA) FIFO pointers for the corresponding LIU. This is an asynchronous reset. See section 10.5. 0 = Normal operation 1 = Reset receiver and JA of LIU n LIU Software Reset n Bit 7 is LSRST8; bit 0 is LSRST1. A zero-to-one transition resets LIU logic and registers for the corresponding LIU. The reset is released when a zero is written to this bit. See section 10.5. 0 = Normal Operation 1 = Reset LIU n IDR (Identification Device Register) 0x0C Bits Data Element Name R/W [31:16] [15:4] ID[31:16] ID[15:4] RO RO [3:0] ID[3:0] RO Default Description 0 These bits are always zero. See Device ID JTAG ID. These bits have the same information as the lower 12 bits of the Device ID portion of the JTAG ID register. See Table 12-2. See Device Revision JTAG ID. These bits have the same information as the four REV bits of the JTAG ID register. See Table 12-2. GTISR (Global Transceiver Interrupt Status Register) 0x10 Bits Data Element Name R/W Default [31:25] [24] Not used. TDMoPIS RO 0 0 [23:16] LISn RO 0 [15:8] BISn RO 0 [7:0] FISn RO 0 Description Must be set to zero. TDM-over-Packet Interrupt Status This status bit indicates when the TDM-over-Packet block is signaling an interrupt request. This bit is typically used when H_INT[0] and H_INT[1] are ORed together (i.e. when GCR1.IPOR=1). Interrupt mask is GTIMR.TDMoPIM. 0 = TDM-over-Packet has not issued an interrupt. 1 = TDM-over-Packet has issued an interrupt. LIU Interrupt Status n Bit 23 is LIS8; bit 16 is LIS1. LISn reports the interrupt status for LIU n. Each LISn bit is only cleared when the LLSR register is cleared for the corresponding LIU. Interrupt mask is GTIMR.LIMn. 0 = LIU n has not issued an interrupt. 1 = LIU n has issued an interrupt. BERT Interrupt Status n Bit 15 is BIS8; bit 8 is BIS1. BISn reports the interrupt status for BERT n. Each BISn bit is only cleared when the BSRL register is cleared for the corresponding BERT. Interrupt mask is GTIMR.BIMn. 0 = BERT n has not issued an interrupt. 1 = BERT n has issued an interrupt. Framer Interrupt Status n Bit 7 is FIS8; bit 0 is FIS1. FISn reports the interrupt status for framer n. Each FISn bit is only cleared when the latched status register causing the interrupt is cleared for the corresponding framer. Interrupt mask is GTIMR.FIMn. 0 = Framer n has not issued an interrupt. 1 = Framer n has issued an interrupt. 154 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 GTIMR (Global Transceiver Interrupt Mask Register) 0x14 Bits Data Element Name R/W Default [31:25] [24] Not used. TDMoPIM R/W 0 [23:16] LIMn R/W 0 [15:8] BIMn R/W 0 [7:0] FIMn R/W 0 0 Description Must be set to zero. TDM-over-Packet Interrupt Mask This bit is the interrupt mask for GTISR.TDMoPIS. 0 = Interrupt masked. 1 = Interrupt enabled. LIU Interrupt Mask n Bit 23 is LIM8; bit 16 is LIM1. LIMn is the interrupt mask for GTISR.LISn. 0 = Interrupt masked. 1 = Interrupt enabled. BERT Interrupt Mask (8-1). Bit 15 is BIM8; bit 8 is BIM1. BIMn is the interrupt mask for GTISR.BISn. 0 = Interrupt masked. 1 = Interrupt enabled. Framer Interrupt Mask (8-1). Bit 7 is FIM8; bit 0 is FIM1. FIMn is the interrupt mask for GTISR.FISn. 0 = Interrupt masked. 1 = Interrupt enabled. FMRTOPISM1 (Framer and TDM-over-Packet Internal Signal Manager 1) 0x18 Bits Data Element Name R/W Default [31:29] SYNCNTL4 R/W 0x3 [28:24] CLKCNTL4 R/W 0x3 [23:21] SYNCNTL3 R/W 0x2 [20:16] CLKCNTL3 R/W 0x2 [15:13] SYNCNTL2 R/W 0x1 [12:8] CLKCNTL2 R/W 0x1 [7:5] SYNCNTL1 R/W 0x0 Description Synchronization Control, Port 4 See SYNCNTL1 below. Clock Control, Port 4 See CLKCNTL1 below. Synchronization Control, Port 3 See SYNCNTL1 below. Clock Control, Port 3 See CLKCNTL1 below. Synchronization Control, Port 2 See SYNCNTL1 below. Clock Control, Port 2 See CLKCNTL1 below. Synchronization Control, Port 1 In external mode (GCR1.MODE=1) this field is ignored. In internal mode (MODE=0), this field specifies the port 1 frame/multiframe sync signal, tsync_ref[1]. See the tsync_ref[n] signal in Figure 6-2. See also Figure 8-2 and Figure 8-3. 000 = TSYNC1 (i.e. TSYNC from the port 1 formatter) 001 = TSYNC2 010 = TSYNC3 011 = TSYNC4 100 = TSYNC5 101 = TSYNC6 110 = TSYNC7 111 = TSYNC8 155 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 FMRTOPISM1 (Framer and TDM-over-Packet Internal Signal Manager 1) 0x18 Bits Data Element Name R/W Default [4:0] CLKCNTL1 R/W 0x0 Description Clock Control, Port 1 In external mode (GCR1.MODE=1) this field is ignored. In internal mode (MODE=0), this field specifies the port 1 clock signal, ref_clk[1]. See the ref_clk[n] signal in Figure 6-2. See also Figure 8-2 and Figure 8-3. 00000 = RCLK1 (Recovered clock from LIU receiver 1) 00001 = RCLK2 00010 = RCLK3 00011 = RCLK4 00100 = RCLK5 00101 = RCLK6 00110 = RCLK7 00111 = RCLK8 01000 = TDM1_ACLK (Adaptive mode recovered clock 01001 = TDM2_ACLK from TDMoP block port 1) 01010 = TDM3_ACLK 01011 =TDM4_ACLK 01100 = TDM5_ACLK 01101 = TDM6_ACLK 01110 = TDM7_ACLK 01111 = TDM8_ACLK 10000 ECLK1 pin 10001 ECLK2 pin 10010 ECLK3 pin 10011 ECLK4 pin 10100 ECLK5 pin 10101 ECLK6 pin 10110 ECLK7 pin 10111 ECLK8 pin 11XX0 E1CLK from CLAD1 11XX1 T1CLK from CLAD2 FMRTOPISM2 (Framer and TDM-over-Packet Internal Signal Manager 2) 0x1C Bits Data Element Name R/W Default [31:29] SYNCNTL8 R/W 0x7 [28:24] CLKCNTL8 R/W 0x7 [23:21] SYNCNTL7 R/W 0x6 [20:16] CLKCNTL7 R/W 0x6 [15:13] SYNCNTL6 R/W 0x5 [12:8] CLKCNTL6 R/W 0x5 [7:5] SYNCNTL5 R/W 0x4 [4:0] CLKCNTL5 R/W 0x4 Description Synchronization Control, Port 8 See SYNCNTL1 above. Clock Control, Port 8 See CLKCNTL1 above. Synchronization Control, Port 7 See SYNCNTL1 above. Clock Control, Port 7 See CLKCNTL1 above. Synchronization Control, Port 6 See SYNCNTL1 above. Clock Control, Port 6 See CLKCNTL1 above. Synchronization Control, Port 5 See SYNCNTL1 below. Clock Control, Port 5 See CLKCNTL1 above. 156 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 FMRTOPISM3 (Framer and TDM-over-Packet Internal Signal Manager 3) 0x20 Bits Data Element Name R/W Default [31] TDMRCLKS8 R/W 0x0 [30:28] TDMI8 R/W 0x7 [27] TDMRCLKS7 R/W 0x0 [26:24] TDMI7 R/W 0x6 [23] TDMRCLKS6 R/W 0x0 [22:20] TDMI6 R/W 0x5 [19] TDMRCLKS5 R/W 0x0 [18:16] TDMI5 R/W 0x4 [15] TDMRCLKS4 R/W 0x0 [14:12] TDMI4 R/W 0x3 [11] TDMRCLKS3 R/W 0x0 [10:8] TDMI3 R/W 0x2 [7] TDMRCLKS2 R/W 0x0 [6:4] TDMI2 R/W 0x1 [3] TDMRCLKS1 R/W 0x0 [2:0] TDMI1 R/W 0x0 Description TDMoP Rx Clock Select 8 See TDMRCLKS1 below. TDMoP Interface 8 See TDMI1 below. TDMoP Rx Clock Select 7 See TDMRCLKS1 below. TDMoP Interface 7 See TDMI1 below. TDMoP Rx Clock Select 6 See TDMRCLKS1 below. TDMoP Interface 6 See TDMI1 below. TDMoP Rx Clock Select 5 See TDMRCLKS1 below. TDMoP Interface 5 See TDMI1 below. TDMoP Rx Clock Select 4 See TDMRCLKS1 below. TDMoP Interface 4 See TDMI1 below. TDMoP Rx Clock Select 3 See TDMRCLKS1 below. TDMoP Interface 3 See TDMI1 below. TDMoP Rx Clock Select 2 See TDMRCLKS1 below. TDMoP Interface 2 See TDMI1 below. TDMoP Rx Clock Select 1 This bit is only used in internal, two-clock mode (GCR1.MODE=0, GCR1.CLKMODE=1). When used, this bit and the TDMI1 field below specify the clock source for the TDM1_RCLK signal going into the TDMoP block. See Figure 6-2. 0 = TDM1_RCLK is the signal specified by TDMI1 below 1 = TDM1_RCLK is the TCLKO1 signal TDMoP Interface 1 This field specifies which of the Rx framers is connected to the Rx side of port 1 of the TDMoP block. The TDMIn fields in this register and the FRMRn fields in FMRTOPISM4 control clock/data/sync/signaling cross-connection between the framers and the ports of the TDMoP block. See Figure 6-2 for more details. 000 = Framer 1 001 = Framer 2 010 = Framer 3 011 = Framer 4 100 = Framer 5 101 = Framer 6 110 = Framer 7 111 = Framer 8 157 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 FMRTOPISM4 (Framer and TDM-over-Packet Internal Signal Manager 4) 0x24 Bits Data Element Name R/W Default [31] [30:28] Reserved FRMR8 R/W 0x0 0x7 [27] [27:24] Reserved FRMR7 R/W 0x0 0x6 [23] [22:20] Reserved FRMR6 R/W 0x0 0x5 [19] [18:16] Reserved FRMR5 R/W 0x0 0x4 [15] [14:12] Reserved FRMR4 R/W 0x0 0x3 [11] [10:8] Reserved FRMR3 R/W 0x0 0x2 [7] [6:4] Reserved FRMR2 R/W 0x0 0x1 [3] [2:0] Reserved FRMR1 R/W 0x0 0x0 Description Must be set to zero. Framer Interface 8 See FRMR1 below. Must be set to zero. Framer Interface 7 See FRMR1 below. Must be set to zero. Framer Interface 6 See FRMR1 below. Must be set to zero. Framer Interface 5 See FRMR1 below. Must be set to zero. Framer Interface 4 See FRMR1 below. Must be set to zero. Framer Interface 3 See FRMR1 below. Must be set to zero. Framer Interface 2 See FRMR1 below. Must be set to zero. Framer Interface 1 This field specifies which of the TDMoP ports is connected to the transmit side (i.e. to the transmit formatter) of framer 1. The FRMRn fields in this register and the TDMIn fields in FMRTOPISM3 control clock/data/sync/signaling cross-connection between the framers and the ports of the TDMoP block. See Figure 6-2 for more details. 000 = TDMoP port 1 001 = TDMoP port 2 010 = TDMoP port 3 011 = TDMoP port 4 100 = TDMoP port 5 101 = TDMoP port 6 110 = TDMoP port 7 111 = TDMoP port 8 158 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4 TDM-over-Packet Registers The base address for the TDMoP registers is 0x0. Table 11-3. TDMoP Memory Map Address Offset Contents 0x0,000 8,000 10,000 12,000 18,000 20,000 28,000 30,000 38,000 40,000 48,000 50,000 58,000 60,000 Configuration and Status Registers Bundle Configuration Tables Counters Status Tables Timeslot Assignment Tables CPU Queues Transmit Buffers Pool Jitter Buffer Control Transmit Software CAS Receive Line CAS Clock Recovery Receive SW Conditioning Octet Select Receive SW CAS Error! Reference source not found. 68,000 Error! Reference source not found. 70,000 72,000 Packet Classifier Ethernet MAC 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Page 160 174 184 187 187 189 191 197 201 203 204 205 206 Error! Bookmark not defined. Error! Bookmark not defined. 213 214 159 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.1 Configuration and Status Registers The base address for the TDMoP configuration and status registers is 0x0,000. Table 11-4. TDMoP Configuration Registers Addr Register Name Offset 0x00 04 08 0C 10 14 18 1C 20 24 28 2C 30 34 38 3C 40 44 48 4C 50 54 58 5C 60 64 68 6C 70 74 78 7C 80 D4 General_cfg_reg0 General_cfg_reg1 General_cfg_reg2 Port1_cfg_reg Port2_cfg_reg Port3_cfg_reg Port4_cfg_reg Port5_cfg_reg Port6_cfg_reg Port7_cfg_reg Port8_cfg_reg Rst_reg TDM_cond_data_reg ETH_cond_data_reg Packet_classifier_cfg_reg0 Packet_classifier_cfg_reg1 Packet_classifier_cfg_reg2 Packet_classifier_cfg_reg3 Packet_classifier_cfg_reg4 Packet_classifier_cfg_reg5 Packet_classifier_cfg_reg6 Packet_classifier_cfg_reg7 Packet_classifier_cfg_reg8 Packet_classifier_cfg_reg9 Packet_classifier_cfg_reg10 Packet_classifier_cfg_reg11 Packet_classifier_cfg_reg12 Packet_classifier_cfg_reg13 Packet_classifier_cfg_reg14 Packet_classifier_cfg_reg15 Packet_classifier_cfg_reg16 Packet_classifier_cfg_reg17 Packet_classifier_cfg_reg18 CPU_rx_arb_max_fifo_level_reg 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 Table 11-5. TDMoP Status Registers Addr Register Name Offset 0xE0 E4 E8 EC F0 F4 F8 FC 100 104 108 10C General_stat_reg Version_reg Port1_sticky_reg1 Port1_sticky_reg2 Port1_sticky_reg3 Port1_sticky_reg4 Port1_sticky_reg5 Port1_sticky_reg6 Port1_sticky_reg7 Port1_sticky_reg8 Port1_status_reg1 Port1_status_reg2 3 Description General configuration register0 General configuration register1 General configuration register2 Port 1 configuration register Port 2 configuration register Port 3 configuration register Port 4 configuration register Port 5 configuration register Port 6 configuration register Port 7 configuration register Port 8 configuration register Reset register TDM AAL1/SAToP conditioning data register Ethernet AAL1/SAToP conditioning data register Packet classifier configuration register0 Packet classifier configuration register1 Packet classifier configuration register2 Packet classifier configuration register3 Packet classifier configuration register4 Packet classifier configuration register5 Packet classifier configuration register6 Packet classifier configuration register7 Packet classifier configuration register8 Packet classifier configuration register9 Packet classifier configuration register10 Packet classifier configuration register11 Packet classifier configuration register12 Packet classifier configuration register13 Packet classifier configuration register14 Packet classifier configuration register15 Packet classifier configuration register16 Packet classifier configuration register17 Packet classifier configuration register18 Rx arbiter maximum FIFO level register Description General latched status register TDMoP version register Port 1 latched status register Port 2 latched status register Port 3 latched status register Port 4 latched status register Port 5 latched status register Port 6 latched status register Port 7 latched status register Port 8 latched status register Port 1 status bit register 1 Port 1 status bit register 2 Page 161 162 163 163 163 163 163 163 163 163 163 166 167 167 167 167 167 168 169 169 169 169 170 170 170 170 170 171 171 171 171 171 171 172 3 3 Page 173 173 173 173 173 173 173 173 173 173 174 174 160 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 110 114 118 11C 120 124 128 12C 130 134 138 13C 140 144 Register Name Port2_status_reg1 Port2_status_reg2 Port3_status_reg1 Port3_status_reg2 Port4_status_reg1 Port4_status_reg2 Port5_status_reg1 Port6_status_reg2 Port6_status_reg1 Port6_status_reg2 Port7_status_reg1 Port7_status_reg2 Port8_status_reg1 Port8_status_reg2 Description Page Port 2 status bit register 1 Port 2 status bit register 2 Port 3 status bit register 1 Port 3 status bit register 2 Port 4 status bit register 1 Port 4 status bit register 2 Port 5 status bit register 1 Port 5 status bit register 2 Port 6 status bit register 1 Port 7 status bit register 2 Port 7 status bit register 1 Port 7 status bit register 2 Port 8 status bit register 1 Port 8 status bit register 2 174 174 174 174 174 174 174 174 174 174 174 174 174 174 11.4.1.1 TDMoP Configuration Registers General_cfg_reg0 0x00 Bits Data Element Name R/W Reset Value [31] Discard_ip_checksum_err R/W 0x0 [30:27] Packet_trailer_length R/W 0x0 [26] Clock_recovery_en R/W 0x0 [25:16] Rx_fifo_priority_lvl R/W 0x100 [15:14] MII_mode_select R/W 0x0 [13:12] Reserved R/W 0x0 [11] High_speed R/W 0x0 [10] OAM_timestamp_resolution R/W 0x1 [9:8] Reserved R/W 0x0 [7] Mem_size R/W 0x0 Description Indicates to discard packets received with a wrong IP checksum. See section 10.6.13. The length of the trailer attached to all received and transmitted packets. Allowed values: 0–12 (decimal). When set to zero no trailer is attached. See section 10.6.14. 0 = Clock recovery block is disabled (power saving mode) 1 = Normal operation Should be cleared to reduce the chip power consumption when adaptive clock recovery is not used. When cleared, the clock recovery registers (offset 0x48,000) must not be accessed by the CPU because the clock recovery block does not assert H_READY_N. See section 10.4. Rx FIFO threshold level in dwords. If the Rx FIFO level is higher than this threshold, then the Rx_fifo receives the higher priority instead of the cross-connect queue. This parameter is relevant only when there are bundles configured as cross-connect. The recommended value is 0x3FF (maximal value). See section 10.6.11.5. 00 = MII 01 = RMII 10 = Reserved 11 = Source sync SMII (SSMII) Must be set to zero 0 = All ports active in E1/T1/J1 mode 1 = Port1 enabled in high-speed E3/T3/STS-1 mode, all other ports disabled 0 = OAM timestamp is incremented every 1s 1 = OAM timestamp is incremented every 100s See section 10.6.13.6. Must be set to zero SDRAM size: 0 = 64 Mb 1 = 128 Mb 161 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 General_cfg_reg0 0x00 Bits Data Element Name R/W Reset Value [6:5] Fq R/W 0x0 [4:3] Col_width R/W 0x0 [2:1] CAS_latency R/W 0x2 [0] Rst_SDRAM_n R/W 0x0 R/W Reset Value Description SDRAM clock: 00 = 50 MHz 01 = 75 MHz 10 = Reserved 11 = Reserved for 100 MHz SDRAM columns and rows 00 = 8 bit (256 columns) 01 = 9 bit (512 columns) 10 = 10 bit (1K columns) 11 = 11 bit (2K columns) SDRAM CAS latency: 00 = {reserve value} 01 = 1 10 = 2 11 = 3 Resets SDRAM controller. Active low. After all configuration bits of the SDRAM controller have been written, the SDRAM controller must be reset by taking this bit low then high. General_cfg_reg1 0x04 Bits Data Element Name [31] RTP_timestamp_generation_ mode R/W 0x0 [30:24] Sw_packet_offset R/W 0x04 [23:19] Tx_payload_offset R/W 0x00 [18] Reserved R/W 0x0 [17:10] JBC_sig_base_add R/W 0x060 [9:6] Tx_buf_base_add R/W 0x2 [5] IP_version R/W 0x0 [4] Dual_stack R/W 0x0 [3] Frames_count_check_en R/W 0x1 [2] Reserved R/W 0x0 [1:0] JBC_data_base_add R/W 0x0 Description Indicates the RTP timestamp generation mode: 0 = Absolute mode 1 = Differential (common clock) mode See the description of the TS field in Table 10-16 for more details. The offset from the first byte of the packet to the start of the CPU buffer. For the Ethernet-to-CPU packets, 8 bytes are added automatically to each configured value. For example, if you intend to set the offset to 20 bytes, configure this value to 12 bytes. Allowed values are in the range of 4–127 (decimal) bytes. Number of 32-bit words between the start of transmit buffer to the control word or to start of the TDM payload if the control word does not exist Must be set to zero Base address (8 MSbits) of Rx jitter buffer signaling section in SDRAM Base address (4 MSbits) of transmit buffers in SDRAM The IP version of transmitted TDMoP packets. See section 10.6.13. 0 = Ipv4 1 = Ipv6 The IP version of received TDMoP packets . See section 10.6.13. 0 = Ipv4/Ipv6, according to IP_version field above 1 = Both Ipv4 and Ipv6 packets Specifies whether to check received packets that are CESoPSN structured with CAS bundles and discard those that contain the wrong number of TDM frames 0 = Do not check 1 = Check Must be set to zero Base address (2 MSbits) of Rx jitter buffer data section in SDRAM 162 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 General_cfg_reg2 0x08 Bits Data Element Name R/W Reset Value [31:29] Rx_HDLC_min_flags R/W 0x0 [28:24] Reserved R/W 0x0 [23:20] Rx_SAToP/CESoPSN_discard_ mask R/W 0x0 [19:0] Reserved R/W 0x0 Description Minimum number flags between 2 adjacent HDLC frames transmitted towards the cross-connect block. The number of flags is equal to Rx_hdlc_min_flags + 1. Range: 1 – 8. Must be set to zero Each bit of this field determines whether a specific type of discarded packet is to be counted by the Discarded_SAToP/CESoPSN_Rxd_packets counter. 0 = don’t count 1 = count bit 23: count packets that were discarded because of jump operation that caused overflow in jitter buffer. bit 22: count packets that were discarded due to incorrect sequence number. bit 21: count packets that were discarded due to over-run state in jitter buffer. bit 20: count packets that were discarded because they were considered duplicated, or because they were received too late to be inserted into the jitter buffer. Must be set to zero In the Port[n]_cfg_reg description below, the index n indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Port[n]_cfg_reg 0x08+n*4 Bits Data Element Name R/W Reset Value [31:30] Reserved R/W 0x0 [29:24] Unframed_int_rate R/W 0x0 Description Must be set to zero. The bit rate of an unframed interface type (Used only for absolute mode RTP timestamping). 1 = 64 kbps 2 = 128 kbps . . . 32 = 2.048 Mbps 33 =1.544 Mbps 34 = 34 Mbps (E3 rate) 45 = 45 Mbps (T3 rate) 52 = 51.84 Mbps (STS-1 rate) Note: E3, T3 and STS-1 configurations are available for Port 1 only in high-speed mode, i.e. when General_cfg_reg0.High_speed=1. Indicates the PCM frequency, i.e. the TDM rate in and out of the TDMoP port. Only applies when int_frame_type (bits 3:2 below) is set for framed or framed-with-CAS and int_type (bits 1:0 below) is set for E1 or T1. 0 = 1.544 MHz 1 = 2.048 MHz This bit is for enabling T1 data over an E1-rate port. The combination of Int_type=E1 and PCM_rate=1.544 MHz is not allowed. 3 [23] PCM_rate R/W 0x0 163 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Port[n]_cfg_reg 0x08+n*4 Bits Data Element Name R/W Reset Value [22:21] Tx_defect_modifier R/W 0x0 [20] Port_Rx_enable (Rx means from Ethernet MII) R/W 0x0 Description Used in the control word M field for packets in all bundles associated with TDMoP port n. 0 = Outgoing TDM traffic from Port n of the TDMoP block is discarded (TDMn_TX and TDMn_TSIG are held high) 1 = Outgoing TDM traffic from Port n of the TDMoP block is enabled. Note: (Port 1 only) This bit also applies in high-speed mode, i.e. when General_cfg_reg0.High_speed=1. When the Int_type field (below) specifies a serial interface, the value of the TDMn_TSIG_CTS pin--which behaves as CTS (Clear To Send)—comes from this field. When the Int_type field (below) specifies a serial interface, this field is the output enable control for the CD (Carrier Detect) function of the TDMn_TX_MF_CD pin. When this pin is active, the output state of the TDMn_TX_MF_CD pin comes from the CD field (below). When the Int_type field (below) specifies a serial interface, the value of the TDMn_TX_MF_CD pin—which behaves as CD (Carrier Detect)—comes from this field when the CD_en bit (above) is high. Loss of sync on TDM port n. Causes the L bit in the control word to be set for packets in all bundles associated with TDMoP port n. Index of the jitter buffer used by the clock recovery block to generate the clock for TDMoP port n. In the case where a SF (superframe) formatted T1 is connected by a structured-with-CAS bundle to an ESF interface, this field is the source of the C and D CAS bits for the ESF interface (in the Ethernet-to-TDM direction). See section 10.6.5. 0 = TSA bank1 is the active bank for Port n. 1 = TSA bank2 is the active bank for Port n. Swapping banks takes effect at the next sync input assertion 0 = Incoming TDM traffic to Port n of the TDMoP block is discarded 1 = Incoming TDM traffic to Port n of the TDMoP block is enabled Note: (Port 1 only) This bit also applies in high-speed mode, i.e. when General_cfg_reg0.High_speed=1. In one-clock mode (Two_clocks field below is 0) this field is ignored. In two-clock mode (Two_clocks=1) this field specifies the TDMn_RCLK edge on which TDMn_RX, TDMn_RX_SYNC and TDMn_RSIG_RTS are sampled. 0 = falling edge 1 = rising edge See the timing diagrams in Figure 14-17 through Figure 14-20. In one-clock mode (Two-clocks field below is 0) this field specifies the TDMn_TCLK edge on which TDMn_TX_SYNC, TDMn_TX_MF_CD, TDMn_RX, TDMn_RX_SYNC and TDMn_RSIG_RTS are sampled and the edge on which TDMn_TX and TDMn_TSIG_CTS are updated. 0 = Inputs sampled on the falling edge, outputs updated on the rising edge 1 = Inputs sampled on the rising edge, outputs updated on the falling edge 3 [19] CTS R/W 0x1 [18] CD_en R/W 0x0 [17] CD R/W 0x1 [16] Loss R/W 0x0 [15:11] Adapt_JBC_indx R/W 0x00 [10:9] SF_to_ESF_low_CAS_bits R/W 0x0 [8] TSA_act_blk R/W 0x0 [7] Port_Tx_enable (Tx mean toward Ethernet MII) R/W 0x0 3 [6] Rx_sample R/W 0x1 [5] Tx_sample R/W 0x0 164 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Port[n]_cfg_reg 0x08+n*4 Bits Data Element Name R/W Reset Value Description In two-clock mode (Two-clocks=1) this field specifies the TDMn_TCLK edge on which TDMn_TX_SYNC, TDMn_TX_MF_CD are sampled and the edge on which TDMn_TX and TDMn_TSIG_CTS are updated. The Rx_sample field (above) specifies the TDMn_RCLK edge for the Rx-side signals. 0 = Inputs sampled on the falling edge, outputs updated on the rising edge 1 = Inputs sampled on the rising edge, outputs updated on the falling edge See the timing diagrams in Figure 14-15 through Figure 14-20. One-clock or two-clock mode. 0 = one-clock mode: TDMn_TCLK is used for both Rx and transmit interfaces [4] Two_clocks R/W 0x1 1 = two-clock mode: TDMn_RCLK is used for the Rx interface and TDMn_TCLK is used for the transmit interface. Note: (Port 1 only) This bit must be set in high-speed mode (i.e. when General_cfg_reg0.High_speed=1). Interface Framing Type 00 = Unframed (no frame sync, no multiframe sync) 01 = Framed (frame sync only, no multiframe sync) 10 = Multiframe (E1), SF (T1) (sync and mf sync) 11 = ESF(T1) (frame sync and multiframe sync) Changing value from 10 or 11 to 00 or 01 must be performed only after asserting the RST_SYS_N pin. Interface Type 00 = Serial 01= E1 10 = T1 11 = Reserved 3 [3:2] Int_framed_type R/W 0x0 [1:0] Int_type R/W 0x1 165 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Rst_reg 0x2C Bits Data Element Name R/W Reset Value - 0x0 [31:28] Reserved [27:24] Rst_tx_port_num R/W 0x0 [23:18] Rst_tx_internal_bundle_num R/W 0x00 [17] Rst_tx_open/close R/W 0x0 [16] Rst_tx R/W 0x0 [15:7] [6:1] Reserved Rst_rx_internal_bundle_num R/W R/W 0x0 0x00 [0] Rst_rx R/ set 0x0 Description Must be set to zero Port number associated with Rst_tx field (below). 0000 = Port 1 0001 = Port 2 0010 = Port 3 0011 = Port 4 0100 = Port 5 0101 = Port 6 0110 = Port 7 0111 = Port 8 Bundle number associated with Rst_tx field (below) Valid when Rst_tx is set 0 = When Rst_tx is done during bundle close procedure 1 = When Rst_tx is done during bundle open procedure This bit is also used in high-speed mode. If set, the relevant transmit payload type machine resets its variables (should be given with bundle number and a proper value of the RST_tx_open/close bit). The CPU should poll this bit until it is 0 meaning, “reset acknowledged”. This bit is also used in high-speed mode. Must be set to zero Bundle number associated with Rst_rx 1 = Packet classifier generates a reset frame (Error! Reference source not found. and Rst_rx_internal_bundle_num are valid). The CPU should poll this bit until it finds 0; this means “reset acknowledged”. 166 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The TDM_cond_data_reg register below holds four octets to be transmitted as conditioning data in the TDM direction (i.e. toward the cross-connection block) during jitter buffer underrun. This data applies to all bundle types. TDM_cond_data_reg 0x30 Bits Data Element Name R/W Reset Value [31:24] TDM_cond_octet_a R/W 0x00 [23:16] TDM_cond_octet_b R/W 0x00 [15:8] TDM_cond_octet_c R/W 0x00 [7:0] TDM_cond_octet_d R/W 0x00 Description TDM Conditioning Octet A Must be set to 0x7E for HDLC bundles Also used in high-speed mode TDM Conditioning Octet B Must be set to 0x7E for HDLC bundles TDM Conditioning Octet C Must be set to 0x7E for HDLC bundles TDM Conditioning Octet D Must be set to 0x7E for HDLC bundles The ETH_cond_data_reg register below holds four octets to be transmitted as conditioning data towards the packet network (i.e. toward the Ethernet MAC) when no valid data is available from the TDM port. This applies only to AAL1 or SAToP/CESoPSN bundles. Tx_cond_octet_type in the Bundle Configuration Tables specifies which of these octets is used on a per-bundle basis. ETH_cond_data_reg 0x34 Bits [31:24] [23:16] [15:8] [7:0] Data Element Name ETH_cond_octet_d ETH_cond_octet_c ETH_cond_octet_b ETH_cond_octet_a R/W Reset Value R/W R/W R/W R/W 0x00 0x00 0x00 0x00 R/W Reset Value Description Ethernet Conditioning octet D Ethernet Conditioning octet C Ethernet Conditioning octet B Ethernet Conditioning octet A Packet_classifier_cfg_reg0 0x38 Bits [31:0] Data Element Name Ipv4_add1 R/W Description 0x0 This field holds the first of three IPv4 addresses for the device. The other addresses are held in register Packet_classifier_cfg_reg1 and Packet_classifier_cfg_reg8. Relevant only for packets received from the Ethernet port. 3 3 Packet_classifier_cfg_reg1 0x3C Bits [31:0] Data Element Name Ipv4_add2 R/W R/W Reset Value Description 0x0 This field holds the second of three IPv4 addresses for the device. The other addresses are held in register Packet_classifier_cfg_reg0 and Packet_classifier_cfg_reg8. Relevant only for packets received from the Ethernet port. 3 3 Packet_classifier_cfg_reg2 0x40 Bits [31:0] Data Element Name MAC_add1 R/W R/W Reset Value Description 0x0 This field holds bits 31:0 of the first of two MAC addresses for the device. The upper bits of this MAC address are in Packet_classifier_cfg_reg3. The other MAC address is in Packet_classifier_cfg_reg5 and 3 167 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Packet_classifier_cfg_reg2 0x40 Bits Data Element Name R/W Reset Value Description Packet_classifier_cfg_reg6. Relevant only for packets received from Ethernet port. Packet_classifier_cfg_reg3 0x44 Bits [31:29] [28] [27] Data Element Name Reserved Discard_packet_length_ mismatch Ip_udp_bn_loc R/W Reset Value - 0x0 Must be set to zero R/W 0x0 Must be set to zero R/W 0x0 Description 0 = Bundle identifier is located in the source UDP port number field in IP/UDP packets 1 = Bundle identifier located in the destination UDP port number field in IP/UDP packets See section 10.6.13.2. Used for UDP only: 00 = Packet_classifier_cfg_reg4.TDMoIP_port_num1/2 is ignored (no checking is performed) 01 = TDMoIP_port_num1/2 should be compared to the source UDP port number field in IP/UDP packets 10 = TDMoIP_port_num1/2 should be compared to the destination UDP port number field in IP/UDP packets 11 = Reserved See section 10.6.13.1. Packets with Ethertype = CPU_dest_ether_type. See section 10.6.13. 0 = Forward to CPU 1 = Discard TDMoP OAM packets. See section 10.6.13. 0 = Forward to CPU 1 = Discard TDMoP packets whose Rx_Bundle_Identifier doesn’t match any of the chip’s assigned bundle numbers or OAM bundle numbers. See section 10.6.13. 0 = Forward to CPU 1 = Discard IP/UDP packets whose UDP destination/source port number is different from Packet_classifier_cfg_reg4. TDMoIP_Port_Num1 or 2. See section 10.6.13. 0 = Forward to CPU 1 = Discard See TDMoIP_port_num_loc above. IP packets whose IP protocol field is different from UDP or L2TPv3. See section 10.6.13. 0 = Forward to CPU 1 = Discard ARP packets whose IP destination address matches one of the chip’s IPv4 addresses. See section 10.6.13. 0 = Forward to CPU 1 = Discard Packets with Ethertype different from IP, MPLS or ARP. See section 10.6.13. 0 = Forward to CPU 1 = Discard IP packets whose IP destination address does not match chip’s IP addresses. See section 10.6.13. 0 = Forward to CPU 1 = Discard 3 [26:25] TDMoIP_port_num_loc R/W 0x0 [24] Discard_switch_8 R/W 0x0 [23] Discard_switch_7 R/W 0x0 [22] Discard_switch_6 R/W 0x0 3 [21] Discard_switch_5 R/W 0x0 [20] Discard_switch_4 R/W 0x0 [19] Discard_switch_3 R/W 0x0 [18] Discard_switch_2 R/W 0x0 [17] Discard_switch_1 R/W 0x0 168 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Packet_classifier_cfg_reg3 0x44 Bits Data Element Name R/W Reset Value [16] Discard_switch_0 R/W 0x0 [15:0] MAC_add1 R/W 0x0000 R/W Reset Value Description ARP packets whose IP destination address does not match chip’s addresses. See section 10.6.13. 0 = Forward to CPU 1 = Discard This field holds bits 47:32 of the first of two MAC addresses for the device. The lower bits of this MAC address are in Packet_classifier_cfg_reg2. The other MAC address is in Packet_classifier_cfg_reg5 and Packet_classifier_cfg_reg6. Relevant only for packets received from Ethernet port. 3 Packet_classifier_cfg_reg4 0x48 Bits Data Element Name [31:16] TDMoIP_port_num2 R/W 0x085E [15:0] TDMoIP_port_num1 R/W 0x085E R/W Reset Value Description Packets with UDP destination port number equal to this field are recognized as TDMoIP packets. See section 10.6.13.1. Packets with UDP destination port number equal to this field are recognized as TDMoIP packets. See section 10.6.13.1. Packet_classifier_cfg_reg5 0x4C Bits [31:0] Data Element Name MAC_add2 R/W Description This field holds bits 31:0 of the second of two MAC addresses for the device. The upper bits of this MAC address are in Packet_classifier_cfg_reg6. The other MAC address is in Packet_classifier_cfg_reg2 and Packet_classifier_cfg_reg3. Relevant only for packets received from Ethernet port. 0x0 3 3 Packet_classifier_cfg_reg6 0x50 Bits Data Element Name R/W Reset Value [31:16] Ip_udp_bn_mask_n R/W 0x0000 [15:0] MAC_add2 R/W 0x0000 Description This mask Indicates the width of the bundle identifier. For example, if the desired width is 8 bits, the following should be written to this field: 0000000011111111b. See section 10.6.13.2. This field holds bits 47:32 of the second of two MAC addresses for the device. The lower bits of this MAC address are in Packet_classifier_cfg_reg5. The other MAC address is in Packet_classifier_cfg_reg2 and Packet_classifier_cfg_reg3. Relevant only for packets received from Ethernet port. 3 3 3 Packet_classifier_cfg_reg7 0x54 Bits [31:16] Data Element Name CPU_dest_ether_type R/W R/W Reset Value Description 0x0800 Ethertype which identifies packets destined for the CPU. Such packets are sent to CPU or discarded as specified by Packet_classifier_cfg_reg3.Discard_switch_[8:0]. This field must be set to a value greater than 0x5DC. See 3 169 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Packet_classifier_cfg_reg7 0x54 Bits [15:0] Data Element Name vlan_2nd_tag_identifier R/W Reset Value R/W 0x8100 R/W Reset Value Description section 10.6.13.5. Second VLAN tag protocol identifier (the first is 0x8100). See section 10.6.13.4. Packet_classifier_cfg_reg8 0x58 Bits Data Element Name Description This field holds the third of three IPv4 addresses for the device. The other addresses are held in register Packet_classifier_cfg_reg0 and Packet_classifier_cfg_reg1. Relevant only for packets received from the Ethernet port. If a third IPv4 address is not needed, this field must be configured to the same value as Ipv4_add1. 3 [31:0] Ipv4_add3 R/W 0x0 R/W Reset Value 3 Packet_classifier_cfg_reg9 0x5C Bits Data Element Name Description Ethertype for MEF packets. Must be set to a value greater than 0x5DC. See section 10.6.13.5. Ethertype for MEF OAM packets. Must be set to a value greater than 0x5DC. See section 10.6.13.3. [31:16] Mef_ ether_type R/W 0x88d8 [15:0] Mef_oam_ether_type R/W 0x0800 R/W Reset Value Description R/W 0x0 This field holds bits 127:96 of the first of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg14. Relevant only for packets received from the Ethernet port. R/W Reset Value Description R/W 0x0 This field holds bits 95:64 of the first of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg14. Relevant only for packets received from the Ethernet port. R/W Reset Value Description 0x0 This field holds bits 63:32 of the first of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg14. Relevant only for packets received from the Ethernet port. Packet_classifier_cfg_reg10 0x60 Bits [31:0] Data Element Name Ipv6_add1[127:96] Packet_classifier_cfg_reg11 0x64 Bits [31:0] Data Element Name Ipv6_add1[95:64] Packet_classifier_cfg_reg12 0x68 Bits [31:0] Data Element Name Ipv6_add1[63:32] R/W 170 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Packet_classifier_cfg_reg13 0x6C Bits [31:0] Data Element Name Ipv6_add1[31:0] Reset Value Description R/W 0x0 This field holds bits 31:0 of the first of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg14. Relevant only for packets received from the Ethernet port. R/W Reset Value Description R/W 0x0 This field holds bits 127:96 of the second of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg10. Relevant only for packets received from the Ethernet port. If a second IPv6 address is not needed, this field must be configured to the same value as Ipv6_add1. R/W Reset Value Description R/W 0x0 This field holds bits 95:64 of the second of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg10. Relevant only for packets received from the Ethernet port. If a second IPv6 address is not needed, this field must be configured to the same value as Ipv6_add1. R/W Reset Value Description R/W 0x0 This field holds bits 63:32 of the second of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg10. Relevant only for packets received from the Ethernet port. If a second IPv6 address is not needed, this field must be configured to the same value as Ipv6_add1. R/W Reset Value Description R/W 0x0 This field holds bits 31:0 of the second of two IPv6 addresses for the device. The other address is held in registers starting with Packet_classifier_cfg_reg10. Relevant only for packets received from the Ethernet port. If a second IPv6 address is not needed, this field must be configured to the same value as Ipv6_add1. R/W Reset Value Description R/W 0x0000 Indicates which of the 16 most significant bits of the control word should be compared to identify VCCV OAM packets. The values of the bits to be compared are stored R/W Packet_classifier_cfg_reg14 0x70 Bits [31:0] Data Element Name Ipv6_add2[127:96] 3 Packet_classifier_cfg_reg15 0x74 Bits [31:0] Data Element Name Ipv6_add2[95:64] 3 Packet_classifier_cfg_reg16 0x78 Bits [31:0] Data Element Name Ipv6_add2[63:32] 3 Packet_classifier_cfg_reg17 0x7C Bits [31:0] Data Element Name Ipv6_add2[31:0] 3 Packet_classifier_cfg_reg18 0x80 Bits [31:16] Data Element Name VCCV_oam_mask_n 171 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Packet_classifier_cfg_reg18 0x80 Bits [15:0] Data Element Name VCCV_oam_value R/W Reset Value R/W 0x0000 R/W Reset Value R/W 0x00 - 0x0000 R/W 0x000 Description in the VCCV_oam_value field below. See section 10.6.13.3. Indicates the value of the 16 most significant bits of the control word for identifying VCCV OAM packets. The combination of this field and VCCV_oam_mask_n above specifies how the device does VCCV OAM identification. For example, to identify VCCV OAM packets when the 4 most significant bits of the control word are equal to 0x1, then set this field to 0x1000 and set VCCV_oam_mask_n to 0xF000. See section 10.6.13.3. CPU_rx_arb_max_fifo_level_reg 0xD4 Bits Data Element Name [31:25] Tx_arb_max_fifo_level [24:10] Reserved [9:0] Rx_arb_max_fifo_level Description Indicates the maximum level, which the TX_FIFO has reached (given in dwords) since the last time this register was read (or since reset). The value of the field is automatically reset when this register is read by the CPU. Must be set to zero Indicates the maximum level, which the RX_FIFO has reached (given in dwords) since the last time this register was read (or since reset). The value of the field is automatically reset when this register is read by the CPU. 172 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.1.2 TDMoP Status Registers The General_stat_reg register has latched status registers that indicate hardware events. For each bit, the value 1 indicates that the event occurred. Writing 1 to a bit clears it to 0. Writing 0 to a bit does not change its value. General_stat_reg 0xE0 Bits Data Element Name R/W Reset Value [31:10] [9] Reserved MAC_Rx_fifo_overrun R/W 0x0 0x0 [8] Ipver_err_status R/W 0x0 [7] Rx_fifo_sof_err R/W 0x0 [6] TDM_CPU_buff_err R/W 0x0 [5] Rx_fifo_full R/W 0x0 [4] MPLS_err R/W 0x0 [3] OAM_ETH_to_CPU_q_full R/W 0x0 [2] OAM_SW_buff_err R/W 0x0 [1] Non_OAM_ETH_to_CPU_q_full R/W 0x0 [0] Non_OAM_SW_buff_err R/W 0x0 R/W Reset Value R/O 0xABCD EF01 Description Must be set to zero MAC Rx FIFO overflowed Indicates that a packet was discarded due to IP version error Rx FIFO was flushed due to bundle configuration error Frames received from TDM discarded due to lack of buffers at TDM TO CPU pool Packet received from Ethernet discarded because Rx FIFO is full Received MPLS packet with more than three labels OAM packet received from Ethernet and destined to CPU discarded because ETH TO CPU queue is full. OAM packet received from Ethernet and destined to CPU discarded due to lack of SW buffers Non-OAM packet received from Ethernet and destined to CPU discarded because ETH TO CPU queue is full. Non-OAM packet received from Ethernet and destined to CPU discarded due to lack of SW buffers. Version_reg 0xE4 Bits [31:0] Data Element Name Chip_version_reg Description Contains the chip version for the TDMoP block The Port[n]_sticky_reg1 register has latched status bits that indicate port hardware events. For each bit, the value 1 indicates that the event occurred. Writing 1 to a bit clears it to 0. Writing 0 to a bit does not change its value. The index n indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Port[n]_sticky_reg1 0xE4+n*4 Bits Data Element Name R/W Reset Value [31:8] [7] Reserved Dpll_ovrflw R/W 0x0 0x0 [6] Cdc_detected R/W 0x0 [5] [4] [3] Smart_self_test_failed Smart_timeout_expired Sticky_filter_ovrflw R/W R/W R/W 0x0 0x0 0x0 [2] Virtual_jitter_buffer_or_ur R/W 0x0 [1] [0] Reacquisition_alarm Adapt_freeze_state R/W R/W 0x0 0x0 Description Must be set to zero Port clock recovery DPLL overflowed Port clock recovery detected constant delay change in the network Provided for debug purposes Provided for debug purposes Port clock recovery loop filter overflowed Port clock recovery virtual jitter buffer reached overrun/ underrun state Provided for debug purposes Port clock recovery mechanism is in freeze state 173 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The Port[n]_stat_reg1 register has real-time (not latched) status fields. The index n indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Port[n]_stat_reg1 0x100+n*8 Bits Data Element Name R/W Reset Value [31:25] [24] [23:5] Reserved Smart_disabled DPLL_level RO RO 0x0 0x0 0x0 [4:2] Adapt_current_state RO 0x0 [1] RTS RO 0x0 [0] TSA_int_act_blk RO 0x0 Description Must be set to zero not documented not documented Port n clock recovery current state: 0 = Idle 2 = Acquisition 3 = Tracking1 4 = Tracking2 5 = Recover from Underrun/Overrun When the Port[n]_cfg_reg.Int_type field specifies a serial interface, the value of the TDMn_RSIG_RTS pin--which behaves as RTS (Request To Send)—can be read from this bit. Indicates which bank is active: 0 = Port n TSA bank1 is active 1 = Port n TSA bank2 is active The Port[n]_stat_reg2 register has real-time (not latched) status fields. The index n indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Port[n]_stat_reg2 0x104+n*8 Bits [31:29] [28:4] [3:0] Data Element Name R/W Reset Value RO RO RO 0x0 0x0 0x0 Bw_tunn Curr_pdv_std Convergence_counter Description not documented not documented not documented 11.4.2 Bundle Configuration Tables The base address for the TDMoP bundle configuration tables is 0x8,000. Bundle configurations are 160 bits long and therefore span five 32-bit words. The least-significant 32-bit word of a bundle configuration is located at address offset 0x000 + BundleNumber x 4. The most-significant 32-bit word is located at address offset 0x400 + BundleNumber x 4. There are 64 bundles numbered 0 to 63. In the register descriptions in this section the index n indicates bundle number: 0 to 63. Each bundle can be one of three different types: AAL1, HDLC or SAToP/CESoPSN. Subsections 11.4.2.1 through 11.4.2.3 describe the bundle configuration fields for each of the four types. Some fields are common to two or more of the bundle types. The payload type is specified in the Payload_type_machine field, bits 21:20 of xxxx_Bundle[n]_cfg[63:32]. 11.4.2.1 AAL1 Bundle Configuration In the register descriptions below, the index n indicates the bundle number: 0 to 63. AAL1_Bundle[n]_cfg[31:0] 0x000+n*4 Bits [31:0] Data Element Name Rx_bundle_identifier R/W Reset Value R/W None Description Holds the Rx bundle number 174 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 AAL1_Bundle[n]_cfg[63:32] 0x100+n*4 Bits Data Element Name R/W Reset Value [31:22] Rx_max_buff_size R/W None [21:20] Payload_type_machine R/W None [19] Tx_RTP (Tx is toward Ethernet MAC) R/W None [18] Control_Word_exists R/W None [17:16] Tx_dest R/W None [15:9] Rx_max_lost_packets R/W None [8:4] Number_of_ts R/W None [3] Rx_ discard_sanity_fail R/W None [2:1] Header_type R/W None [0] Tx_R_bit R/W None R/W Reset Value Description The size of the jitter buffer. See section 10.6.10. Also the maximum time interval for which data is stored. The resolution is determined by the interface type as follows: For framed E1/T1: 0.5 ms. For unframed E1/T1 or serial bundles: 1024 bit periods For high-speed interface: 4096 bit periods. Allowed values: For T1-SF: Rx_max_buff_size  0x2FC For T1-ESF: Rx_max_buff_size  0x2F9 For E1-MF: Rx_max_buff_size  0x3FB For all interface types, the Rx_max_buff_size must be greater than Rx_PDVT + PCT (Packet Creation Time). Note: For unframed, the Rx_max_buff_size resolution is different than PDVT resolution. 00 = HDLC 01 = AAL1 10 = Reserved 11 = SAToP/CESoPSN 0 = RTP header does not exist in transmitted packets 1 = RTP header exists in transmitted packets 0 = Control word does not exist 1 = Control word exists (default, standard mode) Destination of packets: 00 = Reserved 01 = Ethernet 10 = CPU 11 = TDM (Cross-connect). See section 10.6.11.10. The maximum number of Rx packets inserted upon detection of lost packets One less than number of assigned timeslots per bundle. When Rx_AAL1_bundle_type=’00’ (unstructured) then Number_of_ts=31; this applies also to high speed mode. 0 = Discard AAL1 packets which fail the sanity check 1 = Don’t discard the above packets See section 10.6.13.8. 00 = MPLS 01 = UDP over IP 10 = L2TPv3 over IP 11 = MEF 0 = Don’t set R bit in header of transmitted packets 1 = Set R bit AAL1_Bundle[n]_cfg[95:64] 0x200+n*4 Bits Data Element Name [31] Reserved R/W None [30] Tx_cond_data R/W None [29] Tx_dest_framing R/W None [28] Tx_CAS_source R/W None [27:13] [12:11] Reserved Tx_AAL1_bundle_type R/W None None Description Must be set to zero 0 = Regular operation 1 = Use conditioning octet specified by Tx_cond_octet_type for transmitted packets Only applies to T1 framed traffic. See section 10.6.5. 0 = Destination framer operates in SF framing 1 = Destination framer operates in ESF framing Source of transmit CAS bits: 0 = TDMoP block’s RSIG input 1 = Tx software CAS table (section 11.4.9) Must be set to zero Bundle type of transmitted payload: 175 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 AAL1_Bundle[n]_cfg[95:64] 0x200+n*4 Bits Data Element Name R/W Reset Value [10:6] Reserved R/W None [5:4] Tx_cond_octet_type R/W None [3:2] Rx_AAL1_bundle_type R/W None [1:0] Protection_mode R/W None Description 00 = Unstructured 01 = Structured 10 = Structured with CAS 11 = Reserved Must be set to zero Selects the ETH_cond_octet from ETH_cond_data_reg to be transmitted towards packet network: 00 = ETH_cond_octet_a 01 = ETH_cond_octet_b 10 = ETH_cond_octet_c 11 = ETH_cond_octet_d Bundle type of received packets: 00 = Unstructured 01 = Structured 10 = Structured with CAS 11 = Reserved 00 = Stop sending packets 01 = Send each packet once with the first header 10 = Send each packet once with the second header 11 = Send each packet twice: once with the first header and once with the second header See section 10.6.16. AAL1_Bundle[n]_cfg[127:96] 0x300+n*4 Bits Data Element Name R/W Reset Value [31] Reserved R/W None [30:16] Rx_PDVT R/W None [15] Rx_CAS_src R/W None [14] Rx_cell_chk_ignore R/W None [13] Reserved R/W None [12] OAM_ID_in_CW R/W None [11] Rx_discard R/W None [10] Rx_dest R/W None [9:8] Tx_MPLS_labels_l2tpv3_cookies R/W None Description Must be set to zero Packet delay variation time value for AAL1 bundles. See section 10.6.10. Bits [30:26] are used only when unframed. The resolution is determined by the interface type as follows: For framed E1/T1: 0.5 ms For unframed E1/T1 or serial bundles: 32 bit periods For high speed interface: 128 bit periods Allowed values: Minimum allowed value: 3 (for all interfaces types) For T1 SF, ESF: Rx_PDVT < 0x300 Source of signaling conditioning towards TDM: 0 = SDRAM signaling jilter buffer 1 = Rx SW CAS table (section 11.4.13) 0 = Discard AAL1 SAR PDUs with header parity/CRC errors 1 = Ignore AAL1 SAR PDU header (CRC /parity) checks Including AAL1 pointer parity error Must be set to zero 0 = Ignore the OAM packet indication in the control word 1 = Check the OAM packet indication in the control word See section 10.6.13.3. 0 = Pass through all incoming packets 1 = Discard all incoming packets 0 = TDM 1 = CPU For MPLS: 00 = Reserved 01 = One label in the TX MPLS stack 10 = Two labels in the TX MPLS stack 11 = Three labels in the TX MPLS stack For L2TPv3: 176 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 AAL1_Bundle[n]_cfg[127:96] 0x300+n*4 Bits Data Element Name R/W Reset Value [7:4] Port_num R/W None [3:2] Tx_VLAN_stack R/W None [1] Rx_bundle_identifier_valid R/W None [0] Reserved R/W None Description 00 = No cookies in the TX L2TPv3 header 01 = One cookie in the TX L2TPv3 header 10 = Two cookies in the TX L2TPv3 header 11 = Reserved The port number which the bundle is assigned to: 0000 = Port 1, 0111=Port 8 00 = No VLAN tag in header 01 = One VLAN tag exists in header 10 = Two VLAN tags exist in header 11 = Reserved Not valid for Rx. Not used by Tx AAL1 but by Ethernet transmitter block 0 = Rx_bundle_identifier entry isn't valid: If the incoming frame bundle identifier isn't found in the whole packet classifier table, the incoming frame is handled according to packet classifier discard switches in Packet_classifier_cfg_reg3. 1 = Rx_Bundle_Identifier entry is valid Must be set to zero AAL1_Bundle[n]_cfg[159:128] 0x400+n*4 Bits Data Element Name R/W Reset Value [31:23] Reserved R/W None [22] Rx_RTP R/W None [21:20] Rx_L2TPV3_cookies R/W None [19:15] [14:10] Reserved Packet_size_in_cells R/W R/W None None [9:5] Tx_bundle_identifier R/W None [4:0] Reserved R/W None Description Must be set to zero 0 = RTP header does not exist in received packets 1 = RTP header exists in received packets For MPLS: 00 = Reserved 01 = One label in the received MPLS stack 10 = Two label in the received MPLS stack 11 = Three label in the received MPLS stack For L2TPv3: 00 = No cookies in the received L2TPv3 header 01 = One cookie in the received L2TPv3 header 10 = Two cookies in the received L2TPv3 header 11 = Reserved Must be set to zero. AAL1 SAR PDUs per frame: 1 - 30 Tx bundle Identifier upper bits Used only for TX_AAL1 old format Must be set to zero 11.4.2.2 HDLC Bundle Configuration In the register descriptions below, the index n indicates the bundle number: 0 to 63. HDLC_Bundle[n]_cfg[31:0] 0x000+n*4 Bits [31:0] Data Element Name R/W Reset Value R/W None Rx_bundle_identifier Description Holds the Rx bundle number HDLC_Bundle[n]_cfg[63:32] 0x100+n*4 177 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bits Data Element Name R/W Reset Value [31:22] Reserved R/W None [21:20] Payload_type_machine R/W None [19] Tx_RTP R/W None [18] Control_Word_exists R/W None [17:16] Tx_dest R/W None [15:11] Reserved R/W None [10:9] Packet_SN_mode R/W None [8:3] Reserved R/W None [2:1] Header_type R/W None [0] Tx_R_bit R/W None Description Must be set to zero 00 = HDLC 01 = AAL1 10 = Reserved 11 = SAToP/CESoPSN 0 = RTP header does not exist in transmitted packets 1 = RTP header exists in transmitted packets 0 = Control word does not exist 1 = Control word exists (default, standard mode) Destination of packets: 00 = Reserved 01 = Ethernet 10 = CPU 11 = Reserved Must be set to zero. Transmitted and expected sequence number is: 00 = Always 0 01 = Incremented normally in wrap-around manner 10 = Reserved 11 = Incremented in wrap-around manner but skips 0 Must be set to zero. 00 = MPLS 01 = UDP over IP 10 = L2TPv3 over IP 11 = MEF 0 = Don’t set R bit in header of transmitted packets 1 = Set R bit HDLC_Bundle[n]_cfg[95:64] 0x200+n*4 [31:16] [15:13] Reserved Reserved R/W R/W Reset Value None None [12:2] Tx_max_frame_size R/W None [1:0] Reserved R/W None Bits Data Element Name R/W Description Must be set to zero Must be set to zero Tx HDLC maximum transmitted packet size in bytes. This does not include FCS. Must be set to zero HDLC_Bundle[n]_cfg[127:96] 0x300+n*4 [31:28] Reserved R/W Reset Value None [27] Tx_stop R/W None [26:13] Reserved [12] OAM_ID_in_CW R/W None [11] Rx_discard R/W None [10] Rx_dest R/W None [9:8] Tx_MPLS_lables_l2tpv3_cookies R/W None Bits Data Element Name R/W None Description Must be set to zero 0 = Send one packet with the 1st header 1 = Stop transmission Must be set to zero 0 = Ignore the OAM packet indication in the control word 1 = Check the OAM packet indication in the control word 0 = Pass through all incoming packets 1 = Discard all incoming packets 0 = TDM 1 = CPU For MPLS: 00 = Reserved 01 = One label in the TX MPLS stack 10 = Two labels in the TX MPLS stack 11 = Three labels in the TX MPLS stack For L2TPv3: 178 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 HDLC_Bundle[n]_cfg[127:96] 0x300+n*4 Bits Data Element Name R/W Reset Value [7:4] Port_num R/W None [3:2] Tx_VLAN_stack R/W None [1] Rx_Bundle_Identifier_valid R/W None [0] Reserved R/W None Description 00 = No cookies in the TX L2TPv3 header 01 = One cookie in the TX L2TPv3 header 10 = Two cookies in the TX L2TPv3 header 11 = Reserved The port number which the bundle is assigned to: 0000 = Port 1, 0111=Port 8 00 = No VLAN tag in header 01 = One VLAN tag exists in header 10 = Two VLAN tags exist in header 11 = Reserved Not valid for Rx. Not used by Tx AAL1 but by Ethernet MAC transmit block 0 = Rx_bundle_identifier entry isn't valid: If the incoming frame bundle identifier isn't found in the whole packet classifier table, the incoming frame is handled according to discard switches in (Packet_classifier_cfg_reg3) 1 = Rx_Bundle_Identifier entry is valid Must be set to zero HDLC_Bundle[n]_cfg[159:128] 0x400+n*4 Bits Data Element Name R/W Reset Value 0x000 [31:22] Reserved [21:20] Rx_L2TPV3_cookies R/W None [19:16] Reserved R/W None [15:0] Tx_IP_checksum R/W None Description Must be set to zero For MPLS: 00 = Reserved 01 = One label in the received MPLS stack 10 = Two label in the received MPLS stack 11 = Three label in the received MPLS stack For L2TPv3: 00 = No cookies in the received L2TPv3 header 01 = One cookie in the received L2TPv3 header 10 = Two cookies in the received L2TPv3 header 11 = Reserved IP header checksum for IP total length equal to zero Explain more. Also, why isn’t this in AAL1? 179 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.2.3 SAToP/CESoPSN Bundle Configuration In the register descriptions below, the index n indicates bundle number: 0 to 63. SAToP/CESoPSN_Bundle[n]_cfg[31:0] 0x000+n*4 Reset Bits Data Element Name R/W Value [31:0] Rx_bundle_identifier R/W None Description Holds the Rx bundle number SAToP/CESoPSN_Bundle[n]_cfg[63:32] 0x100+n*4 Reset Bits Data Element Name R/W Value [31:22] Rx_max_buff_size R/W None [21:20] Payload_type_machine R/W None [19] Tx_RTP R/W None [18] Control_Word_exists R/W None [17:16] Tx_dest R/W None [15:9] Rx_max_lost_packets R/W None [8:4] Number_of_ts R/W None [3] Rx_ discard_sanity_fail R/W None [2:1] Header_type R/W None [0] Tx_R_bit R/W None Description The size of the jitter buffer. See section 10.6.10. Also the maximum time interval for which data is stored. The resolution is determined by the interface type as follows: For framed E1/T1: 0.5 ms. For unframed E1/T1 or serial bundles: 1024 bit periods For high speed interface: 4096 bit periods. Allowed values: For T1-SF: RX_max_buff_size  2FChex For T1-ESF: RX_max_buff_size  0x2F9 For E1-MF: RX_max_buff_size  0x3FB For all interface types the RX_max_buff_size must be greater than Rx_PDVT + PCT (Packet Creation Time). Note: For unframed, the RX_max_buff_size resolution is different than the Rx_PDVT resolution. 00 = HDLC 01 = AAL1 10 = Reserved 11 = SAToP/CESoPSN 0 = RTP header does not exist in transmitted packets 1 = RTP header exists in transmitted packets 0 = Control word does not exist 1 = Control word exists (default, standard mode) Destination of packets: 01 = Ethernet 10 = CPU 11 = TDM-Rx (cross-connect) 00 = Reserved The maximum number of Rx packets inserted upon detection of lost packets One less than number of assigned timeslots per bundle. Not relevant for unstructured bundles, or when working in high speed mode. 0 = Don’t discard the above packets 1 = Discard SAToP/CESoPSN packets which fail the sanity check See section 10.6.13.8. 00 = MPLS 01 = UDP over IP 10 = L2TPv3 over IP 11 = MEF 0 = Don’t set R bit in header of transmitted packets 1 = Set R bit SAToP/CESoPSN_Bundle[n]_cfg[95:64] 0x200+n*4 Reset Bits Data Element Name R/W Value [31] Reserved R/W None Description Must be set to zero 180 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SAToP/CESoPSN_Bundle[n]_cfg[95:64] 0x200+n*4 Reset Bits Data Element Name R/W Value [30] Tx_cond_data R/W None [29] Tx_dest_framing R/W None [28] Tx_CAS_source R/W None [27] Reserved R/W None [26:16] TDM_frames_in_packet or TDM_bytes_in_packet R/W None [15:13] Reserved R/W None [12:11] Tx_SATOP_bundle_type R/W None [10:6] Reserved R/W None [5:4] Tx_cond_octet_type R/W None [3:2] Rx_SAToP/CESoPSN_ bundle_type R/W None [1:0] Protection_mode R/W None SAToP/CESoPSN_Bundle[n]_cfg[127:96] 0x300+n*4 Reset Bits Data Element Name R/W Value [31] Reserved R/W None [30:16] Rx_PDVT R/W None Description 0 = Regular operation 1 = Use conditioning octet specified by Tx_cond_octet_type for transmitted packets Only applies to T1 framed traffic 0 = Destination framer operates in SF framing 1 = Destination framer operates in ESF framing Source of transmit CAS bits: 0 = TDMoP block’s RSIG input 1 = Tx software CAS table See sections See section 10.6.5 and 11.4.9. Must be set to zero For structured and structured with CAS CESoPSN bundles: number of TDM frames included in each packet. For SAToP bundles: number of TDM bytes included in each packet. Note: For Structured with CAS bundles the allowed values are: E1 MF: 16, 8, 4, 2, 1 T1 SF/ESF: 24, 12, 8, 6, 4, 3, 2, 1 Must be set to zero Bundle type of transmitted payload: 00 = Unstructured 01 = Structured 10 = Structured with CAS 11 = Reserved Must be set to zero. Selects the ETH_cond_octet from ETH_cond_data_reg to be transmitted towards packet network: 00 = ETH_cond_octet_a 01 = ETH_cond_octet_b 10 = ETH_cond_octet_c 11 = ETH_cond_octet_d Bundle type of received packets: 00 = Unstructured 01 = Structured 10 = Structured with CAS 11 = Reserved 00 = Stop sending packets 01 = Send each packet once with the first header 10 = Send each packet once with the second header 11 = Send each packet twice: one with the first header and one with the second header Description Must be set to zero. Packet delay variation time value for SAToP/CESoPSN bundles. See section 10.6.10. Bits[30:26] are used only when unframed. The resolution is determined by the interface type as follows: For framed E1/T1: 0.5 ms For unframed E1/T1 or serial bundles: 32 bit periods For high speed interface: 128 bit periods Allowed values: Minimum allowed value: 3 (for all interface types) For T1 SF, ESF: Rx_PDVT < 0x300 181 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SAToP/CESoPSN_Bundle[n]_cfg[127:96] 0x300+n*4 Reset Bits Data Element Name R/W Value [15] Rx_CAS_src R/W None [14] Rx_enable_reorder R/W None [13] Reserved R/W None [12] OAM_ID_in_CW R/W None [11] Rx_discard R/W None [10] Rx_dest R/W None [9:8] Tx_MPLS_lables_l2tpv3_cookies R/W None [7:4] Port_num R/W None [3:2] Tx_VLAN_stack [1] Rx_Bundle_Identifier_valid R/W None [0] Reserved R/W None SAToP/CESoPSN_Bundle[n]_cfg[159:128] 0x400+n*4 Reset Bits Data Element Name R/W Value [31:24] Reserved 0x00 [23] Last_value_insertion R/W None [22] Rx_RTP R/W None [21:20] Rx_L2TPV3_cookies R/W None Description Source of signaling towards TDM: 0 = SDRAM signaling jitter buffer 1 = Rx SW CAS tables (section 11.4.13) 0 = Disable reorder 1 = Enable reorder Must be set to zero 0 = Ignore the OAM packet indication in the control word 1 = Check the OAM packet indication in the control word 0 = Pass through all incoming packets 1 = Discard all incoming packets 0 = TDM 1 = CPU For MPLS: 00 = Reserved 01 = One label in the TX MPLS stack 10 = Two labels in the TX MPLS stack 11 = Three labels in the TX MPLS stack For L2TPv3: 00 = No cookies in the TX L2TPv3 header 01 = One cookie in the TX L2TPv3 header 10 = Two cookies in the TX L2TPv3 header 11 = Reserved The port number which the bundle is assigned to: 0000 = Port 1, 0111=Port 8 00 = No VLAN tag in header 01 = One VLAN tag exists in header 10 = Two VLAN tags exist in header 11 = Reserved Not valid for Rx. Not used by Tx AAL1 but by Ethernet MAC transmitter block 0 = Rx_bundle_identifier entry isn't valid: If the incoming frame bundle identifier isn't found in the whole packet classifier table, the incoming frame is handled according to packet classifier discard switches in Packet_classifier_cfg_reg3 1 = Rx_Bundle_Identifier entry is valid Must be set to zero Description Must be set to zero Enables the insertion of the last received timeslot value in case packet loss was detected. This insertion is only performed if 3 frames or less of data per timeslot is lost. If more than 3 frames of data are lost, the insertion is not performed and, instead, conditioning is inserted as usual). 0 = last value insertion disabled 1 = last value insertion enabled 0 = RTP header doesn’t exist in received packets 1 = RTP header exists in received packets For MPLS: 00 = Reserved 01 = One label in the received MPLS stack 10 = Two label in the received MPLS stack 11 = Three label in the received MPLS stack For L2TPv3: 00 = No cookies in the received L2TPv3 header 182 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SAToP/CESoPSN_Bundle[n]_cfg[159:128] 0x400+n*4 Reset Bits Data Element Name R/W Value [19:16] [15:0] Reserved Tx_IP_checksum R/W R/W None None Description 01 = One cookie in the received L2TPv3 header 10 = Two cookies in the received L2TPv3 header 11 = Reserved Must be set to zero IP header checksum for IP total length equal to zero 183 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.3 Counters Each counter can be read from two different addresses. Reading from the first address—0x10,000 + offset—does not affect the counter value. Reading from the second address—0x11,000 + offset—causes the counter to be cleared after it is read. Table 11-6. Counters Types Address Counter Type 10,000 11,000 Counters – no clear on read Counters – clear on read Read/Write Reset Value Read Only Read Only-Clear on Read None None When reading from counters wider than 16 bits in 16-bit mode, use the following procedure: 1. Read from address 2, i.e. H_AD[1]=1. All 32 bits are internally latched and bits 15:0 are output on H_D[15:0]. 2. Read from address 0, i.e. H_AD [1]=0. Bits 31:16 are output on H_D[15:0]. 11.4.3.1 Per Bundle Counters In the register descriptions in this section, the index n indicates the bundle number: 0 to 63. Ethernet Rx Good Packets Counter 0x000+n*4 Bits [31:0] Data Element Name Good_packets_received R/W Reset Value R None Description Good packets received from Ethernet. Counter wraps around to 0 from its maximum value. Ethernet Tx Good Packets Counter 0x200+n*4 Bits [31:0] Data Element Name Good_packets_transmitted R/W Reset Value R None Description Good packets transmitted to Ethernet. Counter wraps around to 0 from its maximum value. Ethernet Rx Lost/Jump Event Packets Counter 0x300+n*4 Reset Bits Data Element Name R/W Value [31:16] [15:0] Reserved Lost_AAL1_packets_Rxd / R None None Description Must be set to zero Number of lost/jumped packets encountered by RX_AAL1, RX_HDLC or RX_SATOP payload machine: Lost_HDLC_packets_Rxd / Jumped_SAToP/CESoPSN_ packets_Rxd AAL1 and SAToP/CESoPSN – The counter is increased by the gap between the received packet sequence number and the expected packet sequence number (except when this gap is higher than the configured Rx_max_lost_packets value). HDLC – The counter is increased by the difference between the received packet sequence number and the expected packet sequence number only when this difference is smaller than 32768. SAToP/CESoPSN – the CPU can calculate the number of lost packets using the following equation: lost packets = (jumped packets – Rxd reordered packets) 184 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Ethernet Rx AAL1 Lost Cells / Rx SAToP/CESoPSN Discarded Packets Counter 0x400+n*4 Reset Bits Data Element Name R/W Description Value [31:16] [15:0] Reserved Lost_AAL1_Rxd_cells / Discarded_SAToP/CESoPSN_R xd_packets R None None Must be set to zero AAL1 – Number of lost AAL1 SAR PDUs SAToP/CESoPSN – Number of received packets that were discarded by SAToP/CESoPSN hardware machine. The types defects that cause packets to be discarded are specified by bits 23:20 of General_cfg_reg2. TDM Tx HDLC Frames with Error Counter 0x500+n*4 Reset Bits Data Element Name R/W Value [31:16] [15:0] Reserved TDM_HDLC_err_frames R None None Description Must be set to zero Number of HDLC frames from TDM with any error, including CRC/alignment/abort/short/long. Counter sticks at its maximum value and does not roll over to 0. TDM Tx HDLC Good Frames Counter 0x600+n*4 Reset Bits Data Element Name R/W Value [31:16] [31:0] Reserved TDM_HDLC_good_frames R None None Description Must be set to zero HDLC good frames received from TDM (passed CRC). Counter wraps around to 0 from its maximum value. TDM Rx SAToP/CESoPSN Reordered Packets / HDLC/AAL1 Packet SN Error Outside Window Counter 0x100+n*4 Reset Bits Data Element Name R/W Description Value [31:0] SAToP/CESoPSN_Rxd_re_order ed_packets / R None HDLC_packet_sn_oo_window / SAToP/CESoPSN – Number of received misordered packets that were successfully reordered by SAToP/CESoPSN hardware machine. The counter is incremented each time a miss-ordered packet is received and saved in the SDRAM. AAL1_packet_sn_oo_window HDLC – Counter incremented by 1 when SN error outside window is detected (window of 32,768). AAL1 – Counter incremented by 1 when SN error outside window is detected (window configured by Rx_max_lost_packets). Counter sticks at its maximum value and does not roll over to 0. 11.4.3.2 Per Jitter Buffer Index Counters In the register description in this section, the index n indicates the jilter buffer number: 0 to 255. Jitter Buffer Underrun/Overrun Events Counter 0x800+n*4 Reset Bits Data Element Name R/W Value [31:8] [7:0] Reserved JBC_events R None None Description Must be set to zero Number of jitter buffer underrun/overrun events. 185 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Jitter Buffer Underrun/Overrun Events Counter 0x800+n*4 Reset Bits Data Element Name R/W Value Description AAL1/SAToP/CESoPSN bundles – count of underrun events. AAL1 counter does not include underruns caused by pointer mismatches. HDLC bundles – count of overrun events. Counter sticks at its maximum value and does not roll over to 0. 11.4.3.3 General Counters Received Ethernet Bytes Counter 0xE00 Bits [31:0] Data Element Name ETH_bytes_received R/W R Reset Value 0x0000 0000 Description Total bytes received from Ethernet (good packets which passed CRC check only). CRC bytes are not counted. Counter wraps around to 0 from its maximum value. Transmitted Ethernet Bytes Counter 0xE04 Bits [31:0] Data Element Name ETH_bytes_transmitted R/W R Reset Value 0x0000 0000 Description Total bytes transmitted to Ethernet (good packets which passed CRC check only). CRC bytes are not counted. Counter wraps around to 0 from its maximum value. Classified Packets Counter 0xE08 Bits [31:0] Data Element Name Classified_packets R/W R Reset Value 0x0000 0000 Description Counts all packets that pass the packet classifier towards TDM or CPU and are not discarded. Counter wraps around to 0 from its maximum value. Received IP Checksum Errors Counter 0xE0C Bits [31:16] [15:0] Data Element Name Reserved IP_checksum_err_packets R/W Reset Value R 0x0000 0x0000 Description Must be set to zero Counts packets, detected by the packet classifier, as packets with IP checksum errors. Counter sticks at its maximum value and does not roll over to 0. 186 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.4 Status Tables The TDMoP status tables hold indications of hardware events. Except where noted, these are latched status bits. For each bit, the value 1 indicates that the event occurred. A bit set to 1 maintains its value unless the host CPU changes it. Writing 1 to a bit clears it to 0. Writing 0 to a bit does not change its value. The base address for the TDMoP status tables is 0x12,000. 11.4.4.1 Per Bundle Status Tables In the register descriptions in this section, the index n indicates the bundle number: 0 to 63. Rx Payload Type Machine Status 0x000+n*4 Bits Data Element Name [31:5] [4] Reserved Rx_SAToP/CESoPSN_frame_ count_err [3] Rx_AAL1_cell_hdr_err / R/W Reset Value - None R/W None Rx_SAToP/CESoPSN_jump_ove rflow_err / [2] [1] [0] Rx_AAL1_packet_sn_oo_ window / Rx_HDLC_packet_sn_oo_ window / Rx_SAToP/CESoPSN_packet_ sn_oo_window R/W Rx_AAL1_packet_sn_in_ window / Rx_HDLC_packet_sn_in_ window / Rx_SAToP/CESoPSN_ overrunn_discard R/W Rx_AAL1_ptr_mismatch / None None Description Must be set to zero SAToP/CESoPSN – packets that belong to structuredwith-CAS bundles were received with incorrect number of frames. AAL1 – AAL1 SAR PDUs received with incorrect SN (sequence number), protection fields (CRC/parity), corrected and not corrected header. SAToP/CESoPSN – Packets received with incorrect sequence number (higher than the expected sequence number and within the window allowed by the configured Rx_max_lost_packets value) and could not be inserted into the jitter buffer due to insufficient space. HDLC – Packet SN (Sequence Number) error outside window (window of 32768) SAToP/CESoPSN/AAL1 – Packets discarded due to incorrect Sequence Number (SN equal to the former or gap between them exceeds limit determined by Rx_max_lost_packets parameter). AAL1– Packet sequence number error within window (determined by Rx_max_lost_packets parameter) HDLC – Packet sequence number error within window (window of 32768) R/W None Rx_SAToP/CESoPSN_mis_ ordered_discard SAToP/CESoPSN – Packets discarded because the Jitter Buffer reached or was in the over-run state. AAL1 – AAL1 SAR PDUs received with pointer mismatch SAToP/CESoPSN – Packets discarded because they were considered duplicated, or because they were received too late to be inserted into the Jitter Buffer. Tx Payload Type Machine Status 0x200+n*4 Bits Data Element Name R/W Reset Value [31:5] [4] [3] Reserved Tx_HDLC_abort Tx_HDLC_short R/W R/W None None None [2] Tx_HDLC_long R/W None Description Must be set to zero HDLC – received frame from TDM with abort indication HDLC – received frame from TDM shorter than 4 bytes (including CRC bytes) HDLC – received frame from TDM longer than maximum allowed length (Tx_max_frame_size) 187 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Tx Payload Type Machine Status 0x200+n*4 Bits [1] [0] Data Element Name R/W Reset Value Tx_HDLC_align_err Tx_AAL1_framing_mismatch / Tx_HDLC_CRC_err / Tx_SAToP/CESoPSN_framing_ mismatch R/W R/W None None R/W Reset Value R/W None None R/W Reset Value Description HDLC – received frame from TDM with alignment error AAL1 – Start of TDM frame or start of TDM multiframe mismatch HDLC – received frame from TDM with CRC error SAToP/CESoPSN – Start of TDM frame or start of TDM multiframe mismatch Tx Buffers Status 0x400+n*4 Bits [31:1] [0] Data Element Name Reserved TDM_to_ETH_buff_err Description Must be set to zero Frames received from TDM were discarded due to lack of Tx buffers Packet Classifier Status 0x600+n*4 Bits Data Element Name [31:8] [7] Reserved Packet_length_error R/W None None [6] [5] [4:3] [2:1] Rx_sync_loss Rx_remote_fail Rx_Lbit_modifier Fragmentation_bits RO RO RO RO None None None None [0] Rx_length_mismatch_discard R/W None Description Must be set to zero Packet discarded due to mismatch between IP_length/ Control_word_length (for MPLS/MEF) and the actual length according to the following rules: IP packets – If IP_length > (actual payload + ip_hdr + CW + RTP) MPLS/MEF packets – If Control_word_length > actual payload length + CW + RTP received packet with “L” indication received packet with “R” indication received packet with “M” indication Relevant for SAToP/CESoPSN payload type machine: 00 = Entire (unfragmented) multi-frame structure is carried in a single packet 01 = Packet carrying the first fragment 10 = Packet carrying the last fragment 11 = Packet carrying an intermediate fragment Packet discarded due to mismatch between the packet length and the configuration (for AAL1 and SAToP/ CESoPSN bundles only) 11.4.4.2 Per JBC Index Tables In the register descriptions in this section, the index n indicates the jitter buffer number: 0 to 255. Rx JBC Status 0xC00+n*4 Bits [31:1] [0] Data Element Name Reserved JBC_overrun R/W Reset Value R/W None None Description Must be set to zero AAL1 – overrun has occurred HDLC – overrun has occurred SAToP/CESoPSN – overrun has occurred 188 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.5 Timeslot Assignment Tables Each port has two banks of timeslot assignment (TSA) tables, bank 1 and bank 2. While one bank is actively used by the TDMoP block, the other bank can be written by the CPU. The active bank for the port is specified by the TSA_act_blk field in the Port[n]_cfg_reg register. The base address for the TDMoP status tables is 0x18,000. From this base address:  Bank 1 TSA tables are located at offset 0x000 for ports 1 to 4 and 0x400 for ports 5 to 8.  Bank 2 TSA tables are located at offset 0x200 for ports 1 to 4 and 0x600 for ports 5 to 8. In the register descriptions in this section, the index port indicates the port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts is the timeslot number: 0 to 31. 189 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bank1 Timeslot Assignment Registers Bank2 Timeslot Assignment Registers Bits [31:21] [20] [19] Data Element Name Reserved Remote_loop Local_loop Ports 1 to 4: 0x000+(port-1)*0x80+ts*4 Ports 5 to 8: 0x400+(port-5)*0x80+ts*4 Ports 1 to 4: 0x200+(port-1)*0x80+ts*4 Ports 5 to 8: 0x600+(port-5)*0x80+ts*4 Reset R/W Description Value R/W R/W None None None [18] Structured_type R/W [17:16] Timeslot_width R/W None [15] First_in_bundle R/W None [14] Rx_assigned R/W None [13] Transmit_assigned R/W None [12:7] [6:5] [4:0] Bundle_number Reserved Jitter_buffer_index R/W R/W R/W None None None Must be set to zero When set, establishes a loop (per timeslot) between the data received from the Ethernet port and the data transmitted towards the Ethernet port. Notes: Usually the remote loop is activated on all timeslots assigned to a bundle. Only the TDM data is looped back. CAS information is not looped back. Available only when interface is configured to single clock mode (Port[n]_cfg_reg.Two_clocks=0). When set, establishes a loop (per timeslot) between the data received from the TDM port and the data transmitted towards the TDM port. The data transmitted towards the TDM port is delayed by one TDM frame vs. the received data. Notes: Usually the local loop is activated on all timeslots assigned to a bundle. Only the TDM data is looped back. CAS information is not looped back. Available only when interface is configured to single clock mode (Port[n]_cfg_reg.Two_clocks=0). Must be set for timeslots that are part of AAL1/CESoPSN bundles whose type is structured or structured-with-CAS. 00 = Reserved 01 =2 bits (only for HDLC bundles) 10 = 7 bits (only for HDLC bundles) 11 = 8 bits See section 10.6.4 for additional details. Must be set for the first timeslot of an AAL1 or CESoPSN bundle. Must be cleared for HDLC bundles. 0 = timeslot is not assigned for the Rx path 1 = timeslot is assigned for the Rx path 0 = timeslot is not assigned for the transmit path 1 = timeslot is assigned for the transmit path Number of the bundle that the timeslot is assigned to. Must be set to zero Jitter buffer index. This field indicates which jitter buffer is being used for the timeslot or bundle. It is also the index into the Jitter Buffer Status Table (section 11.4.8). If a timeslot is assigned to a bundle, the jitter buffer index must be configured to the number of the first timeslot assigned to the bundle. Otherwise, it must be configured to the timeslot number. See section 10.6.10. 190 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.6 CPU Queues The pools and queue referred to in this section are shown in the block diagram in Figure 10-49. Whenever a queue or pool level exceeds the associated threshold register, a latched status bit is set in the CPU_Queues_change register which generates an interrupt unless masked by the associated mask bit in the CPU_Queues_mask register. In this section the address offsets in parentheses apply when the CPU data bus is 16 bits wide (pin DAT_32_16_N=0). The base address for the TDMoP CPU queues is 0x20,000. Table 11-7. CPU Queues Addr Register Name Offset 0x00 (0x02) 0x04 (0x06) 0x08 (0x0A) 0x0C (0x0E) 0x10 (0x12) 0x14 (0x16) 0x18 (0x1A) 0x1C (0x1E) 0x20 (0x22) 0x24 (0x26) 0x28 (0x2A) 0x2C (0x2E) 0x30 (0x32) 0x34 (0x36) 0x38 (0x3A) 0x54 (0x56) Page TDM_to_CPU_pool_insert TDM_to_CPU_pool_level TDM_to_CPU_pool_thresh TDM_to_CPU_q_read TDM_to_CPU_q_level TDM_to_CPU_q_thresh CPU_to_ETH_q_insert CPU_to_ETH_q_level CPU_to_ETH_q_thresh ETH_to_CPU_pool_insert ETH_to_CPU_pool_level ETH_to_CPU_pool_thresh ETH_to_CPU_q_read ETH_to_CPU_q_level ETH_to_CPU_q_thresh Error! Reference source not found. Write to insert a buffer ID into the TDM-to-CPU Pool Number of buffers stored in the TDM-to-CPU Pool TDM-to-CPU Pool interrupt threshold Read to get a buffer ID from the TDM-to-CPU Queue Number of buffers in the TDM-to-CPU Queue TDM-to-CPU Queue interrupt threshold Write to insert a buffer ID into the CPU-to-ETH Queue Number of buffers in the CPU-to-ETH Queue CPU-to-ETH Queue interrupt threshold Write to insert a buffer ID into the ETH-to-CPU Pool Number of buffers stored in the ETH-to-CPU Pool ETH-to-CPU Queue interrupt threshold. Read to get a buffer ID from the ETH-to-CPU Queue Number of buffers in the ETH-to-CPU Queue. ETH-to-CPU Queue interrupt threshold Write to insert a buffer ID into the CPU-to-TDM Queue Error! Reference source not found. Number of buffers stored in the CPU-to-TDM Queue CPU_to_TDM_q_thresh Tx_return_q_read Tx_return _q _level Tx_return_q_thresh Rx_return_q_read Rx_return_q_level Rx_return_q_thresh CPU-to-TDM Queue interrupt threshold Read to get a buffer ID from the CPU-Tx-return Queue Number of buffers stored in the CPU-Tx-return Queue CPU-Tx-return Queue interrupt threshold Read to get a buffer ID from the CPU-Rx-return Queue Number of buffers stored in the CPU-Rx-return Queue CPU-Rx-return Queue interrupt threshold 3 3 3 3 3 3 3 3 3 3 3 3 3 3 0x58 (0x5A) 0x5C (0x5E) 0x60 (0x62) 0x64 (0x66) 0x68 (0x6A) 0x6C (0x6E) 0x70 (0x72) 0x74 (0x76) Description 3 3 3 3 3 3 3 191 192 192 192 192 192 192 193 193 193 193 193 194 194 194 Error! Bookmark not defined. Error! Bookmark not defined. 194 195 195 195 195 196 196 3 11.4.6.1 TDM-to-CPU Pool TDM_to_CPU_pool_insert 0x00 (0x02) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID R/W Reset Value WO 0x0 None Description Must be set to zero Writing to this address causes a single 13-bit buffer ID to be inserted to the TDM-to-CPU pool. Only bits [12:0] are written. The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of the 24 SDRAM address bits). 191 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 TDM_to_CPU_pool_level 0x04 (0x06) Bits [31:8] [7:0] Data Element Name R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 None R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 R/W Reset Value WO 0x0 None Reserved Level Description Must be set to zero Number of buffers currently stored in the pool. These are the buffers that are still available to the Tx payload type machines. Range: 0 to 128. TDM_to_CPU_pool_thresh 0x08 (0x0A) Bits [31:8] [7:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the pool is  this threshold, an interrupt is generated. Range: 0 to 128. 11.4.6.2 TDM-to-CPU Queue TDM_to_CPU_q_read 0x0C (0x0E) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID Description Must be set to zero Reading from this address extracts the first buffer ID from the TDM-to-CPU queue (bits [12:0]). The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of 24 SDRAM address bits). TDM_to_CPU_q_level 0x10 (0x12) Bits [31:8] [7:0] Data Element Name Reserved Level Description Must be set to zero Number of buffers currently stored in the queue. These are the buffers still waiting to be handled by the CPU. Range: 0 to 128. TDM_to_CPU_q_thresh 0x14 (0x16) Bits [31:8] [7:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, an interrupt is generated. Range: 0-128 11.4.6.3 CPU-to-ETH Queue CPU_to_ETH_q_insert 0x18 (0x1A) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID Description Must be set to zero Writing to this address causes a single 13-bit buffer ID to be inserted to the CPU-to-ETH queue. Only bits [12:0] are written. The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of the 24 SDRAM address bits). 192 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 CPU_to_ETH_q_level 0x1C (0x1E) Bits [31:6] [5:0] Data Element Name Reserved Level R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 R/W Reset Value WO 0x0 None R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 Description Must be set to zero Number of buffers currently stored in the queue. Range: 0 to 32. CPU_to_ETH_q_thresh 0x20 (0x22) Bits [31:6] [5:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, an interrupt is generated. Range: 0 to 32. 11.4.6.4 ETH-to-CPU Pool ETH_to_CPU_pool_insert 0x24 (0x26) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID Description Must be set to zero Writing to this address causes a single 13-bit buffer ID to be inserted to the ETH-to-CPU pool. Only bits [12:0] are written. The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of the 24 SDRAM address bits). ETH_to_CPU_pool_level 0x28 (0x2A) Bits [31:8] [7:0] Data Element Name Reserved Level Description Must be set to zero Number of buffers currently stored in the pool. These are the buffers that are still available to the Rx arbiter. Range: 0 to 128. ETH_to_CPU_pool_thresh 0x2C (0x2E) Bits [31:8] [7:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the pool is  this threshold, an interrupt is generated and only OAM packets are inserted in the ETH-to-CPU queue (non-OAM packets are discarded). Range: 0 to 128. 193 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.6.5 ETH- to-CPU Queue ETH_to_CPU_q_read 0x30 (0x32) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID R/W Reset Value RO 0x0 None R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 R/W Reset Value WO 0x0 None R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 Description Must be set to zero Reading from this address extracts the first buffer ID from the ETH-to-CPU queue (bits [12:0]). The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of 24 SDRAM address bits). ETH_to_CPU_q_level 0x34 (0x36) Bits [31:8] [7:0] Data Element Name Reserved Level Description Must be set to zero Number of buffers currently stored in the queue. These are the buffers still waiting to be handled by the CPU. Range: 0 to 128. ETH_to_CPU_q_thresh 0x38 (0x3A) Bits [31:8] [7:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, an interrupt is generated. Range: 0 to 128. 11.4.6.6 CPU-to-TDM Queue CPU_to_TDM_q_insert 0x54 (0x56) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID Description Must be set to zero Writing to this address causes a single 13-bit buffer ID to be inserted to the CPU-to-TDM queue. Only bits [12:0] are written. The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of the 24 SDRAM address bits). CPU_to_TDM_q_level 0x58 (0x5A) Bits [31:6] [5:0] Data Element Name Reserved Level Description Must be set to zero Number of buffers currently stored in the queue. Range: 0 to 32. CPU_to_TDM_q_thresh 0x5C (0x5E) Bits [31:6] [5:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, 194 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 CPU_to_TDM_q_thresh 0x5C (0x5E) Bits Data Element Name R/W Reset Value Description an interrupt is generated. Range: 0 to 32. 11.4.6.7 Tx Return Queue Tx_return_q_read 0x60 (0x62) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID R/W Reset Value RO 0x0 None R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 None Description Must be set to zero Reading from this address extracts the first buffer ID from the CPU Tx return queue (bits [12:0]). The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of 24 SDRAM address bits). Tx_return _q _level 0x64 (0x62) Bits [31:6] [5:0] Data Element Name Reserved Level Description Must be set to zero Number of buffers currently stored in the queue. Range: 0 to 32. Tx_return_q_thresh 0x68 (0x6A) Bits [31:6] [5:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, an interrupt is generated. Range: 0 to 32. 11.4.6.8 Rx Return Queue Rx_return_q_read 0x6C (0x6E) Bits [31:13] [12:0] Data Element Name Reserved Buffer ID Description Must be set to zero Reading from this address extracts the first buffer ID from the CPU Rx return queue (bits [12:0]). The buffer ID serves as the 13 MSbs of the buffer address in the SDRAM (i.e. corresponds to H_AD[23:11] out of 24 SDRAM address bits). 195 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Rx_return_q_level 0x70 (0x72) Bits [31:6] [5:0] Data Element Name R/W Reset Value RO 0x0 0x0 R/W Reset Value RO 0x0 0x0 Reserved Level Description Must be set to zero Number of buffers currently stored in the queue. Range: 0 to 32. Rx_return_q_thresh 0x74 (0x76) Bits [31:6] [5:0] Data Element Name Reserved Threshold Description Must be set to zero If the number of buffers in the queue is  this threshold, an interrupt is generated. Range: 0 to 32. 11.4.7 Transmit Buffers Pool The base address for the TDMoP transmit buffers pool is 0x28,000. See section 10.6.11.7 for details. 11.4.7.1 Per-Bundle Head Pointers In the register descriptions in this section, the index n indicates the bundle number: 0 to 63. The RAM should be initialized by CPU software to hold the heads of the linked lists for all open bundles. See section 10.6.11.7. Per-Bundle Head[n] 0x800+n*4 Bits Data Element Name R/W Reset Value [31:10] [9] Reserved Buffer_valid R/W None None [8:0] Buffer_id R/W None Description Must be set to zero 0 = The head contains non-valid information (i.e. the pool is empty). 1 = The head points to a valid free buffer. The full address of the buffer consists of the Tx buffer base address (specified in General_cfg_reg1. Tx_buf_base_add) concatenated with the buffer ID and eleven 0s. 11.4.7.2 Per-Buffer Next-Buffer Pointers A pointer to the next buffer in the linked list. In the register descriptions in this section, the index n indicates the buffer number: 0 to 511. The RAM should be initialized by CPU software to hold the linked lists for all the bundles. See section 10.6.11.7. Per Buffer Next Buffer[n] 0x000+n*4 Bits [31:9] [8:0] Data Element Name Reserved Buffer_offset R/W Reset Value R/W None None Description Must be set to zero The offset (ID) of the next buffer in the linked list in the SDRAM area dedicated to the Tx payload-type machines. The full address of the buffer consists of the Tx buffer base address (specified in General_cfg_reg1. Tx_buf_base_add) concatenated with the buffer offset and eleven 0s. 196 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.8 Jitter Buffer Control The base address for the TDMoP jitter buffer control is 0x30,000. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. The index n indicates the bundle number: 0 to 63. See section 10.6.10 for more information. Table 11-8. Jitter Buffer Status Table Addr Register Name Offset 0x000 0x004 (port-1)*0x100+ts*8 (port-1)*0x100+ts*8+4 0x7F8 0x7FC Status_and_level[1, 0] Min_and_max_level[1, 0] Status_and_level[port, ts] Min_and_max_level[port, ts] Status_and_level[8, 31] Min_and_max_level[8, 31] Description Page Jitter buffer port 1 timeslot 0 status and fill level Jitter buffer port 1 timeslot 0 min / max levels Jitter buffer status and fill level Jitter buffer min / max levels Jitter buffer port 8 timeslot 31 status and fill level Jitter buffer port 8 timeslot 31 min / max levels 197 198 197 198 197 198 Note 1: In high speed mode, Hs_status_and_level and Hs_min_and_max_level reside in Status_and_level0 and Min_and_max_level0 registers, respectively. Note 2: The CPU should never try to read Min_and_max_level from an HDLC bundle. When the CPU performs an access to these registers, it causes some bits to be changed – bits that are used for other purposes in HDLC bundles and thus may cause severe problems. Table 11-9. Bundle Timeslot Table Addr Register Name Offset 0xF00 0xF00+n*4 0xFFC Bundle_ts0 Bundle_ts[n] Bundle_ts63 Description Page Assigned timeslots in bundle 0 Assigned timeslots in bundle n Assigned timeslots in bundle 63 197 197 197 11.4.8.1 Status_and_level Registers The status_and_level registers have different fields depending on the bundle type: HDLC, Structured AAL1/CESoPSN, Unstructured AAL1/SAToP or High Speed AAL1/SAToP. The subsections below describe the status_and_level register fields for each type. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. 3 3 3 11.4.8.1.1 HDLC Status_and_level (port-1)*0x100+ts*8 Bits [31:2] [1:0] Data Element Name Reserved Status R/W Reset Value RO RO 0x0 None Description Always zero The status of the bundle’s jitter buffer: 00 = jitter buffer is empty 01 = jitter buffer is OK 10 = jitter buffer is full 11 = Reserved 197 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.8.1.2 Structured AAL1/CESoPSN Status_and_level (port-1)*0x100+ts*8 Bits Data Element Name R/W Reset Value Description [31:26] [25:16] Reserved Current_level RO RO 0x0 None [15:2] [1:0] Reserved Status RO RO 0x0 None Always zero The current jitter buffer level for the bundle. The resolution is 0.5ms. Always zero The status of the bundle’s jitter buffer: 00 = jitter buffer is empty 01 = jitter buffer is OK 10 = jitter buffer is full 11 = Reserved R/W Reset Value Description 11.4.8.1.3 Unstructured AAL1/SAToP Status_and_level (port-1)*0x100 Bits Data Element Name [31] [30:16] Reserved Current_level RO RO 0x0 None [15:2] [1:0] Reserved Status RO RO 0x0 None Always zero The current jitter buffer level for the bundle. The resolution is 32 interface bit periods. Always zero The status of the bundle’s jitter buffer: 00 = jitter buffer is empty 01 = jitter buffer is OK 10 = jitter buffer is full 11 = Reserved 11.4.8.1.4 High Speed AAL1/SAToP Status_and_level 0x000 Bits Data Element Name R/W Reset Value [31:16] Current_level RO 0x0000 [15:2] [1:0] Reserved Status RO RO 0x0 0x0 Description The 16 MSbs of the current jitter buffer level (the level is 17 bits wide). The resolution is 64 interface bit periods. Always zero The status of the bundle’s jitter buffer: 00 = jitter buffer is empty 01 = jitter buffer is OK 10 = jitter buffer is full 11 = Reserved 11.4.8.2 Min_and_max_level In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. 11.4.8.2.1 Structured AAL1/CESoPSN Min_and_max_level (port-1)*0x100+ts*8+4 Bits [31:26] [25:16] Data Element Name Reserved Minimal_level R/W Reset Value RO RO 0x0 None Description Always zero The minimal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to all ones. When 198 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Min_and_max_level (port-1)*0x100+ts*8+4 Bits Data Element Name [15:10] [9:0] Reserved Maximal_level R/W RO RO Reset Value 0x00 None Description underrun is reached, the value of this field remains zero until it is read by the CPU. The resolution is 0.5 ms.. These bits are always zero The maximal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to zero. When overrun is reached, the value remains equal to Rx_max_buff_size until it is read by the CPU. The resolution is 0.5 ms. 11.4.8.2.2 Unstructured AAL1/SAToP Min_and_max_level (port-1)*0x100+4 Bits Data Element Name R/W Reset Value [31] [30:16] Reserved Minimal_level RO RO 0x0 None [15] [14:0] Reserved Maximal_level RO RO 0x0 None Description This bit is always zero The minimal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to all ones. When underrun is reached, the value of this field remains zero until it is read by the CPU. The resolution is 32 interface bit periods. This bit is always zero The maximal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to zero. When overrun is reached, the value remains equal to Rx_max_buff_size until it is read by the CPU. The resolution is 32 interface bit periods. 11.4.8.2.3 High Speed AAL1/SAToP Min_and_max_level 0x004 Bits Data Element Name R/W Reset Value [31:16] Minimal_level RO 0xFFFF [15:0] Maximal_level RO 0x0000 Description The 16 MSbs of the minimal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to all ones. When underrun is reached, the value of this field remains zero until it is read by the CPU. The level is 17 bits wide. The resolution is 64 interface bit periods. The 16 MSbs of the maximal level that the jitter buffer has reached since the last time this register was read. After this register is read the TDMoP block resets this field to zero. When overrun is reached, the value remains equal to Rx_max_buff_size until it is read by the CPU. The level is 17 bits wide. The resolution is 64 interface bit periods. 11.4.8.3 Bundle Timeslot Registers In this section, the index n indicates the bundle number: 0 to 63. Bundle_ts[n] 0xF00+n*4 Bits [31:0] Data Element Name Ts_assigned R/W Reset Value R/W None Description Assigned timeslots of the bundle. See section 10.6.10. 199 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bundle_ts[n] 0xF00+n*4 Bits Data Element Name R/W Reset Value Description 1 = Timeslot is assigned to the bundle 0 = Timeslot is not assigned to the bundle Note: When the interface type is Nx64k this field should be set to all 1s. 200 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.9 Transmit Software CAS The base address for the TDMoP transmit software CAS register space is 0x38,000. For the CAS information transmitted in packets in the TDM-to-Ethernet direction, the CAS signaling information stored in these registers can be used instead of CAS bits coming into the TDMoP block on the TDMn_RSIG_RTS signals. This is configured on a per-bundle basis using the Tx_CAS_source field in the Bundle Configuration Tables. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Table 11-10. Transmit Software CAS Registers Addr Offset Port 1 0x00 0x04 0x08 0x0C Port 2 0x10 0x14 0x18 0x1C Port 3 0x20 0x24 0x28 0x2C Port 4 0x30 0x34 0x38 0x3C Port 5 0x40 0x44 0x48 0x4C Port 6 0x50 0x54 0x58 0x5C Port 7 0x60 0x64 0x68 0x6C Port 8 0x70 0x74 0x78 0x7C Register Name Description Page Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 1 CAS signaling for TS15 to TS8 for Port 1 CAS signaling for TS23 to TS16 for Port 1 CAS signaling for TS31 to TS24 for Port 1 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 2 CAS signaling for TS15 to TS8 for Port 2 CAS signaling for TS23 to TS16 for Port 2 CAS signaling for TS31 to TS24 for Port 2 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 3 CAS signaling for TS15 to TS8 for Port 3 CAS signaling for TS23 to TS16 for Port 3 CAS signaling for TS31 to TS24 for Port 3 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 4 CAS signaling for TS15 to TS8 for Port 4 CAS signaling for TS23 to TS16 for Port 4 CAS signaling for TS31 to TS24 for Port 4 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 5 CAS signaling for TS15 to TS8 for Port 5 CAS signaling for TS23 to TS16 for Port 5 CAS signaling for TS31 to TS24 for Port 5 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 6 CAS signaling for TS15 to TS8 for Port 6 CAS signaling for TS23 to TS16 for Port 6 CAS signaling for TS31 to TS24 for Port 6 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 7 CAS signaling for TS15 to TS8 for Port 7 CAS signaling for TS23 to TS16 for Port 7 CAS signaling for TS31 to TS24 for Port 7 202 202 202 202 Tx_SW_CAS_TS7_TS0 Tx_SW_CAS_TS15_TS8 Tx_SW_CAS_TS23_TS16 Tx_SW_CAS_TS31_TS24 CAS signaling for TS7 to TS0 for Port 8 CAS signaling for TS15 to TS8 for Port 8 CAS signaling for TS23 to TS16 for Port 8 CAS signaling for TS31 to TS24 for Port 8 202 202 202 202 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 3 201 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Tx_SW_CAS_TS7_TS0 0x000+(port-1)*0x10 Bits [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0] Data Element Name TS7_CAS_nibble TS6_CAS_nibble TS5_CAS_nibble TS4_CAS_nibble TS3_CAS_nibble TS2_CAS_nibble TS1_CAS_nibble TS0_CAS_nibble R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W None None None None None None None None Description CAS signaling (ABCD) for timeslot 7 CAS signaling (ABCD) for timeslot 6 CAS signaling (ABCD) for timeslot 5 CAS signaling (ABCD) for timeslot 4 CAS signaling (ABCD) for timeslot 3 CAS signaling (ABCD) for timeslot 2 CAS signaling (ABCD) for timeslot 1 CAS signaling (ABCD) for timeslot 0 Tx_SW_CAS_TS15_TS8 0x004+(port-1)*0x10 Bits [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0] Data Element Name TS15_CAS_nibble TS14_CAS_nibble TS13_CAS_nibble TS12_CAS_nibble TS11_CAS_nibble TS10_CAS_nibble TS9_CAS_nibble TS8_CAS_nibble R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W None None None None None None None None Description CAS signaling (ABCD) for timeslot 15 CAS signaling (ABCD) for timeslot 14 CAS signaling (ABCD) for timeslot 13 CAS signaling (ABCD) for timeslot 12 CAS signaling (ABCD) for timeslot 11 CAS signaling (ABCD) for timeslot 10 CAS signaling (ABCD) for timeslot 9 CAS signaling (ABCD) for timeslot 8 Tx_SW_CAS_TS23_TS16 0x008+(port-1)*0x10 Bits [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0] Data Element Name TS23_CAS_nibble TS22_CAS_nibble TS21_CAS_nibble TS20_CAS_nibble TS19_CAS_nibble TS18_CAS_nibble TS17_CAS_nibble TS16_CAS_nibble R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W None None None None None None None None Description CAS signaling (ABCD) for timeslot 23 CAS signaling (ABCD) for timeslot 22 CAS signaling (ABCD) for timeslot 21 CAS signaling (ABCD) for timeslot 20 CAS signaling (ABCD) for timeslot 19 CAS signaling (ABCD) for timeslot 18 CAS signaling (ABCD) for timeslot 17 CAS signaling (ABCD) for timeslot 16 Tx_SW_CAS_TS31_TS24 0x00C+(port-1)*0x10 Bits [31:28] [27:24] [23:20] [19:16] [15:12] [11:8] [7:4] [3:0] Data Element Name TS31_CAS_nibble TS30_CAS_nibble TS29_CAS_nibble TS28_CAS_nibble TS27_CAS_nibble TS26_CAS_nibble TS25_CAS_nibble TS24_CAS_nibble R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W None None None None None None None None Description CAS signaling (ABCD) for timeslot 31 CAS signaling (ABCD) for timeslot 30 CAS signaling (ABCD) for timeslot 29 CAS signaling (ABCD) for timeslot 28 CAS signaling (ABCD) for timeslot 27 CAS signaling (ABCD) for timeslot 26 CAS signaling (ABCD) for timeslot 25 CAS signaling (ABCD) for timeslot 24 202 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.10 Receive Line CAS The base address for the TDMoP Rx line CAS register space is 0x40,000. These read-only registers allow the CPU to examine the state of the CAS signaling recovered from received packets and transmitted out of the TDMoP block on the TDMn_TSIG signals (i.e. toward the signal cross-connection block and the framers). See section 10.6.5.2 for more details. When Rx line CAS bits change, an interrupt is generated. The Rx_CAS_change registers in the Error! Reference source not found. indicate which timeslots have changed CAS bits. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. Table 11-11. Receive Line CAS Registers Addr Register Name Offset Port 1 0x000 0x000+ts*4 0x07C Port 2 0x080 0x080+ts*4 0x0FC Port 3 0x100 0x100+ts*4 0x17C Port 4 0x180 0x180+ts*4 0x1FC Port 5 0x200 0x200+ts*4 0x27C Port 6 0x280 0x280+ts*4 0x2FC Port 7 0x300 0x300+ts*4 0x37C Port 8 0x380 0x380+ts*4 0x3FC Description Page Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 1 CAS signaling for timeslot ts for Port 1 CAS signaling for timeslot 31 for Port 1 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 2 CAS signaling for timeslot ts for Port 2 CAS signaling for timeslot 31 for Port 2 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 3 CAS signaling for timeslot ts for Port 3 CAS signaling for timeslot 31 for Port 3 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 4 CAS signaling for timeslot ts for Port 4 CAS signaling for timeslot 31 for Port 4 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 5 CAS signaling for timeslot ts for Port 5 CAS signaling for timeslot 31 for Port 5 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 6 CAS signaling for timeslot ts for Port 6 CAS signaling for timeslot 31 for Port 6 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 7 CAS signaling for timeslot ts for Port 7 CAS signaling for timeslot 31 for Port 7 203 203 203 Rx_Line_CAS_TS0 Rx_Line_CAS_TS[ts] Rx_Line_CAS_TS31 CAS signaling for timeslot 0 for Port 8 CAS signaling for timeslot ts for Port 8 CAS signaling for timeslot 31 for Port 8 203 203 203 Rx_Line_CAS 0x000+(port-1)*0x80+ts*4 Bits [31:4] [3:0] Data Element Name Reserved Rx_CAS R/W Reset Value RO 0x0 None Description Must be set to zero CAS signaling (ABCD) towards TDMn_TSIG 203 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.11 Clock Recovery The base address for the TDMoP clock recovery register space is 0x48,000. Most of the registers in this section of the TDMoP block are not documented. The HAL (Hardware Abstraction Layer) software manages these registers. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Table 11-12. Clock Recovery Registers Addr Register Name Offset Port 1 0x0000 0x0004-00A0 Port 2 0x0400 0x0404-04A0 Port 3 0x0800 0x0804-08A0 Port 4 0x0C00 0x0C04-0CA0 Port 5 0x1000 0x1004-10A0 Port 6 0x1400 0x1404-14A0 Port 7 0x1800 0x1804-18A0 Port 8 0x1C00 0x1C04-1CA0 Description Page Control_Word_P1 Clk_recovery_cfg_reg1-40 Port1 clock recovery control bits Port1 clock recovery configuration registers (not documented) 204 --- Control_Word_P2 Clk_recovery_cfg_reg1-40 Port2 clock recovery control bits Port2 clock recovery configuration registers (not documented) 204 --- Control_Word_P3 Clk_recovery_cfg_reg1-40 Port3 clock recovery control bits Port3 clock recovery configuration registers (not documented) 204 --- Control_Word_P4 Clk_recovery_cfg_reg1-40 Port4 clock recovery control bits Port4 clock recovery configuration registers (not documented) 204 --- Control_Word_P5 Clk_recovery_cfg_reg1-40 Port5 clock recovery control bits Port5 clock recovery configuration registers (not documented) 204 --- Control_Word_P6 Clk_recovery_cfg_reg1-40 Port6 clock recovery control bits Port6 clock recovery configuration registers (not documented) 204 --- Control_Word_P7 Clk_recovery_cfg_reg1-40 Port7 clock recovery control bits Port7 clock recovery configuration registers (not documented) 204 --- Control_Word_P8 Clk_recovery_cfg_reg1-40 Port8 clock recovery control bits Port8 clock recovery configuration registers (not documented) 204 --- When using the clock recovery mechanism of a certain port, its Rx_PDVT parameter in the bundle configuration must also be configured. Clk_Recovery_Control_Word 0x000+(port-1)*0x400 Reset Bits Data Element Name R/W Value [31:1] [0] Reserved System_Reset W/O 0x0 0x0 Description Set according to the HAL function 1 = Reset the clock recovery system 204 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.12 Receive SW Conditioning Octet Select The base address for the TDMoP Rx software conditioning octet select register space is 0x50,000. These registers specify which of four conditioning bytes (TDM_cond_octet_a through TDM_cond_octet_d in TDM_cond_data_reg) the TDMoP block transmits on the TDMn_TX signals during an unassigned timeslot. The specified value is also the conditioning octet that is inserted into the jitter buffer for lost packet compensation. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. Table 11-13. Receive SW Conditioning Octet Select Registers Addr Register Name Description Offset Port 1 0x000 0x000+ts*4 0x07C Port 2 0x080 0x080+ts*4 0x0FC Port 3 0x100 0x100+ts*4 0x17C Port 4 0x180 0x180+ts*4 0x1FC Port 5 0x200 0x200+ts*4 0x27C Port 6 0x280 0x280+ts*4 0x2FC Port 7 0x300 0x300+ts*4 0x37C Port 8 0x380 0x380+ts*4 0x3FC Page Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 1 Rx software conditioning for timeslot ts for Port 1 Rx software conditioning for timeslot 31 for Port 1 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 2 Rx software conditioning for timeslot ts for Port 2 Rx software conditioning for timeslot 31 for Port 2 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 3 Rx software conditioning for timeslot ts for Port 3 Rx software conditioning for timeslot 31 for Port 3 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 4 Rx software conditioning for timeslot ts for Port 4 Rx software conditioning for timeslot 31 for Port 4 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 5 Rx software conditioning for timeslot ts for Port 5 Rx software conditioning for timeslot 31 for Port 5 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 6 Rx software conditioning for timeslot ts for Port 6 Rx software conditioning for timeslot 31 for Port 6 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 7 Rx software conditioning for timeslot ts for Port 7 Rx software conditioning for timeslot 31 for Port 7 205 205 205 Rx_SW_cond_TS0 Rx_SW_cond_TS[ts] Rx_SW_cond_TS31 Rx software conditioning for timeslot 0 for Port 8 Rx software conditioning for timeslot ts for Port 8 Rx software conditioning for timeslot 31 for Port 8 205 205 205 Rx_SW_cond 0x000+(port-1)*0x80+ts*4 Bits [31:2] [1:0] Data Element Name Reserved Cond_octet_sel R/W Reset Value R/W 0x0 None Description Must be set to zero 00 = TDM_cond_octet_a 01 = TDM_cond_octet_b 10 = TDM_cond_octet_c 11 = TDM_cond_octet_d 205 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.13 Receive SW CAS The base address for the TDMoP Rx software CAS register space is 0x58,000. These registers specify the CAS signaling bits the TDMoP block transmits on the TDMn_TSIG signals during unassigned timeslots and during timeslots where CAS is not assigned. See section 10.6.5.2 for more details. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. The index ts indicates timeslot number: 0 to 31. Table 11-14. Receive SW CAS Registers Addr Register Name Offset Port 1 0x000 0x000+ts*4 0x07C Port 2 0x080 0x080+ts*4 0x0FC Port 3 0x100 0x100+ts*4 0x17C Port 4 0x180 0x180+ts*4 0x1FC Port 5 0x200 0x200+ts*4 0x27C Port 6 0x280 0x280+ts*4 0x2FC Port 7 0x300 0x300+ts*4 0x37C Port 8 0x380 0x380+ts*4 0x3FC Description Page Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 1 Rx software conditioning for timeslot ts for Port 1 Rx software conditioning for timeslot 31 for Port 1 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 2 Rx software conditioning for timeslot ts for Port 2 Rx software conditioning for timeslot 31 for Port 2 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 3 Rx software conditioning for timeslot ts for Port 3 Rx software conditioning for timeslot 31 for Port 3 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 4 Rx software conditioning for timeslot ts for Port 4 Rx software conditioning for timeslot 31 for Port 4 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 5 Rx software conditioning for timeslot ts for Port 5 Rx software conditioning for timeslot 31 for Port 5 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 6 Rx software conditioning for timeslot ts for Port 6 Rx software conditioning for timeslot 31 for Port 6 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 7 Rx software conditioning for timeslot ts for Port 7 Rx software conditioning for timeslot 31 for Port 7 206 206 206 Rx_SW_CAS_TS0 Rx_SW_CAS_TS[ts] Rx_SW_CAS_TS31 Rx software conditioning for timeslot 0 for Port 8 Rx software conditioning for timeslot ts for Port 8 Rx software conditioning for timeslot 31 for Port 8 206 206 206 Rx_SW_CAS 0x000+(port-1)*0x80+ts*4 Bits [31:4] [3:0] Data Element Name Reserved Rx_CAS R/W Reset Value R/W 0x0 None Description Must be set to zero CAS signaling (ABCD) transmitted towards TDMn_TSIG when Rx_CAS_src=1 in Bundle Configuration Tables. Must be different from 0000. 206 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.14 Interrupt Controller The base address for the interrupt controller register space is 0x68,000. The Intpend register and the “change” registers listed below have latched status bits that indicate various TDMoP hardware events. For each bit, the value 1 indicates that the event occurred. Writing 1 to a bit clears it to 0. Writing 0 to a bit does not change its value. The Intmask register and the other “mask” registers listed below have an interrupt mask bit corresponding to each bit in the associated “change” register. Each mask bit masks the interrupt when set to 1 and does not mask the interrupt when set to 0. The Intpend register is the master interrupt status register. “Change” bits in Intpend indicate that one or more events of a specific type have occurred. More details about which ports or bundles had that type of event can be found by reading the change register(s) for that event type. In the register descriptions in this section, the index port indicates port number: 1-8 for DS34T108, 1-4 for DS34T104, 1-2 for DS34T102, 1 only for DS34T101. Table 11-15. Interrupt Controller Registers Addr Register Name Offset 0x000 0x004 0x040 0x044 0x048 0x04C 0x050 0x054 0x058 0x05C 0x080 0x088 0x090 0x098 0x0A0 0x0A8 0x0B0 0x0B8 0x084 0x08C 0x094 0x09C 0x0A4 0x0AC 0x0B4 0x0BC 0x0C0 0x0C8 0x0D0 0x0D8 0x0E0 0x0E8 0x0F0 0x0F8 0x0C4 0x0CC 0x0D4 0x0DC Intpend Intmask Rx_CAS_change_P1 Rx_CAS_change_P2 Rx_CAS_change_P3 Rx_CAS_change_P4 Rx_CAS_change_P5 Rx_CAS_change_P6 Rx_CAS_change_P7 Rx_CAS_change_P8 JBC_underrun_P1 JBC_underrun_P2 JBC_underrun_P3 JBC_underrun_P4 JBC_underrun_P5 JBC_underrun_P6 JBC_underrun_P7 JBC_underrun_P8 JBC_underrun_mask_P1 JBC_underrun_mask_P2 JBC_underrun_mask_P3 JBC_underrun_mask_P4 JBC_underrun_mask_P5 JBC_underrun_mask_P6 JBC_underrun_mask_P7 JBC_underrun_mask_P8 Tx_CAS_change_P1 Tx_CAS_change_P2 Tx_CAS_change_P3 Tx_CAS_change_P4 Tx_CAS_change_P5 Tx_CAS_change_P6 Tx_CAS_change_P7 Tx_CAS_change_P8 Tx_CAS_change_mask_P1 Tx_CAS_change_mask_P2 Tx_CAS_change_mask_P3 Tx_CAS_change_mask_P4 3 Description Interrupts pending register Interrupt mask register Rx CAS change for timeslots in Port 1 Rx CAS change for timeslots in Port 2 Rx CAS change for timeslots in Port 3 Rx CAS change for timeslots in Port 4 Rx CAS change for timeslots in Port 5 Rx CAS change for timeslots in Port 6 Rx CAS change for timeslots in Port 7 Rx CAS change for timeslots in Port 8 JBC underrun in Port 1. JBC underrun in Port 2 JBC underrun in Port 3 JBC underrun in Port 4 JBC underrun in Port 5 JBC underrun in Port 6 JBC underrun in Port 7 JBC underrun in Port 8 JBC underrun mask for Port 1 JBC underrun mask for Port 2 JBC underrun mask for Port 3 JBC underrun mask for Port 4 JBC underrun mask for Port 5 JBC underrun mask for Port 6 JBC underrun mask for Port 7 JBC underrun mask for Port 8 Tx CAS change for timeslots in Port 1 Tx CAS change for timeslots in Port 2 Tx CAS change for timeslots in Port 3 Tx CAS change for timeslots in Port 4 Tx CAS change for timeslots in Port 5 Tx CAS change for timeslots in Port 6 Tx CAS change for timeslots in Port 7 Tx CAS change for timeslots in Port 8 Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 Page 208 209 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 210 211 211 211 211 211 211 211 211 211 211 211 211 207 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 0x0E4 0x0EC 0x0F4 0x0FC 0x100 0x104 0x140 0x144 0x148 0x14C 0x180 0x1C0 0x1C4 Register Name Tx_CAS_change_mask_P5 Tx_CAS_change_mask_P6 Tx_CAS_change_mask_P7 Tx_CAS_change_mask_P8 RTS_change RTS_mask CW_bits_change_low_bundles CW_bits_mask_low_bundles CW_bits_change_high_bundles CW_bits_mask_high_bundles CW_bits_change_mask CPU_Queues_change CPU_Queues_mask 3 3 3 3 3 3 3 Description Page Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 Tx CAS change mask for Port 1 RTS change register for Ports 1 to 8 RTS change mask for Ports 1 to 8 CW bits change for bundles 0 to 31 CW bits change mask for bundles 31 to 0 CW bits change for bundles 32 to 63 CW bits change mask for bundles 63 to 32 Which CW fields (L, R, M, FRG) cause interrupts on change Which CPU pools and queues went above/below thresholds CPU Queues changed mask 211 211 211 211 211 211 211 211 212 212 212 212 213 Intpend 0x000 Bits Data Element Name R/W Reset Value [31:28] [27] Reserved ETH_MAC R/W 0x0 0x0 [26] CPU Queues R/W 0x0 [25] CW_bits_change R/W 0x0 Description Must be set to zero Ethernet MAC interrupt. Read the MAC_interrupt_status register to determine the interrupt source(s). The fill level of one or more of the CPU queues and pools has gone beyond the configured threshold. Read the CPU_Queues_change register to determine the interrupt source(s). At least one of the L, R, M or FRG control Word fields has changed in one or more bundles. Read the CW_bits_change_low_bundles and CW_bits_change_high_bundles registers to determine the interrupt source(s). The CW_bits_change_mask register indicates which of the four CW fields can cause an interrupt when changed. 1 = The state of the RTS pin (TDMn_RSIG_RTS) for one or more ports has changed. This only applies for port in asynchronous serial interface mode (Port[n]_cfg_reg. Int_type=00). Read the RTS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port8. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port7. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port6. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port5. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port4. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port3. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port2. Read the Port7 Tx_CAS_change register to determine the interrupt source(s). A change has occurred in the CAS signaling bits for Port1. 3 [24] RTS_changes R/W 0x0 [23] Tx_CAS_change_P8 R/W 0x0 [22] Tx_CAS_change_P7 R/W 0x0 [21] Tx_CAS_change_P6 R/W 0x0 [20] Tx_CAS_change_P5 R/W 0x0 [19] Tx_CAS_change_P4 R/W 0x0 [18] Tx_CAS_change_P3 R/W 0x0 [17] Tx_CAS_change_P2 R/W 0x0 [16] Tx_CAS_change_P1 R/W 0x0 208 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Intpend 0x000 Bits Data Element Name R/W Reset Value [15] JBC_underrun_P8 R/W 0x0 [14] JBC_underrun_P7 R/W 0x0 [13] JBC_underrun_P6 R/W 0x0 [12] JBC_underrun_P5 R/W 0x0 [11] JBC_underrun_P4 R/W 0x0 [10] JBC_underrun_P3 R/W 0x0 [9] JBC_underrun_P2 R/W 0x0 [8] JBC_underrun_P1 R/W 0x0 [7] Rx_CAS_change_P8 R/W 0x0 [6] Rx_CAS_change_P7 R/W 0x0 [5] Rx_CAS_change_P6 R/W 0x0 [4] Rx_CAS_change_P5 R/W 0x0 [3] Rx_CAS_change_P4 R/W 0x0 [2] Rx_CAS_change_P3 R/W 0x0 [1] Rx_CAS_change_P2 R/W 0x0 [0] Rx_CAS_change_P1 R/W 0x0 R/W Reset Value R/W R/W 0x0 0x1 0x1 Description Read the Port7 Tx_CAS_change register to determine the interrupt source(s). One of the Port8 Jitter Buffers is in underrun state. Read the Port8 JBC_underrun register to determine the interrupt source(s). One of the Port7 Jitter Buffers is in underrun state. Read the Port7 JBC_underrun register to determine the interrupt source(s). One of the Port6 Jitter Buffers is in underrun state. Read the Port6 JBC_underrun register to determine the interrupt source(s). One of the Port5 Jitter Buffers is in underrun state. Read the Port5 JBC_underrun register to determine the interrupt source(s). One of the Port4 Jitter Buffers is in underrun state. Read the Port4 JBC_underrun register to determine the interrupt source(s). One of the Port3 Jitter Buffers is in underrun state. Read the Port3 JBC_underrun register to determine the interrupt source(s). One of the Port2 Jitter Buffers is in underrun state. Read the Port2 JBC_underrun register to determine the interrupt source(s). One of the Port1 Jitter Buffers is in underrun state. Read the Port1 JBC_underrun register to determine the interrupt source(s). A change has occurred in Port8 Receive Line CAS table. Read the Port8 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port7 Receive Line CAS table. Read the Port7 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port6 Receive Line CAS table. Read the Port6 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port5 Receive Line CAS table. Read the Port5 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port4 Receive Line CAS table. Read the Port4 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port 3 Receive Line CAS table. Read the Port3 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port 2 Receive Line CAS table. Read the Port2 Rx_CAS_change register to determine the interrupt source(s). A change has occurred in Port 1 Receive Line CAS table. Read the Port1 Rx_CAS_change register to determine the interrupt source(s). Intmask 0x004 Bits [31:28] [27] [26] Data Element Name Reserved ETH_MAC CPU Queues Description Must be set to zero Mask Ethernet MAC interrupt. Mask CPU Queues change interrupt. 209 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Intmask 0x004 Bits [25] [24] [23] [22] [21] [20] [19] [18] [17] [16] [15] [14] [13] [12] [11] [10] [9] [8] [7] [6] [5] [4] [3] [2] [1] [0] Data Element Name CW_Bits_change RTS_changes Tx_CAS_change_P8 Tx_CAS_change_P7 Tx_CAS_change_P6 Tx_CAS_change_P5 Tx_CAS_change_P4 Tx_CAS_change_P3 Tx_CAS_change_P2 Tx_CAS_change_P1 JBC_underrun_P8 JBC_underrun_P7 JBC_underrun_P6 JBC_underrun_P5 JBC_underrun_P4 JBC_underrun_P3 JBC_underrun_P2 JBC_underrun_P1 Rx_CAS_change_P8 Rx_CAS_change_P7 Rx_CAS_change_P6 Rx_CAS_change_P5 Rx_CAS_change_P4 Rx_CAS_change_P3 Rx_CAS_change_P2 Rx_CAS_change_P1 R/W Reset Value 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 R/W R/W R/W R/W R/W R/W R/W R/W 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 R/W Reset Value Description Mask Control Word bits change interrupt. Mask RTS change interrupt. Mask Tx_CAS_change_P8 interrupt. Mask Tx_CAS_change_P7 interrupt. Mask Tx_CAS_change_P6 interrupt. Mask Tx_CAS_change_P5 interrupt. Mask Tx_CAS_change_P4 interrupt. Mask Tx_CAS_change_P3 interrupt. Mask Tx_CAS_change_P2 interrupt. Mask Tx_CAS_change_P1 interrupt. Mask JBC_underrun_P8 interrupt. Mask JBC_underrun_P7 interrupt. Mask JBC_underrun_P6 interrupt. Mask JBC_underrun_P5 interrupt. Mask JBC_underrun_P4 interrupt. Mask JBC_underrun_P3 interrupt. Mask JBC_underrun_P2 interrupt. Mask JBC_underrun_P1 interrupt. Mask Rx_CAS_change_P8 interrupt. Mask Rx_CAS_change_P7 interrupt. Mask Rx_CAS_change_P6 interrupt. Mask Rx_CAS_change_P5 interrupt. Mask Rx_CAS_change_P4 interrupt. Mask Rx_CAS_change_P3 interrupt. Mask Rx_CAS_change_P2 interrupt. Mask Rx_CAS_change_P1 interrupt. Rx_CAS_change 0x40+(port-1)*4 Bits [31:0] Data Element Name Rx_CAS_change R/W 0x0000 0000 Description Bit 31 represents timeslot 31 and bit 0 represents timeslot 0 for the port. When a bit is set it indicates a change in received CAS (from the Ethernet port) in the corresponding timeslot. The current CAS bits can be read from the appropriate Rx_Line_CAS register (section 11.4.10). See section.10.6.5.2 JBC_underrun 0x80+(port-1)*4 Bits [31:0] Data Element Name JBC_underrun R/W R/W Reset Value 0x0000 0000 Description Bit 31 represents timeslot 31 and bit 0 represents timeslot 0 for the port. When a bit is set it indicates a jitter buffer underrun for the corresponding timeslot. JBC_underrun_mask 0x84+(port-1)*8 Bits [31:0] Data Element Name JBC_underrun_mask R/W R/W Reset Value Description 0xFFFF FFFF Each bit masks an interrupt caused by the corresponding bit in the JBC_underrun register. 3 210 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Tx_CAS_change 0xC0+(port-1)*8 Bits [31:0] Data Element Name Tx_CAS_change R/W R/W Reset Value 0x0000 0000 Description Bit 31 represents timeslot 31 and bit 0 represents timeslot 0 for the port. When a bit is set it indicates a change in transmit (toward the Ethernet port) CAS bits in the corresponding timeslot. The current CAS bits can be read from the Tx formatter signaling registers (TS1 to TS16). See section 10.6.5.1. Tx_CAS_change_mask 0xC4+(port-1)*8 Bits [31:0] Data Element Name Tx_CAS_change_maxk Reset Value Description 0xFFFF FFFF Each bit masks interrupts caused by the corresponding bit in the Tx_CAS_change register. See section 10.6.5.1. R/W Reset Value Description R/W R/W R/W R/W R/W R/W R/W R/W 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 R/W Reset Value R/W 0x0 0xFF R/W R/W 3 RTS_change 0x100 Bits [31:8] [7] [6] [5] [4] [3] [2] [1] [0] Data Element Name Reserved RTS8_ change RTS7_ change RTS6_ change RTS5_ change RTS4_ change RTS3_ change RTS2_ change RTS1_ change Must be set to zero TDM8_RTS input level changed. TDM7_RTS input level changed. TDM6_RTS input level changed. TDM5_RTS input level changed. TDM4_RTS input level changed. TDM3_RTS input level changed. TDM2_RTS input level changed. TDM1_RTS input level changed. RTS_mask 0x104 Bits [31:8] [7:0] Data Element Name Reserved RTS_mask Description Must be set to zero Each bit masks interrupts caused by the corresponding bit in the RTS_change register. 3 CW_bits_change_low_bundles 0x140 Bits [31:0] Data Element Name CW_bits_change R/W R/W Reset Value 0xFFFF FFFF Description Bit 31 represents bundle 31 and bit 0 represents bundle 0. When a bit is set it indicates the corresponding bundle had a change in one of the bundle’s control word fields: L, R, M or FRG. The CW_bits_change_mask register specifies which of the four Control Word fields can cause an interrupt when changed. The current state of the four fields can be read from the Packet Classifier Status register in the per-bundle status tables (section 11.4.4.1). CW_bits_mask_low_bundles 0x144 Bits [31:0] Data Element Name CW_bits_mask R/W R/W Reset Value Description 0xFFFF FFFF Bit 31 represents bundle 31 and bit 0 represents bundle 0. Mask the interrupt from the corresponding bit in the 211 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 CW_bits_mask_low_bundles 0x144 Bits Data Element Name R/W Reset Value Description CW_bits_change_low_bundles register. CW_bits_change_high_bundles 0x148 Bits [31:0] Data Element Name CW_bits_change R/W R/W Reset Value 0xFFFF FFFF Description Bit 31 represents bundle 63 and bit 0 represents bundle 32. When a bit is set it indicates the corresponding bundle had a change in one of the bundle’s control word fields: L, R, M or FRG. The CW_bits_change_mask register specifies which of the four Control Word fields can cause an interrupt when changed. The current state of the four fields can be read from the Packet Classifier Status register in the per-bundle status tables (section 11.4.4.1). CW_bits_mask_high_bundles 0x14C Bits [31:0] Data Element Name CW_bits_mask R/W R/W Reset Value 0xFFFF FFFF Description Bit 31 represents bundle 63; bit 0 represents bundle 32. Mask the interrupt from the corresponding bit in the CW_bits_change_high_bundles register. 3 CW_bits_change_mask 0x180 Bits Data Element Name R/W - Reset Value [31:6] [5] Reserved Rx_sync_loss R/W 0x0 None [4] Rx_remote_fail R/W None [3:2] Rx_Lbit_modifier R/W None [1:0] Fragmentation_bits R/W None R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W R/W 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 Description Must be set to zero Mask interrupts caused by L field changing in Control Word Mask interrupts caused by R field changing in Control Word Mask interrupts caused by M field changing in Control Word Mask interrupts caused by FRG field changing in Control Word CPU_Queues_change 0x1C0 Bits [31:10] [9] [8] [7] [6] [5] [4:3] [2] [1] [0] Data Element Name Reserved TDM_to_CPU_pool_thresh TDM_to_CPU_q_thresh CPU_to_ETH_q_thresh ETH_to_CPU_pool_thresh ETH_to_CPU_q_thresh Reserved CPU_to_TDM_q_thresh Tx_return_q_thresh Rx_return_q_thresh Description Must be set to zero TDM to CPU pool level  threshold. TDM to CPU queue level  threshold. CPU to Ethernet queue level  threshold. Ethernet to CPU pool level  threshold. Ethernet to CPU queue level  threshold Must be set to zero CPU to TDM queue level  threshold. CPU TX return queue level  threshold. CPU RX return queue level  threshold. 212 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 CPU_Queues_mask 0x1C4 Bits [31:10] [9] [8] [7] [6] [5] [4:3] [2] [1] [0] Data Element Name Reserved TDM_to_CPU_pool_thresh TDM_to_CPU_q_thresh CPU_to_ETH_q_thresh ETH_to_CPU_pool_thresh ETH_to_CPU_q_thresh Reserved CPU_to_TDM_q_thresh Tx_return_q_thresh Rx_return_q_thresh R/W Reset Value R/W R/W R/W R/W R/W R/W R/W R/W R/W 0x0 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 0x1 Description Must be set to zero Mask TDM_to_CPU_pool_thresh interrupts Mask TDM_to_CPU_q_thresh interrupts Mask CPU_to_ETH_q_thresh interrupts Mask ETH_to_CPU_pool_thresh interrupts Mask ETH_to_CPU_q_thresh interrupts Must be set to zero Mask CPU_to_TDM_q_thresh interrupts Mask Tx_return_q_thresh interrupts Mask Rx_return_q_thresh interrupts 11.4.15 Packet Classifier The base address for the packet classifier register space is 0x70,000. In the register descriptions in this section the index n indicates register number: 1 to 8. These registers can store eight possible OAM bundle numbers. Table 11-16. Packet Classifier OAM Identification Registers Addr Register Name Description Offset 0x000 0x004 0x008 0x00C 0x010 0x014 0x018 0x01C 0x080 0x084 0x088 0x08C 0x090 0x094 0x098 0x09C OAM Identification1 OAM Identification2 OAM Identification3 OAM Identification4 OAM Identification5 OAM Identification6 OAM Identification7 OAM Identification8 OAM Identification Validity1 OAM Identification Validity2 OAM Identification Validity3 OAM Identification Validity4 OAM Identification Validity5 OAM Identification Validity6 OAM Identification Validity7 OAM Identification Validity8 Page 1st Identification for control packets 2nd Identification for control packets 3rd Identification for control packets 4th Identification for control packets 5th Identification for control packets 6th Identification for control packets 7th Identification for control packets 8th Identification for control packets 1st Identification validity for control packets 2nd Identification validity for control packets 3rd Identification validity for control packets 4th Identification validity for control packets 5th Identification validity for control packets 6th Identification validity for control packets 7th Identification validity for control packets 8th Identification validity for control packets 213 213 213 213 213 213 213 213 213 213 213 213 213 213 213 213 OAM_Identification[n] 0x000+(n-1)*4 Bits [31:0] Data Element Name OAM Identification R/W Reset Value R/W None Description OAM Identification n. If the corresponding validity bit (below) is set then the packet classifier compares the bundle identifier of received packets with the value stored in this register. If they match then the packet classifier considers the received packet to be an OAM packet. See section 10.6.13.3. OAM_Identification_validity[n] 0x080+(n-1)*4 Bits [31:1] [0] Data Element Name Reserved OAM Identification Validity R/W Reset Value R/W 0x0 0x0 Description Must be set to zero 1 = OAM Identification n (above) has a valid value. See section 10.6.13.3. 213 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.4.16 Ethernet MAC The base address for the Ethernet MAC register space is 0x72,000. Configuration and status registers are listed in subsection 11.4.16.1. Counters are listed in subsection 11.4.16.2. 11.4.16.1 Ethernet MAC Configuration and Status Registers Table 11-17. Ethernet MAC Registers Addr Register Name Offset 0x00 0x04 0x08 0x14 0x24 0x28 0x2C 0x30 0x34 0x38 0x98 0x9C 0xBC 0xC0 MAC_network_control MAC_network_configuration MAC_network_status MAC_transmit_status MAC_interrupt_status MAC_interrupt_enable MAC_interrupt_disable MAC_interrupt_mask MAC_PHY_maintenance MAC_pause_time MAC_specific_address_lower MAC_specific_address_upper MAC_transmit_paulse_quantum PHY_SMII_status 3 3 3 3 3 3 Description Page MAC control register MAC configuration register MAC network status register MAC transmitter status register MAC interrupt status register MAC interrupt enable register MAC interrupt disable register MAC interrupt mask register PHY maintenance register MAC pause time register MAC specific address register (bits 31:0) MAC specific address register (bits 47:32) MAC transmit pause quantum register PHY SMII status register 214 215 216 216 216 216 217 217 218 218 218 218 219 219 When reading from Ethernet MAC data elements wider than 16 bits in 16-bit mode, use the following procedure: 1. Read from address 2, i.e. H_AD[1]=1. All 32 bits are internally latched and bits 15:0 are output on H_D[15:0]. 2. Read from address 0, i.e. H_AD [1]=0. Bits 31:16 are output on H_D[15:0]. When writing to Ethernet MAC data elements wider than 16 bits in 16-bit mode, use the following procedure: 1. Write to address 2, i.e. H_AD[1]=1. Bits 15:0 are internally latched but not written to the register yet. 2. Write to address 0, i.e. H_AD [1]=0. All 32 bits are written to the register. Bits 31:16 on H_D[15:0] are written to address 0. Bits 15:0 in the internal latch are written to address 2. MAC_network_control 0x000 Bits Data Element Name R/W Reset Value [31:13] [12] Reserved. Transmit_zero_quantum_pause_ packet Transmit_pause_packet RO WO 0x0 None WO None [11] Description Read as zero, ignored on write Writing a 1 to this bit transmits a pause packet with zero pause quantum at the next available transmitter idle time. Writing 1 to this bit transmits a pause packet with the pause quantum in the MAC_transmit_paulse_quantum register — at the next available transmitter idle time. Must be set to zero When set in half duplex mode forces collisions on all received packets. Setting this bit to 1 makes the Ethernet MAC counter registers writable for functional test purposes. Writing 1 increments all statistics registers by one for test purposes. Writing 1 clears the statistics registers. 0 = Disable PHY management port (MDIO high impedance, MDC forced low.) 1 = Enable the PHY management port 3 [10:9] [8] Reserved Back_pressure R/W 0x0 0x0 [7] R/W 0x0 [6] Write_enable_for_statistics_ registers Increment_statistics_reg WO 0x0 [5] [4] Clear_statistics_reg Management_port_enable WO R/W 0x0 0x0 214 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 MAC_network_control 0x000 Bits Data Element Name R/W Reset Value [3] Transmit_enable R/W 0x0 [2] Rx_enable R/W 0x0 [1:0] Reserved - 0x0 R/W Reset Value Description 0 = Stop transmission immediately, clear the transmit FIFO and control registers, and reset the transmit queue pointer register to point to the start of the transmit descriptor list. 1 = Enable the MAC transmitter to send data. This bit must be set during normal operation. 0 = Stop packet reception immediately 1 = Enable the MAC receiver to Rx data Must be set to zero MAC_network_configuration 0x004 Bits Data Element Name [31:20] [19] Reserved Ignore_Rx_FCS R/W 0x0 0x0 [18] Enable_half_duplex_Rx R/W 0x0 [17] [16] Reserved Rx_length_field_checking_enabl e R/W 0x0 0x0 [15:14] [13] Reserved Pause_enable R/W 0x0 0x0 [12] Retry_test R/W 0x0 [11:10] MDC_frequency R/W 0x2 [9] [8] Reserved Rx_2000_byte_packets R/W 0x0 0x0 [7:5] [4] [3:2] [1] Reserved Reserved Reserved Full_duplex [0] Speed R/W 0x0 0x0 0x0 0x0 R/W 0x0 R/W Description Read as zero, ignored on write When set, packets with FCS/CRC errors are not rejected and no FCS error statistics are counted. For normal operation, this bit must be set to 0. Enable packets to be received in half-duplex mode while transmitting. Must be set to zero When set, packets with measured lengths shorter than their length fields are discarded. Packets containing a type ID in bytes 13 and 14 (length/type field ≥0600) are not counted as length errors. Must be set to zero When set, Ethernet packet transmission pauses when a valid pause packet is received. Must be set to zero for normal operation. If set to one, the back-off between collisions is always one slot time. Setting this bit to one helps test the ‘too many retries condition’. Also used in pause packet tests to reduce the pause counters decrement time from 512 bit times to every CLK_MII_RX cycle. Set according to CLK_SYS speed. This field determines by what number CLK_SYS is divided to generate MDC. For conformance with 802.3 MDC must not exceed 2.5 MHz. (MDC is only active during MDIO read and write operations). Must be set to 0x2. Must be set to zero Setting this bit means the MAC receives packets up to 2000 bytes in length. Normally the MAC rejects any packet above 1518 bytes Must be set to zero Must be set to 1 Must be set to zero If set to 1 the transmit block ignores the state of collision and carrier sense and allows Rx while transmitting. 0 = 10 Mbit/s operation 1 = 100 Mbit/s operation Used only for RMII and SMII interfaces. 215 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 MAC_network_status 0x008 Bits [31:3] [2] [1:0] Data Element Name Reserved PHY_access_has_completed Reserved R/W Reset Value RO - 0x0 0x1 0x0 R/W Reset Value Description Must be set to zero 1 = PHY management logic is idle. Must be set to zero MAC_transmit_status 0x014 Bits Data Element Name [31:7] [6] Reserved Transmit_underrun R/W 0x0 0x0 [5:3] [2] Reserved Retry_limit_exceeded R/W 0x0 0x0 [1] [0] Collision_occurred Reserved R/W - 0x0 0x0 Description Must be set to zero Set when the MAC transmit FIFO was read while was empty. If this happens the transmitter forces bad CRC and forces MII_TX_ERR high. Write 1 to clear this bit. Must be set to zero Set when the retry limit has been exceeded. Write 1 to clear this bit. Set when a collision occurs. Write 1 to clear this bit. Must be set to zero The MAC generates a single interrupt, the ETH_MAC bit in the Intpend register. The MAC_interrupt_status register below indicates the source of this interrupt. For test purposes each bit can be set or reset by directly writing to this register regardless of the state of the mask register. Otherwise the corresponding bit in the MAC_interrupt_mask register must be cleared for a bit to be set in the MAC_interrupt_status register. All bits are reset to zero on read. If any bit is set in the MAC_interrupt_status register, the ETH_MAC bit is asserted. At reset all MAC interrupts are disabled. Writing a one to the relevant bit location in the MAC_interrupt_enable register below enables the associated interrupt. Writing a one to the relevant bit location in the MAC_interrupt_disable register below disables the associated interrupt. MAC_interrupt_enable and MAC_interrupt_disable are not registers but merely mechanisms for setting and clearing bits in the read-only MAC_interrupt_mask register. MAC_interrupt_status 0x024 Bits Data Element Name R/W Reset Value [31:14] [13] Reserved Pause_time_zero RO R/W 0x0 0x0 [12] Pause_packet_ Rxd R/W 0x0 [11:6] [5] [4] Reserved Retry_limit_exceeded Ethernet_transmit_underrun R/W R/W 0x0 0x0 0x0 [3:1] [0] Reserved Management_packet_sent R/W 0x0 0x0 Description Read 0, ignored on write Set when the MAC_pause_time register decrements to zero. Cleared when read. Indicates a valid pause packet has been received. Cleared when read. Must be set to zero Transmit error. Cleared when read. Set when the MAC transmit FIFO was read while was empty. If this happens the transmitter forces bad CRC and forces MII_TX_ERR high. Cleared when read. Must be set to zero The PHY maintenance register has completed its operation. Cleared when read. MAC_interrupt_enable 0x028 Bits [31:14] [13] [12] [11:6] Data Element Name Reserved Pause_time_zero Pause_packet_ Rxd Reserved R/W Reset Value WO WO - 0x0 0x0 0x0 0x0 Description Must be set to zero 1 = Enable Pause_time_zero interrupt 1 = Enable Pause_packet_Rxd interrupt Must be set to zero 216 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 MAC_interrupt_enable 0x028 Bits [5] [4] [3:1] [0] Data Element Name R/W Reset Value Retry_limit_exceeded Ethernet_transmit_underrun Reserved Management_packet_sent WO WO WO 0x0 0x0 0x0 0x0 Data Element Name R/W Reset Value Reserved Pause_time_zero Pause_packet_ Rxd Reserved Retry_limit_exceeded Ethernet_transmit_underrun Reserved Management_packet_sent WO WO WO WO WO 0x0 0x0 0x0 0x0 0x0 0x0 0x0 0x0 R/W Reset Value RO RO RO RO RO 0x0 0x1 0x1 0x0 0x1 0x1 0x0 0x1 Description 1 = Enable Retry_limit_exceeded interrupt 1 = Enable Ethernet_transmit_underrun interrupt Must be set to zero 1 = Enable Management_packet_sent interrupt MAC_interrupt_disable 0x02C Bits [31:14] [13] [12] [11:6] [5] [4] [3:1] [0] Description Must be set to zero 1 = Disable Pause_time_zero interrupt 1 = Disable Pause_packet_Rxd interrupt Must be set to zero 1 = Disable Retry_limit_exceeded interrupt 1 = Disable Ethernet_transmit_underrun interrupt Must be set to zero 1 = Disable Management_packet_sent interrupt MAC_interrupt_mask 0x030 Bits [31:14] [13] [12] [11:6] [5] [4] [3:1] [0] Data Element Name Reserved Pause_time_zero Pause_packet_ Rxd Reserved Retry_limit_exceeded Ethernet_transmit_underrun Reserved Management_packet_sent Description Must be set to zero 1 = Mask Pause_time_zero interrupt 1 = Mask Pause_packet_Rxd interrupt Must be set to zero 1 = Mask Retry_limit_exceeded interrupt 1 = Mask Ethernet_transmit_underrun interrupt Must be set to zero 1 = Mask Management_packet_sent interrupt 217 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 The MAC_PHY_maintenance register below enables the MAC to communicate with a PHY by means of the MDIO interface. It is used during auto negotiation to ensure that the MAC and the PHY are configured for the same speed and duplex configuration. The PHY maintenance register is implemented as a shift register. Writing to the register starts a shift operation which is signaled as complete when the PHY_access_has_completed bit is set in the MAC_network_status register (about 2000 CLK_SYS cycles later). An interrupt is generated as this bit is set. During this time, the MSB of the register is output on the MDIO pin and the LSB is updated from the MDIO pin with each MDC cycle. In this way a PHY management packet is transmitted on MDIO. See Section 22.2.4.5 of the IEEE 802.3 standard. Reading during the shift operation (not recommended) returns the current contents of the shift register. 3 At the end of the shift operation, the bits have shifted back to their original locations. For a read operation, the data bits are updated with data read from the PHY. It is important to write the correct values to the register to ensure a valid PHY management packet is produced. MAC_PHY_maintenance 0x034 Bits Data Element Name R/W Reset Value [31:30] [29:28] Start_of_packet Operation R/W R/W 0x0 0x0 [27:23] [22:18] [17:16] [15:0] PHY_address Register_address Must_be_written_to_10 PHY_data R/W R/W R/W R/W 0x0 0x0 0x0 0x0000 R/W Reset Value RO RO 0x0000 0x0000 Description Must be written 01 for a valid packet 00 = Reserved 01 = Write 10 = Read 11 = Reserved Specifies the PHY to access Specifies the register in the PHY to access Read as written For a write operation this field is the data to be written to the PHY. After a read operation this field contains the data read from the PHY MAC_pause_time 0x038 Bits [31:16] [15:0] Data Element Name Reserved Pause time Description Read 0, ignored on write Stores the current value of the pause time register, which is decremented every 512 bit times. MAC_specific_address_lower 0x098 Bits Data Element Name R/W Reset Value [31:0] MAC Specific Address [31:0] R/W 0x0 R/W Reset Value RO R/W 0x0000 0x0000 Description Least significant bits of the MAC specific address, i.e. bits 31:0. This field is used for transmission of pause packets as described in section 10.6.12.2. MAC_specific_address_upper 0x09C Bits [31:16] [15:0] Data Element Name Reserved MAC Specific Address [47:32] Description Read 0, ignored on write Most significant bits of the MAC specific address, i.e. bits 47:32. See MAC_specific_address_lower for details. 218 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 MAC_transmit_paulse_quantum 0x0BC Bits [31:16] [15:0] Data Element Name Reserved Pause_time R/W Reset Value R/W 0x0000 0xFFFF R/W Reset Value Description Must be set to zero Transmit pause quantum. Used in hardware generation of transmitted pause packets as value for pause quantum. PHY_SMII_status 0x0C0 Bits Data Element Name [31:21] [20] Reserved SMII_speed RO RO 0x0000 None [19] SMII_Duplex RO None [18] SMII_Link RO None [17] SMII_Jabber RO None [16] SMII_False_Carrier RO None [15:0] Reserved RO 0x0000 Description Must be set to zero Speed recovered from receive SMII 0=10Mbps, 1=100Mbps Duplex recovered from receive SMII 0=Half Duplex, 1=Full Duplex Link recovered from receive SMII 0=Link is Down, 1=Link is Up Jabber recovered from receive SMII 0=OK, 1=Error False carrier recovered from receive SMII 0=OK, 1=False carrier detected Must be set to zero 11.4.16.2 Ethernet MAC Counters Table 11-18. Ethernet MAC Counters Addr Register Name Offset 0x3C 0x40 0x44 0x48 0x4C 0x50 0x54 0x58 0x5C 0x60 0x64 0x68 0x74 0x78 0x7C 0x80 0x84 0x8C Pause_packets_Rxd_OK Packets_transmitted_OK Single_collision_packets Multiple_collision_packets Packets_Rxd_OK Packet_check_sequence_errors Alignment_errors Deferred_transmission_packets Late_collisions Excessive_collisions Transmit_underrun_errors Carrier_sense_errors Rx_symbol_errors Excessive_length_errors Rx_jabbers Undersize_packets SQE_test_errors Transmitted_pause_packets 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 4 Description Pause packets received OK counter Packets transmitted OK counter Single collision packets counter Multiple collision packets counter Packets received OK counter Packet check sequence errors counter Alignment errors counter Deferred transmission packets counter Late collisions counter Excessive collisions counter Transmit underrun errors counter Carrier sense errors counter Rx symbol errors counter Excessive length errors counter Rx jabbers counter Undersize packets counter SQE test errors counter Transmitted pause packets counter Page 220 220 220 220 220 220 221 221 221 221 221 222 222 222 222 222 223 223 4 These counters stick at their maximum value and do not roll over. They also reset to zero when read and therefore should be read frequently enough to prevent loss of data. The Rx counters are only incremented when the Rx_enable bit is set in the MAC_network_control register. 4 219 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Pause_packets_Rxd_OK 0x03C Bits [31:16] [15:0] Data Element Name Reserved Pause_packets_Rxd_OK R/W Reset Value R/W 0x0 0x0 Description Must be set to zero A 16-bit register counting the number of good pause packets received. A good packet has a length of 64 to 1518 (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register) and has no FCS, alignment or Rx symbol errors. 4 Packets_transmitted_OK 0x040 Bits [31:0] Data Element Name Packets_transmitted_OK R/W Reset Value R/W 0x0 R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 Description A 32-bit register counting the number of packets successfully transmitted, i.e. no underrun and not too many retries. Single_collision_packets 0x044 Bits [31:16] [15:0] Data Element Name Reserved Single_collision_packets Description Must be set to zero A 16-bit register counting the number of packets experiencing a single collision before being successfully transmitted, i.e. no underrun. Multiple_collision_packets 0x048 Bits [31:16] [15:0] Data Element Name Reserved Multiple_collision_packets Description Must be set to zero A 16-bit register counting the number of packets experiencing between two and fifteen collisions prior to being successfully transmitted, i.e. no underrun and not too many retries. Packets_Rxd_OK 0x04C Bits [31:24] [23:0] Data Element Name Reserved Packets_Rxd_OK Description Must be set to zero A 24-bit register counting the number of good packets received, i.e. packet length is 64 to 1518 bytes (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register) and has no FCS, alignment or Rx symbol errors. 4 Packet_check_sequence_errors 0x050 Bits [31:8] [7:0] Data Element Name R/W Reset Value Reserved Packet_check_sequence_errors R/W 0x0 0x0 Description Must be set to zero An 8-bit register counting packets that are an integral number of bytes, have bad CRC and are between 64 and 1518 bytes in length (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register). 4 220 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Alignment_errors 0x054 Bits [31:8] [7:0] Data Element Name Reserved Alignment_errors R/W Reset Value R/W 0x0 0x0 Description Must be set to zero An 8-bit register counting packets that are not an integral number of bytes long and have bad CRC when their length is truncated to an integral number of bytes and are between 64 and 1518 bytes in length (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register). 4 Deferred_transmission_packets 0x058 Bits [31:16] [15:0] Data Element Name Reserved Deferred_transmission_packets R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 Description Must be set to zero A 16-bit register counting the number of packets experiencing deferral due to carrier sense being active on their first attempt at transmission. Packets involved in any collision are not counted nor are packets that experienced a transmit underrun. Late_collisions 0x05C Bits [31:8] [7:0] Data Element Name Reserved Late_collisions Description Must be set to zero An 8-bit register counting the number of packets that experience a collision after the slot time (512 bits) has expired. A late collision is counted twice i.e. both as a collision and a late collision. Excessive_collisions 0x060 Bits [31:8] [7:0] Data Element Name Reserved Excessive_collisions Description Must be set to zero An 8-bit register counting the number of packets that failed to be transmitted because they experienced 16 collisions. Transmit_underrun_errors 0x064 Bits [31:8] [7:0] Data Element Name Reserved Transmit_underruns Description Must be set to zero An 8-bit register counting the number of packets not transmitted due to a transmit FIFO underrun. If this register is incremented, no other Ethernet MAC counter is incremented. 221 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Carrier_sense_errors 0x068 Bits [31:8] [7:0] Data Element Name Reserved Carrier_sense_errors R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 R/W Reset Value R/W 0x0 0x0 Description Must be set to zero An 8-bit register counting the number of packets transmitted where carrier sense was not seen during transmission or where carrier sense was deasserted after being asserted in a transmit packet without collision (no underrun). Only incremented in half-duplex mode. The only effect of a carrier sense error is to increment this register. The behavior of the other Ethernet MAC counters is unaffected by the detection of a carrier sense error. Rx_symbol_errors 0x074 Bits [31:8] [7:0] Data Element Name Reserved Rx_symbol_errors Description Must be set to zero An 8-bit register counting the number of packets that had MII_RX_ERR asserted during reception. Excessive_length_errors 0x078 Bits [31:8] [7:0] Data Element Name Reserved Excessive_length_packets Description Must be set to zero An 8-bit register counting the number of packets received exceeding 1518 bytes in length (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register) but do not have a CRC error, an alignment error nor a Rx symbol error. 4 Rx_jabbers 0x07C Bits [31:8] [7:0] Data Element Name Reserved Rx_jabbers R/W Reset Value R/W 0x0 0x00 Description Must be set to zero An 8-bit register counting the number of packets received exceeding 1518 bytes in length (2000 if Rx_2000_byte_packets is set in the MAC_network_configuration register) and have either a CRC error, an alignment error or a Rx symbol error. 4 Undersize_packets 0x080 Bits [31:8] [7:0] Data Element Name Reserved Undersize_packets R/W Reset Value R/W 0x0 0x0 Description Must be set to zero An 8-bit register counting the number of packets received less than 64 bytes in length, that do not have either a CRC error or an alignment error. 222 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 SQE_test_errors 0x084 Bits [31:8] [7:0] R/W Reset Value R/W 0x0 0x0 Data Element Name R/W Reset Value Reserved Transmitted_pause_packets R/W 0x0 0x0 Data Element Name Reserved SQE_test_errors Description Must be set to zero An 8-bit register counting the number of packets where collision was not asserted within 96 bit times (an interpacket gap) of MII_TX_EN being deasserted in half duplex mode. Transmitted_pause_packets 0x08C Bits [31:16] [15:0] Description Must be set to zero A 16-bit register counting the number of pause packets transmitted. 223 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.5 Framer, LIU and BERT Registers Table 11-19. Framer, LIU, BERT Memory Map Port Rx Framer (p. 224) Tx Formatter (p. 272) LIU (p. 303) BERT (p. 312) 1 100,000 – 100,3BC 100,400 – 100,7BC 104,000 – 104,07C 104,400 – 104,47C 2 100,800 – 100,BBC 100,C00 – 100,FBC 104,080 – 104,0FC 104,480 – 104,4FC 3 101,000 – 101,3BC 101,400 – 101,7BC 104,100 – 104,17C 104,500 – 104,57C 4 101,800 – 101,BBC 101,C00 – 101,FBC 104,180 – 104,1FC 104,580 – 104,5FC 5 102,000 – 102,3BC 102,400 – 102,7BC 104,200 – 104,27C 104,600 – 104,67C 6 102,800 – 102,BBC 102,C00 – 102,FBC 104,280 – 104,2FC 104,680 – 104,6FC 7 103,000 – 103,3BC 103,400 – 103,7BC 104,300 – 104,37C 104,700 – 104,77C 8 103,800 – 103,BBC 103,C00 – 103,FBC 104,380 – 104,3FC 104,780 – 104,7FC 11.5.1 Receive Framer Registers Table 11-20 lists the Rx framer registers. Some of these registers change function depending on whether E1 mode or T1/J1 mode is specified in the RMMR register. These dual-function registers are shown below using two lines of text, one for E1 and one for T1/J1. All addresses not listed in the table are reserved and should be initialized with a value of 0x00 for proper operation. The base address for the port n framer is 0x100,000+0x800*(n-1) (where n=1-8 for DS34T108, n=1-4 for DS34T104, n=1-2 for DS34T102, n=1 for DS34T101). The framer block was originally designed for an 8-bit data bus. In this device, each 8-bit register is mapped to the least significant byte of the dword. Table 11-20. Receive Framer Registers Addr Register Name Offset 0x000 004 008 00C 040 044 048 04C 050 054 080 084 088 08C 090 094 098 09C 0A0 0A4 0A8 0AC 0B0 0B4 0B8 RDMWE1-E1 RDMWE2-E1 RDMWE3-E1 RDMWE4-E1 RHC RHBSE RDS0SEL RSIGC RCR2-T1 RSAIMR RBOCC RIDR1 RIDR2 RIDR3 RIDR4 RIDR5 RIDR6 RIDR7 RIDR8 RIDR9 RIDR10 RIDR11 RIDR12 RIDR13 RIDR14 RIDR15 Description Rx Digital Milliwatt Enable Register 1 (E1 Only) Rx Digital Milliwatt Enable Register 2 (E1 Only) Rx Digital Milliwatt Enable Register 3 (E1 Only) Rx Digital Milliwatt Enable Register 4 (E1 Only) Rx HDLC Control Register Rx HDLC Bit Suppress Register Rx DS0 Monitor Select Register Rx Signaling Control Register Rx Control Register 2 (T1 Mode) Rx Sa Bit Interrupt Mask Register (E1 Mode) Rx BOC Control Register (T1 Mode Only) Rx Idle Definition 1 Rx Idle Definition 2 Rx Idle Definition 3 Rx Idle Definition 4 Rx Idle Definition 5 Rx Idle Definition 6 Rx Idle Definition 7 Rx Idle Definition 8 Rx Idle Definition 9 Rx Idle Definition 10 Rx Idle Definition 11 Rx Idle Definition 12 Rx Idle Definition 13 Rx Idle Definition 14 Rx Idle Definition 15 Read/Write or Read Only R/W R/W R/W R/W R/W R/W R/W R/W R/W Page 227 227 227 227 227 228 228 229 229 230 231 231 231 231 231 231 231 231 231 231 231 231 231 231 231 231 4 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 224 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 0BC 0C0 0C4 0C8 0CC 0D0 0D4 0D8 0DC 0E0 0E4 0E8 0EC 0F0 0F4 0F8 0FC 100 104 108 10C 110 114 118 11C 120 124 128 12C 130 134 138 13C 140 144 148 14C 150 154 158 15C 160 164 168 16C 180 184 188 18C 190 Register Name RIDR16 RIDR17 RIDR18 RIDR19 RIDR20 RIDR21 RIDR22 RIDR23 RIDR24 RSAOI1 RIDR25 RSAOI2 RIDR26 RSAOI3 RIDR27 RIDR28 RDMWE1-T1 RIDR29 RDMWE2-T1 RIDR30 RDMWE3-T1 RIDR31 RIDR32 RS1 RS2 RS3 RS4 RS5 RS6 RS7 RS8 RS9 RS10 RS11 RS12 RS13 RS14 RS15 RS16 LCVCR1 LCVCR2 PCVCR1 PCVCR2 FOSCR1 FOSCR2 EBCR1 EBCR2 FEACR1 FEACR2 FEBCR1 FEBCR2 RDS0M REVID RFDL RRTS7 RBOC RSLC1 RAF Description Rx Idle Definition 16 Rx Idle Definition 17 Rx Idle Definition 18 Rx Idle Definition 19 Rx Idle Definition 20 Rx Idle Definition 21 Rx Idle Definition 22 Rx Idle Definition 23 Rx Idle Definition 24 Rx Signaling All Ones Insertion Reg 1 (T1 Mode) Rx Idle Definition 25 (E1 Mode) Rx Signaling All Ones Insertion Reg 2 (T1 Mode) Rx Idle Definition 26 (E1 Mode) Rx Signaling All Ones Insertion Reg 3 (T1 Mode) Rx Idle Definition 27 (E1 Mode) Rx Idle Definition 28 (E1 Mode) Rx Digital Milliwatt Enable 1 (T1 Mode) Rx Idle Definition 29 (E1 Mode) Rx Digital Milliwatt Enable 2 (T1 Mode) Rx Idle Definition 30 (E1 Mode) Rx Digital Milliwatt Enable 3 (T1 Mode) Rx Idle Definition 31 (E1 Mode) Rx Idle Definition 32 (E1 Mode) Rx Signaling Register 1 Rx Signaling Register 2 Rx Signaling Register 3 Rx Signaling Register 4 Rx Signaling Register 5 Rx Signaling Register 6 Rx Signaling Register 7 Rx Signaling Register 8 Rx Signaling Register 9 Rx Signaling Register 10 Rx Signaling Register 11 Rx Signaling Register 12 Rx Signaling Register 13 (E1 Mode only) Rx Signaling Register 14 (E1 Mode only) Rx Signaling Register 15 (E1 Mode only) Rx Signaling Register 16 (E1 Mode only) Rx Line Code Violation Count Register 1 Rx Line Code Violation Count Register 2 Rx Path Code Violation Count Register 1 Rx Path Code Violation Count Register 2 Rx Frames Out of Sync Count Register 1 Rx Frames Out of Sync Count Register 2 Rx E-Bit Count Register 1 (E1 Mode Only) Rx E-Bit Count Register 2 (E1 Mode Only) Error Count A Register 1 Error Count A Register 2 Error Count B Register 1 Error Count B Register 2 Rx DS0 Monitor Register Framer Revision ID Register Rx FDL Register (T1 Mode) Rx Real-Time Status Register 7 (E1 Mode) Rx BOC Register (T1 Mode Only) Rx SLC96 Data Link Register 1 (T1 Mode) Rx Align Frame Register (E1 Mode) Read/Write or Read Only 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 R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R R Page 231 231 231 231 231 231 231 231 231 232 231 232 231 232 231 231 232 231 232 231 232 231 231 233 233 233 233 233 233 233 233 233 233 233 233 233 233 233 233 234 234 234 234 235 235 235 235 236 236 236 236 237 237 237 237 238 238 238 225 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 194 198 19C 1A0 1A4 1A8 1AC 1B0 1B4 1B8 1BC 200 204 208 20C 210 214 218 21C 224 228 22C 240 244 248 24C 250 258 260 264 268 26C 270 274 27C 280 284 288 28C 290 298 2A0 2A4 2A8 2AC 2B0 2B4 2B8 2BC Register Name RSLC2 RNAF RSLC3 RSiAF RSiNAF RRA RSa4 RSa5 RSa6 RSa7 RSa8 SABITS Sa6CODE RMMR RCR1-T1 RCR1-E1 RIBCC RCR2-E1 RCR3 RIOCR RESCR ERCNT RHFC RSCC RXPC RBPBS RLS1 RLS2-T1 RLS2-E1 RLS3-T1 RLS3-E1 RLS4 RLS5 RLS7-T1 RLS7-E1 RSS1 RSS2 RSS3 RSS4 RSCD1 RSCD2 RIIR RIM1 RIM2 RIM3-T1 RIM3-E1 RIM4 RIM5 RIM7-T1 RIM7-E1 RSCSE1 RSCSE2 RSCSE3 RSCSE4 RUPCD1 RUPCD2 RDNCD1 RDNCD2 Description Rx SLC96 Data Link Register 2 (T1 Mode) Rx Non-Align Frame Register (E1 Mode) Rx SLC96 Data Link Register 3 (T1 Mode) Rx Si Bits of the Align Frames (E1 Mode) Rx Si Bits of the Non-Align Frames (E1 Only) Rx Remote Alarm Bits (E1 Mode Only) Rx Sa4 Bits (E1 Mode Only) Rx Sa5 Bits (E1 Mode Only) Rx Sa6 Bits (E1 Mode Only) Rx Sa7 Bits (E1 Mode Only) Rx Sa8 Bits (E1 Mode Only) Rx Sa Bits (E1 Mode Only) Sa6 Codeword (E1 Mode Only) Rx Master Mode Register Rx Control Register 1 (T1 Mode) Rx Control Register 1 (E1 Mode) Rx In-Band Code Control Register (T1 Mode) Rx Control Register 2 (E1 Mode) Rx Control Register 3 Rx I/O Configuration Register Rx Elastic Store Control Register Rx Error Count Configuration Register Rx HDLC FIFO Control Register Rx In-Band Spare Control Register (T1 Mode Only) Rx eXpansion Port Control Register Rx BERT Port Bit Suppress Register Rx Latched Status Register 1 Rx Latched Status Register 2 (T1 Mode) Rx Latched Status Register 2 (E1 Mode) Rx Latched Status Register 3 (T1 Mode) Rx Latched Status Register 3 (E1 Mode) Rx Latched Status Register 4 Rx Latched Status Register 5 Rx Latched Status Register 7 (T1 Mode) Rx Latched Status Register 7 (E11 Mode) Rx Signaling Status Register 1 Rx Signaling Status Register 2 Rx Signaling Status Register 3 Rx Signaling Status Register 4 (E1 Mode Only) Rx Spare Code Definition Reg 1 (T1 Mode Only) Rx Spare Code Definition Reg 2 (T1 Mode Only) Rx Interrupt Information Register Rx Interrupt Mask Register 1 Rx Interrupt Mask Register 2 (E1 Mode Only) Rx Interrupt Mask Register 3 (T1 Mode) Rx Interrupt Mask Register 3 (E1 Mode) Rx Interrupt Mask Register 4 Rx Interrupt Mask Register 5 Rx Interrupt Mask Register 7 (T1 Mode) Rx Interrupt Mask Register 7 (E1 Mode) Rx Signaling Change of State Interrupt Enable 1 Rx Signaling Change of State Interrupt Enable 2 Rx Signaling Change of State Interrupt Enable 3 Rx Signaling Change of State Interrupt Enable 4 Rx Up Code Definition Register 1 (T1 Mode Only) Rx Up Code Definition Register 2 (T1 Mode Only) Rx Down Code Definition Register 1 (T1 Mode Only) Rx Down Code Definition Register 2 (T1 Mode Only) Read/Write or Read Only R R R R R R R R R R R 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 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 R/W R/W Page 238 239 238 239 240 240 241 241 242 242 243 243 244 244 245 246 247 247 248 249 250 250 251 252 252 253 253 254 254 255 256 257 257 258 258 259 259 259 259 259 259 260 260 261 261 262 263 263 264 265 265 265 265 265 265 266 266 267 226 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 2C0 2C8 2D0 2D4 2D8 300 304 308 30C 320 324 328 32C 340 344 348 34C 350 354 358 35C Register Name RRTS1 RRTS3-T1 RRTS3-E1 RRTS5 RHPBA RHF RBCS1 RBCS2 RBCS3 RBCS4 RSI1 RSI2 RSI3 RSI4 RCICE1 RCICE2 RCICE3 RCICE4 RBPCS1 RBPCS2 RBPCS3 RBPCS4 Register Name: Register Description: Register Address: Read/Write or Read Only Description Rx Real-Time Status Register 1 Rx Real-Time Status Register 3 (T1 Mode) Rx Real-Time Status Register 3 (E1 Mode) Rx Real-Time Status Register 5 Rx HDLC Packet Bytes Available Register Rx HDLC FIFO Register Rx Blank Channel Select Register 1 Rx Blank Channel Select Register 2 Rx Blank Channel Select Register 3 Rx Blank Channel Select Register 4 (E1 Mode Only) Rx Signaling Reinsertion Enable Reg 1 Rx Signaling Reinsertion Enable Reg 2 Rx Signaling Reinsertion Enable Reg 3 Rx Signaling Reinsertion Enable Reg 4 (E1 Only) Rx Channel Idle Code Enable Reg 1 Rx Channel Idle Code Enable Reg 2 Rx Channel Idle Code Enable Reg 3 Rx Channel Idle Code Enable Reg 4 (E1 Only) Rx BERT Port Channel Select Register 1 Rx BERT Port Channel Select Register 2 Rx BERT Port Channel Select Register 3 Rx BERT Port Channel Select Register 4 (E1 Only) R R R R R 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 Page 267 268 268 269 269 270 270 270 270 270 270 270 270 270 271 271 271 271 271 271 271 271 RDMWE1-E1, RDMWE2-E1, RDMWE3-E1, RDMWE4-E1 Receive Digital Milliwatt Enable Registers (E1 Mode Only) base address + 0x000, 0x004, 0x008, 0x00C Bit # 7 6 5 4 3 2 1 0 RDMWE1-E1 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 RDMWE2-E1 CH16 CH15 CH14 CH13 CH12 CH11 CH10 CH9 RDMWE3-E1 CH24 CH23 CH22 CH21 CH20 CH19 CH18 CH17 RDMWE4-E1 CH32 CH31 CH30 CH29 CH28 CH27 CH26 CH25 Note: These registers are only used in E1 mode. The RDMWE1-T1 – RDMWE3-T1 registers are used in T1 mode. Bits 7 to 0 (x4): E1 Rx Digital Milliwatt Enable for Channels 1 to 32 (CH1 to CH32). Register bit RCR3.uALAW specifies whether u-law or A-law coding is used for the digital milliwatt code. See section 10.11.13. 0 = Do not affect the Rx data associated with this channel 1 = Replace the Rx data associated with this channel with digital milliwatt code Register Name: Register Description: Register Address: Bit # Name Default 7 RCRCD 0 RHC Receive HDLC Control Register base address + 0x040 6 RHR 0 5 RHMS 0 4 RHCS4 0 3 RHCS3 0 2 RHCS2 0 1 RHCS1 0 0 RHCS0 0 Bit 7: Receive CRC-16 Display (RCRCD). See section 10.12.1. 0 = Do not write received CRC-16 code to FIFO. (default) 1 = Write received CRC-16 code to FIFO after last octet of packet. 227 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 6: Receive HDLC Reset (RHR). Resets the receive HDLC controller and flushes the receive HDLC FIFO. Note that this bit is an acknowledged reset. The CPU sets this bit and the device clears it after the reset operation is complete. The device completes the HDLC reset within 2 frames. See section 10.12.1. 0 = Normal operation 1 = Reset receive HDLC controller and flush the Rx HDLC FIFO Bit 5: Receive HDLC Mapping Select (RHMS). See section 10.12.1. 0 = Receive HDLC assigned to DS0 channel specified by RHCS[4:0] below 1 = Receive HDLC assigned to FDL (T1 mode) or Sa Bits (E1 mode) Bit 4 to 0: Receive HDLC Channel Select 4 to 0 (RHCS[4:0]). These bits specify which DS0 is mapped to the HDLC controller when enabled with RHMS=0. RHCS[4:0]=00000 selects channel 1, while RHCS[4:0]=11111 selects channel 32. Channel numbers greater than 24 are invalid in T1 mode. A change to this field is acknowledged only after a receive HDLC reset (RHR bit above). See section 10.12.1. Register Name: Register Description: Register Address: Bit # Name Default 7 BSE8 0 RHBSE Receive HDLC Bit Suppress Register base address + 0x044 6 BSE7 0 5 BSE6 0 4 BSE5 0 3 BSE4 0 2 BSE3 0 1 BSE2 0 0 BSE1 0 Bits 7 to 0: Rx Bit Suppress 8 to 1 (BSE[8:1]). These bits specify whether the corresponding bit of the DS0 channel should be included or excluded (suppressed) in the data stream sent to the Rx HDLC controller. BSE8 is the MSb of the channel. See section 10.12.1. 0 = Include this bit in the data stream 1= Don’t include (suppress) this bit Register Name: Register Description: Register Address: Bit # Name Default 7 0 RDS0SEL Receive DS0 Monitor Select Register base address + 0x048 6 0 5 0 4 RCM4 0 3 RCM3 0 2 RCM2 0 1 RCM1 0 0 RCM0 0 Bits 4 to 0: Rx Channel Monitor Bits (RCM[4:0]). This field specifies which Rx DS0 channel’s data is available to be read from the RDS0M register. 00000=channel 1. 11111=channel 32. See section 10.11.9. 228 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name T1 Name E1 Default RSIGC Receive Signaling Control Register base address + 0x04C 7 0 6 0 5 0 4 RFSA1 CASMS 0 3 0 2 RSFF 0 1 RSFE 0 0 RSIE 0 Bit 4 (T1 Mode): Rx Force Signaling All Ones (RFSA1). See Section 10.11.3.2. 0 = Do not force robbed bit signaling to all ones on RSER 1 = Force signaling bits on RSER to all ones on a per-channel basis according to the RSAOI registers. Bit 4 (E1 Mode): CAS Mode Select (CASMS). 0 = The framer initiates a resync when two consecutive multiframe alignment signals have been received with an error. 1 = The framer initiates a resync when two consecutive multiframe alignment signals have been received with an error, OR 1 multiframe has been received with all the bits in timeslot 16 in state 0. Alignment criteria is met when at least one bit is set to 1 in the timeslot 16 preceding the multiframe alignment signal first detected (G.732 alternate criteria). Bit 2: Rx Signaling Force Freeze (RSFF). Freezes Rx side signaling at RSIG (and RSER if Rx Signaling Reinsertion is enabled). Overrides Rx Freeze Enable (RFE) bit below. See Section 10.11.3.2. 0 = Do not force a freeze event 1 = Force a freeze event Bit 1: Rx Signaling Freeze Enable (RSFE). See Section 10.11.3.2. 0 = No freezing of Rx signaling data occurs 1 = Allow freezing of Rx signaling data at RSIG (and RSER if Rx signaling reinsertion is enabled). Bit 0: Rx Signaling Integration Enable (RSIE). See Section 10.11.3.2. 0 = All signaling changes immediately reported with no integration 1 = Signaling must be stable for 3 multiframes before a change is reported Register Name: Register Description: Register Address: RCR2-T1 Receive Control Register 2 (T1 Mode) base address + 0x050 Bit # 7 6 5 4 3 Name RSLC96 OOF2 Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RSAIMR. 2 OOF1 0 1 RAIIE 0 0 RD4RM 0 Bit 4: Rx SLC-96 Synchronizer Enable (RSLC96). See Section 10.11.16.2 for SLC-96 details. 0 = the SLC-96 synchronizer is disabled 1 = the SLC-96 synchronizer is enabled Bits 3 to 2: Out-of-Frame Select Bits (OOF[2:1]). OOF2 0 0 1 1 OOF1 0 1 0 1 OUT OF FRAME CRITERIA 2 out of 4 frame bits in error 2 out of 5 frame bits in error 2 out of 6 frame bits in error 2 out of 6 frame bits in error 229 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 1: Rx RAI Integration Enable (RAIIE). The ESF RAI indication can be interrupted for a period not to exceed 100ms per interruption (T1.403). In ESF mode, setting RAIIE causes the RAI status from the framer to be integrated for 200ms. 0 = RAI detects when 16 consecutive patterns of 0x00FF appear in the FDL. RAI clears when 14 or less patterns of 0x00FF out of 16 possible appear in the FDL 1 = RAI detects when the condition has been present for greater than 200ms. RAI clears when the condition has been absent for greater than 200ms. Bit 0: Rx Side D4 Remote Alarm Select (RD4RM). 0 = zeros in bit 2 of all channels 1 = a one in the S-bit position of frame 12 (Japanese J1 yellow alarm mode) Register Name: Register Description: Register Address: RSAIMR Receive Sa Bit Interrupt Mask Register (E1 Mode) base address + 0x050 Bit # 7 6 5 4 3 Name RSa4IM RSa5IM Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RCR2-T1. 2 RSa6IM 0 1 RSa7IM 0 0 RSa8IM 0 See section 10.11.5.3. Bit 4: Sa4 Change Detect Interrupt Mask. This bit enables the change detect interrupt for the Sa4 bit. Any change of state of the received Sa4 bit generates an interrupt (RLS7.SaXCD) to indicate the change of state. 0 = Interrupt Masked. 1 = Interrupt Enabled Bit 3: Sa5 Change Detect Interrupt Mask. This bit enables the change detect interrupt for the Sa5 bit. Any change of state of the received Sa5 bit generates an interrupt (RLS7-E1.SaXCD) to indicate the change of state. 0 = Interrupt Masked. 1 = Interrupt Enabled. Bit 2: Sa6 Change Detect Interrupt Mask. This bit enables the change detect interrupt for the Sa6 bit. Any change of state of the received Sa6 bit generates an interrupt (RLS7-E1.SaXCD) to indicate the change of state. 0 = Interrupt Masked. 1 = Interrupt Enabled. Bit 1: Sa7 Change Detect Interrupt Mask. This bit enables the change detect interrupt for the Sa7 bit. Any change of state of the received Sa7 bit generates an interrupt (RLS7-E1.SaXCD) to indicate the change of state. 0 = Interrupt Masked. 1 = Interrupt Enabled. Bit 0: Sa8 Change Detect Interrupt Mask. This bit enables the change detect interrupt for the Sa8 bit. Any change of state of the received Sa8 bit generates an interrupt (RLS7-E1.SaXCD) to indicate the change of state. 0 = Interrupt Masked. 1 = Interrupt Enabled. 230 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default RBOCC Receive BOC Control Register (T1 Mode Only) base address + 0x054 7 RBR 0 6 0 5 RBD1 0 4 RBD0 0 3 RIE 0 2 RBF1 0 1 RBF0 0 0 0 Bit 7: Rx BOC Reset (RBR). Setting this bit to 1 forces a reset of the BOC circuitry. Note that this is an acknowledged reset – the CPU sets the bit and the device clears it after the reset operation is complete (less than 250s). Modifications to the RBF[1:0] and RBD[1:0] fields are ignored by the BOC controller until a BOC reset has been completed. See section 10.11.4.2. Bits 5, 4: Rx BOC Disintegration (RBD[1:0]). The BOC disintegration filter sets the number of message bits that must be received without a valid BOC before the RLS7.BC bit is set to indicate that a valid BOC is no longer being received. See section 10.11.4.2. RBD1 RBD0 0 0 1 1 0 1 0 1 CONSECUTIVE MESSAGE BITS FOR BOC CLEAR IDENTIFICATION 16 32 48 641 Bit 3: RBOC 7/10 Integration Enable (RBI). This bit enables RBOC 7 of 10 integration. See section 10.11.4.2. 0 = 7/10 integration disable 1 = 7/10 integration enabled Bits 2, 1: Rx BOC Filter bits (RBF[1:0]). The BOC filter sets the number of consecutive BOC codes that must be received without error before the RLS7-T1.BD bit is set to indicate that a valid BOC is being received. See section 10.11.4.2. RBF1 RBF0 0 0 1 1 0 1 0 1 CONSECUTIVE BOC CODES FOR VALID SEQUENCE IDENTIFICATION None 3 5 71 Note 1. The BOC controller does not integrate and disintegrate concurrently. Therefore, if the maximum integration and disintegration times are taken together, BOC messages that repeat fewer than 11 times may not be detected. Register Name: Register Description: Register Address: Bit # Name Default 7 C7 0 RIDR1 to RIDR32 Receive Idle Code Definition Registers 1 to 32 base address + 0x080 + 0x04*(n-1), n = channel number = 1 to 32 6 C6 0 5 C5 0 4 C4 0 3 C3 0 2 C2 0 1 C1 0 0 C0 0 Bits 7 to 0: Per-Channel Idle Code Bits (C[7:0]). C0 is the LSB of the code (this bit is transmitted last). Address 0x80 holds the idle code for channel 1. Address 0xDC is for channel 24. Address 0xFC is for channel 32. Note that RIDR25 to RIDR32 are only for E1 mode and become the RSAOI and RDMWE registers in T1 mode. See section 10.11.12. 231 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name : Register Description: Register Address: RSAOI1, RSAOI2, RSAOI3 Receive Signaling All-Ones Insertion Registers (T1 Mode Only) base address + 0x0E0, 0x0E4, 0x0E8 Bit # 7 6 5 4 3 2 RSAOI1 CH8 CH7 CH6 CH5 CH4 CH3 RSAOI2 CH16 CH15 CH14 CH13 CH12 CH11 RSAOI3 CH24 CH23 CH22 CH21 CH20 CH19 Note: These registers have alternate definitions for E1 mode. See E1RIDR25-27. 1 CH2 CH10 CH18 0 CH1 CH9 CH17 Bits 7 to 0 (x3): Rx Signaling All-Ones Insertion Enable for Channels 1 to 24 (CH1 to CH24). Setting any of the CH1 through CH24 bits in these registers causes signaling data on RSER to be replaced with logic ones for those channels The RSIG signal continues to report the signaling data actually received. Note that this feature must be enabled by setting RSIGC.RFSA1=1. See Section 10.11.3.2. 0 = Do not affect the signaling data on RSER for this channel 1 = Replace the signaling data for this channel on RSER with all ones Register Name : Register Description: Register Address: RDMWE1-T1, RDMWE2-T1, RDMWE3-T1 Receive Digital Milliwatt Enable Registers (T1 Mode Only) base address + 0x0F0, 0x0F4, 0x0F8 Bit # 7 6 5 4 3 2 1 0 RDMWE1-T1 CH8 CH7 CH6 CH5 CH4 CH3 CH2 CH1 RDMWE2-T1 CH16 CH15 CH14 CH13 CH12 CH11 CH10 CH9 RDMWE3-T1 CH24 CH23 CH22 CH21 CH20 CH19 CH18 CH17 Note: These registers have alternate definitions for E1 mode. See E1RIDR29-31. Note: These registers are only used in T1 mode. The RDMWE1-E1 – RDMWE4-E1 registers are used in E1 mode. Bits 7 to 0 (x3): T1 Rx Digital Milliwatt Enable for Channels 1 to 24 (CH1 to CH24). Register bit RCR3.uALAW specifies whether u-law or A-law coding is used for the digital milliwatt code. See section 10.11.13. 0 = Do not affect the Rx data associated with this channel 1 = Replace the Rx data associated with this channel with digital milliwatt code 232 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RS1 to RS16 Receive Signaling Registers base address + 0x100 + 0x04*(n-1), n = 1 to 16 T1 Mode : Bit # 7 RS1 CH1-A RS2 CH2-A RS3 CH3-A RS4 CH4-A RS5 CH5-A RS6 CH6-A RS7 CH7-A RS8 CH8-A RS9 CH9-A RS10 CH10-A RS11 CH11-A RS12 CH12-A 6 CH1-B CH2-B CH3-B CH4-B CH5-B CH6-B CH7-B CH8-B CH9-B CH10-B CH11-B CH12-B 5 CH1-C CH2-C CH3-C CH4-C CH5-C CH6-C CH7-C CH8-C CH9-C CH10-C CH11-C CH12-C 4 CH1-D CH2-D CH3-D CH4-D CH5-D CH6-D CH7-D CH8-D CH9-D CH10-D CH11-D CH12-D 3 CH13-A CH14-A CH15-A CH16-A CH17-A CH18-A CH19-A CH20-A CH21-A CH22-A CH23-A CH24-A 2 CH13-B CH14-B CH15-B CH16-B CH17-B CH18-B CH19-B CH20-B CH21-B CH22-B CH23-B CH24-B 1 CH13-C CH14-C CH15-C CH16-C CH17-C CH18-C CH19-C CH20-C CH21-C CH22-C CH23-C CH24-C 0 CH13-D CH14-D CH15-D CH16-D CH17-D CH18-D CH19-D CH20-D CH21-D CH22-D CH23-D CH24-D E1 Mode: Bit # RS1 RS2 RS3 RS4 RS5 RS6 RS7 RS8 RS9 RS10 RS11 RS12 RS13 RS14 RS15 RS16 6 0 CH1-B CH2-B CH3-B CH4-B CH5-B CH6-B CH7-B CH8-B CH9-B CH10-B CH11-B CH12-B CH13-B CH14-B CH15-B 5 0 CH1-C CH2-C CH3-C CH4-C CH5-C CH6-C CH7-C CH8-C CH9-C CH10-C CH11-C CH12-C CH13-C CH14-C CH15-C 4 0 CH1-D CH2-D CH3-D CH4-D CH5-D CH6-D CH7-D CH8-D CH9-D CH10-D CH11-D CH12-D CH13-D CH14-D CH15-D 3 X CH16-A CH17-A CH18-A CH19-A CH20-A CH21-A CH22-A CH23-A CH24-A CH25-A CH26-A CH27-A CH28-A CH29-A CH30-A 2 Y CH16-B CH17-B CH18-B CH19-B CH20-B CH21-B CH22-B CH23-B CH24-B CH25-B CH26-B CH27-B CH28-B CH29-B CH30-B 1 X CH16-C CH17-C CH18-C CH19-C CH20-C CH21-C CH22-C CH23-C CH24-C CH25-C CH26-C CH27-C CH28-C CH29-C CH30-C 0 X CH16-D CH17-D CH18-D CH19-D CH20-D CH21-D CH22-D CH23-D CH24-D CH25-D CH26-D CH27-D CH28-D CH29-D CH30-D 7 0 CH1-A CH2-A CH3-A CH4-A CH5-A CH6-A CH7-A CH8-A CH9-A CH10-A CH11-A CH12-A CH13-A CH14-A CH15-A In the T1 ESF framing mode, there can be up to four signaling bits per channel (A, B, C, and D). In the T1 SF (D4) framing mode, there are only two signaling bits per channel (A and B), and the framer repeats the A and B signaling data in the C and D bit locations. Therefore, when the framer is operated in SF framing mode, the CPU must retrieve the signaling bits every 1.5ms vs. every 3ms for ESF mode. The Rx signaling registers are frozen and not updated during an out-of-frame (OOF) condition. 233 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 LCVC15 0 LCVCR1 Line Code Violation Count Register 1 base address + 0x140 6 LCVC14 0 5 LCVC13 0 4 LCVC12 0 3 LCVC11 0 2 LCVC10 0 1 LCVC9 0 0 LCCV8 0 Bits 7 to 0: Line Code Violation Counter Bits 15 to 8 (LCVC15 to LCVC8). LCV15 is the MSB of the 16-bit line code violation count. See section 10.11.8.1. Register Name: Register Description: Register Address: Bit # Name Default 7 LCVC7 0 LCVCR2 Line Code Violation Count Register 2 base address + 0x144 6 LCVC6 0 5 LCVC5 0 4 LCVC4 0 3 LCVC3 0 2 LCVC2 0 1 LCVC1 0 0 LCVC0 0 Bits 7 to 0: Line Code Violation Counter Bits 7 to 0 (LCVC7 to LCVC0). LCV0 is the LSB of the 16-bit line code violation count. See section 10.11.8.1. Register Name: Register Description: Register Address: Bit # Name Default 7 PCVC15 0 PCVCR1 Path Code Violation Count Register 1 base address + 0x148 6 PCVC14 0 5 PCVC13 0 4 PCVC12 0 3 PCVC11 0 2 PCVC10 0 1 PCVC9 0 0 PCVC8 0 Bits 7 to 0: Path Code Violation Counter Bits 15 to 8 (PCVC15 to PCVC8). PCVC15 is the MSB of the 16-bit path code violation count. See section 10.11.8.2. Register Name: Register Description: Register Address: Bit # Name Default 7 PCVC7 0 PCVCR2 Path Code Violation Count Register 2 base address + 0x14C 6 PCVC6 0 5 PCVC5 0 4 PCVC4 0 3 PCVC3 0 2 PCVC2 0 1 PCVC1 0 0 PCVC0 0 Bits 7 to 0: Path Code Violation Counter Bits 7 to 0 (PCVC7 to PCVC0). PCVC0 is the LSB of the 16-bit path code violation count. See section 10.11.8.2. 234 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 FOS15 0 FOSCR1 Frames Out-of-Sync Count Register 1 base address + 0x150 6 FOS14 0 5 FOS13 0 4 FOS12 0 3 FOS11 0 2 FOS10 0 1 FOS9 0 0 FOS8 0 Bits 7 to 0: Frames Out of Sync Counter Bits 15 to 8 (FOS15 to FOS8). FOS15 is the MSB of the 16-bit frames out-of-sync count. See section 10.11.8.3. Register Name: Register Description: Register Address: Bit # Name Default 7 FOS7 0 FOSCR2 Frames Out-of-Sync Count Register 2 base address + 0x154 6 FOS6 0 5 FOS5 0 4 FOS4 0 3 FOS3 0 2 FOS2 0 1 FOS1 0 0 FOS0 0 Bits 7 to 0: Frames Out of Sync Counter Bits 7 to 0 (FOS7 to FOS0). FOS0 is the LSB of the 16-bit frames outof-sync count. See section 10.11.8.3. Register Name: Register Description: Register Address: Bit # Name Default 7 EB15 0 EBCR1 E-Bit Count Register 1 (E1 Mode Only) base address + 0x158 6 EB14 0 5 EB13 0 4 EB12 0 3 EB11 0 2 EB10 0 1 EB9 0 0 EB8 0 Bits 7 to 0: E-Bit Counter Bits 15 to 8 (EB15 to EB8). EB15 is the MSB of the 16-bit E-bit count. See section 10.11.8.4. Register Name: Register Description: Register Address: Bit # Name Default 7 EB7 0 EBCR2 E-Bit Count Register 2 (E1 Mode Only) base address + 0x15C 6 EB6 0 5 EB5 0 4 EB4 0 3 EB3 0 2 EB2 0 1 EB1 0 0 EB0 0 Bits 7 to 0: E-Bit Counter Bits 7 to 0 (EB7 to EB0). EB0 is the LSB of the 16-bit E-bit count. See section 10.11.8.4. 235 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 FEACR15 0 FEACR1 Error Count A Register 1 base address + 0x160 6 FEACR14 0 5 FEACR13 0 4 FEACR12 0 3 FEACR11 0 2 FEACR10 0 1 FEACR9 0 0 FEACR8 0 Bits 7 to 0: Error Count A Register bits 15 to 8 (FEACR[15:8]). FEACR15 is the MSB of the 16-bit Far End A Counter. Register Name: Register Description: Register Address: Bit # Name Default 7 FEACR7 0 FEACR2 Error Count A Register 2 base address + 0x164 6 FEACR6 0 5 FEACR5 0 4 FEACR4 0 3 FEACR3 0 2 FEACR2 0 1 FEACR1 0 0 FEACR0 0 Bits 7 to 0: Error Count A Register bits 7 to 0 (FEACR[7:0]). FEACR0 is the LSB of the 16-bit Far End A Counter. Register Name: Register Description: Register Address: Bit # Name Default 7 FEBCR15 0 FEBCR1 Error Count B Register 1 base address + 0x168 6 FEBCR14 0 5 FEBCR13 0 4 FEBCR12 0 3 FEBCR11 0 2 FEBCR10 0 1 FEBCR9 0 0 FEBCR8 0 Bits 7 to 0: Error Count B Register bits 15 to 8 (FEBCR[15:8]). FEBCR15 is the MSB of the 16-bit Far End Error B Counter. Register Name: Register Description: Register Address: Bit # Name Default 7 FEBCR7 0 FEBCR2 Error Count B Register 2 base address + 0x16C 6 FEBCR6 0 5 FEBCR5 0 4 FEBCR4 0 3 FEBCR3 0 2 FEBCR2 0 1 FEBCR1 0 0 FEBCR0 0 Bits 7 to 0: Error Count B Register bits 7 to 0 (FEBCR[7:0]). FEBCR0 is the LSB of the 16-bit Far End Error B Counter. 236 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 B1 0 RDS0M Receive DS0 Monitor Register base address + 0x180 6 B2 0 5 B3 0 4 B4 0 3 B5 0 2 B6 0 1 B7 0 0 B8 0 Bits 7 to 0: Rx DS0 Channel Bits (B1 to B8). Rx data for the channel specified by the Rx DS0 Monitor Select Register, RDS0SEL. B8 is the LSb of the DS0 channel (last bit to be received). See section 10.11.9. Register Name: Register Description: Register Address: Bit # Name Default 7 REVID7 0 REVID Framer Revision ID Register base address + 0x184 6 REVID6 0 5 REVID5 0 4 REVID4 0 3 REVID3 0 2 REVID2 0 1 REVID1 1 0 REVID0 1 Bits 7 to 0: Revision ID (REVID[7:0]). This read-only register reports the current framer revision. Register Name: Register Description: Register Address: RFDL Receive FDL Register (T1 Mode Only) base address + 0x188 Bit # 7 6 5 4 3 Name RFDL7 RFDL6 RFDL5 RFDL4 RFDL3 Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RRTS7. 2 RFDL2 0 1 RFDL1 0 0 RFDL0 0 Bits 7 to 0: Rx FDL (RFDL[7:0]). This register reports the last byte received in the facilities data link. Bit 7 is the MSb. See section 10.11.4.4. Register Name: Register Description: Register Address: RRTS7 Receive Real-Time Status Register 7 (E1 Mode Only) base address + 0x188 Bit # 7 6 5 4 3 2 1 0 Name CSC5 CSC4 CSC3 CSC2 CSC0 CRC4SA CASSA FASSA Default 0 0 0 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RFDL. All bits in this register are read-only realtime status (not latched). Bits 7 to 3: CRC-4 Sync Counter (CSC[5:2] and CSC0). The CRC-4 sync counter increments each time the 8 ms CRC-4 multiframe search times out. The counter is cleared when the framer has successfully obtained synchronization at the CRC-4 level. The counter can also be cleared by disabling the CRC-4 mode (RCR1E1.RCRC4=0). This counter is useful for determining the amount of time the framer has been searching for synchronization at the CRC-4 level. ITU-T G.706 suggests that if synchronization at the CRC-4 level cannot be obtained within 400 ms, then the search should be abandoned and proper action taken. The CRC-4 sync counter saturates (does not rollover). CSC0 is the LSB of the 6–bit counter. (Note: The next to LSB is not accessible. CSC1 is omitted to allow resolution to >400ms using 5 bits.) 237 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 2: CRC-4 MF Sync Active (CRC4SA). This real-time status bit is set while the synchronizer is searching for the CRC-4 MF alignment word. Bit 1: CAS MF Sync Active (CASSA). This real-time status bit is set while the synchronizer is searching for the CAS MF alignment word. Bit 0: FAS Sync Active (FASSA). This real-time status bit is set while the synchronizer is searching for alignment at the FAS level. Register Name: Register Description: Register Address: Bit # Name Default RBOC Receive Bit-Oriented Code Register (T1 Mode Only) base address + 0x18C 7 0 6 0 5 RBOC5 0 4 RBOC4 0 3 RBOC3 0 2 RBOC2 0 1 RBOC1 0 0 RBOC0 0 Bits 5 to 0: Rx Bit-Oriented Code (RBOC[5:0]). T1 ESF mode only. After a BOC has been validated per the criteria specified by RBOCC.RBF, the BOC is stored in this field where it can be read by software. The device notifies software that a valid BOC is available by setting the BD bit in RLS7. Setting BD can optionally drive an interrupt request. Bit 0 is the first bit received. See section 10.11.4.2. Register Name : Register Description: Register Address: RSLC1, RSLC2, RSLC3 Receive SLC96 Data Link Registers (T1 Mode) base address + 0x190, 0x194, 0x198 Bit # 7 6 5 4 3 2 1 RSLC1 C8 C7 C6 C5 C4 C3 C2 RSLC2 M2 M1 S=0 S=1 S=0 C11 C10 RSLC3 S=1 S4 S3 S2 S1 A2 A1 Note: These registers have an alternate definition for E1 mode. See RAF, RNAF, and RSiAF. 0 C1 C9 M3 See section 10.11.16. Register Name: Register Description: Register Address: RAF Receive Align Frame Register (E1 Mode) base address + 0x190 Bit # 7 6 5 4 3 Name Si FAS6 FAS5 FAS4 FAS3 Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RSLC1. 2 FAS2 0 1 FAS1 0 0 FAS0 0 The align frame is the E1 frame containing the frame alignment signal (FAS). The bits of this register indicate the first eight bits received in the most recent align frame. The bits are latched into this register at the start of the align frame. The start of the align frame is indicated by the RAF status bit in RLS2-E1. See Section 10.11.5.1. Bit 7: International Bit (Si). Bits 6 to 0: Frame Alignment Signal (FAS[6:0]). When a normal E1 signal is being received, FAS[6:0]=0011011. 238 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RNAF Receive Non-Align Frame Register (E1 Mode) base address + 0x194 Bit # 7 6 5 4 3 Name Si 1 A Sa4 Sa5 Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RSLC2. 2 Sa6 0 1 Sa7 0 0 Sa8 0 The non-align frame is the E1 frame that does not contain the frame alignment signal (FAS). The bits of this register indicate the first eight bits received in the most recent non-align frame. The bits are latched into this register at the start of the align frame. The start of the align frame is indicated by the RAF status bit in RLS2-E1. See Section 10.11.5.1. Bit 7: International Bit (Si). Bit 6: Non-Align Frame Signal Bit. Set to 1 in a normal E1 double frame. Bit 5: Remote Alarm Indication (RAI). This is the normal status bit for detecting RAI in the incoming E1 signal. 0 = No alarm condition 1 = Alarm condition Bits 4 to 0: Additional Spare Bits (Sa4 to Sa8). Register Name: Register Description: Register Address: RSiAF Receive Si bits of the Align Frame (E1 Mode) base address + 0x198 Bit # 7 6 5 4 3 Name SiF14 SiF12 SiF10 SiF8 SiF6 Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RSLC3. 2 SiF4 0 1 SiF2 0 0 SiF0 0 The align frame is the E1 frame containing the frame alignment signal (FAS). The bits of this register indicate the Si bits received in the align frames of the most recent CRC-4 multiframe. The Si bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Si Bit of Frame 14 (SiF14). Bit 6: Si Bit of Frame 12 (SiF12). Bit 5: Si Bit of Frame 10 (SiF10). Bit 4: Si Bit of Frame 8 (SiF8). Bit 3: Si Bit of Frame 6 (SiF6). Bit 2: Si Bit of Frame 4 (SiF4). Bit 1: Si Bit of Frame 2 (SiF2). Bit 0: Si Bit of Frame 0 (SiF0). 239 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 SiF15 0 RSiNAF Receive Si Bits of the Non-Align Frame (E1 Mode Only) base address + 0x19C 6 SiF13 0 5 SiF11 0 4 SiF9 0 3 SiF7 0 2 SiF5 0 1 SiF3 0 0 SiF1 0 The non-align frame is the E1 frame that does not contain the frame alignment signal (FAS). The bits of this register indicate the Si bits received in the non-align frames of the most recent CRC-4 multiframe. The Si bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Si Bit of Frame 15 (SiF15). Bit 6: Si Bit of Frame 13 (SiF13). Bit 5: Si Bit of Frame 11 (SiF11). Bit 4: Si Bit of Frame 9 (SiF9). Bit 3: Si Bit of Frame 7 (SiF7). Bit 2: Si Bit of Frame 5 (SiF5). Bit 1: Si Bit of Frame 3 (SiF3). Bit 0: Si Bit of Frame 1 (SiF1). Register Name: Register Description : Register Address: Bit # Name Default 7 RRAF15 0 RRA Receive Remote Alarm Bits (E1 Mode Only) base address + 0x1A0 6 RRAF13 0 5 RRAF11 0 4 RRAF9 0 3 RRAF7 0 2 RRAF5 0 1 RRAF3 0 0 RRAF1 0 The remote alarm bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Remote Alarm Bit of Frame 15 (RRAF15). Bit 6: Remote Alarm Bit of Frame 13 (RRAF13). Bit 5: Remote Alarm Bit of Frame 11 (RRAF11). Bit 4: Remote Alarm Bit of Frame 9 (RRAF9). Bit 3: Remote Alarm Bit of Frame 7 (RRAF7). Bit 2: Remote Alarm Bit of Frame 5 (RRAF5). Bit 1: Remote Alarm Bit of Frame 3 (RRAF3). Bit 0: Remote Alarm Bit of Frame 1 (RRAF1). 240 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RSa4F15 0 RSa4 Receive Sa4 Bits (E1 Mode Only) base address + 0x1A4 6 RSa4F13 0 5 RSa4F11 0 4 RSa4F9 0 3 RSa4F7 0 2 RSa4F5 0 1 RSa4F3 0 0 RSa4F1 0 The Sa4 bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Sa4 Bit of Frame 15 (RSa4F15). Bit 6: Sa4 Bit of Frame 13 (RSa4F13). Bit 5: Sa4 Bit of Frame 11 (RSa4F11). Bit 4: Sa4 Bit of Frame 9 (RSa4F9). Bit 3: Sa4 Bit of Frame 7 (RSa4F7). Bit 2: Sa4 Bit of Frame 5 (RSa4F5). Bit 1: Sa4 Bit of Frame 3 (RSa4F3). Bit 0: Sa4 Bit of Frame 1 (RSa4F1). Register Name: Register Description: Register Address: Bit # Name Default 7 RSa5F15 0 RSa5 Receive Sa5 Bits (E1 Mode Only) base address + 0x1A8 6 RSa5F13 0 5 RSa5F11 0 4 RSa5F9 0 3 RSa5F7 0 2 RSa5F5 0 1 RSa5F3 0 0 RSa5F1 0 The Sa5 bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Sa5 Bit of Frame 15 (RSa5F15). Bit 6: Sa5 Bit of Frame 13 (RSa5F13). Bit 5: Sa5 Bit of Frame 11 (RSa5F11). Bit 4: Sa5 Bit of Frame 9 (RSa5F9). Bit 3: Sa5 Bit of Frame 7 (RSa5F7). Bit 2: Sa5 Bit of Frame 5 (RSa5F5). Bit 1: Sa5 Bit of Frame 3 (RSa5F3). Bit 0: Sa5 Bit of Frame 1 (RSa5F1). 241 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RSa6F15 0 RSa6 Receive Sa6 Bits (E1 Mode Only) base address + 0x1AC 6 RSa6F13 0 5 RSa6F11 0 4 RSa6F9 0 3 RSa6F7 0 2 RSa6F5 0 1 RSa6F3 0 0 RSa6F1 0 The Sa6 bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Sa6 Bit of Frame 15 (RSa6F15). Bit 6: Sa6 Bit of Frame 13 (RSa6F13). Bit 5: Sa6 Bit of Frame 11 (RSa6F11). Bit 4: Sa6 Bit of Frame 9 (RSa6F9). Bit 3: Sa6 Bit of Frame 7 (RSa6F7). Bit 2: Sa6 Bit of Frame 5 (RSa6F5). Bit 1: Sa6 Bit of Frame 3 (RSa6F3). Bit 0: Sa6 Bit of Frame 1 (RSa6F1). Register Name: Register Description: Register Address: RSa7 Receive Sa7 Bits (E1 Mode Only) base address + 0x1B0 Bit # Name Default 6 RSa7F13 0 7 RSa7F15 0 5 RSa7F11 0 4 RSa7F9 0 3 RSa7F7 0 2 RSa7F5 0 1 RSa7F3 0 0 RSa7F1 0 The Sa7 bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Sa7 Bit of Frame 15 (RSa4F15). Bit 6: Sa7 Bit of Frame 13 (RSa7F13). Bit 5: Sa7 Bit of Frame 11 (RSa7F11). Bit 4: Sa7 Bit of Frame 9 (RSa7F9). Bit 3: Sa7 Bit of Frame 7 (RSa7F7). Bit 2: Sa7 Bit of Frame 5 (RSa7F5). Bit 1: Sa7 Bit of Frame 3 (RSa7F3). Bit 0: Sa7 Bit of Frame 1 (RSa7F1). 242 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RSa8F15 0 RSa8 Receive Sa8 Bits (E1 Mode Only) base address + 0x1B4 6 RSa8F13 0 5 RSa8F11 0 4 RSa8F9 0 3 RSa8F7 0 2 RSa8F5 0 1 RSa8F3 0 0 RSa8F1 0 The Sa8 bits received in each multiframe are saved in internal registers and latched into this register at the start of the next CRC-4 multiframe. The CRC-4 multiframe boundary is indicated by the RCMF status bit in RLS2-E1. See Section 10.11.5.2. Bit 7: Sa8 Bit of Frame 15 (RSa8F15). Bit 6: Sa8 Bit of Frame 13 (RSa8F13). Bit 5: Sa8 Bit of Frame 11 (RSa8F11). Bit 4: Sa8 Bit of Frame 9 (RSa8F9). Bit 3: Sa8 Bit of Frame 7 (RSa8F7). Bit 2: Sa8 Bit of Frame 5 (RSa8F5). Bit 1: Sa8 Bit of Frame 3 (RSa8F3). Bit 0: Sa8 Bit of Frame 1 (RSa8F1). Register Name: Register Description: Register Address: Bit # Name Default 7 0 SaBITS Receive Sa Bits (E1 Mode Only) base address + 0x1B8 6 0 5 0 4 Sa4 0 3 Sa5 0 2 Sa6` 0 1 Sa7 0 0 Sa8 0 This register indicates the last received Sa bits. This can be used to determine which Sa bits have changed. The user can program which Sa bit positions should be monitored via the RSAIMR register, and when a change is detected through an interrupt in RLS7-E1:SaXCD, the user can determine which bit has changed by reading this register and comparing it with previous known values. See section 10.11.5.3. 4 Bit 4: Last Received Sa4 Bit. Bit 3: Last Received Sa5 Bit. Bit 2: Last Received Sa6 Bit. Bit 1: Last Received Sa7 Bit. Bit 0: Last Received Sa8 Bit. 243 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default Sa6CODE Receive Sa6 Codeword (E1 Mode Only) base address + 0x1BC 7 0 6 0 5 0 4 0 3 2 1 0 Sa6CODE3 Sa6CODE2 Sa6C0DE1 Sa6CODE0 0 0 0 0 Bits 3 to 0: Sa6 Codeword Bits (Sa6CODE[3:0]). This field reports the received Sa6 codeword per ETS 300 233. The bits are monitored on a sub-multiframe asynchronous basis, so the pattern reported could be one of multiple patterns that represent a valid codeword. The table below indicates which patterns reported in this register correspond to a given valid Sa6 codeword. See section 10.11.5.3. Valid Sa6 Code Sa6_8 Sa6_A Sa6_C Sa6_E Sa6_F Register Name: Register Description: Register Address: Bit # Name Default 7 FRM_EN 0 Possible Reported Patterns 1000, 0100, 0010, 0001 1010, 0101 110, 0110, 0011, 1001 1110, 0111, 1011, 1101 1111 RMMR Receive Master Mode Register base address + 0x200 6 INIT_DONE 0 5 0 4 0 3 0 2 0 1 SFTRST 0 0 E1/T1 0 Bit 7: Framer Enable (FRM_EN). This bit must be set to the desired state before setting the INIT_DONE bit. 0 = Rx framer disabled (held in low-power state) 1 = Rx framer enabled (all features active) Bit 6: Initialization Done (INIT_DONE). The CPU must set the E1/T1 and FRM_EN bits prior to setting this bit. After INIT_DONE is set, the receiver is enabled if FRM_EN = 1. Bit 1: Soft Reset (SFTRST). Level-sensitive reset. Should be set to 1, then to 0 to reset and initialize the Rx framer. 0 = Normal operation 1 = Hold the Rx framer in reset Bit 0: Receiver E1/T1 Mode Select (E1/T1). This bit specifies the operating mode for the Rx framer only. The TMMR:E1/T1 bit specifies the operating mode for the transmit formatter. This bit must be set to the desired value before setting the INIT_DONE bit. 0 = T1 operation 1 = E1 operation 244 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RCR1-T1 Receive Control Register 1 (T1 Mode) base address + 0x204 Bit # 7 6 5 4 3 Name SYNCT RB8ZS RFM ARC SYNCC Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RCR1-E1. 2 RJC 0 1 SYNCE 0 0 RESYNC 0 Bit 7: Sync Time (SYNCT). 0 = Qualify 10 bits 1 = Qualify 24 bits Bit 6: Rx B8ZS Enable (RB8ZS). 0 = B8ZS decoding disabled 1 = B8ZS decoding enabled Bit 5: Rx Frame Mode Select (RFM). 0 = ESF framing mode 1 = D4 framing mode Bit 4: Auto Resync Criteria (ARC). 0 = Resync on LOF or LOS event 1 = Resync on LOF only Bit 3: Sync Criteria (SYNCC). In D4 Framing Mode. 0 = Search for Ft pattern, then search for Fs pattern 1 = Cross couple Ft and Fs pattern (i.e. search for proper Ft and Fs pattern at the same time) In ESF Framing Mode. 0 = Search for FPS pattern only 1 = Search for FPS and verify with CRC-6 Bit 2: Rx Japanese CRC-6 Enable (RJC). 0 = Use ANSI:AT&T:ITU CRC-6 calculation (normal operation) 1 = Use Japanese standard JT–G704 CRC-6 calculation Bit 1: Sync Enable (SYNCE). 0 = Auto resync enabled 1 = Auto resync disabled Bit 0: Resynchronize (RESYNC). When this bit is toggled from low to high, a resynchronization of the Rx side framer is initiated. Must be cleared and set again for a subsequent resync. 245 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RCR1-E1 Receive Control Register 1 (E1 Mode) base address + 0x204 Bit # 7 6 5 4 3 Name RHDB3 RSIGM RCRC4 Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RCR1-T1. 2 FRC 0 1 SYNCE 0 0 RESYNC 0 Bit 6: Rx HDB3 Enable (RHDB3). 0 = HDB3 decoding disabled 1 = HDB3 decoding enabled (decoded per O.162) Bit 5: Rx Signaling Mode Select (RSIGM). 0 = CAS signaling mode 1 = CCS signaling mode Bit 4: Reserved. Bit 3: Rx CRC-4 Enable (RCRC4). 0 = CRC-4 disabled 1 = CRC-4 enabled Bit 2: Frame Resync Criteria (FRC). 0 = resync if FAS received in error 3 consecutive times 1 = resync if FAS or bit 2 of non–FAS is received in error 3 consecutive times Bit 1: Sync Enable (SYNCE). 0 = auto resync enabled 1 = auto resync disabled Bit 0: Resynchronize (RESYNC). When toggled from low to high, a resynchronization of the Rx side framer is initiated. Must be cleared and set again for a subsequent resync. 246 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RIBCC Receive In-Band Code Control Register (T1 Mode) base address + 0x208 Bit # 7 6 5 4 3 Name --RUP2 RUP1 RUP0 Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RCR2-E1. 2 RDN2 0 1 RDN1 0 0 RDN0 0 2 0 1 0 0 RLOSA 0 Bits 5 to 3: Rx Up-Code Length Bits (RUP[2:0]). See Section 10.11.14. RUP2 0 0 0 0 1 1 1 1 RUP1 0 0 1 1 0 0 1 1 RUP0 0 1 0 1 0 1 0 1 LENGTH SELECTED 1 bits 2 bits 3 bits 4 bits 5 bits 6 bits 7 bits 8 to 16 bits Bits 2 to 0: Rx Down-Code Length Bits (RDN[2:0]). See Section 10.11.14. RDN2 0 0 0 0 1 1 1 1 Register Name: Register Description: Register Address: RDN1 0 0 1 1 0 0 1 1 RDN0 0 1 0 1 0 1 0 1 LENGTH SELECTED 1 bits 2 bits 3 bits 4 bits 5 bits 6 bits 7 bits 8: 16 bits RCR2-E1 Receive Control Register 2 (E1 Mode) base address + 0x208 Bit # 7 6 5 4 3 Name Reserved Reserved Reserved Reserved Reserved Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RIBCC. Bit 0: Rx Loss-of-Signal Alternate Criteria (RLOSA). Defines the criteria for a loss-of-signal condition. 0 = LOS declared upon 255 consecutive zeros (125s) 1 = LOS declared upon 2048 consecutive zeros (1ms) 247 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 IDF 0 RCR3 Receive Control Register 3 base address + 0x20C 6 uALAW 0 5 RSERC 0 4 BINV1 0 3 BINV0 0 2 0 1 PLB 0 0 FLB 0 Bit 7: Input Data Format (IDF). See the pos/dat and neg signals in the Rx path in Figure 6-1. 0 = Bipolar data (AMI, HDB3 or B8ZS format) is expected from the LIU on the pos and neg signals. 1 = NRZ data is expected from the LIU pos/dat signal or from the RDATFn pin. The BPV counter is disabled and the neg signal is ignored. Bit 6: u-Law or A-Law Digital Milliwatt Code Select (uALAW) 0 = u-law code is inserted based on the RDMWE registers. 1 = A-law code is inserted based on the RDMWE registers. Bit 5: RSER Control (RSERC). See the RSER signal in the Rx path in Figure 6-1. 0 = allow RSER to output data as received under all conditions (normal operation) 1 = force RSER to one under loss-of-frame-alignment conditions Bits 4 to 3: Rx Bit Inversion (BINV[1:0]) 00 = No inversion 01 = Invert framing 10 = Invert signaling 11 = Invert payload Bit 1: Payload Loopback (PLB). 0 = loopback disabled 1 = loopback enabled Bit 0: Framer Loopback (FLB). 0 = loopback disabled 1 = loopback enabled 248 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default RIOCR Receive I/O Configuration Register base address + 0x210 7 6 5 4 RCLKINV RSYNCINV Reserved RSCLKM 0 0 0 0 3 RSMS 0 2 RSIO 1 1 RSMS2 0 0 RSMS1 0 Bit 7: RCLK Invert (RCLKINV). See the RCLK signal going into the Rx framer in Figure 6-1. 0 = No inversion 1 = Invert RCLK signal Bit 6: RSYNC Invert (RSYNCINV). See the RSYNCin and RSYNCout signal going into/out-of the Rx framer in Figure 6-1. 0 = No inversion 1 = Invert RSYNC as either input or output Bit 5: Reserved. 0 = Normal operation Bit 4: RSYSCLK Mode Select (RSCLKM). See the RSYSCLK signal going into the Rx framer in Figure 6-1. 0 = RSYSCLK is 1.544MHz 1 = RSYSCLK is 2.048MHz Bit 3: RSYNC Multiframe Skip Control (RSMS). T1 Mode Only. See the RSYNC in and RSYNC out signals going into and out of the Rx framer in Figure 6-1. This configuration bit is useful in framing format conversions from D4 to ESF. This function is not available when the Rx side elastic store is enabled. RSYNC must be set to output multiframe pulses. 0 = RSYNC outputs a pulse at every multiframe 1 = RSYNC outputs a pulse at every other multiframe Bit 2: RSYNC I/O Select (RSIO). See the RSYNC in and RSYNC out signals going into and out of the Rx framer in Figure 6-1. This bit must be set to zero when the elastic store is disabled. The default value for this bit is 1 so that the default I/O direction of RSYNC is input. 0 = RSYNC is an output 1 = RSYNC is an input (only valid if elastic store is enabled) Bit 1: RSYNC Mode Select 2 (RSMS2). See the RSYNC in and RSYNC out signals going into and out of the Rx framer in Figure 6-1. T1 Mode: RSYNC must be configured in the output frame mode (RSIO=0, RSMS1=0) 0 = do not pulse double wide in signaling frames 1 = do pulse double wide in signaling frames E1 Mode: RSYNC must be configured in the output multiframe mode (RSIO=0, RSMS=1) 0 = RSYNC outputs CAS multiframe boundaries 1 = RSYNC outputs CRC-4 multiframe boundaries Note: In E1 mode, RSMS2 also selects which multiframe signal is available at the framer’s RMSYNC output, regardless of the configuration for RSYNC. When RSMS2 = 0, RMSYNC outputs CAS multiframe boundaries; when RSMS2 = 1, RMSYNC outputs CRC-4 multiframe boundaries. Bit 0: RSYNC Mode Select 1 (RSMS1). See the RSYNC in and RSYNC out signals going into and out of the Rx framer in Figure 6-1. When RSYNC is in output mode (RSIO=0), this bit specifies whether RSYNC outputs a frame pulse or a multiframe pulse. When RSYNC is in input mode (elastic store must be enabled) multiframe mode is only useful when Rx signaling reinsertion is enabled. 0 = frame mode 1 = multiframe mode 249 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default RESCR Receive Elastic Store Control Register base address + 0x214 7 6 RDATFMT Reserved 0 0 5 0 4 RSZS 0 3 RESALGN 0 2 RESR 0 1 RESMDM 0 0 RESE 0 Bit 7: Receive Channel Data Format (RDATFMT). 0 = 64KBps (data contained in all 8 bits) 1 = 56KBps (data contained in 7 out of the 8 bits) Bit 6: Reserved Bit 4: Receive Slip Zone Select (RSZS). This bit determines the minimum distance allowed between the elastic store read and write pointers before forcing a controlled slip. This bit is only applies during T1 to E1 or E1 to T1 conversion applications. See section 10.10. 0 = Force a slip at 9 bytes or less of separation (used for clustered blank channels) 1 = Force a slip at 2 bytes or less of separation (used for distributed blank channels and minimum delay mode) Bit 3: Receive Elastic Store Align (RESALGN). Changing this bit from zero to one forces the receive elastic store’s write and read pointers to a minimum separation of half a frame. No action is taken if the pointer separation is already greater or equal to half a frame. If pointer separation is less than half a frame, the command is executed and the data is disrupted. This bit should be toggled during start-up after RSYSCLK has been applied and is stable. Must be cleared and set again for a subsequent align. See section 10.10.1. Bit 2: Receive Elastic Store Reset (RESR). Changing this bit from zero to one forces the read pointer into the same frame that the write pointer is exiting, minimizing the delay through the elastic store. If this command should place the pointers within the slip zone (specified by RSZS above), then a slip immediately occurs and the pointers move back to opposite frames. This bit should be toggled after RSYSCLK has been applied and is stable. Do not leave this bit set high. See section 10.10.1. Bit 1: Receive Elastic Store Minimum Delay Mode (RESMDM). See section 10.10.2. 0 = Elastic store operates at full two-frame depth 1 = Elastic store operates at 32–bit depth Bit 0: Receive Elastic Store Enable (RESE). See section 10.10. 0 = Elastic store is bypassed 1 = Elastic store is enabled Register Name: Register Description: Register Address: Bit # Name Default 7 Reserved 0 ERCNT Error Counter Configuration Register base address + 0x218 6 MCUS 0 5 MECU 0 4 ECUS 0 3 EAMS 0 2 FSBE 0 1 MOSCRF 0 0 LCVCRF 0 Bit 7: Reserved. This bit must be set to zero. Bit 6: Manual Counter Update Select (MCUS). When manual update mode is enabled with EAMS=1, this bit can be used to allow a zero-to-one transition on GCR1.GFCLE to load the error counter registers with the latest counts and reset the counters. Useful for synchronously updating counter registers of multiple framers at the same time. See section 10.11.8. 250 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 0 = MECU bit is used to manually update error counter registers 1 = GCR1.GFCLE is used to manually update error counter registers Bit 5: Manual Error Counter Update (MECU). When enabled by EAMS=1, changing this bit from zero to one allows the next clock cycle to load the error counter registers with the latest counts and reset the counters. The CPU must wait a minimum of 250s before reading the error count registers to allow for proper update. See section 10.11.8. Bit 4: Error Counter Update Select (ECUS). This field is ignored when EAMS=1. See section 10.11.8. T1 mode: 0 = Update error counter registers once each second 1 = Update error counter registers every 42ms (333 frames) E1 mode: 0 = Update error counter registers once a second 1 = Update error counter registers every 62.5ms (500 frames) Bit 3: Error Accumulation Mode Select (EAMS). See section 10.11.8. 0 = Automatic update of error counter registers. The ECUS bit determines update interval. 1 = The CPU toggles the MECU bit (per-framer manual update) when MCUS=0 or the GCR1.GFCLE bit (global manual update) when MCUS=1 determines the update times. Bit 2: PCVCR Fs-Bit Error Report Enable (FSBE). T1 Mode Only. See section 10.11.8.2. 0 = do not report bit errors in Fs bit positions; only Ft bit positions 1 = report bit errors in Fs bit positions as well as Ft bit positions Bit 1: Multiframe Out-of -Sync Count Register Function Select (MOSCRF). T1 Mode Only. See section 10.11.8.3. 0 = count errors in the framing bit position 1 = count the number of multiframes out of sync Bit 0: Line Code Violation Count Register Function Select (LCVCRF). See section 10.11.8.1. T1 mode: 0 = do not count excessive zeros 1 = count excessive zeros E1 mode: 0 = count BPVs 1 = count code violations (CVs) Register Name: Register Description: Register Address: Bit # Name Default 7 0 RHFC Receive HDLC FIFO Control Register base address + 0x21C 6 0 5 0 4 0 3 0 2 0 1 RFHWM1 0 0 RFHWM0 0 Bits 1 to 0: Receive FIFO High Watermark Select (RFHWM[1:0]). See section 10.12.1 RFHWM1 0 0 1 1 RFHWM0 0 1 0 1 Receive FIFO Watermark 4 bytes 16 bytes 32 bytes 48 bytes 251 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default RSCC In-Band Receive Spare Control Register (T1 Only) base address + 0x224 7 0 6 0 5 0 4 0 3 0 2 RSC2 0 1 RSC1 0 0 RSC0 0 2 RBPDIR 0 1 RBPFUS 0 0 RBPEN 0 Bits7 to 3: Reserved, must be set to zero for proper operation Bits 2 to 0: Receive Spare Code Length Definition Bits (RSC[2:0]). RSC2 0 0 0 0 1 1 1 1 Register Name: Register Description: Register Address: Bit # Name Default RSC1 0 0 1 1 0 0 1 1 RSC0 0 1 0 1 0 1 0 1 LENGTH SELECTED 1 bits 2 bits 3 bits 4 bits 5 bits 6 bits 7 bits 8 to 16 bits RXPC Receive Expansion Port Control Register base address + 0x228 7 6 5 4 -- -- -- -- 0 0 0 0 3 -0 Bit 2: Receive BERT Port Direction Control (RBPDIR). See section 10.14.3. 0 = Normal (line) operation. Rx BERT port sources data from the receive path (i.e. from the LIU direction). 1 = Reverse (system) operation. Rx BERT port sources data from the transmit path (i.e. from the TDMoP direction). Bit 1: Receive BERT Port Framed/Unframed Select (RBPFUS). T1 Mode Only. See section 10.14.3. 0 = Don’t clock data from the F-bit position (framed) 1 = Clock data from the F-bit position (unframed) Bit 0: Receive BERT Port Enable (RBPEN). See section 10.14.3. 0 = Receive BERT port is not active 1 = Receive BERT port is active. 252 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RBPBS8 0 RBPBS Receive BERT Port Bit Suppress Register base address + 0x22C 6 RBPBS7 0 5 RBPBS6 0 4 RBPBS5 0 3 RBPBS4 0 2 RBPBS3 0 1 RBPBS2 0 0 RBPBS1 0 Bit 7: Receive BERT Port Bit Suppress (RBPBS[8:1]). When one of these bits is set, the corresponding bit in the 64kbps channel is ignored (suppressed) by the Rx BERT when looking at the incoming pattern. RBPBS8 corresponds to the MSb of the channel. See section 10.14.3. Register Name: Register Description: Register Address: Bit # Name Default 7 RRAIC 0 RLS1 Receive Latched Status Register 1 base address + 0x240 6 RAISC 0 5 RLOSC 0 4 RLOFC 0 3 RRAID 0 2 RAISD 0 1 RLOSD 0 0 RLOFD 0 Bit 7: Receive Remote Alarm Indication Condition Clear (RRAIC). This latched status bit is set to 1 when RRTS1.RRAI changes state from high to low. RRAIC is cleared when written with a 1. When RRAIC is set it can cause an interrupt request if the RRAIC interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 6: Receive Alarm Indication Signal Condition Clear (RAISC). This latched status bit is set to 1 when RRTS1.RAIS changes state from high to low. RAISC is cleared when written with a 1. When RAISC is set it can cause an interrupt request if the RAISC interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 5: Receive Loss of Signal Condition Clear (RLOSC). This latched status bit is set to 1 when RRTS1.RLOS changes state from high to low. RLOSC is cleared when written with a 1. When RLOSC is set it can cause an interrupt request if the RLOSC interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 4: Receive Loss of Frame Condition Clear (RLOFC). This latched status bit is set to 1 when RRTS1.RLOF changes state from high to low. RLOFC is cleared when written with a 1. When RLOFC is set it can cause an interrupt request if the RLOFC interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 3: Receive Remote Alarm Indication Condition Detect (RRAID). This latched status bit is set to 1 when RRTS1.RRAI changes state from low to high. RRAID is cleared when written with a 1. When RRAID is set it can cause an interrupt request if the RRAID interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 2: Receive Alarm Indication Signal Condition Detect (RAISD). This latched status bit is set to 1 when RRTS1.RAIS changes state from low to high. RAISD is cleared when written with a 1. When RAISD is set it can cause an interrupt request if the RAISD interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 1: Receive Loss of Signal Condition Detect (RLOSD). This latched status bit is set to 1 when RRTS1.RLOS changes state from low to high. RLOSD is cleared when written with a 1. When RLOSD is set it can cause an interrupt request if the RLOSD interrupt enable bit is set in the RIM1 register. See Section 10.11.6. Bit 0: Receive Loss of Frame Condition Detect (RLOFD). This latched status bit is set to 1 when RRTS1.RLOF changes state from low to high. RLOFD is cleared when written with a 1. When RLOFD is set it can cause an interrupt request if the RLOFD interrupt enable bit is set in the RIM1 register. See Section 10.11.6. 253 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RLS2-T1 Receive Latched Status Register 2 (T1 Mode) base address + 0x244 Bit # 7 6 5 4 3 Name RPDV COFA 8ZD 16ZD Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS2-E1. None of the bits in the register can cause an interrupt request. 2 SEFE 0 1 B8ZS 0 0 FBE 0 Bit 7: Receive Pulse Density Violation Event (RPDV). This latched status bit is set to 1 when the receive data stream does not meet the ANSI T1.403 requirements for pulse density. It is cleared when written with a 1. Bit 5: Change of Frame Alignment Event (COFA). This latched status bit is set to 1 when the last frame resync resulted in a change of frame or multiframe alignment. It is cleared when written with a 1. Bit 4: Eight Zero Detect Event (8ZD). This latched status bit is set to 1 when a string of at least eight consecutive zeros (regardless of the length of the string) has been received at RPOS and RNEG. It is cleared when written with a 1. Bit 3: Sixteen Zero Detect Event (16ZD). This latched status bit is set to 1 when a string of at least sixteen consecutive zeros (regardless of the length of the string) has been received at RPOS and RNEG. It is cleared when written with a 1. Bit 2: Severely Errored Framing Event (SEFE). This latched status bit is set to 1 when 2 out of 6 framing bits (Ft or FPS) are received in error. It is cleared when written with a 1. Bit 1: B8ZS Codeword Detect Event (B8ZS). This latched status bit is set to 1 when a B8ZS codeword is detected at RPOS and RNEG independent of whether the B8ZS mode is selected or not. Useful for automatically setting the line coding. It is cleared when written with a 1. Bit 0: Frame Bit Error Event (FBE). This latched status bit is set to 1 when an Ft (D4) or FPS (ESF) framing bit is received in error. It is cleared when written with a 1. Register Name: Register Description: Register Address: RLS2-E1 Receive Latched Status Register 2 (E1 Mode) base address + 0x244 Bit # 7 6 5 4 3 Name CRCRC CASRC FASRC RSA1 Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS2-T1. 2 RSA0 0 1 RCMF 0 0 RAF 0 Bit 6: CRC Resync Criteria Met Event (CRCRC). This latched status bit is set to 1 when 915 out 1000 codewords are received in error. It is cleared when written with a 1. This bit cannot cause an interrupt request. Bit 5: CAS Resync Criteria Met Event (CASRC). This latched status bit is set to 1 when 2 consecutive CAS MF alignment words are received in error. It is cleared when written with a 1. This bit cannot cause an interrupt request. Bit 4: FAS Resync Criteria Met Event (FASRC). This latched status bit is set to 1 when 3 consecutive FAS words are received in error. It is cleared when written with a 1. This bit cannot cause an interrupt request. Bit 3: Receive Signaling All Ones Event (RSA1). This latched status bit is set to 1 when the contents of timeslot 16 contain less than three zeros over 16 consecutive frames. This alarm is not disabled in the CCS signaling mode. 254 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 It is cleared when written with a 1. When RSA1 is set it can cause an interrupt request if the RSA1 interrupt enable bit is set in the RIM2 register. Bit 2: Receive Signaling All Zeros Event (RSA0). This latched status bit is set to 1 when, over a full MF, timeslot 16 contains all zeros. It is cleared when written with a 1. When RSA0 is set it can cause an interrupt request if the RSA0 interrupt enable bit is set in the RIM2 register. Bit 1: Receive CRC-4 Multiframe Event (RCMF). This latched status bit is set to 1 on CRC-4 multiframe boundaries. It continues to be set every 2 ms on an arbitrary boundary if CRC-4 is disabled. It is cleared when written with a 1. When RCMF is set it can cause an interrupt request if the RCMF interrupt enable bit is set in the RIM2 register. Bit 0: Receive Align Frame Event (RAF). This latched status bit is set to 1 approximately every 250s to alert the CPU that Si and Sa bits are available in the RAF and RNAF registers. It is cleared when written with a 1. When RAF is set it can cause an interrupt request if the RAF interrupt enable bit is set in the RIM2 register. Register Name: Register Description: Register Address: RLS3-T1 Receive Latched Status Register 3 (T1 Mode) base address + 0x248 Bit # 7 6 5 4 3 Name LORCC LSPC LDNC LUPC LORCD Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS3-E1. 2 LSPD 0 1 LDND 0 0 LUPD 0 Bit 7: Loss of Receive Clock Condition Clear (LORCC). This latched status bit is set to 1 when RRTS3T1.LORC changes state from high to low. LORCC is cleared when written with a 1. When LORCC is set it can cause an interrupt request if the LORCC interrupt enable bit is set in the RIM3-T1 register. Bit 6: Spare Code Detected Condition Clear (LSPC). This latched status bit is set to 1 when RRTS3-T1.LSP changes state from high to low. LSPC is cleared when written with a 1. When LSPC is set it can cause an interrupt request if the LSPC interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. Bit 5: Loop Down Code Detected Condition Clear (LDNC). This latched status bit is set to 1 when RRTS3T1.LDN changes state from high to low. LDNC is cleared when written with a 1. When LDNC is set it can cause an interrupt request if the LDNC interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. Bit 4: Loop Up Code Detected Condition Clear (LUPC). This latched status bit is set to 1 when RRTS3-T1.LUP changes state from high to low. LUPC is cleared when written with a 1. When LUPC is set it can cause an interrupt request if the LUPC interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. Bit 3: Loss of Receive Clock Condition Detect (LORCD). This latched status bit is set to 1 when RRTS3T1.LORC changes state from low to high. LORCD is cleared when written with a 1. When LORCD is set it can cause an interrupt request if the LORCD interrupt enable bit is set in the RIM3-T1 register. Bit 2: Spare Code Detected Condition Detect (LSPD). This latched status bit is set to 1 when RRTS3-T1.LSP changes state from low to high. LSPD is cleared when written with a 1. When LSPD is set it can cause an interrupt request if the LSPD interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. Bit 1: Loop Down Code Detected Condition Detect (LDND). This latched status bit is set to 1 when RRTS3T1.LDN changes state from low to high. LDND is cleared when written with a 1. When LDND is set it can cause an interrupt request if the LDND interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. Bit 0: Loop Up Code Detected Condition Detect (LUPD). This latched status bit is set to 1 when RRTS3-T1.LUP changes state from low to high. LUPD is cleared when written with a 1. When LUPD is set it can cause an interrupt request if the LUPD interrupt enable bit is set in the RIM3-T1 register. See Section 10.11.14.2. 255 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RLS3-E1 Receive Latched Status Register 3 (E1 Mode) base address + 0x248 Bit # 7 6 5 4 3 Name LORCC V52LNKC RDMAC LORCD Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS3-T1. 2 0 1 V52LNKD 0 0 RDMAD 0 Bit 7: Loss of Receive Clock Clear (LORCC). This latched status bit is set to 1 when RRTS3-E1.LORC changes state from high to low. LORCC is cleared when written with a 1. When LORCC is set it can cause an interrupt request if the LORCC interrupt enable bit is set in the RIM3-E1 register. Bit 5: V5.2 Link Detected Clear (V52LNKC). This latched status bit is set to 1 when RRTS3-E1.V52LNK changes state from high to low. V52LNKC is cleared when written with a 1. When V52LNKC is set it can cause an interrupt request if the V52LNKC interrupt enable bit is set in the RIM3-E1 register. Bit 4: Receive Distant MF Alarm Clear (RDMAC). This latched status bit is set to 1 when RRTS3-E1.RDMA changes state from high to low. RDMAC is cleared when written with a 1. When RDMAC is set it can cause an interrupt request if the RDMAC interrupt enable bit is set in the RIM3-E1 register. Bit 3: Loss of Receive Clock Detect (LORCD). This latched status bit is set to 1 when RRTS3-E1.LORC changes state from low to high. LORCD is cleared when written with a 1. When LORCD is set it can cause an interrupt request if the LORCD interrupt enable bit is set in the RIM3-E1 register. Bit 1: V5.2 Link Detect (V52LNKD). This latched status bit is set to 1 when RRTS3-E1.V52LNK changes state from low to high. V52LNKD is cleared when written with a 1. When V52LNKD is set it can cause an interrupt request if the V52LNKD interrupt enable bit is set in the RIM3-E1 register. Bit 0: Receive Distant MF Alarm Detect (RDMAD). This latched status bit is set to 1 when RRTS3-E1.RDMA changes state from low to high. RDMAD is cleared when written with a 1. When RDMAD is set it can cause an interrupt request if the RDMAD interrupt enable bit is set in the RIM3-E1 register. Register Name: Register Description: Register Address: Bit # Name Default 7 RESF 0 RLS4 Receive Latched Status Register 4 base address + 0x24C 6 RESEM 0 5 RSLIP 0 4 0 3 RSCOS 0 2 1SEC 0 1 TIMER 0 0 RMF 0 Bit 7: Receive Elastic Store Full Event (RESF). This latched status bit is set to 1 when the receive elastic store buffer fills and a frame is deleted. RESF is cleared when written with a 1. When RESF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. See Section 10.10. Bit 6: Receive Elastic Store Empty Event (RESEM). This latched status bit is set to 1 when the receive elastic store buffer empties and a frame is repeated. RESEM is cleared when written with a 1. When RESEM is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. See Section 10.10. Bit 5: Receive Elastic Store Slip Occurrence Event (RSLIP). This latched status bit is set to 1 when the receive elastic store has either repeated or deleted a frame (i.e. either RESF or RESEM set). RSLIP is cleared when written with a 1. When RSLIP is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. See Section 10.10. Bit 3: Receive Signaling Change Of State Event (RSCOS). This latched status bit is set to 1 when any channel selected by the Receive Signaling Change Of State Interrupt Enable registers (RSCSE1 through RSCSE4), 256 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 changes signaling state. RSCOS is cleared when written with a 1. When RSCOS is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. See Section 10.11.3.2. Bit 2: One Second Timer (1SEC). This latched status bit is set to 1 on every 1 second interval as timed by RCLK cycles. 1SEC is cleared when written with a 1. When 1SEC is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. Bit 1: Timer Event (TIMER). This latched status bit is set to 1 when the framer performance monitor counters have been updated and are available to be read by the CPU. TIMER is cleared when written with a 1. When TIMER is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. The error counter update interval as determined by the settings in the Error Counter Configuration Register (ERCNT). See Section 10.11.8. T1: Set on increments of 1 second or 42ms (as timed by RCLK cycles) or a manual latch event. E1: Set on increments of 1 second or 62.5ms (as timed by RCLK cycles), or a manual latch event. Bit 0: Receive Multiframe Event (RMF). In T1 mode, This latched status bit is set to 1 every 1.5ms on SF (D4) MF boundaries or every 3ms on ESF MF boundaries. In E1 operation, it is set every 2ms on receive CAS multiframe boundaries to alert the CPU that signaling data is available. When CAS signaling is disabled this bit continues to be set on an arbitrary 2.0ms boundary and should be ignored and masked from causing interrupts. RMF is cleared when written with a 1. When RMF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM4 register. See Section 10.11.3.2. Register Name: Register Description: Register Address: Bit # Name Default 7 0 RLS5 Receive Latched Status Register 5 (HDLC) base address + 0x250 6 0 5 ROVR 0 4 RHOBT 0 3 RPE 0 2 RPS 0 1 RHWMS 0 0 RNES 0 Bit 5: Receive FIFO Overrun (ROVR). This latched status bit is set when the receive HDLC controller has terminated packet reception because the FIFO buffer is full. ROVR is cleared when written with a 1. When ROVR is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. Bit 4: Receive HDLC Opening Byte Event (RHOBT). This latched status bit is set when the next byte available in the receive FIFO is the first byte of a message. RHOBT is cleared when written with a 1. When RHOBT is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. Bit 3: Receive Packet End Event (RPE). This latched status bit is set when the HDLC controller detects either the end of a valid message (i.e., CRC check complete) or when the controller has experienced a message fault such as a CRC checking error, an overrun condition, or an abort. RPE is cleared when written with a 1. When RPE is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. Bit 2: Receive Packet Start Event (RPS). This latched status bit is set when the HDLC controller detects an opening byte. RPS is cleared when written with a 1. When RPS is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. Bit 1: Receive FIFO Above High Watermark Set Event (RHWMS). This latched status bit is set when RRTS5.RHWM transitions from zero to one. RHWMS is cleared when written with a 1. When RHWMS is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. Bit 0: Receive FIFO Not Empty Set Event (RNES). This latched status bit is set when RRTS5.RNE transitions from zero to one. RNES is cleared when written with a 1. When RNES is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM5 register. See section 10.12.1. 257 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RLS7-T1 Receive Latched Status Register 7 (T1 Mode) base address + 0x258 Bit # 7 6 5 4 3 Name RRAI-CI RAIS-CI RSLC96 Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS3-E1. 2 RFDLF 0 1 BC 0 0 BD 0 Bit 5: Receive RAI-CI Detect (RRAI-CI). This latched status bit is set when an RAI-CI pattern has been detected by the receiver. This bit is active in ESF framing mode only, and sets only if an RAI condition is being detected (RRTS1.RRAI=1). RRAI-CI is cleared when written with a 1. When RRAI-CI is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1 register. See Section 10.11.6.4. Bit 4: Receive AIS-CI Detect (RAIS-CI). This latched status bit is set when an AIS-CI pattern has been detected by the receiver. This bit is set only if an AIS condition is being detected (RRTS1.RAIS=1). RRAI-CI is cleared when written with a 1. When RAIS-CI is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1register. See Section 10.11.6.4. Bit 3: Receive SLC-96 Alignment Event (RSLC96). This latched status bit is set when a valid SLC-96 alignment pattern is detected in the Fs bit stream, and the RSLC registers have data available for retrieval.. RSLC96 is cleared when written with a 1. When RSLC96 is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1 register. See section 10.11.16. Bit 2: Receive FDL Register Full Event (RFDLF). This latched status bit is set when the RFDL register is full. Useful for SLC-96 operation, or manual extraction of FDL data bits. RFDLF is cleared when written with a 1. When RFDLF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1 register. See Section 10.11.4.4. Bit 1: BOC Clear Event (BC). This latched status bit is set when a valid BOC is no longer detected (with the RBOCC.RBD disintegration filter applied). BC is cleared when written with a 1. When BC is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1 register. See section 10.11.4.2. Bit 0: BOC Detect Event (BD). This latched status bit is set when a valid BOC has been detected (with the RBOCC.RBF filter applied). BD is cleared when written with a 1. When BD is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-T1 register. See section 10.11.4.2. Register Name: Register Description: Register Address: RLS7-E1 Receive Latched Status Register 7 (E1 Mode) base address + 0x258 Bit # 7 6 5 4 3 Name Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RLS7-T1. 2 0 1 Sa6CD 0 0 SaXCD 0 Bit 1: Sa6 Codeword Detect (Sa6CD). This latched status bit is set when a valid codeword (per ETS 300 233) is detected in the Sa6 bit position. Sa6CD is cleared when written with a 1. When Sa6CD is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-E1 register. See section 10.11.5.3. Bit 0: SaX Bit Change Detect (SaXCD). This latched status bit is set when the value of a received Sa bit changes and interrupts are enabled for that Sa bit in the RSAIMR register. SaXCD is cleared when written with a 1. When SaXCD is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the RIM7-E1 register. See section 10.11.5.3. 258 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # RSS1 RSS2 RSS3 RSS4 7 CH8 CH16 CH24 CH32 RSS1, RSS2, RSS3, RSS4 Receive Signaling Status Registers base address + 0x260, 0x264, 0x268, 0x26C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1* CH9 CH17* CH25 Bits 7 to 0 (x4): Receive Signaling Change Latched Status for Channels 1 to 32 (CH1 to CH32). When a channel’s signaling data changes state, the latched status bit for that channel is set to 1 in these registers. The RLS4.RSCOS bit is also set if the channel is enabled by the corresponding bit in the RSCSE registers. The setting of RLS4.RSCOS generates an interrupt request if enabled by RIM4.RSCOS. Each bit in these registers is cleared when written with a 1. See Section 10.11.3.2. *Note that in E1CAS mode, the LSb of RSS1 typically represents the CAS alignment bits, and the LSB of RSS3 represents reserved bits and the distant multiframe alarm. Register Name: Register Description: Register Address: Bit # Name Default 7 C7 0 RSCD1 Receive Spare Code Definition Register 1 (T1 Mode Only) base address + 0x270 6 C6 0 5 C5 0 4 C4 0 3 C3 0 2 C2 0 1 C1 0 0 C0 0 1 C0 0 0 C8 0 Note: Writing this register resets the detector’s integration period. See Section 10.11.14. Bit 7: Receive Spare Code Definition Bit 7 (C7). First bit of the repeating pattern. Bit 6: Receive Spare Code Definition Bit 6 (C6). Ignored if a 1-bit length is selected. Bit 5: Receive Spare Code Definition Bit 5 (C5). Ignored if a 1 or 2 bit length is selected. Bit 4: Receive Spare Code Definition Bit 4 (C4). Ignored if a 1 to 3 bit length is selected. Bit 3: Receive Spare Code Definition Bit 3 (C3). Ignored if a 1 to 4 bit length is selected. Bit 2: Receive Spare Code Definition Bit 2 (C2). Ignored if a 1 to 5 bit length is selected. Bit 1: Receive Spare Code Definition Bit 1 (C1). Ignored if a 1 to 6 bit length is selected. Bit 0: Receive Spare Code Definition Bit 0 (C0). Ignored if a 1 to 7 bit length is selected. Register Name: Register Description: Register Address: Bit # Name Default 7 C15 0 RSCD2 Receive Spare Code Definition Register 2 (T1 Mode Only) base address + 0x274 6 C14 0 5 C13 0 4 C12 0 3 C11 0 2 C10 0 Bit 7: Receive Spare Code Definition Bit 15 (C15). Ignored if a 1 to 7 bit length is selected. Bit 6: Receive Spare Code Definition Bit 14 (C14). Ignored if a 1 to 7 bit length is selected. Bit 5: Receive Spare Code Definition Bit 13 (C13). Ignored if a 1 to 7 bit length is selected. Bit 4: Receive Spare Code Definition Bit 12 (C12). Ignored if a 1 to 7 bit length is selected. Bit 3: Receive Spare Code Definition Bit 11 (C11). Ignored if a 1 to 7 bit length is selected. Bit 2: Receive Spare Code Definition Bit 10 (C10). Ignored if a 1 to 7 bit length is selected. Bit 1: Receive Spare Code Definition Bit 9 (C9). Ignored if a 1 to 7 bit length is selected. Bit 0: Receive Spare Code Definition Bit 8 (C8). Ignored if a 1 to 7 bit length is selected. 259 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 RIIR Receive Interrupt Information Register base address + 0x27C 6 RLS7 0 5 RLS6* 0 4 RLS5 0 3 RLS4 0 2 RLS3 0 1 RLS2** 0 0 RLS1 0 The bits in this register indicate which of the framer latched status registers, RLS1 through RLS7, are currently generating interrupt requests (1=interrupt request pending). When an interrupt request occurs, the CPU can read RIIR to quickly identify the source(s) of the interrupt. Each bit in RIIR automatically clears when there are no unmasked latched status register bits set in the corresponding RLS register. RLS register bits that have been masked by a corresponding bit in the RIM registers are also masked from affecting the RIIR bits. Notes: * RLS6 is reserved for future use. ** Currently none of the latched status bits in RLS2-T1 create interrupt requests. Therefore the RLS2 bit is not used in T1 mode. Register Name: Register Description: Register Address: RIM1 Receive Interrupt Mask Register 1 base address + 0x280 Bit # 7 6 5 4 3 2 1 Name RRAIC RAISC RLOSC RLOFC RRAID RAISD RLOSD Default 0 0 0 0 0 0 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS1. 0 RLOFD 0 Bit 7: Receive Remote Alarm Indication Condition Clear (RRAIC). 0 = interrupt masked 1 = interrupt enabled Bit 6: Receive Alarm Indication Signal Condition Clear (RAISC). 0 = interrupt masked 1 = interrupt enabled Bit 5: Receive Loss of Signal Condition Clear (RLOSC). 0 = interrupt masked 1 = interrupt enabled Bit 4: Receive Loss of Frame Condition Clear (RLOFC). 0 = interrupt masked 1 = interrupt enabled Bit 3: Receive Remote Alarm Indication Condition Detect (RRAID). 0 = interrupt masked 1 = interrupt enabled Bit 2: Receive Alarm Indication Signal Condition Detect (RAISD). 0 = interrupt masked 1 = interrupt enabled Bit 1: Receive Loss of Signal Condition Detect (RLOSD). 0 = interrupt masked 1 = interrupt enabled Bit 0: Receive Loss of Frame Condition Detect (RLOFD). 0 = interrupt masked 1 = interrupt enabled 260 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 RIM2 Receive Interrupt Mask Register 2 (E1 Mode Only) base address + 0x284 6 0 5 0 4 0 3 RSA1 0 2 RSA0 0 1 RCMF 0 0 RAF 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS2-E1. Bit 3: Receive Signaling All Ones Event (RSA1). 0 = interrupt masked 1 = interrupt enabled Bit 2: Receive Signaling All Zeros Event (RSA0). 0 = interrupt masked 1 = interrupt enabled Bit 1: Receive CRC-4 Multiframe Event (RCMF). 0 = interrupt masked 1 = interrupt enabled Bit 0: Receive Align Frame Event (RAF). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: RIM3-T1 Receive Interrupt Mask Register 3 (T1 Mode) base address + 0x288 Bit # 7 6 5 4 3 Name LORCC LSPC LDNC LUPC LORCD Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RIM3-E1. 2 LSPD 0 1 LDND 0 0 LUPD 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS3-T1. Bit 7: Loss of Receive Clock Condition Clear (LORCC). 0 = interrupt masked 1 = interrupt enabled Bit 6: Spare Code Detected Condition Clear (LSPC). 0 = interrupt masked 1 = interrupt enabled Bit 5: Loop Down Code Detected Condition Clear (LDNC). 0 = interrupt masked 1 = interrupt enabled Bit 4: Loop Up Code Detected Condition Clear (LUPC). 0 = interrupt masked 1 = interrupt enabled Bit 3: Loss of Receive Clock Condition Detect (LORCD). 0 = interrupt masked 1 = interrupt enabled 261 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 2: Spare Code Detected Condition Detect (LSPD). 0 = interrupt masked 1 = interrupt enabled Bit 1: Loop Down Code Detected Condition Detect (LDND). 0 = interrupt masked 1 = interrupt enabled Bit 0: Loop Up Code Detected Condition Detect (LUPD). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: RIM3-E1 Receive Interrupt Mask Register 3 (E1 Mode) base address + 0x288 Bit # 7 6 5 4 3 Name LORCC V52LNKC RDMAC LORCD Default 0 0 0 0 0 Note: This register has an alternate definition for T1 mode. See RIM3-T1. 2 0 1 V52LNKD 0 0 RDMAD 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS3-E1. Bit 7: Loss of Receive Clock Clear (LORCC). 0 = interrupt masked 1 = interrupt enabled Bit 5: V5.2 Link Detected Clear (V52LNKC). 0 = interrupt masked 1 = interrupt enabled Bit 4: Receive Distant MF Alarm Clear (RDMAC). 0 = interrupt masked 1 = interrupt enabled Bit 3: Loss of Receive Clock Detect (LORCD). 0 = interrupt masked 1 = interrupt enabled Bit 1: V5.2 Link Detect (V52LNKD). 0 = interrupt masked 1 = interrupt enabled Bit 0: Receive Distant MF Alarm Detect (RDMAD). 0 = interrupt masked 1 = interrupt enabled 262 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RESF 0 RIM4 Receive Interrupt Mask Register 4 base address + 0x28C 6 RESEM 0 5 RSLIP 0 4 0 3 RSCOS 0 2 1SEC 0 1 TIMER 0 0 RMF 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS4. Bit 7: Receive Elastic Store Full Event (RESF). 0 = interrupt masked 1 = interrupt enabled Bit 6: Receive Elastic Store Empty Event (RESEM). 0 = interrupt masked 1 = interrupt enabled Bit 5: Receive Elastic Store Slip Occurrence Event (RSLIP). 0 = interrupt masked 1 = interrupt enabled Bit 3: Receive Signaling Change Of State Event (RSCOS). 0 = interrupt masked 1 = interrupt enabled Bit 2: One Second Timer (1SEC). 0 = interrupt masked 1 = interrupt enabled Bit 1: Timer Event (TIMER). 0 = interrupt masked 1 = interrupt enabled Bit 0: Receive Multiframe Event (RMF). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: Bit # Name Default 7 0 RIM5 Receive Interrupt Mask 5 (HDLC) base address + 0x290 6 0 5 ROVR 0 4 RHOBT 0 3 RPE 0 2 RPS 0 1 RHWMS 0 0 RNES 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS5. Bit 5: Receive FIFO Overrun (ROVR). 0 = interrupt masked 1 = interrupt enabled Bit 4: Receive HDLC Opening Byte Event (RHOBT). 0 = interrupt masked 1 = interrupt enabled 263 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 3: Receive Packet End Event (RPE). 0 = interrupt masked 1 = interrupt enabled Bit 2: Receive Packet Start Event (RPS). 0 = interrupt masked 1 = interrupt enabled Bit 1: Receive FIFO Above High Watermark Set Event (RHWMS). 0 = interrupt masked 1 = interrupt enabled Bit 0: Receive FIFO Not Empty Set Event (RNES). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: Bit # Name Default 7 0 RIM7-T1 Receive Interrupt Mask Register 7 (T1 Mode) base address + 0x298 6 0 5 RRAI-CI 0 4 RAIS-CI 0 3 RSLC96 0 2 RFDLF 0 1 BC 0 0 BD 0 Note: This register has an alternate definition for E1 mode. See RIM7-E1. The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS7-T1. Bit 5: Receive RAI-CI Detect (RRAI-CI). 0 = interrupt masked 1 = interrupt enabled Bit 4: Receive AIS-CI Detect (RAIS-CI). 0 = interrupt masked 1 = interrupt enabled Bit 3: Receive SLC-96 Alignment Event (RSLC96). 0 = interrupt masked 1 = interrupt enabled Bit 2: Receive FDL Register Full Event (RFDLF). 0 = interrupt masked 1 = interrupt enabled Bit 1: BOC Clear Event (BC). 0 = interrupt masked 1 = interrupt enabled Bit 0: BOC Detect Event (BD). 0 = interrupt masked 1 = interrupt enabled 264 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 RIM7-E1 Receive Interrupt Mask Register 7 (E1 Mode) base address + 0x298 6 0 5 0 4 0 3 0 2 0 1 Sa6CD 0 0 SaXCD 0 Note: This register has an alternate definition for E1 mode. See RIM7-T1. The bits in the register are interrupt mask/enable bits for corresponding latched status bits in RLS7-E1. Bit 1: Sa6 Codeword Detect (Sa6CD). 0 = interrupt masked 1 = interrupt enabled Bit 0: SaX Bit Change Detect (SaXCD). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: Bit # RSCSE1 RSCSE2 RSCSE3 RSCSE4 7 CH8 CH16 CH24 CH32 RSCSE1, RSCSE2, RSCSE3, RSCSE4 Receive Signaling Change of State Enable base address + 0x2A0, 0x2A4, 0x2A8, 0x2AC 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x3): Receive Signaling Change of State Interrupt Enable for Channels 1 to 32 (CH1 to CH32). The bits in these registers are interrupt enables for the corresponding bits in the RSS1 through RSS4 registers. When a channel’s signaling data changes state, the latched status bit for that channel in the RSS1 through RSS4 registers is set to 1. The RLS4.RSCOS latched status bit is also set if the channel is enabled by the corresponding bit in these RSCSE registers. The setting of RLS4.RSCOS generates an interrupt request if enabled by RIM4.RSCOS. See Section 10.11.3.2. Register Name: Register Description: Register Address: Bit # Name Default 7 C7 0 RUPCD1 Receive Up Code Definition Register 1 base address + 0x2B0 6 C6 0 5 C5 0 4 C4 0 3 C3 0 2 C2 0 1 C1 0 0 C0 0 Note: Writing this register resets the detector’s integration period. See Section 10.11.14. Bit 7: Receive Up Code Definition Bit 7 (C7). First bit of the repeating pattern. Bit 6: Receive Up Code Definition Bit 6 (C6). Ignored if a 1-bit length is selected. Bit 5: Receive Up Code Definition Bit 5 (C5). Ignored if a 1 or 2 bit length is selected. Bit 4: Receive Up Code Definition Bit 4 (C4). Ignored if a 1 to 3 bit length is selected. 265 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 3: Receive Up Code Definition Bit 3 (C3). Ignored if a 1 to 4 bit length is selected. Bit 2: Receive Up Code Definition Bit 2 (C2). Ignored if a 1 to 5 bit length is selected. Bit 1: Receive Up Code Definition Bit 1 (C1). Ignored if a 1 to 6 bit length is selected. Bit 0: Receive Up Code Definition Bit 0 (C0). Ignored if a 1 to 7 bit length is selected. Register Name: Register Description: Register Address: Bit # Name Default 7 C15 0 RUPCD2 Receive Up Code Definition Register 2 base address + 0x2B4 6 C14 0 5 C13 0 4 C12 0 3 C11 0 2 C10 0 1 C0 0 0 C8 0 1 C1 0 0 C0 0 See Section 10.11.14. Bit 7: Receive Up Code Definition Bit 15 (C15). Ignored if a 1 to 7 bit length is selected. Bit 6: Receive Up Code Definition Bit 14 (C14). Ignored if a 1 to 7 bit length is selected. Bit 5: Receive Up Code Definition Bit 13 (C13). Ignored if a 1 to 7 bit length is selected. Bit 4: Receive Up Code Definition Bit 12 (C12). Ignored if a 1 to 7 bit length is selected. Bit 3: Receive Up Code Definition Bit 11 (C11). Ignored if a 1 to 7 bit length is selected. Bit 2: Receive Up Code Definition Bit 10 (C10). Ignored if a 1 to 7 bit length is selected. Bit 1: Receive Up Code Definition Bit 9 (C9). Ignored if a 1 to 7 bit length is selected. Bit 0: Receive Up Code Definition Bit 8 (C8). Ignored if a 1 to 7 bit length is selected. Register Name: Register Description: Register Address: Bit # Name Default 7 C7 0 RDNCD1 Receive Down Code Definition Register 1 base address + 0x2B8 6 C6 0 5 C5 0 4 C4 0 3 C3 0 2 C2 0 Note: Writing this register resets the detector’s integration period. See Section 10.11.14. Bit 7: Receive Down Code Definition Bit 7 (C7). First bit of the repeating pattern. Bit 6: Receive Down Code Definition Bit 6 (C6). Ignored if a 1-bit length is selected. Bit 5: Receive Down Code Definition Bit 5 (C5). Ignored if a 1 or 2 bit length is selected. Bit 4: Receive Down Code Definition Bit 4 (C4). Ignored if a 1 to 3 bit length is selected. Bit 3: Receive Down Code Definition Bit 3 (C3). Ignored if a 1 to 4 bit length is selected. Bit 2: Receive Down Code Definition Bit 2 (C2). Ignored if a 1 to 5 bit length is selected. Bit 1: Receive Down Code Definition Bit 1 (C1). Ignored if a 1 to 6 bit length is selected. Bit 0: Receive Down Code Definition Bit 0 (C0). Ignored if a 1 to 7 bit length is selected. 266 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 C15 0 RDNCD2 Receive Down Code Definition Register 2 base address + 0x2BC 6 C14 0 5 C13 0 4 C12 0 3 C11 0 2 C10 0 1 C0 0 0 C8 0 1 RLOS 0 0 RLOF 0 See Section 10.11.14. Bit 7: Receive Down Code Definition Bit 15 (C15). Ignored if a 1 to 7 bit length is selected. Bit 6: Receive Down Code Definition Bit 14 (C14). Ignored if a 1 to 7 bit length is selected. Bit 5: Receive Down Code Definition Bit 13 (C13). Ignored if a 1 to 7 bit length is selected. Bit 4: Receive Down Code Definition Bit 12 (C12). Ignored if a 1 to 7 bit length is selected. Bit 3: Receive Down Code Definition Bit 11 (C11). Ignored if a 1 to 7 bit length is selected. Bit 2: Receive Down Code Definition Bit 10 (C10). Ignored if a 1 to 7 bit length is selected. Bit 1: Receive Down Code Definition Bit 9 (C9). Ignored if a 1 to 7 bit length is selected. Bit 0: Receive Down Code Definition Bit 8 (C8). Ignored if a 1 to 7 bit length is selected. Register Name: Register Description: Register Address: Bit # Name Default 7 -0 RRTS1 Receive Real-Time Status Register 1 base address + 0x2C0 6 -0 5 -0 4 -0 3 RRAI 0 2 RAIS 0 These bits provide real-time status information from the receive framer. See 10.11.6.2 (T1) and 10.11.6.3 (E1) for set and clear criteria for RAI, AIS, LOS and LOF. The RLS1 register has corresponding latched status registers. Bit 3: Receive Remote Alarm Indication Condition (RRAI). 0 = RAI not detected 1 = RAI detected Bit 2: Receive Alarm Indication Signal Condition (RAIS). 0 = AIS not detected 1 = AIS detected Bit 1: Receive Loss of Signal Condition (RLOS). 0 = LOS not detected 1 = LOS detected Bit 0: Receive Loss of Frame Condition (RLOF). 0 = LOF not detected 1 = LOF detected 267 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: RRTS3-T1 Receive Real-Time Status Register 3 (T1 Mode) base address + 0x2C8 Bit # 7 6 5 4 3 Name ----LORC Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RRTS3-E1. 2 LSP 0 1 LDN 0 0 LUP 0 These bits provide real-time status information from the receive framer. Bit 3: Loss of Receive Clock Condition (LORC). Set when the RCLK pin has not transitioned for one channel time. Bit 2: Spare Code Detected Condition (LSP). Set when the spare code as defined in the RSCD1 and RSCD2 registers is being received. Bit 1: Loop Down Code Detected Condition (LDN). Set when the loop down code as defined in the RDNCD1 and RDNCD2 registers is being received. Bit 0: Loop Up Code Detected Condition (LUP). Set when the loop up code as defined in the RUPCD1 and RUPCD2 registers is being received. Register Name: Register Description: Register Address: RRTS3-E1 Receive Real-Time Status Register 3 (E1 Mode) base address + 0x2C8 Bit # 7 6 5 4 3 Name LORC Default 0 0 0 0 0 Note: This register has an alternate definition for E1 mode. See RRTS3-T1. 2 0 1 V52LNK 0 0 RDMA 0 These bits provide real-time status information from the receive framer. Bit 3: Loss of Receive Clock Condition (LORC). Set when the RCLK pin has not transitioned for one channel time. Bit 1: V5.2 Link Detected Condition (V52LNK). Set on detection of a V5.2 link identification signal. (G.965). Bit 0: Receive Distant MF Alarm Condition (RDMA). Set when bit 6 of timeslot 16 in frame 0 has been set for two consecutive multiframes. This alarm is not disabled in the CCS signaling mode. 268 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 RRTS5 Receive Real-Time Status Register 5 (HDLC) base address + 0x2D0 Register Name: Register Description: Register Address: Bit # Name Default 7 0 6 PS2 0 5 PS1 0 4 PS0 0 3 0 2 0 1 RHWM 0 0 RNE 0 These bits provide real-time status information from the receive framer. Bits 6 to 4: Receive Packet Status (PS[2:0]). This field indicates Rx HDLC status as of the last FIFO read. See section 10.12.1. PS2 0 PS1 0 PS0 0 PACKET STATUS In Progress: End of message has not yet been reached. 0 0 1 Packet OK: Packet ended with correct CRC codeword. 0 1 0 CRC Error: A closing flag was detected, preceded by a corrupt CRC codeword. 0 1 1 Abort: Packet ended because abort signal was detected. (7 or more ones in a row). 1 0 0 Overrun: HDLC controller terminated reception of packet because receive FIFO is full. Bit 1: Receive FIFO Above High Watermark Condition (RHWM). Set when the 64-byte receive FIFO fills beyond the high watermark set by RHFC.RFHWM. See section 10.12.1. Bit 0: Receive FIFO Not Empty Condition (RNE). Set when the 64-byte receive FIFO has at least one byte available to be read. See section 10.12.1. Register Name: Register Description: Register Address: Bit # Name Default 7 MS 0 RHPBA Receive HDLC Packet Bytes Available Register base address + 0x2D4 6 RPBA6 0 5 RPBA5 0 4 RPBA4 0 3 RPBA3 0 2 RPBA2 0 1 RPBA1 0 0 RPBA0 0 Bit 7: Message Status (MS). This bit has is set to 1 when the Rx HDLC FIFO is empty. See section 10.12.1. 0 = Bytes indicated by RPBA[6:0] are the end of a message. The CPU must check the HDLC status register (RRTS5) for details. 1 = Bytes indicated by RPBA[6:0] are the beginning or continuation of a message. The CPU does not need to check the HDLC status. Bits 6 to 0: Receive FIFO Packet Bytes Available Count (RPBA[6:0]). This field indicates the number of bytes available to be read in the receive HLDC FIFO (RHF). RPBA0 is the LSb. See section 10.12.1. 269 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 RHD7 0 RHF Receive HDLC FIFO Register base address + 0x2D8 6 RHD6 0 5 RHD5 0 4 RHD4 0 3 RHD3 0 2 RHD2 0 1 RHD1 0 0 RHD0 0 Bit 7 to 0: Receive HDLC Data (RHD[7:0]). A read of this register returns the next byte in the receive HDLC FIFO. Bit 7 is the MSb. This register is read-only. See section 10.12.1. Register Name: Register Description: Register Address: Bit # RBCS1 RBCS2 RBCS3 RBCS4 Default 7 CH8 CH16 CH24 CH32 0 RBCS1, RBCS2, RBCS3, RBCS4 Receive Blank Channel Select Registers base address + 0x300, 0x304, 0x308, 0x30C 6 CH7 CH15 CH23 CH31 0 5 CH6 CH14 CH22 CH30 0 4 CH5 CH13 CH21 CH29 0 3 CH4 CH12 CH20 CH28 0 2 CH3 CH11 CH19 CH27 0 1 CH2 CH10 CH18 CH26 0 0 CH1 CH9 CH17 CH25 0 Bit 7 to 0 (x4): Receive Blank Channel Select for Channels 1 to 32 (CH1 to CH32). 0 = do not blank this channel (channel data is available on RSER) 1 = data on RSER is forced to all ones for this channel Note that when two or more sequential channels are chosen to be blanked, the receive slip zone select bit (RESCR.RSZS) should be set to zero. If the blank channels are distributed (such as 1, 5, 9, 13, 17, 21, 25, 29) then the RSZS bit can be set to one, which may provide a lower occurrence of slips in certain applications. Register Name: Register Description: Register Address: Bit # RSI1 RSI2 RSI3 RSI4 Default 7 CH8 CH16 CH24 CH32 0 RSI1, RSI2, RSI3, RSI4 Receive Signaling Reinsertion Enable Registers base address + 0x320, 0x324, 0x328, 0x32C 6 CH7 CH15 CH23 CH31 0 5 CH6 CH14 CH22 CH30 0 4 CH5 CH13 CH21 CH29 0 3 CH4 CH12 CH20 CH28 0 2 CH3 CH11 CH19 CH27 0 1 CH2 CH10 CH18 CH26 0 0 CH1 CH9 CH17 CH25 0 Bit 7 to 0 (x4): Receive Signaling Reinsertion Enable for Channels 1 to 32 (CH1 to CH32). Setting any of these bits to one causes signaling data to be reinserted for the associated channel. RSI4 is used for 2.048MHz system TDM interface operation. See Section 10.11.3.2. 270 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # RCICE1 RCICE2 RCICE3 RCICE4 7 CH8 CH16 CH24 CH32 RCICE1, RCICE2, RCICE3, RCICE4 Receive Channel Idle Code Enable Registers base address + 0x340, 0x344, 0x348, 0x34C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Receive Idle Code Insertion Enable for Channels 1 to 32 (CH1 to CH32). See section 10.11.12. 0 = Do not insert data from the idle code array (RIDR registers) into the receive data stream. 1 = Insert data from the idle code array into the receive data stream Register Name: Register Description: Register Address: Bit # RBPCS1 RBPCS2 RBPCS3 RBPCS4 7 CH8 CH16 CH24 CH32 RBPCS1, RBPCS2, RBPCS3, RBPCS4 Receive BERT Port Channel Select Registers base address + 0x350, 0x354, 0x358, 0x35C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Receive BERT Port Channel Select for Channels 1 to 32 (CH1 to CH32). These bits specify for which channels data is forwarded to the receive BERT. Any combination of channels may be selected simultaneously. See section 10.14.3. 0 = Do not map the selected channel to the receive BERT port. 1 = Map the selected channel to the receive BERT Port. 271 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 11.5.2 Transmit Formatter Registers Table 11-21 lists the transmit formatter registers. Some of these registers change function depending on whether E1 mode or T1/J1 mode is specified in the TMMR register. These dual-function registers are shown below using two lines of text, one for E1 and one for T1/J1. All addresses not listed in the table are reserved and should be initialized with a value of 0x00 for proper operation. The base address for the port n formatter is 0x100,400+0x800*(n-1) (where n=1-8 for DS34T108, n=1-4 for DS34T104, n=1-2 for DS34T102, n=1 for DS34T101). The formatter block was originally designed for an 8-bit data bus. In this device, each 8-bit register is mapped to the least significant byte of the dword. Table 11-21. Transmit Formatter Registers Addr Register Name Offset 400 404 408 40C 410 414 418 41C 420 424 428 440 444 44C 450 460 464 468 46C 480 f484 488 48C 490 494 498 49C 4A0 4A4 4A8 4AC 4B0 4B4 4B8 4BC 4C0 4C4 4C8 4CC 4D0 4D4 4D8 4DC 4E0 4E4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 TDMWE1 TDMWE2 TDMWE3 TDMWE4 TJBE1 TJBE2 TJBE3 TJBE4 TDDS1 TDDS2 TDDS3 THC1 THBSE THC2 TSACR TSSIE1 TSSIE2 TSSIE3 TSSIE4 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 Description Tx Digital MilliWatt Enable Register 1 Tx Digital MilliWatt Enable Register 2 Tx Digital MilliWatt Enable Register 3 Tx Digital MilliWatt Enable Register 4 Tx Jammed Bit Eight Stuffing Register 1 Tx Jammed Bit Eight Stuffing Register 2 Tx Jammed Bit Eight Stuffing Register 3 Tx Jammed Bit Eight Stuffing Register 4 Tx DDS Zero Code Register 1 (T1 Mode Only) Tx DDS Zero Code Register 2 (T1 Mode Only) Tx DDS Zero Code Register 3 (T1 Mode Only) Tx HDLC Control Register 1 Tx HDLC Bit Suppress Register Tx HDLC Control Register 2 Tx Sa Bit Control Register (E1 Mode Only) Tx Software Signaling Insertion Enable 1 Tx Software Signaling Insertion Enable 2 Tx Software Signaling Insertion Enable 3 Tx Software Signaling Insertion Enable 4 (E1 Only) Tx Idle Definition Register 1 Tx Idle Definition Register 2 Tx Idle Definition Register 3 Tx Idle Definition Register 4 Tx Idle Definition Register 5 Tx Idle Definition Register 6 Tx Idle Definition Register 7 Tx Idle Definition Register 8 Tx Idle Definition Register 9 Tx Idle Definition Register 10 Tx Idle Definition Register 11 Tx Idle Definition Register 12 Tx Idle Definition Register 13 Tx Idle Definition Register 14 Tx Idle Definition Register 15 Tx Idle Definition Register 16 Tx Idle Definition Register 17 Tx Idle Definition Register 18 Tx Idle Definition Register 19 Tx Idle Definition Register 20 Tx Idle Definition Register 21 Tx Idle Definition Register 22 Tx Idle Definition Register 23 Tx Idle Definition Register 24 Tx Idle Definition Register 25 (E1 Mode Only) Tx Idle Definition Register 26 (E1 Mode Only) Read/Write or Read Only Page 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 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 R/W R/W R/W R/W R/W R/W R/W R/W R/W 274 274 274 274 275 275 275 275 275 275 275 275 276 277 277 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 278 272 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 4E8 4EC 4F0 4F4 4F8 4FC 500 504 508 50C 510 514 518 51C 520 524 528 52C 530 534 538 53C 540 544 548 54C 588 58C 590 594 598 59C 5A0 5A4 5A8 5AC 5B0 5B4 600 604 608 60C 610 614 618 61C 624 628 62C 638 640 644 648 Register Name TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TIDR1 TS1 TS2 TS3 TS4 TS5 TS6 TS7 TS8 TS9 TS10 TS11 TS12 TS13 TS14 TS15 TS16 TCICE1 TCICE2 TCICE3 TCICE4 TFDL TBOC TSLC1 TAF TSLC2 TNAF TSLC3 TSiAF TSiNAF TRA TSa4 TSa5 TSa6 TSa7 TSa8 TMMR TCR1-T1 TCR1-E1 TCR2-T1 TCR2-E1 TCR3 TIOCR TESCR TCR4 THFC TDS0SEL TXPC TBPBS TSYNCC TLS1 TLS2 TLS3 4 4 4 4 4 4 Description Tx Idle Definition Register 27 (E1 Mode Only) Tx Idle Definition Register 28 (E1 Mode Only) Tx Idle Definition Register 29 (E1 Mode Only) Tx Idle Definition Register 30 (E1 Mode Only) Tx Idle Definition Register 31 (E1 Mode Only) Tx Idle Definition Register 32 (E1 Mode Only) Tx Signaling Register 1 Tx Signaling Register 2 Tx Signaling Register 3 Tx Signaling Register 4 Tx Signaling Register 5 Tx Signaling Register 6 Tx Signaling Register 7 Tx Signaling Register 8 Tx Signaling Register 9 Tx Signaling Register 10 Tx Signaling Register 11 Tx Signaling Register 12 Tx Signaling Register 13 Tx Signaling Register 14 Tx Signaling Register 15 Tx Signaling Register 16 Tx Channel Idle Code Enable 1 Tx Channel Idle Code Enable 2 Tx Channel Idle Code Enable 3 Tx Channel Idle Code Enable 4 (E1 Mode Only) Tx FDL Register (T1 Mode Only) Tx BOC Register (T1 Mode Only) Tx SLC96 Data Link Register 1 (T1 Mode) Tx Align Frame (E1 Mode) Tx SLC96 Data Link Register 2 (T1 Mode) Tx Non-Align Frame (E1 Mode) Tx SLC96 Data Link Register 3 (T1 Mode) Tx Si bits of the Align Frames (E1 Mode) Tx Si bits of the Non-Align Frames (E1 Mode Only) E1 Tx Remote Alarm Bits (E1 Mode Only) E1 Tx Sa4 Bits (E1 Mode Only) E1 Tx Sa5 Bits (E1 Mode Only) E1 Tx Sa6 Bits (E1 Mode Only) E1 Tx Sa7 Bits (E1 Mode Only) E1 Tx Sa8 Bits (E1 Mode Only) Tx Master Mode Register Tx Control Register 1 (T1 Mode) Tx Control Register 1 (E1 Mode) Tx Control Register 2 (T1 Mode) Tx Control Register 2 (E1 Mode) Tx Control Register 3 Tx I/O Configuration Register Tx Elastic Store Control Register Tx Control 4 Register (T1 Mode Only) Tx HDLC FIFO Control Register Tx DS0 Monitor Select Register Tx eXpansion Port Control Register Tx BERT Port Bit Suppress Register Tx Synchronizer Control Register Tx Latched Status Register 1 Tx Latched Status Register 2 (HDLC) Tx Latched Status Register 3 (SYNC) Read/Write or Read Only 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 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 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 Page 278 278 278 278 278 278 279 279 279 279 279 279 279 279 279 279 279 279 279 279 279 279 280 280 280 280 280 280 280 281 280 281 280 282 282 283 283 284 284 285 285 286 286 287 288 289 290 291 292 293 294 294 294 295 295 296 297 297 273 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Addr Offset 67C 680 684 688 6B0 6B4 6C4 6CC 6D0 6EC 700 704 708 70C 720 724 728 72C 740 744 748 74C 750 754 758 75C TIIR TIM1 TIM2 TIM3 TCD1 TCD2 TRTS2 TFBA THF TDS0M TBCS1 TBCS2 TBCS3 TBCS4 THSCS1 THSCS2 THSCS3 THSCS4 PCL1 PCL2 PCL3 PCL4 TBPCS1 TBPCS2 TBPCS3 TBPCS4 Register Name : Register Description: Register Address: Bit # TDMWE1 TDMWE2 TDMWE3 TDMWE4 Description Read/Write or Read Only Page Tx Interrupt Information Register Tx Interrupt Mask Register 1 Tx Interrupt Mask Register 2 (HDLC) Tx Interrupt Mask Register 3 (SYNC) Tx Code Definition Register 1 (T1 Mode Only) Tx Code Definition Register 2 (T1 Mode Only) Tx Real-Time Status Register 2 (HDLC) Tx HDLC FIFO Buffer Available Register Tx HDLC FIFO Register Tx DS0 Monitor Register Tx Blank Channel Select Register 1 Tx Blank Channel Select Register 2 Tx Blank Channel Select Register 3 Tx Blank Channel Select Register 4 (E1 Mode Only) Tx Hardware Signaling Channel Select 1 Tx Hardware Signaling Channel Select 2 Tx Hardware Signaling Channel Select 3 Tx Hardware Signaling Channel Select 4 (E1 Only) Per-Channel Loopback Enable Register 1 Per-Channel Loopback Enable Register 2 Per-Channel Loopback Enable Register 3 Per-Channel Loopback Enable Register 4 (E1 Only) Tx BERT Port Channel Select Register 1 Tx BERT Port Channel Select Register 2 Tx BERT Port Channel Select Register 3 Tx BERT Port Channel Select Register 4 (E1 Only) R/W R/W R/W R/W R/W R/W R R W R 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 298 298 299 299 300 300 300 301 301 301 302 302 302 302 302 302 302 302 302 302 302 302 303 303 303 303 Register Name 7 CH8 CH16 CH24 CH32 TDMWE1, TDMWE2, TDMWE3, TDMWE4 Transmit Digital Milliwatt Enable Registers (E1 and T1) base address + 0x400, 0x404, 0x408, 0x40C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Transmit Digital Milliwatt Enable for Channels 1 to 32 (CH1 to CH32). Configuration bit TCR4.uALAW specifies whether u-law coding or A-law coding is used. See section 10.11.13. 0 = Do not affect the transmit data associated with this channel 1 = Replace the transmit data associated with this channel with digital milliwatt code 274 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # TJBE1 TJBE2 TJBE3 TJBE4 7 CH8 CH16 CH24 CH32 TJBE1, TJBE2, TJBE3, TJBE4 Transmit Jammed Bit Eight Registers base address + 0x410, 0x404, 0x410, 0x41C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0: Transmit Jammed Bit Eight Stuffing Control Bits for Channels 1 to 32 (CH1 to CH32). These registers are enabled by TCR4.TJBEN. CH25 through CH32 are only used in E1 mode. Transmit jammed bit eight, also known as GTE zero code suppression, is a pulse density enforcement mechanism. When jammed bit eight is enabled for a channel, in any frame where all eight bits of the channel are zero, bit 8 (bit 7 in T1 signaling frames) is set to 1. 0 = Do not affect the transmit data associated with this channel 1 = Set bit 8 (bit 7 in T1 signaling frames) to 1 when all eight bits of the channel are zero Register Name: Register Description: Register Address: Bit # TDDS1 TDDS2 TDDS3 7 CH8 CH16 CH24 TDDS1, TDDS2, TDDS3 Transmit DDS Zero Code Registers (T1 Mode Only) base address + 0x420, 0x424, 0x428 6 CH7 CH15 CH23 5 CH6 CH14 CH22 4 CH5 CH13 CH21 3 CH4 CH12 CH20 2 CH3 CH11 CH19 1 CH2 CH10 CH18 0 CH1 CH9 CH17 Bits 7 to 0: Transmit DDS Zero Code Control Bits for Channels 1 to 24 (CH1 to CH24). These registers are enabled by TCR2.TDDSEN. DDS is a pulse density enforcement mechanism. When DDS is enabled for a channel, in any frame where all eight bits of the channel are zero, the channel data is replaced with 10011000b. 0 = Do not affect the transmit data associated with this channel 1 = Replace channel data with 10011000b when all eight bits of the channel are zero Register Name: Register Description: Register Address: THC1 Transmit HDLC Control Register 1 base address + 0x440 Bit # Name Default 6 TEOML 0 7 NOFS 0 5 THR 0 4 THMS 0 3 TFS 0 2 TEOM 0 1 TZSD 0 0 TCRCD 0 Bit 7: Number Of Flags Select (NOFS). See section 10.12.2. 0 = send one flag between consecutive messages 1 = send two flags between consecutive messages Bit 6: Transmit End of Message and Loop (TEOML). The term “loop” means to transmit the message repeatedly until instructed to stop. To loop on a message, set this bit to one just before the last data byte of an HDLC packet is written into the transmit FIFO. The Tx HDLC controller then repeats the message until the CPU clears this bit or a new message is written to the Tx HDLC FIFO. When the CPU clears this bit, the HDLC controller transmits the remainder of the in-progress copy of the message and then transmits flags until a new message is written to the Tx HDLC FIFO. If the CPU ends the loop by writing a new message to the FIFO, the Tx HDLC controller ends the loop, transmits one or two flags and then transmits the new message. If not disabled via THC1.TCRCD, the Tx HDLC controller automatically appends a two-byte CRC code to the end of all messages. See section 10.12.2. 275 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 5: Transmit HDLC Reset (THR). A low-to-high transition of this bit resets the Tx HDLC controller and flushes the Tx HDLC FIFO. The Tx HDLC controller transmits an abort followed by intermessage fill (determined by the THC1.TFS bit) until a new packet transmission is initiated by writing new data into the FIFO. This is an acknowledged reset, that is, the CPU sets the bit to cause the reset, and the device clears the bit once the reset operation is complete. Total time for the reset is less than 250s. See section 10.12.2. 0 = Normal operation 1 = Reset Tx HDLC controller and flush the Tx HDLC FIFO Bit 4: Transmit HDLC Mapping Select (THMS). See section 10.12.2. 0 = Tx HDLC assigned to DS0 channel(s) 1 = Tx HDLC assigned to FDL (T1 mode) or Sa Bits (E1 mode). Bit 3: Transmit Flag/Idle Select (TFS). This bit selects the inter-message fill character after the closing and before the opening flags (7Eh). See section 10.12.2. 0 = 0x7E 1 = 0xFF Bit 2: Transmit End of Message (TEOM). This bit must be set to a one just before the last data byte of an HDLC packet is written into the transmit FIFO at THF. If not disabled via THC1.TCRCD, the transmitter automatically appends a two-byte CRC code to the end of the message. See section 10.12.2. Bit 1: Transmit Zero Stuffer Defeat (TZSD). The zero stuffer function automatically inserts a zero in the message field (between the flags) after 5 consecutive ones to prevent the emulation of a flag or abort sequence by the data pattern. The receiver automatically removes (de-stuffs) any zero after 5 ones in the message field. See section 10.12.2. 0 = enable the zero stuffer (normal operation) 1 = disable the zero stuffer Bit 0: Transmit CRC Defeat (TCRCD). In normal operation a two-byte CRC code is automatically appended to the outbound message. This bit can be used to disable the CRC generation function. See section 10.12.2. 0 = enable CRC generation (normal operation) 1 = disable CRC generation Register Name: Register Description: Register Address: THBSE Transmit HDLC Bit Suppress Register base address + 0x444 Bit # Name Default 6 TBSE7 0 7 TBSE8 0 5 TBSE6 0 4 TBSE5 0 3 TBSE4 0 2 TBSE3 0 1 TBSE2 0 0 TBSE1 0 Bits 7 to 0: Receive Bit Suppress 8 to 1 (BSE[8:1]). These bits specify whether the corresponding bit of the DS0 channel should be included or excluded (suppressed) in carrying the data stream generated by the transmit HDLC controller. BSE8 is the MSb of the channel. See section 10.12.2. 0 = Include this bit in the data stream 1= Don’t include (suppress) this bit 276 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 TABT 0 THC2 Transmit HDLC Control Register 2 base address + 0x44C 6 SBOC 0 5 THCEN 0 4 THCS4 0 3 THCS3 0 2 THCS2 0 1 THCS1 0 0 THCS0 0 Bit 7: Transmit Abort (TABT). A zero-to-one transition of this bit causes the Tx FIFO contents to be dumped and one 0xFE abort to be sent followed by 0x7E or 0xFF flags/idle until a new packet is initiated by writing new data into the FIFO. Must be cleared and set again for a subsequent abort to be sent. Bit 6: Send BOC (SBOC). T1 Mode Only. Set this bit to one to transmit the bit-oriented code stored in TBOC[5:0]. See Section 10.11.4.1. Bit 5: Transmit HDLC Controller Enable (THCEN). See section 10.12.2. 0 = Transmit HDLC controller is not enabled 1 = Transmit HDLC controller is enabled Bits 4 to 0: Transmit HDLC Channel Select (THCS4-0). These bits specify which DS0 is mapped to the HDLC controller when enabled with RHMS=0. THCS[4:0]=00000 selects channel 1, while THCS[4:0]=11111 selects channel 32. Channel numbers greater than 24 are invalid in T1 mode. A change to this field is acknowledged only after a Transmit HDLC Reset (THC1.THR bit above). See section 10.12.2 Register Name: Register Description: Register Address: Bit # Name Default 7 SiAF 0 TSACR Transmit Sa Bit Control Register (E1 Mode Only) base address + 0x450 6 SiNAF 0 5 RA 0 4 Sa4 0 3 Sa5 0 2 Sa6 0 1 Sa7 0 0 Sa8 0 Bit 7: International Bit in Align Frame Insertion Control Bit (SiAF). 0 = Do not insert data from the TSiAF register into the transmit data stream 1 = Insert data from the TSiAF register into the transmit data stream Bit 6: International Bit in Non-Align Frame Insertion Control Bit (SiNAF). 0 = Do not insert data from the TSiNAF register into the transmit data stream 1 = Insert data from the TSiNAF register into the transmit data stream Bit 5: Remote Alarm Insertion Control Bit (RA). 0 = Do not insert data from the TRA register into the transmit data stream 1 = Insert data from the TRA register into the transmit data stream Bit 4: Additional Bit 4 Insertion Control Bit (Sa4). 0 = Do not insert data from the TSa4 register into the transmit data stream 1 = Insert data from the TSa4 register into the transmit data stream Bit 3: Additional Bit 5 Insertion Control Bit (Sa5). 0 = Do not insert data from the TSa5 register into the transmit data stream 1 = Insert data from the TSa5 register into the transmit data stream Bit 2: Additional Bit 6 Insertion Control Bit (Sa6). 0 = Do not insert data from the TSa6 register into the transmit data stream 1 = Insert data from the TSa6 register into the transmit data stream 277 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 1: Additional Bit 7 Insertion Control Bit (Sa7). 0 = Do not insert data from the TSa7 register into the transmit data stream 1 = Insert data from the TSa7 register into the transmit data stream Bit 0: Additional Bit 8 Insertion Control Bit (Sa8). 0 = Do not insert data from the TSa8 register into the transmit data stream 1 = Insert data from the TSa8 register into the transmit data stream Register Name : Register Description: Register Address: Bit # SSIE1 SSIE2 SSIE3 SSIE4 7 CH8 CH16 CH24 CH32 TSSIE1, TSSIE2, TSSIE3, TSSIE4 Transmit Software Signaling Insertion Enable Registers base address + 0x460, 0x464, 0x468, 0x46C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0: Software Signaling Insertion Enable for Channels 1 to 32 (SSIEx). When TCR1-T1.TSSE=1, these bits determine which DS0 channels are to have signaling inserted form the transmit signaling registers (TS1 through TS16). When TCR1-T1.TSSE=0, these bits are ignored. In addition, in T1 mode, when TCR2-T1.TB7ZS=1 and TCR1-T1.GB7S=0 these bits specify which channels are bit-7 stuffed when all-zeros occurs. In E1 mode, when TCR1-E1.T16S=0 these bits determine which DS0 channels are to have signaling inserted form the TS registers. When T16S=1, these bits are ignored. See section 10.11.3.1.1. 0 = Do not source signaling data from the transmit signaling register for this channel. 1 = Source signaling data from the transmit signaling register for this channel. Register Name: Register Description: Register Address: Bit # Name Default 7 C7 0 TIDR1 to TIDR32 Transmit Idle Code Definition Registers 1 to 32 base address + 0x480 + 0x04*(n-1), n = channel number = 1 to 32 6 C6 0 5 C5 0 4 C4 0 3 C3 0 2 C2 0 1 C1 0 0 C0 0 Bits 7 to 0: Per-Channel Idle Code Bits (C[7:0]). C0 is the LSB of the code (this bit is transmitted last). Address 0x480 holds the idle code for channel 1. Address 0x4DC is for channel 24. Address 0x4FC is for channel 32. Note that TIDR25 to TIDR32 are only for E1 mode. See section 10.11.12. 278 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TS1 to TS16 Transmit Signaling Registers base address + 0x500 + 0x04*(n-1), n = 1 to 16 T1 Mode: Bit # TS1 TS2 TS3 TS4 TS5 TS6 TS7 TS8 TS9 TS10 TS11 TS12 7 CH1-A CH2-A CH3-A CH4-A CH5-A CH6-A CH7-A CH8-A CH9-A CH10-A CH11-A CH12-A 6 CH1-B CH2-B CH3-B CH4-B CH5-B CH6-B CH7-B CH8-B CH9-B CH10-B CH11-B CH12-B 5 CH1-C CH2-C CH3-C CH4-C CH5-C CH6-C CH7-C CH8-C CH9-C CH10-C CH11-C CH12-C 4 CH1-D CH2-D CH3-D CH4-D CH5-D CH6-D CH7-D CH8-D CH9-D CH10-D CH11-D CH12-D 3 CH13-A CH14-A CH15-A CH16-A CH17-A CH18-A CH19-A CH20-A CH21-A CH22-A CH23-A CH24-A 2 CH13-B CH14-B CH15-B CH16-B CH17-B CH18-B CH19-B CH20-B CH21-B CH22-B CH23-B CH24-B 1 CH13-C CH14-C CH15-C CH16-C CH17-C CH18-C CH19-C CH20-C CH21-C CH22-C CH23-C CH24-C 0 CH13-D CH14-D CH15-D CH16-D CH17-D CH18-D CH19-D CH20-D CH21-D CH22-D CH23-D CH24-D E1 Mode : Bit # TS1 TS2 TS3 TS4 TS5 TS6 TS7 TS8 TS9 TS10 TS11 TS12 TS13 TS14 TS15 TS16 7 0 CH1-A CH2-A CH3-A CH4-A CH5-A CH6-A CH7-A CH8-A CH9-A CH10-A CH11-A CH12-A CH13-A CH14-A CH15-A 6 0 CH1-B CH2-B CH3-B CH4-B CH5-B CH6-B CH7-B CH8-B CH9-B CH10-B CH11-B CH12-B CH13-B CH14-B CH15-B 5 0 CH1-C CH2-C CH3-C CH4-C CH5-C CH6-C CH7-C CH8-C CH9-C CH10-C CH11-C CH12-C CH13-C CH14-C CH15-C 4 0 CH1-D CH2-D CH3-D CH4-D CH5-D CH6-D CH7-D CH8-D CH9-D CH10-D CH11-D CH12-D CH13-D CH14-D CH15-D 3 X CH16-A CH17-A CH18-A CH19-A CH20-A CH21-A CH22-A CH23-A CH24-A CH25-A CH26-A CH27-A CH28-A CH29-A CH30-A 2 Y CH16-B CH17-B CH18-B CH19-B CH20-B CH21-B CH22-B CH23-B CH24-B CH25-B CH26-B CH27-B CH28-B CH29-B CH30-B 1 X CH16-C CH17-C CH18-C CH19-C CH20-C CH21-C CH22-C CH23-C CH24-C CH25-C CH26-C CH27-C CH28-C CH29-C CH30-C 0 X CH16-D CH17-D CH18-D CH19-D CH20-D CH21-D CH22-D CH23-D CH24-D CH25-D CH26-D CH27-D CH28-D CH29-D CH30-D In the T1 ESF framing mode, there can be up to four signaling bits per channel (A, B, C, and D). In the T1 SF (D4) framing mode, there are only two signaling bits per channel (A and B); the C and D bit positions are ignored. See section 10.11.3.1.1. 279 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # TCICE1 TCICE2 TCICE3 TCICE4 TCICE1, TCICE2, TCICE3, TCICE4 Transmit Channel Idle Code Enable Registers base address + 0x540, 0x544, 0x548, 0x54C 7 CH8 CH16 CH24 CH32 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Transmit Idle Code Insertion Enable for Channels 1 to 32 (CH1 to CH32). See section 10.11.12. 0 = Do not insert data from the idle code array (TIDR registers) into the transmit data stream 1 = Insert data from the idle code array into the transmit data stream Register Name: Register Description: Register Address: TFDL Transmit FDL Register (T1 Mode Only) base address + 0x588 Bit # Name Default 6 TFDL6 0 7 TFDL7 0 5 TFDL5 0 4 TFDL4 0 3 TFDL3 0 2 TFDL2 0 1 TFDL1 0 0 TFDL0 0 Bits 7 to 0: Transmit FDL (TFDL[7:0]). In ESF mode this register holds the facility data link (FDL) information that is inserted into the outgoing data stream. The LSb is transmitted first. In SF mode, bits [5:0] hold the Fs framing pattern that is inserted into the outgoing data stream. Bit 7 is the MSb. See section 10.11.4.3 and section 10.11.16. Register Name: Register Description: Register Address: Bit # Name Default 7 0 TBOC Transmit Bit-Oriented Code Register (T1 Mode Only) base address + 0x58C 6 0 5 TBOC5 0 4 TBOC4 0 3 TBOC3 0 2 TBOC2 0 1 TBOC1 0 0 TBOC0 0 Bits 5 to 0: Transmit Bit-Oriented Code (TBOC[5:0]). T1 ESF mode only. This register holds the bit-oriented code (BOC) information that is inserted into the outgoing data stream. The LSb (TBOC0) is transmitted first. See Section 10.11.4.1. Register Name : Register Description: Register Address: TSLC1, TSLC2, TSLC3 Transmit SLC96 Data Link Registers (T1 Mode) base address + 0x590, 0x594, 0x598 Bit # 7 6 5 4 3 2 1 T1TSLC1 C8 C7 C6 C5 C4 C3 C2 T1TSLC2 M2 M1 S=0 S=1 S=0 C11 C10 T1TSLC3 S=1 S4 S3 S2 S1 A2 A1 Note: These registers have an alternate definition for E1 mode. See TAF, TNAF, and TSiAF. 0 C1 C9 M3 See section 10.11.16. 280 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TAF Transmit Align Frame (E1 Mode) base address + 0x590 Bit # 7 6 5 4 3 Name Si 0 0 1 1 Default 0 0 0 1 1 Note: This register has an alternate definition for T1 mode. See TSLC1. 2 0 0 1 1 1 0 1 1 The align frame is the E1 frame containing the frame alignment signal (FAS). The bits of this register specify the first eight bits of the align frame in the outgoing E1 data stream. The bits are sampled from this register at the start of the align frame, which is indicated by the TAF status bit in TLS1. Various control fields can cause some of these bits to be sourced from elsewhere. See Section 10.11.5.1. Bit 7: International Bit (Si). Bits 6 to 0: Frame Alignment Signal (FAS[6:0]. Should be set to 0011011 for normal E1 operation. Register Name: Register Description: Register Address: Bit # Name Default TNAF Transmit Non-Align Frame (E1 Mode) base address + 0x594 7 Si 0 6 1 1 5 A 0 4 Sa4 0 3 Sa5 0 2 Sa6 0 1 Sa7 0 0 Sa8 0 The non-align frame is the E1 frame that does not contain the frame alignment signal (FAS). The bits of this register specify the first eight bits of the non-align frame in the outgoing E1 data stream. The bits are sampled from this register at the start of the align frame, which is indicated by the TAF status bit in TLS1. Various control fields can cause some of these bits to be sourced from elsewhere. See Section 10.11.5.1. Bit 7: International Bit (Si). Bit 6: Non-Align Frame Signal Bit. Should be set to 1 for normal E1 operation. Bit 5: Remote Alarm Indication (RAI). This is the normal control bit for manipulating the RAI bit in the outgoing E1 frames. 0 = No alarm condition 1 = Alarm condition Bits 4 to 0: Additional Spare Bits (Sa4 to Sa8). 281 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TSiAF Transmit Si Bits of the Align Frames (E1 Mode) base address + 0x598 Bit # Name Default 6 TsiF12 0 7 TsiF14 0 5 TsiF10 0 4 TsiF8 0 3 TsiF6 0 2 TsiF4 0 1 TsiF2 0 0 TsiF0 0 The align frame is the E1 frame containing the frame alignment signal (FAS). When SiAF=1 in TSACR, the bits of this register specify the Si bits to be transmitted in the align frames of outgoing multiframes. The Si bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Si Bit of Frame 14 (TsiF14). Bit 6: Si Bit of Frame 12 (TsiF12). Bit 5: Si Bit of Frame 10 (TsiF10). Bit 4: Si Bit of Frame 8 (TsiF8). Bit 3: Si Bit of Frame 6 (TsiF6). Bit 2: Si Bit of Frame 4 (TsiF4). Bit 1: Si Bit of Frame 2 (TsiF2). Bit 0: Si Bit of Frame 0 (TsiF0). Register Name: Register Description: Register Address: TSiNAF Transmit Si Bits of the Non-Align Frames (E1 Mode Only) base address + 0x59C Bit # Name Default 6 TsiF13 0 7 TsiF15 0 5 TsiF11 0 4 TsiF9 0 3 TsiF7 0 2 TsiF5 0 1 TsiF3 0 0 TsiF1 0 The non-align frame is the E1 frame that does not contain the frame alignment signal (FAS). When SiNAF=1 in TSACR, the bits of this register specify the Si bits to be transmitted in the non-align frames of outgoing multiframes. The Si bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Si Bit of Frame 15 (TsiF15). Bit 6: Si Bit of Frame 13 (TsiF13). Bit 5: Si Bit of Frame 11 (TsiF11). Bit 4: Si Bit of Frame 9 (TsiF9). Bit 3: Si Bit of Frame 7 (TsiF7). Bit 2: Si Bit of Frame 5 (TsiF5). Bit 1: Si Bit of Frame 3 (TsiF3). Bit 0: Si Bit of Frame 1 (TsiF1). 282 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TRA Transmit Remote Alarm Bits (E1 Mode Only) base address + 0x5A0 Bit # Name Default 6 TRAF13 0 7 TRAF15 0 5 TRAF11 0 4 TRAF9 0 3 TRAF7 0 2 TRAF5 0 1 TRAF3 0 0 TRAF1 0 When RA=1 in TSACR, the bits of this register specify the remote alarm bits to be transmitted in outgoing multiframes. The remote alarm bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Remote Alarm Bit of Frame 15 (TRAF15). Bit 6: Remote Alarm Bit of Frame 13 (TRAF13). Bit 5: Remote Alarm Bit of Frame 11 (TRAF11). Bit 4: Remote Alarm Bit of Frame 9 (TRAF9). Bit 3: Remote Alarm Bit of Frame 7 (TRAF7). Bit 2: Remote Alarm Bit of Frame 5 (TRAF5). Bit 1: Remote Alarm Bit of Frame 3 (TRAF3). Bit 0: Remote Alarm Bit of Frame 1 (TRAF1). Register Name: Register Description: Register Address: TSa4 Transmit Sa4 Bits (E1 Mode Only) base address + 0x5A4 Bit # Name Default 6 Tsa4F13 0 7 Tsa4F15 0 5 Tsa4F11 0 4 Tsa4F9 0 3 Tsa4F7 0 2 Tsa4F5 0 1 Tsa4F3 0 0 Tsa4F1 0 When Sa4=1 in TSACR, the bits of this register specify the Sa4 bits to be transmitted in outgoing multiframes. The Sa4 bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Sa4 Bit of Frame 15 (Tsa4F15). Bit 6: Sa4 Bit of Frame 13 (Tsa4F13). Bit 5: Sa4 Bit of Frame 11 (Tsa4F11). Bit 4: Sa4 Bit of Frame 9 (Tsa4F9). Bit 3: Sa4 Bit of Frame 7 (Tsa4F7). Bit 2: Sa4 Bit of Frame 5 (Tsa4F5). Bit 1: Sa4 Bit of Frame 3 (Tsa4F3). Bit 0: Sa4 Bit of Frame 1 (Tsa4F1). 283 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TSa5 Transmitted Sa5 Bits (E1 Mode Only) base address + 0x5A8 Bit # Name Default 6 Tsa5F13 0 7 Tsa5F15 0 5 Tsa5F11 0 4 Tsa5F9 0 3 Tsa5F7 0 2 Tsa5F5 0 1 Tsa5F3 0 0 Tsa5F1 0 When Sa5=1 in TSACR, the bits of this register specify the Sa5 bits to be transmitted in outgoing multiframes. The Sa5 bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Sa5 Bit of Frame 15 (Tsa5F15). Bit 6: Sa5 Bit of Frame 13 (Tsa5F13). Bit 5: Sa5 Bit of Frame 11 (Tsa5F11). Bit 4: Sa5 Bit of Frame 9 (Tsa5F9). Bit 3: Sa5 Bit of Frame 7 (Tsa5F7). Bit 2: Sa5 Bit of Frame 5 (Tsa5F5). Bit 1: Sa5 Bit of Frame 3 (Tsa5F3). Bit 0: Sa5 Bit of Frame 1 (Tsa5F1). Register Name: Register Description: Register Address: Bit # Name Default 7 Tsa6F15 0 TSa6 Transmit Sa6 Bits (E1 Mode Only) base address + 0x5AC 6 Tsa6F13 0 5 Tsa6F11 0 4 Tsa6F9 0 3 Tsa6F7 0 2 Tsa6F5 0 1 Tsa6F3 0 0 Tsa6F1 0 When Sa6=1 in TSACR, the bits of this register specify the Sa6 bits to be transmitted in outgoing multiframes. The Sa6 bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Sa6 Bit of Frame 15 (Tsa6F15). Bit 6: Sa6 Bit of Frame 13 (Tsa6F13). Bit 5: Sa6 Bit of Frame 11 (Tsa6F11). Bit 4: Sa6 Bit of Frame 9 (Tsa6F9). Bit 3: Sa6 Bit of Frame 7 (Tsa6F7). Bit 2: Sa6 Bit of Frame 5 (Tsa6F5). Bit 1: Sa6 Bit of Frame 3 (Tsa6F3). Bit 0: Sa6 Bit of Frame 1 (Tsa6F1). 284 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 Tsa7F15 0 TSa7 Transmit Sa7 Bits (E1 Mode Only) base address + 0x5B0 6 Tsa7F13 0 5 Tsa7F11 0 4 Tsa7F9 0 3 Tsa7F7 0 2 Tsa7F5 0 1 Tsa7F3 0 0 Tsa7F1 0 When Sa7=1 in TSACR, the bits of this register specify the Sa7 bits to be transmitted in outgoing multiframes. The Sa7 bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. S See Section 10.11.5.2. Bit 7: Sa7 Bit of Frame 15 (Tsa4F15). Bit 6: Sa7 Bit of Frame 13 (Tsa7F13). Bit 5: Sa7 Bit of Frame 11 (Tsa7F11). Bit 4: Sa7 Bit of Frame 9 (Tsa7F9). Bit 3: Sa7 Bit of Frame 7 (Tsa7F7). Bit 2: Sa7 Bit of Frame 5 (Tsa7F5). Bit 1: Sa7 Bit of Frame 3 (Tsa7F3). Bit 0: Sa7 Bit of Frame 1 (Tsa7F1). Register Name: Register Description: Register Address: Bit # Name Default 7 Tsa8F15 0 TSa8 Transmit Sa8 Bits (E1 Mode Only) base address + 0x5B4 6 Tsa8F13 0 5 Tsa8F11 0 4 Tsa8F9 0 3 Tsa8F7 0 2 Tsa8F5 0 1 Tsa8F3 0 0 Tsa8F1 0 When Sa8=1 in TSACR, the bits of this register specify the Sa8 bits to be transmitted in outgoing multiframes. The Sa8 bits are sampled from this register at the start of the multiframe. The multiframe boundary is indicated by the TMF status bit in TLS1. See Section 10.11.5.2. Bit 7: Sa8 Bit of Frame 15 (Tsa8F15). Bit 6: Sa8 Bit of Frame 13 (Tsa8F13). Bit 5: Sa8 Bit of Frame 11 (Tsa8F11). Bit 4: Sa8 Bit of Frame 9 (Tsa8F9). Bit 3: Sa8 Bit of Frame 7 (Tsa8F7). Bit 2: Sa8 Bit of Frame 5 (Tsa8F5). Bit 1: Sa8 Bit of Frame 3 (Tsa8F3). Bit 0: Sa8 Bit of Frame 1 (Tsa8F1). 285 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 FRM_EN 0 TMMR Transmit Master Mode Register base address + 0x600 6 INIT_DONE 0 5 0 4 0 3 0 2 0 1 SFTRST 0 0 E1/T1 0 Bit 7: Formatter Enable (FRM_EN). This bit must be set to the desired state before setting the INIT_DONE bit. 0 = Framer disabled – held in low-power state 1 = Framer enabled – all features active Bit 6: Initialization Done (INIT_DONE). The CPU must set the E1/T1 and FRM_EN bits prior to setting this bit. After INIT_DONE is set, the transmitter is enabled if FRM_EN = 1. Bit 1: Soft Reset (SFTRST). Level sensitive reset. Should be set to 1, then to 0 to reset and initialize the transmit formatter . 0 = Normal operation 1 = Reset the transmit formatter in reset Bit 0: Transmitter E1/T1 Mode Select (E1/T1). This bit specifies the operating mode for the transmit formatter only. The RMMR:E1/T1 bit specifies the operating mode for the receive framer. This bit must be set to the desired value before setting the INIT_DONE bit. 0 = T1 operation 1 = E1 operation Register Name: Register Description: Register Address: Bit # Name Default 7 TJC 0 TCR1-T1 Transmit Control Register 1 (T1 Mode) base address + 0x604 6 TFPT 0 5 TCPT 0 4 TSSE 0 3 GB7S 0 2 TB8ZS 0 1 TAIS 0 0 TRAI 0 Bit 7: Transmit Japanese CRC-6 Enable (TJC). 0 = Use ANSI/AT&T:ITU CRC-6 calculation (normal operation) 1 = Use Japanese standard JT–G704 CRC-6 calculation Bit 6: Transmit F–Bit Pass Through (TFPT). 0 = F bits sourced internally 1 = F bits sampled at framer input TSER Bit 5: Transmit CRC Pass Through (TCPT). 0 = Source CRC-6 bits internally 1 = Sample CRC-6 bits at framer input TSER during F-bit times Bit 4: Transmit Software Signaling Enable (TSSE). 0 = Do not source signaling data from the TS registers regardless of the TSSIE registers. The TSSIE registers can still define which channels are to have bit 7 stuffing performed (when TCR1-T1.GB7S=0). 1 = Source signaling data as enabled by the TSSIE registers. See section 10.11.3.1.1. Bit 3: Global Bit 7 Stuffing (GB7S). When TCR2-T1.TB7ZS=0, no bit 7 stuffing occurs and this bit is ignored. 0 = Allow the TSSIE registers to determine which channels containing all zeros are to be bit 7 stuffed 1 = Force bit 7 stuffing in all zero byte channels of the port, regardless of how the TSSIE registers are configured. 286 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 2: Transmit B8ZS Enable (TB8ZS). 0 = B8ZS encoding disabled 1 = B8ZS encoding enabled Bit 1: Transmit Alarm Indication Signal (TAIS). Configuration bit TCR4.TAISM specifies the type of AIS signal. 0 = Transmit data normally 1 = Transmit an unframed all-ones code at TPOS and TNEG Bit 0: Transmit Remote Alarm Indication (TRAI). Configuration bit TCR4.TRAIM specifies the type of RAI signal. 0 = Do not transmit remote alarm indication 1 = Transmit remote alarm indication Register Name: Register Description: Register Address: Bit # Name Default 7 TTPT 0 TCR1-E1 Transmit Control Register 1 (E1 Mode) base address + 0x604 6 T16S 0 5 0 4 TSiS 0 3 TSA1 0 2 THDB3 0 1 TAIS 0 0 TCRC4 0 Bit 7: Transmit Timeslot 0 Pass Through (TTPT). 0 = FAS bits/Sa bits/Remote Alarm sourced internally from the TAF and TNAF registers 1 = FAS bits/Sa bits/Remote Alarm sourced from the formatter’s TSER input Bit 6: Transmit Timeslot 16 Data Select (T16S). See section 10.11.3.1.1.. 0 = timeslot 16 determined by the TSSIE and THSCS registers 1 = source timeslot 16 from the TS registers Bit 4: Transmit International Bit Select (TSiS). 0 = sample Si bits at formatter’s TSER input 1 = source Si bits from TAF and TNAF registers (in this mode, TCR1-E1.TTPT must be set to 0) Bit 3: Transmit Signaling All Ones (TSA1). 0 = normal operation 1 = force timeslot 16 in every frame to all-ones Bit 2: Transmit HDB3 Enable (THDB3). 0 = HDB3 encoding disabled 1 = HDB3 encoding enabled Bit 1: Transmit AIS (TAIS). 0 = transmit data normally 1 = transmit an unframed all-ones code at TPOS and TNEG Bit 0: Transmit CRC-4 Enable (TCRC4). 0 = CRC-4 disabled 1 = CRC-4 enabled 287 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TCR2-T1 Transmit Control Register 2 (T1 Mode) base address + 0x608 Bit # Name Default 6 TSLC96 0 7 TFDLS 0 5 TDDSEN 0 4 FBCT2 0 3 FBCT1 0 2 TD4RM 0 1 PDE 0 0 TB7ZS 0 Bit 7: TFDL Register Select (TFDLS). 0 = Source FDL or Fs bits from the internal TFDL register or the SLC-96 data formatter (if TCR2-T1. TSLC96=1) 1 = Reserved Bit 6: Transmit SLC–96 (TSLC96). Set this bit to a one in SLC-96 framing applications. Must be set to source the SLC-96 alignment pattern and data from the TSLC registers. See section 10.11.16. 0 = SLC–96 insertion disabled 1 = SLC–96 insertion enabled Bit 5: Transmit DDS Zero Suppression Enable (TDDSEN). When set to 1, this bit enables the transmit DDS zero suppression function to operate for the channels specified by the TDDS registers. 0 = Disabled 1 = Enabled Bit 4: F-Bit Corruption Type 2 (FBCT2). Setting this bit to one enables the corruption of one out of every 128 Ft bits (SF framing mode) or one out of every 128 FPS bits (ESF framing mode). F-bit corruption continues as long as FBCT2=1. Bit 3: F-Bit Corruption Type 1 (FBCT1). A zero-to-one transition causes the next three consecutive Ft bits (SF framing mode) or FPS bits (ESF framing mode) to be corrupted. This corruption is sufficient to cause the remote end to experience a loss of frame synchronization. Bit 2: Transmit D4 RAI Select (TD4RM). When the transmit formatter is in superframe mode this bit specifies the type of RAI signal to transmit. 0 = Zeros in bit 2 of all channels (normal T1 operation) 1 = A one in the Fs bit position of frame 12 (J1 operation) Bit 1: Pulse Density Enforcer Enable (TPDE). The framer always examines both the transmit and receive data streams for violations of the ANSI T1.403 pulse density rules: no more than 15 consecutive zeros and at least N ones in each and every time window of 8 x (N +1) bits where N = 1 through 23. Violations for the transmit and receive data streams are reported in the TLS1.TPDV and RLS2-T1.RPDV bits respectively. When this bit is set to one, the transmit formatter forces the transmitted stream to meet this requirement no matter the content of the transmitted stream. When B8ZS encoding is enabled (TCR1-T1.TB8ZS=1), this bit should be set to zero since B8ZS-encoded data streams cannot violate the pulse density requirements. 0 = Disable transmit pulse density enforcer 1 = Enable transmit pulse density enforcer Bit 0: Transmit Side Bit 7 Zero Suppression Enable (TB7ZS). 0 = No stuffing occurs 1 = Force bit 7 to a one as specified by TCR1-T1.GB7S. 288 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 AEBE 0 TCR2-E1 Transmit Control Register 2 (E1 Mode) base address + 0x608 6 AAIS 0 5 ARA 0 4 Sa4S 0 3 Sa5S 0 2 Sa6S 0 1 Sa7S 0 0 Sa8S 0 Bit 7: Automatic E–Bit Enable (AEBE). 0 = E–bits not automatically set in the transmit direction 1 = E–bits automatically set in the transmit direction Bit 6: Automatic AIS Generation (AAIS). See section 10.11.7. 0 = Disabled 1 = Enabled Bit 5: Automatic Remote Alarm Generation (ARA). See section 10.11.7. 0 = Disabled 1 = Enabled Bit 4: Sa4 Bit Select (Sa4S). Set to one option is reserved; set to zero to not source the Sa4 bit. Bit 3: Sa5 Bit Select (Sa5S). Set to one option is reserved; set to zero to not source the Sa5 bit. Bit 2: Sa6 Bit Select (Sa6S). Set to one option is reserved; set to zero to not source the Sa6 bit. Bit 1: Sa7 Bit Select (Sa7S). Set to one option is reserved; set to zero to not source the Sa7 bit. Bit 0: Sa8 Bit Select (Sa8S). Set to one option is reserved; set to zero to not source the Sa8 bit. 289 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 TCR3 Transmit Control Register 3 base address + 0x60C Register Name: Register Description: Register Address: Bit # Name 7 ODF 6 -- 5 TCSS1 4 TCSS0 3 MFRS 2 TFM 1 IBPV Default 0 0 0 0 0 0 0 0 TLOOP CRC4R 0 Bit 7: Output Data Format (ODF). See the pos/dat and neg signals in the receive path in Figure 6-1. 0 = Bipolar data (AMI, HDB3 or B8ZS format) is output on the pos and neg signals. 1 = NRZ data is output from on the pos/dat signal. The neg signal is not used. Bit 6: Reserved, must be set to zero for proper operation. Bits 5, 4: Transmit Clock Source Select 1, 0 (TCSS[1:0]). TCSS1 0 TCSS0 0 0 1 1 0 1 1 Transmit Clock Source The formatter TCLK input is always the source of transmit clock. Switch to the clock present on the receive framer’s RCLK input when the signal at the formatter’s TCLK input fails to transition for channel time (8 bits) Reserved Use the signal present on the receive framer’s RCLK input as the transmit clock and ignore the TCLK input to the transmit formatter. Bit 3: Multiframe Reference Select (MFRS). This bit selects the source for the transmit formatter multiframe boundary. 0 = Normal Operation. Transmit multiframe boundary is determined by ‘line-side’ counters referenced to the Tx formatter’s TSYNC signal when TSYNC is an input. Free-running when TSYNC is an output. 1 = Pass-Forward Operation. Tx multiframe boundary determined by ‘system-side’ counters referenced to the Tx formatter’s TSSYNC signal, which is then ‘passed forward’ to the line side clock domain. This mode can only be used when the transmit elastic store is enabled with TSYSCLK frequency-locked to TCLK.(i.e. no frame slips allowed). This mode must be used to allow Tx hardware signaling insertion while the Tx elastic store is enabled. Bit 2: Transmit Frame Mode Select (TFM). T1 Mode Only. 0 = ESF framing mode 1 = SF (D4) framing mode Bit 1: Insert BPV (IBPV). A zero-to-one transition on this bit causes a single bipolar violation (BPV) to be inserted into the transmit data stream. After this bit has been toggled from a 0 to a 1, the device waits for the next occurrence of three consecutive ones to insert the BPV. This bit must be cleared and set again for a subsequent error to be inserted. Bit 0 (T1 Mode): Transmit Loop Code Enable (TLOOP). See Section 10.11.14. 0 = Transmit data normally 1 = Replace normal transmitted data with repeating code as defined in registers TCD1 and TCD2 Bit 0 (E1 Mode): CRC-4 Recalculate (CRC4R). See Section 0. 0 = Transmit CRC-4 generation and insertion operates in normal mode 1 = Transmit CRC-4 generation operates according to G.706 Intermediate Path Recalculation method. 290 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default TIOCR Transmit I/O Configuration Register base address + 0x610 7 6 5 4 3 2 1 0 TCLKINV TSYNCINV TSSYNCINV TSCLKM TSSM TSIO TSDW TSM 0 0 0 0 0 0 0 0 Bit 7: TCLKF Invert (TCLKINV). See the TCLK signal going into the transmit formatter in Figure 6-1. 0 = No inversion 1 = Invert TCLK signal Bit 6: TSYNC Invert (TSYNCINV). See the TSYNC signal from the transmit formatter in Figure 6-1. 0 = No inversion 1 = Invert TSYNC Bit 5: TSSYNC Invert (TSSYNCINV). See the TSSYNC signal going into the transmit formatter in Figure 6-1. 0 = No inversion 1 = Invert TSSYNC Bit 4: TSYSCLK Mode Select (TSCLKM). See the TSYSCLK signal going into the transmit formatter in Figure 6-1. See also 10.10.3.1. 0 = TSYSCLK is 1.544MHz 1 = TSYSCLK is 2.048MHz Bit 3: TSSYNC Mode Select (TSSM). Selects frame or multiframe mode for the TSSYNC signal going into the transmit formatter in Figure 6-1. 0 = Frame mode 1 = Multiframe mode Bit 2: TSYNC I/O Select (TSIO). Figure 6-1.Configures the direction of the TSYNC signal going into/out-of the transmit formatter in Figure 6-1. 0 = TSYNC is an input 1 = TSYNC is an output Bit 1: TSYNC Double-Wide (TSDW). See the TSYNC out signal from the transmit formatter in Figure 6-1. (Note: this bit must be set to zero when TSM = 1 or when TSIO = 0) 0 = Do not pulse double-wide in signaling frames 1 = Do pulse double-wide in signaling frames Bit 0: TSYNC Mode Select (TSM). Selects frame or multiframe mode for the TSYNC pin. See the TSYNC out signal going out-of the transmit formatter in Figure 6-1. 0 = Frame mode 1 = Multiframe mode 291 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 TDATFMT 0 TESCR Transmit Elastic Store Control Register base address + 0x614 6 0 5 0 4 TSZS 0 3 TESALGN 0 2 TESR 0 1 TESMDM 0 0 TESE 0 Bit 7: Transmit Channel Data Format (TDATFMT). 0 = 64kBps (data contained in all 8 bits) 1 = 56kBps (data contained in 7 out of the 8 bits) Bit 6: Reserved, must be set to zero for proper operation. Bit 5: Reserved, must be set to zero for proper operation. Bit 4: Transmit Slip Zone Select (TSZS). This bit determines the minimum distance allowed between the elastic store read and write pointers before forcing a controlled slip. This bit is only applies during T1 to E1 or E1 to T1 conversion applications. See section 10.10. 0 = Force a slip at 9 bytes or less of separation (used for clustered blank channels) 1 = Force a slip at 2 bytes or less of separation (used for distributed blank channels) Bit 3: Transmit Elastic Store Align (TESALGN). Changing this bit from zero to one forces the transmit elastic store’s write and read pointers to a minimum separation of half a frame. No action is taken if the pointer separation is already greater or equal to half a frame. If pointer separation is less than half a frame, the command is executed and the data is disrupted. This bit should be toggled after TSYSCLK has been applied and is stable. Must be cleared and set again for a subsequent align. See section 10.10.1. Bit 2: Transmit Elastic Store Reset (TESR). Changing this bit from zero to one forces the read pointer into the same frame that the write pointer is exiting, minimizing the delay through the elastic store. If this command should place the pointers within the slip zone (specified by TSZS above), then an immediate slip occurs and the pointers move back to opposite frames. This bit should be toggled after TSYSCLK has been applied and is stable. Do not leave this bit set high. See section 10.10.1. Bit 1: Transmit Elastic Store Minimum Delay Mode (TESMDM). See section 10.10.2. 0 = Elastic store operates at full two frame depth 1 = Elastic store operates at 32-bit depth Bit 0: Transmit Elastic Store Enable (TESE). See section 10.10. 0 = Elastic store is bypassed 1 = Elastic store is enabled 292 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 uALAW 0 TCR4 Transmit Control Register 4 (T1 Mode Only) base address + 0x618 6 BINV1 0 5 BINV0 0 4 TJBEN 0 3 TRAIM 0 2 TAISM 0 1 TC1 0 0 TC0 0 Bit 7: u-Law or A-Law Digital Milliwatt Code Select (uALAW). 0 = u-law code is inserted based on TDMWE registers. 1 = A-law code is inserted based on TDMWE registers. Bits 6 to 5: Transmit Bit Inversion (BINV[1:0]) 00 = No inversion 01 = Invert framing 10 = Invert signaling 11 = Invert payload Bit 4: Transmit Jammed Bit 8 Enable (TJBEN). When set to 1, this bit enables the transmit jammed bit 8 function to operate for the channels specified by the TJBE registers. 0 = Disabled 1 = Enabled Bits 3: Transmit RAI Mode (TRAIM). T1 ESF Mode Only. Determines the pattern sent when TCR1-T1.TRAI is set to 1. 0 = Normal RAI 1 = RAI-CI (ANSI T1.403) Bits 2: Transmit AIS Mode (TAISM). Determines the pattern sent when TCR1-T1. TAIS is set to 1. 0 = Normal AIS (unframed all ones) 1 = AIS-CI (ANSI T1.403) Bits 1 to 0: Transmit Code Length Definition Bits (TC[1:0]). This field specifies the length of the code in the TCD1 and TCD2 registers. See section 10.11.14. 00 = 5 bits 01 = 3 or 6 bits 10 = 7 bits 11 = 1, 2, 4 or 8 bits 293 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 THFC Transmit HDLC FIFO Control Register base address + 0x61C 6 0 5 0 4 0 3 0 2 0 1 TFLWM1 0 0 TFLWM2 0 Bits 1 to 0: Transmit HDLC FIFO Low Watermark Select (TFLWM[1:0]). See section 10.12.2. TFLWM1 0 0 1 1 Register Name: Register Description: Register Address: Bit # Name Default 7 0 TFLWM0 0 1 0 1 Transmit FIFO Watermark 4 bytes 16 bytes 32 bytes 48 bytes TDS0SEL Transmit DS0 Monitor Select Register base address + 0x624 6 0 5 0 4 TCM4 0 3 TCM3 0 2 TCM2 0 1 TCM1 0 0 TCM0 0 Bits 4 to 0: Transmit Channel Monitor Bits (TCM[4:0]). This field specifies which transmit DS0 channel’s data is available to be read from the TDS0M register. 00000=channel 1. 11111=channel 32. See section 10.11.9. Register Name: Register Description: Register Address: Bit # Name Default TXPC Transmit Expansion Port Control Register base address + 0x628 7 6 5 4 -- -- -- -- 0 0 0 0 3 -0 2 TBPDIR 0 1 TBPFUS 0 0 TBPEN 0 Bit 2: Transmit BERT Port Direction Control (TBPDIR). 0 = Normal (line) operation. Tx BERT port sources data into the transmit path (i.e. toward the LIU). 1 = Reverse (system) operation. Tx BERT port sources data into the receive path (i.e. toward the TDMoP block). Bit 1: Transmit BERT Port Framed/Unframed Select (TBPFUS). T1 Mode Only. See section 10.14.3. 0 = Don’t clock data into the F-bit position (framed) 1 = Clock data into the F-bit position (unframed) Bit 0: Transmit BERT Port Enable (TBPEN). See section 10.14.3. 0 = Transmit BERT Port is not active 1 = Transmit BERT Port is active. 294 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 BPBSE8 0 TBPBS Transmit BERT Port Bit Suppress Register base address + 0x62C 6 BPBSE7 0 5 BPBSE6 0 4 BPBSE5 0 3 BPBSE4 0 2 BPBSE3 0 1 BPBSE2 0 0 BPBSE1 0 Bit 7: Transmit BERT Port Bit Suppress (TBPBS[8:1]). When one of these bits is set, the corresponding bit in the 64kbps channel is not used (suppressed) by the Tx BERT when sending the outgoing pattern. TBPBS8 corresponds to the MSb of the channel. See section 10.14.3. Register Name: Register Description: Register Address: TSYNCC Transmit Synchronizer Control Register base address + 0x638 Bit # Name Default 6 PMONC 0 7 PMONR 0 5 PMONE 0 4 0 3 CRC4 0 2 TSEN 0 1 SYNCE 0 0 RESYNC 0 Bit 7: Performance Monitor Reset (PMONR). 0 = Performance monitor operational 1 = Performance monitor in reset Bit 6: Performance Monitor Control (PMONC). 0 = Performance monitor control deselected 1 = Performance monitor control selected Bit 5: Performance Monitor Enable (PMONE). 0 = Performance monitor disabled 1 = Performance monitor enabled Bit 3: CRC-4 Enable (CRC4). E1 Mode Only. 0 = Do not search for the CRC-4 multiframe word 1 = Search for the CRC-4 multiframe word Bit 2: Transmit Synchronizer Enable (TSEN). 0 = Transmit synchronizer disabled 1 = Transmit synchronizer enabled Bit 1: Sync Enable (SYNCE). 0 = Auto resync enabled 1 = Auto resync disabled Bit 0: Resynchronize (RESYNC). When this bit is toggled from low to high, a resynchronization of the transmit side framer is initiated. Must be cleared and set again for a subsequent resync. 295 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default TLS1 Transmit Latched Status Register 1 base address + 0x640 7 6 5 4 TESF TESEM TSLIP TSLC96 0 0 0 0 3 TPDV TAF 0 2 1 0 TMF LOTCC LOTC 0 0 0 Bit 7: Transmit Elastic Store Full Event (TESF). This latched status bit is set to 1 when the transmit elastic store buffer fills and a frame is deleted. TESF is cleared when written with a 1. When TESF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. See Section 10.10. Bit 6: Transmit Elastic Store Empty Event (TESEM). This latched status bit is set to 1 when the transmit elastic store buffer empties and a frame is repeated. TESEM is cleared when written with a 1. When TESEM is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. See Section 10.10. Bit 5: Transmit Elastic Store Slip Occurrence Event (TSLIP). This latched status bit is set to 1 when the transmit elastic store has either repeated or deleted a frame (i.e. either TESF or TESEM set). TSLIP is cleared when written with a 1. When TSLIP is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. See Section 10.10. Bit 4: Transmit SLC-96 Multiframe Event (TSLC96). T1 Mode Only. When enabled by TCR2-T1.TSLC96, this latched status bit is set once per SLC-96 multiframe (72 frames) to alert the CPU that new data may be written to the TSLC1-TSLC3 registers. This bit is cleared when written with a 1. When it is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. See section 10.11.16. Bit 3 (T1 Mode): Transmit Pulse Density Violation Event (TPDV). This latched status bit is set to 1 when the transmit data stream does not meet the ANSI T1.403 requirements for pulse density. TPDV is cleared when written with a 1. When TPDV is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. Bit 3 (E1 Mode): Transmit Align Frame Event (TAF). This latched status bit is set to 1every 250s to alert the CPU that the TAF and TNAF registers can be updated. It is cleared when written with a 1. When TAF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. See Section 10.11.5.1. Bit 2: Transmit Multiframe Event (TMF). In T1 mode, this latched status bit is set to 1 every 1.5ms on SF (D4) MF boundaries or every 3ms on ESF MF boundaries. In E1 operation, it t is set every 2ms (regardless of whether CRC-4 is enabled or not) on transmit multiframe boundaries to alert the CPU that signaling data can be updated. TMF is cleared when written with a 1. When TMF is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. Bit 1: Loss of Transmit Clock Condition Clear (LOTCC). This latched status bit is set to 1 when a loss of transmit clock condition has cleared (a clock has been sensed at formatter’s TCLK input). LOTCC is cleared when written with a 1. When LOTCC is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. Bit 0: Loss of Transmit Clock Condition (LOTC). This latched status bit is set to 1 when the formatter’s TCLK input has not transitioned for approximately 3 clock periods. LOTC is cleared when written with a 1 and can be cleared by the CPU even if the condition is still present. When LOTC is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM1 register. 296 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 TLS2 Transmit Latched Status Register 2 (HDLC) base address + 0x644 6 0 5 0 4 TFDLE 0 3 TUDR 0 2 TMEND 0 1 TLWMS 0 0 TNFS 0 Bit 4: Transmit FDL Register Empty (TFDLE). T1 Mode Only. This latched status bit is set when the TFDL register has shifted out all 8 bits. Useful if the user wants to manually use the TFDL register to send messages, instead of using the HDLC or BOC controller circuits. TFDLE is cleared when written with a 1. When TFDLE is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM2 register. See section 10.11.4.3. Bit 3: Transmit FIFO Underrun Event (TUDR). This latched status bit is set when the transmit HDLC controller has terminated packet transmission because the FIFO buffer is empty (TRTS2.TEMPTY=1). When this happens the Tx HDLC automatically sends an abort. TUDR is cleared when written with a 1. When TUDR is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM2 register. See section 10.12.2. Bit 2: Transmit Message End Event (TMEND). This latched status bit is set when the transmit HDLC controller has finished sending a message. TMEND is cleared when written with a 1. When TMEND is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM2 register. See section 10.12.2. Bit 1: Transmit FIFO Below Low Watermark Set Event (TLWMS). This latched status bit is set when TRTS2.TLWM transitions from zero to one. TLWMS is cleared when written with a 1. When TLWMS is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM2 register. See section 10.12.2. Bit 0: Transmit FIFO Not Full Set Event (TNFS). This latched status bit is set when TRTS2.TNF transitions from zero to one. TNFS is cleared when written with a 1. When TNFS is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM2 register. See section 10.12.2. Register Name: Register Description: Register Address: Bit # Name Default 7 0 TLS3 Transmit Latched Status Register 3 (Synchronizer) base address + 0x648 6 0 5 0 4 0 3 0 2 0 1 LOF 0 0 LOFD 0 Bit 1: Loss of Frame (LOF). This real-time status bit indicates that the transmit synchronizer is searching for the sync pattern in the incoming data stream. 0 = LOF not detected 1 = LOF detected Bit 0: Loss Of Frame Synchronization Detect (LOFD). This latched status bit is set when the transmit synchronizer is searching for the sync pattern in the incoming data stream. LOFD is cleared when written with a 1. When LOFD is set it can cause an interrupt request if the corresponding interrupt enable bit is set in the TIM3 register. See Section 10.11.2. 297 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 0 TIIR Transmit Interrupt Information Register base address + 0x67C 6 0 5 0 4 0 3 0 2 TLS3 0 1 TLS2 0 0 TLS1 0 The bits in this register indicate which of the framer latched status registers, TLS1 through TLS3, are currently generating interrupt requests (1=interrupt request pending). When an interrupt request occurs, the CPU can read TIIR to quickly identify the source(s) of the interrupt. Each bit in TIIR automatically clears when there are no unmasked latched status register bits set in the corresponding TLS register. TLS register bits that have been masked by a corresponding bit in the TIM registers are also masked from affecting the TIIR bits. Register Name: Register Description: Register Address: Bit # Name 7 TIM1 Transmit Interrupt Mask Register 1 base address + 0x680 6 5 4 3 2 1 TPDV TMF LOTCC TESF TESEM TSLIP TSLC96 TAF Default 0 0 0 0 0 0 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in TLS1. 0 LOTC 0 Bit 7: Transmit Elastic Store Full Event (TESF). 0 = interrupt masked 1 = interrupt enabled Bit 6: Transmit Elastic Store Empty Event (TESEM). 0 = interrupt masked 1 = interrupt enabled Bit 5: Transmit Elastic Store Slip Occurrence Event (TSLIP). 0 = interrupt masked 1 = interrupt enabled Bit 4: Transmit SLC96 Multiframe Event (TSLC96). T1 Mode Only. 0 = interrupt masked 1 = interrupt enabled Bit 3 (T1 Mode): Transmit Pulse Density Violation Event (TPDV). 0 = interrupt masked 1 = interrupt enabled Bit 3 (E1 Mode): Transmit Align Frame Event (TAF). 0 = interrupt masked 1 = interrupt enabled Bit 2: Transmit Multiframe Event (TMF). 0 = interrupt masked 1 = interrupt enabled Bit 1: Loss of Transmit Clock Clear Condition (LOTCC). 0 = interrupt masked 1 = interrupt enabled 298 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 0: Loss of Transmit Clock Condition (LOTC). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: TIM2 Transmit Interrupt Mask Register 2 base address + 0x684 Bit # 7 6 5 4 3 2 1 Name TFDLE TUDR TMEND TLWMS Default 0 0 0 0 0 0 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in TLS2. 0 TNFS 0 Bit 4: Transmit FDL Register Empty (TFDLE). T1 Mode Only. 0 = interrupt masked 1 = interrupt enabled Bit 3: Transmit FIFO Underrun Event (TUDR). 0 = interrupt masked 1 = interrupt enabled Bit 2: Transmit Message End Event (TMEND). 0 = interrupt masked 1 = interrupt enabled Bit 1: Transmit FIFO Below Low Watermark Set Event (TLWMS). 0 = interrupt masked 1 = interrupt enabled Bit 0: Transmit FIFO Not Full Set Event (TNFS). 0 = interrupt masked 1 = interrupt enabled Register Name: Register Description: Register Address: TIM3 Transmit Interrupt Mask Register 3 (Synchronizer) base address + 0x688 Bit # 7 6 5 4 3 2 1 Name Default 0 0 0 0 0 0 0 The bits in the register are interrupt mask/enable bits for corresponding latched status bits in TLS3. 0 LOFD 0 Bit 0: Loss Of Frame Synchronization Detect (LOFD). 0 = Interrupt Masked 1 = Interrupt Enabled 299 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: TCD1 Transmit Code Definition Register 1 (T1 Mode Only) base address + 0x6B0 Bit # 7 6 5 4 3 2 1 0 Name C7 C6 C5 C4 C3 C2 C1 C0 Default 0 0 0 0 0 0 0 0 This register and TCD2 specify the code to be transmitted when TCR3.TLOOP is set to one. The length of the code is specified by TCR4.TC[1:0]. See section 10.11.14. Bit 7: Transmit Code Definition Bit 7 (C7). First bit of the repeating pattern. Bit 6: Transmit Code Definition Bit 6 (C6). Bit 5: Transmit Code Definition Bit 5 (C5). Bit 4: Transmit Code Definition Bit 4 (C4). Bit 3: Transmit Code Definition Bit 3 (C3). Bit 2: Transmit Code Definition Bit 2 (C2). Ignored if a 5 bit length is selected. Bit 1: Transmit Code Definition Bit 1 (C1). Ignored if a 5 or 6 bit length is selected. Bit 0: Transmit Code Definition Bit 0 (C0). Ignored if a 5, 6 or 7 bit length is selected. Register Name: Register Description: Register Address: TCD2 Transmit Code Definition Register 2 (T1 Mode Only) base address + 0x6B4 Bit # 7 6 5 4 3 2 1 0 Name C7 C6 C5 C4 C3 C2 C1 C0 Default 0 0 0 0 0 0 0 0 This register and TCD1 specify the code to be transmitted when TCR3.TLOOP is set to one. The length of the code is specified by TCR4.TC[1:0]. See section 10.11.14. Bit 7: Transmit Code Definition Bit 7 (C7). Ignored if a 5, 6 or 7 bit length is selected. Bit 6: Transmit Code Definition Bit 6 (C6). Ignored if a 5, 6 or 7 bit length is selected. Bit 5: Transmit Code Definition Bit 5 (C5). Ignored if a 5, 6 or 7 bit length is selected. Bit 4: Transmit Code Definition Bit 4 (C4). Ignored if a 5, 6 or 7 bit length is selected. Bit 3: Transmit Code Definition Bit 3 (C3). Ignored if a 5, 6 or 7 bit length is selected. Bit 2: Transmit Code Definition Bit 2 (C2). Ignored if a 5, 6 or 7 bit length is selected. Bit 1: Transmit Code Definition Bit 1 (C1). Ignored if a 5, 6 or 7 bit length is selected. Bit 0: Transmit Code Definition Bit 0 (C0). Ignored if a 5, 6 or 7 bit length is selected. Register Name: Register Description: Register Address: Bit # Name Default 7 0 TRTS2 Transmit Real-Time Status Register 2 (HDLC) base address + 0x6C4 6 0 5 0 4 0 3 TEMPTY 0 2 TFULL 0 1 TLWM 0 0 TNF 0 Bit 3: Transmit FIFO Empty (TEMPTY). This real-time bit is set to 1 when the Tx HDLC FIFO is empty. See section 10.12.2. Bit 2: Transmit FIFO Full (TFULL). This real-time bit that is set to 1 when the Tx HDLC FIFO is full. See section 10.12.2. Bit 1: Transmit FIFO Below Low Watermark Condition (TLWM). This real-time status bit is set to 1 when the Tx HDLC FIFO empties beyond the low watermark specified by THFC.TFLWM. See section 10.12.2. 300 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Bit 0: Transmit FIFO Not Full Condition (TNF). This real-time status bit is set to 1 when the Tx HDLC FIFO has at least one byte available to accept new data. The TFBA register reports the actual number of bytes available. See section 10.12.2. Register Name: Register Description: Register Address: TFBA Transmit HDLC FIFO Buffer Available Register base address + 0x6CC Bit # Name Default 6 TFBA6 0 7 -0 5 TFBA5 0 4 TFBA4 0 3 TFBA3 0 2 TFBA2 0 1 TFBA1 0 0 TFBA0 0 Bits 6 to 0: Transmit FIFO Bytes Available (TFBA[6:0]). TFBA0 is the LSB. This real-time status field indicates the number of bytes in the Tx HDLC FIFO available to accept new data. See section 10.12.2. Register Name: Register Description: Register Address: Bit # Name Default 7 THD7 0 THF Transmit HDLC FIFO Register base address + 0x6D0 6 THD6 0 5 THD5 0 4 THD4 0 3 THD3 0 2 THD2 0 1 THD1 0 0 THD0 0 Bit 7 to 0: Transmit HDLC Data (THD[7:0]). A write to this register stores the value written in the Tx HDLC FIFO. Bit 7 is the MSb. See section 10.12.2. Register Name: Register Description: Register Address: Bit # Name Default 7 B1 0 TDS0M Transmit DS0 Monitor Register base address + 0x6EC 6 B2 0 5 B3 0 4 B4 0 3 B5 0 2 B6 0 1 B7 0 0 B8 0 Bits 7 to 0: Transmit DS0 Channel Bits (B1 to B8). Transmit data for the channel that has been selected by the Transmit Channel Monitor Select Register, TDS0SEL. B8 is the LSb of the DS0 channel (last bit to be transmitted). See section 10.11.9. 301 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # TBCS1 TBCS2 TBCS3 TBCS4 7 CH8 CH16 CH24 CH32 TBCS1, TBCS2, TBCS3, TBCS4 Transmit Blank Channel Select Registers base address + 0x700, 0x704, 0x708, 0x70C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Transmit Blank Channel Select for Channels 1 to 32 (CH1 to CH32). Reset defaults: CH1 to C24 default to 0 while CH25 to CH32 default to 1. See section 10.10. 0 = Transmit data from the formatter’s TSER input for this channel 1 = Ignore data from the formatter’s TSER input for this channel Note that when two or more sequential channels are chosen to be ignored, the transmit slip zone select bit (TESCR.TSZS) should be set to zero. If the blank channels are distributed (such as 1, 5, 9, 13, 17, 21, 25, 29) then the RSZS bit can be set to one, which may provide a lower occurrence of slips in certain applications. Register Name: Register Description: Register Address: Bit # THSCS1 THSCS2 THSCS3 THSCS4* 7 CH8 CH16 CH24 CH32 THSCS1, THSCS2, THSCS3, THSCS4 Transmit Hardware Signaling Channel Select Registers base address + 0x720, 0x724, 0x728, 0x72C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Transmit Hardware Signaling Select for Channels 1 to 32 (CH1 to CH32). These bits determine which channels have signaling data inserted from the formatter’s TSIG input. 0 = Do not source signaling data for this channel from the TSIG input 1 = Source signaling data for this channel from the TSIG input *Note that THSCS4 is only used in applications where the system TDM interface is configured for 2.048MHz.. Register Name: Register Description: Register Address: Bit # PCL1 PCL2 PCL3 PCL4 7 CH8 CH16 CH24 CH32 PCL1, PCL2, PCL3, PCL4 Per-Channel Loopback Enable Registers base address + 0x740, 0x744, 0x748, 0x74C 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0: Per-Channel Loopback Enable for Channels 1 to 32 (CH1 to CH32). See section 10.11.11. 0 = Loopback disabled 1 = Enable loopback. Source data for the channel from the corresponding channel in the receive framer. 302 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # TBPCS1 TBPCS2 TBPCS3 TBPCS4 TBPCS1, TBPCS2, TBPCS3, TBPCS4 Transmit BERT Channel Select Registers base address + 0x750, 0x754, 0x758, 0x75C 7 CH8 CH16 CH24 CH32 6 CH7 CH15 CH23 CH31 5 CH6 CH14 CH22 CH30 4 CH5 CH13 CH21 CH29 3 CH4 CH12 CH20 CH28 2 CH3 CH11 CH19 CH27 1 CH2 CH10 CH18 CH26 0 CH1 CH9 CH17 CH25 Bits 7 to 0 (x4): Transmit BERT Port Channel Select for Channels 1 to 32 (CH1 to CH32). These bits specify for which channels data is sourced from the transmit BERT. Any combination of channels may be selected simultaneously. See section 10.14.3. 0 = Do not map the selected channel to the transmit BERT port. 1 = Map the selected channel to the transmit BERT Port. 11.5.3 LIU Registers Table 11-22 lists the LIU registers. All addresses not listed in the table are reserved and should be initialized with a value of 0x00 for proper operation. The base address for the port n LIU is 0x104,000+0x80*(n-1) (where n=1-8 for DS34T108, n=1-4 for DS34T104, n=1-2 for DS34T102, n=1 only for DS34T101). The LIU block was originally designed for an 8-bit data bus. In this device, each 8-bit register is mapped to the least significant byte of the dword. Table 11-22. LIU Registers Addr Register Name Offset 0x00 04 08 0C 10 14 18 1C 20 LTRCR LTISR LMCR LRSR LSIMR LLSR LRSL LRISMR LDET Description Read/Write or Read Only Page LIU Transmit Receive Control Register LIU Transmit Impedance Selection Register LIU Maintenance Control Register LIU Real-Time Status Register LIU Status Interrupt Mask Register LIU Latched Status Register LIU Receive Signal Level LIU Receive Impedance and Sensitivity Monitor Reg LIU Detect R/W R/W R/W RO R/W R/W RO R/W RO 304 305 306 307 308 309 310 311 312 303 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Addresses: Bit # Name Default 7 RTR 0 LTRCR LIU Transmit Receive Control Register base address + 0x00 6 RHPM 0 5 JADS1 0 4 JADS0 0 3 JAPS1 0 2 JAPS0 0 1 T1J1E1S 0 0 LCS 0 Bit 7: Receiver Turns Ratio (RTR). This bit specifies the turns ratio for the LIU receiver. Internal termination is only available with the 1:1 transformer setting. The 2:1 transformer setting requires external termination. See section 10.13.3.1. 0 = 1:1 turns ratio for the receiver 1 = 2:1 turns ratio for the receiver Bit 6: Receiver Hitless Protection Mode (RHPM). If this bit is set to one, the LIU receiver’s internal termination circuitry grants control to the RXTSEL pin, which is used for hitless protection switching under hardware control. When this bit is set to zero, the LIU receiver’s internal termination circuitry is controlled by software via the LRISMR.RIMPON bit for hitless protection switching. 0 = Normal operation using software for hitless protection 1 = Hitless protection switching mode using the RXTSEL pin Bit 5 to 4: Jitter Attenuator Depth Select (JADS[1:0]). These bits are used to select the total depth of the jitter attenuator (JA) FIFO. JADS1 JADS0 Function 0 0 JA FIFO depth set to 128 bits 0 1 JA FIFO depth set to 64 bits 1 0 JA FIFO depth set to 32 bits 1 1 JA FIFO depth set to 16 bits Bit 3, 2: Jitter Attenuator Position Select (JAPS[1:0]). These bits are used to select the position of the jitter attenuator (JA). JAPS1 0 0 1 1 JAPS0 0 1 0 1 Function Disable JA Insert JA into the Receive path Insert JA into the Transmitter path Insert JA into the Transmitter path Bit 1: T1J1E1 Selection (T1J1E1S). This bit configures the LIU for E1 or T1/J1 operation. 0 = E1 1 = T1 or J1 Bit 0: LOS Criteria Selection (LCS). This bit specifies the LIU receiver’s loss-of-signal (LOS) criteria. See section 10.13.3.6. E1 Mode 0 = G.775 1 = ETSI (300233) T1 / J1 Mode 0 = T1.231 1 = T1.231 304 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 LTISR LIU Transmit Impedance Selection Register base address + 0x04 Register Name : Register Description: Register Address: Bit # Name Default 7 TXG703 0 6 TIMPOFF 0 5 TIMPL1 0 4 TIMPL0 0 3 -0 2 L2 0 1 L1 0 0 L0 0 Bit 7: Transmit 2.048kHz G.703 Synchronous Mode (TXG703). Setting this bit to 1 configures the LIU to transmit the 2048kHz synchronization signal described in G.703 section 13 on TTIP/TRING. When this bit is set to 1, data from the transmit formatter is ignored. Bit 6: Transmit Impedance Off (TIMPOFF). See section 10.13.2.4. 0 = Enable internal impedance (termination) for the transmitter 1 = Disable internal impedance (termination) for the transmitter Bits 5 to 4: Transmit Load Impedance (TIMPL[1:0]). These bits are used to select the transmit load impedance. These bits must be set to match the cable impedance. Even if internal impedance is turned off (TIMPOFF=1), the external cable impedance must be specified in this field for proper operation. For J1 applications, use 110. See section 10.13.2.4. TIMPL1 0 0 1 1 TIMPL0 0 1 0 1 IMPEDANCE SELECTION 75 100 110 120 Bits 2 to 0: Line Build-Out Select (L[2:0]). Used to select the transmit waveshape. The actual waveshape depends on the values of this field and the T1J1E1S bit in the LTRCR register. See section 10.13.2.2. E1 Mode L2 L1 L0 0 0 0 0 0 1 IMPEDANCE 75 120 NOMINAL VOLTAGE 2.37V 3.0V T1/J1 Mode L2 L1 L0 CABLE LENGTH 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 DSX-1, 0ft–133ft ABAM 100 / 0dB CSU DSX-1, 133ft–266ft ABAM 100 DSX-1, 266ft–399ft ABAM 100 DSX-1, 399ft–533ft ABAM 100 DSX-1, 533ft–655ft ABAM 100 -7.5dB CSU -15dB CSU -22.5dB CSU MAX ALLOWED CABLE LOSS 0.6dB 1.2dB 1.8dB 2.4dB 3.0dB 305 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 TAIS 0 LMCR LIU Maintenance Control Register base address + 0x08 6 ATAIS 0 5 LB2 0 4 LB1 0 3 LB0 0 2 TPDE 0 1 RPDE 0 0 TXEN 0 Bit 7: Transmit AIS (TAIS). Alarm Indication Signal (AIS) is sent timed by T1CLK or E1CLK. The transmit clock and data coming from the framer are ignored. See section 10.13.2.5. 0 = Normal operation 1 = Transmit unframed all-ones pattern (AIS) on TTIP/TRING. Bit 6: Automatic Transmit AIS (ATAIS). See section 10.13.2.5. 0 = Normal operation 1 = Automatically transmit AIS on the occurrence of an LIU LOS Bits 5 to 3: Loopback Selection (LB[2:0] See Section 10.13.5 for more details on each loopback. LB2 LB1 LB0 Loopback Selection 0 0 0 0 1 0 0 1 1 0 0 1 0 1 0 1 0 1 1 1 1 1 0 1 No Loopback Selected Remote Loopback 2 (includes Jitter Attenuator, See Section 10.13.5.3) Analog Loopback (See Section 10.13.5.1) Reserved Local Loopback (includes Jitter Attenuator, See Section 10.13.5.2) Dual Loopback – Remote Loopback 1 and Local Loopback (jitter attenuator is included in Local Loopback, See Section 10.13.5.4) Reserved Reserved Bit 2: Transmit Power-Down Enable (TPDE). See section 10.13.2.8. 0 = Normal operation 1 = LIU transmitter powered down. TTIP/TRING outputs are high impedance.. Bit 1: Receiver Power-Down Enable (RPDE). See section 10.13.3.7. 0 = Normal 1 = LIU receiver powered down. Bit 0: Transmit Enable (TXEN). This function can be overridden by the TXENABLE pin. See section 10.13.2.3. 0 = TTIP/TRING outputs are high impedance. The internal circuitry of the LIU transmitter is still active. 1 = TTIP/TRING outputs enabled. 306 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 JAO 0 LRSR LIU Real-Time Status Register base address + 0x0C 6 JAU 0 5 OEQ 0 4 UEQ 0 3 JALT 0 2 SCS 0 1 OCS 0 0 LOS 0 These bit are read-only real-time status bits. Bit 7: JA Overflow (JAO). The jitter attenuator FIFO is currently in an overflow state. See section 10.13.4. Bit 6: JA Underflow (JAU). The jitter attenuator FIFO is currently in an underflow state. See section 10.13.4. Bit 5: Over Equalized (OEQ). The receiver is over-equalized. This can happen if there is a very large unexpected resistive loss. This could happen in a monitor mode application if the device is not placed in monitor mode (see LRISMR.RMONEN). This indicator provides more qualitative information to the receive loss indicators. Bit 4: Under Equalized (UEQ). The receiver is under-equalized. A signal with a very high resistive gain is being applied. This indicator provides more qualitative information to the receive loss indicators. Bits 3: Jitter Attenuator Limit Trip (JALT). This bit indicates the occurrence of an underflow or an overflow from the jitter attenuator FIFO. See section 10.13.4. 0 = No FIFO underflow or overflow event is occurring 1 = A FIFO underflow or overflow event is occurring Bit 2: Short Circuit Status (SCS). This bit is set when the LIU detects that the TTIP and TRING outputs are shortcircuited. The load resistance has to be 25 (typically) or less for a short-circuit to be indicated. See section 10.13.2.6. Bit 1: Open Circuit Status (OCS). This bit is set when the LIU detects that the TTIP and TRING outputs are opencircuited. See section 10.13.2.7. Bit 0: Loss of Signal Status (LOS). This bit is set when the LIU detects a loss-of-signal condition on the RTIP and RRING inputs. See section 10.13.3.6. 307 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: LSIMR LIU Status Interrupt Mask Register base address + 0x10 Bit # Name Default 6 OCCIM 0 7 JALTCIM 0 5 SCCIM 0 4 LOSCIM 0 3 JALTSIM 0 2 OCDIM 0 1 SCDIM 0 0 LOSDIM 0 This bits in this register mask or enable interrupts caused by the latched status bits in the LLSR register. Bit 7: Jitter Attenuator Limit Trip Clear Interrupt Mask (JALTCIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 6: Open Circuit Clear Interrupt Mask (OCCIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 5: Short Circuit Clear Interrupt Mask (SCCIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 4: Loss of Signal Clear Interrupt Mask (LOSCIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 3: Jitter Attenuator Limit Trip Set Interrupt Mask (JALTSIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 2: Open Circuit Detect Interrupt Mask (OCDIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 1: Short Circuit Detect Interrupt Mask (SCDIM). 0 = Interrupt masked. 1 = Interrupt enabled. Bit 0: Loss of Signal Detect Interrupt Mask (LOSDIM). 0 = Interrupt masked. 1 = Interrupt enabled. 308 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default 7 JALTC 0 LLSR LIU Latched Status Register base address + 0x14 6 OCC 0 5 SCC 0 4 LOSC 0 3 JALTS 0 2 OCD 0 1 SCD 0 0 LOSD 0 The bits in this register are latched status bits. Each bit is set when the associated event occurs and is only cleared when the CPU writes 1 to it. These bits can create interrupts when enabled by the corresponding bit in the LSIMR register. Bit 7: Jitter Attenuator Limit Trip Clear (JALTC). This latched status bit is set when a jitter attenuator limit trip condition is removed. See section 10.13.4. Bit 6: Open Circuit Clear (OCC). This latched status bit is set when an open circuit condition is removed. See section 10.13.2.7. Bit 5: Short Circuit Clear (SCC). This latched status bit is set when a short circuit condition is removed. See section 10.13.2.6. Bit 4: Loss of Signal Clear (LOSC). This latched status bit is set when a loss-of-signal condition is removed. See section 10.13.3.6. Bit 3: Jitter Attenuator Limit Trip Set (JALTS). This latched status bit is set when a jitter attenuator limit trip condition is detected. See section 10.13.4. Bit 2: Open Circuit Detect (OCD). This latched status bit is set when an open circuit condition is detected on TTIP/TRING. This bit is not functional in T1 CSU operating modes (i.e. when LTRCR:T1J1E1S=1 and LTISR:L[2:0]=101, 110 or 111). See section 10.13.2.7. Bit 1: Short Circuit Detect (SCD). This latched status bit is set when short circuit condition is detected on TTIP/TRING. This bit is not functional in T1 CSU operating mode. See section 10.13.2.6. Bit 0: Loss of Signal Detect (LOSD). This latched status bit is set when a loss-of-signal condition is detected on RTIP/RRING. See section 10.13.3.6. 309 of 366 ____________________________________________________ DS34T101, DS34T102, DS34T104, DS34T108 Register Name: Register Description: Register Address: Bit # Name Default LRSL LIU Receive Signal Level base address + 0x18 7 RSL3 0 6 RSL2 0 5 RLS1 0 4 RLS0 0 3 -0 2 -0 1 -0 0 RFAIL 0 Bit 7 to 4: Receiver Signal Level 3 to 0 (RSL[3:0]). This read-only real-time status field indicates the incoming signal level at the LIU receiver. Note that the range of signal levels reported this field is limited by the equalizer gain limit (EGL) in short-haul applications. See section 10.13.3.3. RSL3 RSL2 RSL1 RSL0 Receiver Level T1 and E1 (dB) 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 > -2.5 -2.5 to –5.0 -5.0 to –7.5 -7.5 to –10.0 -10.0 to –12.5 -12.5 to –15.0 -15.0 to –17.5 -17.5 to –20.0 -20.0 to –22.5 -22.5 to –25.0 -25.0 to –27.5 -27.5 to –30.0 -30.0 to –32.5 -32.5 to –35.0 -35.0 to –37.5
DS34T102GN 价格&库存

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

免费人工找货