BenutzerhandbuchInhaltsverzeichnisMPC8260 PowerQUICC™ II Family Reference Manual1About This Book79Reference Manual Revision History79Before Using this Manual-Important Note81Audience81Organization81Suggested Reading84Conventions85Acronyms and Abbreviations85PowerPC Architecture Terminology Conventions89Part I Overview91Intended Audience91Contents91Conventions91Acronyms and Abbreviations92Chapter 1 Overview951.1 Features951.2 Architecture Overview100Figure 1-1. PowerQUICC II Block Diagram1011.2.1 G2 Core1011.2.2 System Interface Unit (SIU)1021.2.3 Communications Processor Module (CPM)1031.3 Software Compatibility Issues1031.3.1 Signals104Figure 1-2. PowerQUICC II External Signals1051.4 Differences between MPC860 and PowerQUICC II1061.5 Serial Protocol Table106Table 1-1. PowerQUICC II Serial Protocols1061.6 PowerQUICC II Configurations1071.6.1 Pin Configurations1071.6.2 Serial Performance107Table 1-2. Serial Performance107Table 1-3. MPC8250 Serial Performance1081.7 Application Examples1081.7.1 Communication Systems1081.7.1.1 Remote Access Server108Figure 1-3. Remote Access Server Configuration1091.7.1.2 Regional Office Router110Figure 1-4. Regional Office Router Configuration1101.7.1.3 LAN-to-WAN Bridge Router110Figure 1-5. LAN-to-WAN Bridge Router Configuration1111.7.1.4 Cellular Base Station111Figure 1-6. Cellular Base Station Configuration1111.7.1.5 Telecommunications Switch Controller112Figure 1-7. Telecommunications Switch Controller Configuration1121.7.1.6 SONET Transmission Controller112Figure 1-8. SONET Transmission Controller Configuration1131.7.2 Bus Configurations1131.7.2.1 Basic System113Figure 1-9. Basic System Configuration1141.7.2.2 High-Performance Communication114Figure 1-10. High-Performance Communication1141.7.2.3 High-Performance System Microprocessor115Figure 1-11. High-Performance System Microprocessor Configuration1151.7.2.4 PCI115Figure 1-12. PCI Configuration1161.7.2.5 PCI with 155-Mbps ATM116Figure 1-13. PCI with 155-Mbps ATM Configuration1161.7.2.6 PowerQUICC II as PCI Agent117Figure 1-14. PowerQUICC II as PCI Agent117Chapter 2 G2 Core1192.1 Overview119Figure 2-1. PowerQUICC II Integrated Processor Core Block Diagram1202.2 G2 Processor Core Features1212.2.1 Instruction Unit1232.2.2 Instruction Queue and Dispatch Unit1232.2.3 Branch Processing Unit (BPU)1232.2.4 Independent Execution Units1242.2.4.1 Integer Unit (IU)1242.2.4.2 Floating-Point Unit (FPU)1242.2.4.3 Load/Store Unit (LSU)1242.2.4.4 System Register Unit (SRU)1252.2.5 Completion Unit1252.2.6 Memory Subsystem Support1252.2.6.1 Memory Management Units (MMUs)1252.2.6.2 Cache Units1262.3 Programming Model1262.3.1 Register Set1262.3.1.1 PowerPC Register Set127Figure 2-2. PowerQUICC II Programming Model-Registers1282.3.1.2 PowerQUICC II-Specific Registers1292.3.1.2.1 Hardware Implementation-Dependent Register 0 (HID0)129Figure 2-3. Hardware Implementation Register 0 (HID0)129Table 2-1. HID0 Field Descriptions (continued)1292.3.1.2.2 Hardware Implementation-Dependent Register 1 (HID1)132Figure 2-4. Hardware Implementation-Dependent Register 1 (HID1)132Table 2-2. HID1 Field Descriptions1322.3.1.2.3 Hardware Implementation-Dependent Register 2 (HID2)132Figure 2-5. Hardware Implementation-Dependent Register 2 (HID2)132Table 2-3. HID2 Field Descriptions (continued)1322.3.1.2.4 Processor Version Register (PVR)1332.3.2 PowerPC Instruction Set and Addressing Modes1332.3.2.1 Calculating Effective Addresses1332.3.2.2 PowerPC Instruction Set1342.3.2.3 PowerQUICC II Implementation-Specific Instruction Set1352.4 Cache Implementation1352.4.1 PowerPC Cache Model1362.4.2 PowerQUICC II Implementation-Specific Cache Implementation1362.4.2.1 Data Cache136Figure 2-6. Data Cache Organization1372.4.2.2 Instruction Cache1382.4.2.3 Cache Locking1382.4.2.3.1 Entire Cache Locking1382.4.2.3.2 Way Locking1382.5 Exception Model1392.5.1 PowerPC Exception Model1392.5.2 PowerQUICC II Implementation-Specific Exception Model140Table 2-4. Exception Classifications for the Processor Core140Table 2-5. Exceptions and Conditions (continued)1402.5.3 Exception Priorities1432.6 Memory Management1432.6.1 PowerPC MMU Model1432.6.2 PowerQUICC II Implementation-Specific MMU Features1442.7 Instruction Timing145Table 2-6. Integer Divide Latency1452.8 Differences between the PowerQUICC II’s G2 Core and the MPC603e Microprocessor146Table 2-7. Major Differences between PowerQUICC II’s G2 Core and the MPC603e User’s Manual146Chapter 3 Memory Map147Table 3-1. Internal Memory Map147Part II Configuration and Reset171Intended Audience171Contents171Suggested Reading171Conventions171Acronyms and Abbreviations172Chapter 4 System Interface Unit (SIU)173Figure 4-1. SIU Block Diagram1734.1 System Configuration and Protection174Table 4-1. System Configuration and Protection Functions174Figure 4-2. System Configuration and Protection Logic1754.1.1 Bus Monitor1754.1.2 Timers Clock175Figure 4-3. Timers Clock Generation1764.1.3 Time Counter (TMCNT)176Figure 4-4. TMCNT Block Diagram1774.1.4 Periodic Interrupt Timer (PIT)177Figure 4-5. PIT Block Diagram1774.1.5 Software Watchdog Timer178Figure 4-6. Software Watchdog Timer Service State Diagram178Figure 4-7. Software Watchdog Timer Block Diagram1794.2 Interrupt Controller1794.2.1 Interrupt Configuration180Figure 4-8. PowerQUICC II Interrupt Structure1804.2.1.1 Machine Check Interrupt1814.2.1.2 INT Interrupt1814.2.2 Interrupt Source Priorities181Table 4-2. Interrupt Source Priority Levels (continued)1824.2.2.1 SCC, FCC, and MCC Relative Priority1844.2.2.2 PIT, TMCNT, PCI, and IRQ Relative Priority1854.2.2.3 Highest Priority Interrupt1854.2.3 Masking Interrupt Sources185Figure 4-9. Interrupt Request Masking1864.2.4 Interrupt Vector Generation and Calculation186Table 4-3. Encoding the Interrupt Vector (continued)1864.2.4.1 Port C External Interrupts1884.3 Programming Model1894.3.1 Interrupt Controller Registers1894.3.1.1 SIU Interrupt Configuration Register (SICR)189Figure 4-10. SIU Interrupt Configuration Register (SICR)189Table 4-4. SICR Field Descriptions1904.3.1.2 SIU Interrupt Priority Register (SIPRR)190Figure 4-11. SIU Interrupt Priority Register (SIPRR)190Table 4-5. SIPRR Field Descriptions1914.3.1.3 CPM Interrupt Priority Registers (SCPRR_H and SCPRR_L)191Figure 4-12. CPM High Interrupt Priority Register (SCPRR_H)191Table 4-6. SCPRR_H Field Descriptions192Figure 4-13. CPM Low Interrupt Priority Register (SCPRR_L)192Table 4-7. SCPRR_L Field Descriptions1934.3.1.4 SIU Interrupt Pending Registers (SIPNR_H and SIPNR_L)193Figure 4-14. SIPNR_H193Figure 4-15. SIPNR_L1944.3.1.5 SIU Interrupt Mask Registers (SIMR_H and SIMR_L)194Figure 4-16. SIMR_H195Figure 4-17. SIMR_L1954.3.1.6 SIU Interrupt Vector Register (SIVEC)196Figure 4-18. SIU Interrupt Vector Register (SIVEC)196Figure 4-19. Interrupt Table Handling Example1974.3.1.7 SIU External Interrupt Control Register (SIEXR)197Figure 4-20. SIU External Interrupt Control Register (SIEXR)198Table 4-8. SIEXR Field Descriptions1984.3.2 System Configuration and Protection Registers1984.3.2.1 Bus Configuration Register (BCR)198Figure 4-21. Bus Configuration Register (BCR)199Table 4-9. BCR Field Descriptions (continued)1994.3.2.2 60x Bus Arbiter Configuration Register (PPC_ACR)201Figure 4-22. PPC_ACR201Table 4-10. PPC_ACR Field Descriptions2024.3.2.3 60x Bus Arbitration-Level Registers (PPC_ALRH/PPC_ALRL)202Figure 4-23. PPC_ALRH202Figure 4-24. PPC_ALRL2034.3.2.4 Local Bus Arbiter Configuration Register (LCL_ACR)203Figure 4-25. LCL_ACR203Table 4-11. LCL_ACR Field Descriptions (continued)2034.3.2.5 Local Bus Arbitration Level Registers (LCL_ALRH and LCL_ACRL)204Figure 4-26. LCL_ALRH204Figure 4-27. LCL_ALRL2054.3.2.6 SIU Module Configuration Register (SIUMCR)205Figure 4-28. SIU Model Configuration Register (SIUMCR)205Table 4-12. SIUMCR Register Field Descriptions (continued)2054.3.2.7 Internal Memory Map Register (IMMR)208Figure 4-29. Internal Memory Map Register (IMMR)208Table 4-13. IMMR Field Descriptions2094.3.2.8 System Protection Control Register (SYPCR)209Figure 4-30. System Protection Control Register (SYPCCR)209Table 4-14. SYPCR Field Descriptions2104.3.2.9 Software Service Register (SWSR)2104.3.2.10 60x Bus Transfer Error Status and Control Register 1 (TESCR1)210Figure 4-31. 60x Bus Transfer Error Status and Control Register 1 (TESCR1)211Table 4-15. TESCR1 Field Descriptions (continued)2114.3.2.11 60x Bus Transfer Error Status and Control Register 2 (TESCR2)212Figure 4-32. 60x Bus Transfer Error Status and Control Register 2 (TESCR2)213Table 4-16. TESCR2 Field Descriptions2134.3.2.12 Local Bus Transfer Error Status and Control Register 1 (L_TESCR1)214Figure 4-33. Local Bus Transfer Error Status and Control Register 1 (L_TESCR1)214Table 4-17. L_TESCR1 Field Descriptions (continued)2144.3.2.13 Local Bus Transfer Error Status and Control Register 2 (L_TESCR2)215Figure 4-34. Local Bus Transfer Error Status and Control Register 2 (L_TESCR2)215Table 4-18. L_TESCR2 Field Descriptions2154.3.2.14 Time Counter Status and Control Register (TMCNTSC)216Figure 4-35. Time Counter Status and Control Register (TMCNTSC)216Table 4-19. TMCNTSC Field Descriptions2164.3.2.15 Time Counter Register (TMCNT)216Figure 4-36. Time Counter Register (TCMCNT)2174.3.2.16 Time Counter Alarm Register (TMCNTAL)217Figure 4-37. Time Counter Alarm Register (TMCNTAL)217Table 4-20. TMCNTAL Field Descriptions2174.3.3 Periodic Interrupt Registers2184.3.3.1 Periodic Interrupt Status and Control Register (PISCR)218Figure 4-38. Periodic Interrupt Status and Control Register (PISCR)218Table 4-21. PISCR Field Descriptions2184.3.3.2 Periodic Interrupt Timer Count Register (PITC)218Figure 4-39. Periodic interrupt Timer Count Register (PITC)219Table 4-22. PITC Field Descriptions2194.3.3.3 Periodic Interrupt Timer Register (PITR)219Figure 4-40. Periodic Interrupt Timer Register (PITR)219Table 4-23. PITR Field Descriptions2204.3.4 PCI Control Registers2204.3.4.1 PCI Base Register (PCIBRx)220Figure 4-41. PCI Base Registers (PCIBRx)220Table 4-24. PCIBRx Field Descriptions2214.3.4.2 PCI Mask Register (PCIMSKx)221Figure 4-42. PCI Mask Register (PCIMSKx)221Table 4-25. PCIMSKx Field Descriptions2214.4 SIU Pin Multiplexing221Table 4-26. SIU Pins Multiplexing Control222Chapter 5 Reset2235.1 Reset Causes223Table 5-1. Reset Causes2235.1.1 Reset Actions224Table 5-2. Reset Actions for Each Reset Source2245.1.2 Power-On Reset Flow224Figure 5-1. Power-on Reset Flow2255.1.3 HRESET Flow2255.1.4 SRESET Flow2255.2 Reset Status Register (RSR)226Figure 5-2. Reset Status Register (RSR)226Table 5-3. RSR Field Descriptions (continued)2265.3 Reset Mode Register (RMR)227Figure 5-3. Reset Mode Register (RMR)227Table 5-4. RMR Field Descriptions2285.4 Reset Configuration228Table 5-5. RSTCONF Connections in Multiple-PowerQUICC II Systems (continued)228Table 5-6. Configuration EPROM Addresses2295.4.1 Hard Reset Configuration Word230Figure 5-4. Hard Reset Configuration Word230Table 5-7. Hard Reset Configuration Word Field Descriptions (continued)2305.4.2 Hard Reset Configuration Examples2325.4.2.1 Single PowerQUICC II with Default Configuration232Figure 5-5. Single Chip with Default Configuration2325.4.2.2 Single PowerQUICC II Configured from Boot EPROM232Figure 5-6. Configuring a Single Chip from EPROM2335.4.2.3 Multiple PowerQUICC IIs Configured from Boot EPROM233Figure 5-7. Configuring Multiple Chips2345.4.2.4 Multiple PowerQUICC IIs in a System with No EPROM235Part III The Hardware Interface237Intended Audience237Contents237Suggested Reading237Conventions238Acronyms and Abbreviations238Chapter 6 External Signals2416.1 Functional Pinout241Figure 6-1. PowerQUICC II External Signals2426.2 Signal Descriptions242Table 6-1. External Signals (continued)243Chapter 7 60x Signals2577.1 Signal Configuration258Figure 7-1. Signal Groupings2587.2 Signal Descriptions2587.2.1 Address Bus Arbitration Signals2597.2.1.1 Bus Request (BR)-Output2597.2.1.1.1 Address Bus Request (BR)-Output2597.2.1.1.2 Address Bus Request (BR)-Input2597.2.1.2 Bus Grant (BG)2607.2.1.2.1 Bus Grant (BG)-Input2607.2.1.2.2 Bus Grant (BG)-Output2607.2.1.3 Address Bus Busy (ABB)2617.2.1.3.1 Address Bus Busy (ABB)-Output2617.2.1.3.2 Address Bus Busy (ABB)-Input2617.2.2 Address Transfer Start Signal2617.2.2.1 Transfer Start (TS)2617.2.2.1.1 Transfer Start (TS)-Output2617.2.2.2 Transfer Start (TS)-Input2627.2.3 Address Transfer Signals2627.2.3.1 Address Bus (A[0-31])2627.2.3.1.1 Address Bus (A[0-31])-Output2627.2.3.1.2 Address Bus (A[0-31])-Input2627.2.4 Address Transfer Attribute Signals2637.2.4.1 Transfer Type (TT[0-4])2637.2.4.1.1 Transfer Type (TT[0-4])-Output2637.2.4.1.2 Transfer Type (TT[0-4])-Input2637.2.4.2 Transfer Size (TSIZ[0-3])2637.2.4.3 Transfer Burst (TBST)2647.2.4.4 Global (GBL)2647.2.4.4.1 Global (GBL)-Output2647.2.4.4.2 Global (GBL)-Input2647.2.4.5 Caching-Inhibited (CI)-Output2647.2.4.6 Write-Through (WT)-Output2657.2.5 Address Transfer Termination Signals2657.2.5.1 Address Acknowledge (AACK)2657.2.5.1.1 Address Acknowledge (AACK)-Output2657.2.5.1.2 Address Acknowledge (AACK)-Input2657.2.5.2 Address Retry (ARTRY)2667.2.5.2.1 Address Retry (ARTRY)-Output2667.2.5.2.2 Address Retry (ARTRY)-Input2667.2.6 Data Bus Arbitration Signals2677.2.6.1 Data Bus Grant (DBG)2677.2.6.1.1 Data Bus Grant (DBG)-Input2677.2.6.1.2 Data Bus Grant (DBG)-Output2677.2.6.2 Data Bus Busy (DBB)2687.2.6.2.1 Data Bus Busy (DBB)-Output2687.2.6.2.2 Data Bus Busy (DBB)-Input2687.2.7 Data Transfer Signals2687.2.7.1 Data Bus (D[0-63])2687.2.7.1.1 Data Bus (D[0-63])-Output269Table 7-1. Data Bus Lane Assignments2697.2.7.1.2 Data Bus (D[0-63])-Input2697.2.7.2 Data Bus Parity (DP[0-7])2697.2.7.2.1 Data Bus Parity (DP[0-7])-Output269Table 7-2. DP[0-7] Signal Assignments2707.2.7.2.2 Data Bus Parity (DP[0-7])-Input2707.2.8 Data Transfer Termination Signals2707.2.8.1 Transfer Acknowledge (TA)2707.2.8.1.1 Transfer Acknowledge (TA)-Input2707.2.8.1.2 Transfer Acknowledge (TA)-Output2717.2.8.2 Transfer Error Acknowledge (TEA)2727.2.8.2.1 Transfer Error Acknowledge (TEA)-Input2727.2.8.2.2 Transfer Error Acknowledge (TEA)-Output2727.2.8.3 Partial Data Valid Indication (PSDVAL)2727.2.8.3.1 Partial Data Valid (PSDVAL)-Input2727.2.8.3.2 Partial Data Valid (PSDVAL)-Output273Chapter 8 The 60x Bus2758.1 Terminology275Table 8-1. Terminology (continued)2758.2 Bus Configuration2768.2.1 Single-PowerQUICC II Bus Mode276Figure 8-1. Single-PowerQUICC II Bus Mode2778.2.2 60x-Compatible Bus Mode277Figure 8-2. 60x-Compatible Bus Mode2788.3 60x Bus Protocol Overview278Figure 8-3. Basic Transfer Protocol2798.3.1 Arbitration Phase2798.3.2 Address Pipelining and Split-Bus Transactions2808.4 Address Tenure Operations2818.4.1 Address Arbitration281Figure 8-4. Address Bus Arbitration with External Bus Master2828.4.2 Address Pipelining282Figure 8-5. Address Pipelining2838.4.3 Address Transfer Attribute Signals2838.4.3.1 Transfer Type Signal (TT[0-4]) Encoding283Table 8-2. Transfer Type Encoding (continued)2848.4.3.2 Transfer Code Signals TC[0-2]286Table 8-3. Transfer Code Encoding for 60x Bus2868.4.3.3 TBST and TSIZ[0-3] Signals and Size of Transfer286Table 8-4. Transfer Size Signal Encoding2878.4.3.4 Burst Ordering During Data Transfers287Table 8-5. Burst Ordering2888.4.3.5 Effect of Alignment on Data Transfers288Table 8-6. Aligned Data Transfers (continued)288Table 8-7. Unaligned Data Transfer Example (4-Byte Example) (continued)2898.4.3.6 Effect of Port Size on Data Transfers290Figure 8-6. Interface to Different Port Size Devices291Table 8-8. Data Bus: Read Cycle Requirements and Write Cycle Content2928.4.3.7 60x-Compatible Bus Mode-Size Calculation292Table 8-9. Address and Size State Calculations2938.4.3.8 Extended Transfer Mode293Table 8-10. Data Bus Contents for Extended Write Cycles294Table 8-11. Data Bus Requirements for Extended Read Cycles294Table 8-12. Address and Size State for Extended Transfers (continued)2958.4.4 Address Transfer Termination2968.4.4.1 Address Retried with ARTRY296Figure 8-7. Retry Cycle2978.4.4.2 Address Tenure Timing Configuration2988.4.5 Pipeline Control2988.5 Data Tenure Operations2998.5.1 Data Bus Arbitration2998.5.2 Data Streaming Mode3008.5.3 Data Bus Transfers and Normal Termination300Figure 8-8. Single-Beat and Burst Data Transfers3018.5.4 Effect of ARTRY Assertion on Data Transfer and Arbitration3018.5.5 Port Size Data Bus Transfers and PSDVAL Termination301Figure 8-9. 28-Bit Extended Transfer to 32-Bit Port Size302Figure 8-10. Burst Transfer to 32-Bit Port Size3038.5.6 Data Bus Termination by Assertion of TEA303Figure 8-11. Data Tenure Terminated by Assertion of TEA3048.6 Memory Coherency-MEI Protocol304Figure 8-12. MEI Cache Coherency Protocol-State Diagram (WIM = 001)3058.7 Processor State Signals3058.7.1 Support for the lwarx/stwcx. Instruction Pair3068.7.2 TLBISYNC Input3068.8 Little-Endian Mode306Chapter 9 PCI Bridge307Figure 9-1. PCI Bridge in the PowerQUICC II308Figure 9-2. PCI Bridge Structure3089.1 Signals3099.2 Clocking3099.3 PCI Bridge Initialization3099.4 SDMA Interface3099.5 Interrupts from PCI Bridge3109.6 60x Bus Arbitration Priority3109.7 60x Bus Masters3109.8 CompactPCI Hot Swap Specification Support3119.9 PCI Interface311Table 9-1. PCI Terminology3129.9.1 PCI Interface Operation3129.9.1.1 Bus Commands312Table 9-2. PCI Command Definitions3139.9.1.2 PCI Protocol Fundamentals3139.9.1.2.1 Basic Transfer Control3149.9.1.2.2 Addressing3149.9.1.2.3 Byte Enable Signals3159.9.1.2.4 Bus Driving and Turnaround3159.9.1.3 Bus Transactions3159.9.1.3.1 Read and Write Transactions315Figure 9-3. Single Beat Read Example316Figure 9-4. Burst Read Example316Figure 9-5. Single Beat Write Example317Figure 9-6. Burst Write Example3179.9.1.3.2 Transaction Termination317Figure 9-7. Target-Initiated Terminations3189.9.1.4 Other Bus Operations3199.9.1.4.1 Device Selection3199.9.1.4.2 Fast Back-to-Back Transactions3209.9.1.4.3 Data Streaming3209.9.1.4.4 Host Mode Configuration Access321Figure 9-8. PCI Configuration Type 0 Translation (Top = CONFIG_ADDR) (Bottom = PCI Address Lines)3219.9.1.4.5 Agent Mode Configuration Access3229.9.1.4.6 Special Cycle Command3229.9.1.4.7 Interrupt Acknowledge3239.9.1.5 Error Functions3239.9.1.5.1 Parity3239.9.1.5.2 Error Reporting324Figure 9-9. PCI Parity Operation3249.9.2 PCI Bus Arbitration3259.9.2.1 Bus Parking3259.9.2.2 Arbitration Algorithm325Figure 9-10. PCI Arbitration Example3269.9.2.3 Master Latency Timer3269.10 Address Map327Figure 9-11. Address Decode Flow Chart for 60x Bus Mastered Transactions327Figure 9-12. Address Decode Flow Chart for PCI Mastered Transactions328Figure 9-13. Address Decode Flow Chart for Embedded Utilities (DMA, Message Unit) Mastered Transactions329Figure 9-14. Address Map Example3309.10.1 Address Map Programming3309.10.2 Address Translation3309.10.2.1 PCI Inbound Translation331Figure 9-15. Inbound PCI Memory Address Translation3319.10.2.2 PCI Outbound Translation332Figure 9-16. Outbound PCI Memory Address Translation3329.10.3 SIU Registers3329.11 Configuration Registers3339.11.1 Memory-Mapped Configuration Registers333Table 9-3. Internal Memory Map (continued)3339.11.1.1 Message Unit (I2O) Registers3369.11.1.2 DMA Controller Registers3369.11.1.3 PCI Outbound Translation Address Registers (POTARx)336Figure 9-17. PCI Outbound Translation Address Registers (POTARx)336Table 9-4. POTARx Field Descriptions3379.11.1.4 PCI Outbound Base Address Registers (POBARx)337Figure 9-18. PCI Outbound Base Address Registers (POBARx)337Table 9-5. POBARx Field Descriptions3379.11.1.5 PCI Outbound Comparison Mask Registers (POCMRx)337Figure 9-19. PCI Outbound Comparison Mask Registers (POCMRx)338Table 9-6. POCMRx Field Descriptions3389.11.1.6 Discard Timer Control Register (PTCR)338Figure 9-20. Discard Timer Control register (PTCR)339Table 9-7. PTCR Field Descriptions3399.11.1.7 General Purpose Control Register (GPCR)339Figure 9-21. General Purpose Control Register (GPCR)340Table 9-8. GPCR Field Descriptions (continued)3409.11.1.8 PCI General Control Register (PCI_GCR)341Figure 9-22. PCI General Control Register (PCI_GCR)341Table 9-9. PCI_GCR Field Descriptions3419.11.1.9 Error Status Register (ESR)341Figure 9-23. Error Status Register (ESR)342Table 9-10. ESR Field Descriptions (continued)3429.11.1.10 Error Mask Register (EMR)343Figure 9-24. Error Mask Register (EMR)343Table 9-11. EMR Field Descriptions (continued)3439.11.1.11 Error Control Register (ECR)344Figure 9-25. Error Control Register (ECR)344Table 9-12. ECR Field Descriptions3459.11.1.12 PCI Error Address Capture Register (PCI_EACR)345Figure 9-26. PCI Error Address Capture Register (PCI_EACR)345Table 9-13. PCI_EACR Field Descriptions3469.11.1.13 PCI Error Data Capture Register (PCI_EDCR)346Figure 9-27. PCI Error Data Capture Register (PCI_EDCR)346Table 9-14. PCI_EDCR Field Description3469.11.1.14 PCI Error Control Capture Register (PCI_ECCR)346Figure 9-28. PCI Error Control Capture Register (PCI_ECCR)347Table 9-15. PCI_ECCR Field Descriptions (continued)3479.11.1.15 PCI Inbound Translation Address Registers (PITARx)348Figure 9-29. PCI Inbound Translation Address Registers (PITARx)348Table 9-16. PITARx Field Descriptions3489.11.1.16 PCI Inbound Base Address Registers (PIBARx)348Figure 9-30. PCI Inbound Base Address Registers (PIBARx)3499.11.1.17 PCI Inbound Comparison Mask Registers (PICMRx)349Table 9-17. PIBARx Field Descriptions349Figure 9-31. PCI Inbound Comparison Mask Registers (PICMRx)350Table 9-18. PICMRx Field Descriptions3509.11.2 PCI Bridge Configuration Registers351Table 9-19. PCI Bridge PCI Configuration Registers (continued)351Figure 9-32. PCI Bridge PCI Configuration Registers3529.11.2.1 Vendor ID Register352Figure 9-33. Vendor ID Register353Table 9-20. Vendor ID Register Description3539.11.2.2 Device ID Register353Figure 9-34. Device ID Register353Table 9-21. Device ID Register Description3539.11.2.3 PCI Bus Command Register353Figure 9-35. PCI Bus Command Register353Table 9-22. PCI Bus Command Register Description3549.11.2.4 PCI Bus Status Register354Figure 9-36. PCI Bus Status Register355Table 9-23. PCI Bus Status Register Description3559.11.2.5 Revision ID Register355Figure 9-37. Revision ID Register356Table 9-24. Revision ID Register Description3569.11.2.6 PCI Bus Programming Interface Register356Figure 9-38. PCI Bus Programming Interface Register356Table 9-25. PCI Bus Programming Interface Register Description3569.11.2.7 Subclass Code Register356Figure 9-39. Subclass Code Register357Table 9-26. Subclass Code Register Description3579.11.2.8 PCI Bus Base Class Code Register357Figure 9-40. PCI Bus Base Class Code Register357Table 9-27. PCI Bus Base Class Code Register Description3579.11.2.9 PCI Bus Cache Line Size Register357Figure 9-41. PCI Bus Cache Line Size Register358Table 9-28. PCI Bus Cache Line Size Register Description3589.11.2.10 PCI Bus Latency Timer Register358Figure 9-42. PCI Bus Latency Timer Register358Table 9-29. PCI Bus Latency Timer Register Description3589.11.2.11 Header Type Register358Figure 9-43. Header Type Register359Table 9-30. Header Type Register Description3599.11.2.12 BIST Control Register359Figure 9-44. BIST Control Register359Table 9-31. BIST Control Register Description3599.11.2.13 PCI Bus Internal Memory-Mapped Registers Base Address Register (PIMMRBAR)359Figure 9-45. PCI Bus Internal Memory-Mapped Registers Base Address Register (PIMMRBAR)360Table 9-32. PIMMRBAR Field Descriptions3609.11.2.14 General Purpose Local Access Base Address Registers (GPLABARx)360Figure 9-46. General Purpose Local Access Base Address Registers (GPLABARx)361Table 9-33. GPLABARx Field Descriptions3619.11.2.15 Subsystem Vendor ID Register361Figure 9-47. Subsystem Vendor ID Register361Table 9-34. Subsystem Vendor ID Register Description3629.11.2.16 Subsystem Device ID Register362Figure 9-48. Subsystem Device ID Register362Table 9-35. Subsystem Device ID Description Register3629.11.2.17 PCI Bus Capabilities Pointer Register362Figure 9-49. PCI Bus Capabilities Pointer Register362Table 9-36. PCI Bus Capabilities Pointer Register Description3629.11.2.18 PCI Bus Interrupt Line Register362Figure 9-50. PCI Bus Interrupt Line Register363Table 9-37. PCI Bus Interrupt Line Register Description3639.11.2.19 PCI Bus Interrupt Pin Register363Figure 9-51. PCI Bus Interrupt Pin Register363Table 9-38. PCI Bus Interrupt Pin Register Description3639.11.2.20 PCI Bus MIN GNT363Figure 9-52. PCI Bus MIN GNT363Table 9-39. PCI Bus MIN GNT Description3649.11.2.21 PCI Bus MAX LAT364Figure 9-53. PCI Bus MAX LAT364Table 9-40. PCI Bus MAX LAT Description3649.11.2.22 PCI Bus Function Register364Figure 9-54. PCI Bus Function Register364Table 9-41. PCI Bus Function Register Field Descriptions3659.11.2.23 PCI Bus Arbiter Configuration Register365Figure 9-55. PCI Bus Arbiter Configuration Register365Table 9-42. PCI Bus Arbiter Configuration Register Field Description3669.11.2.24 PCI Hot Swap Register Block366Figure 9-56. Hot Swap Register Block366Table 9-43. Hot Swap Register Block Field Descriptions3679.11.2.25 PCI Hot Swap Control Status Register367Figure 9-57. Hot Swap Control Status Register367Table 9-44. Hot Swap Control Status Register Field Descriptions3679.11.2.26 PCI Configuration Register Access from the Core3689.11.2.27 PCI Configuration Register Access in Big-Endian Mode3689.11.2.27.1 Additional Information on Endianess3699.11.2.27.2 Notes on GPCR[LE_MODE]3699.11.2.28 Initializing the PCI Configuration Registers370Figure 9-58. Data Structure for Register Initialization370Table 9-45. Bit Settings for Register Initialization Data Structure370Figure 9-59. PCI Configuration Data Structure for the EEPROM3719.12 Message Unit (I2O)3719.12.1 Message Registers3719.12.1.1 Inbound Message Registers (IMRx)372Figure 9-60. Inbound Message Registers (IMRx)372Table 9-46. IMRx Field Descriptions3729.12.1.2 Outbound Message Registers (OMRx)372Figure 9-61. Outbound Message Registers (OMRx)373Table 9-47. OMRx Field Descriptions3739.12.2 Door Bell Registers3739.12.2.1 Outbound Doorbell Register (ODR)373Figure 9-62. Outbound Doorbell Register (ODR)374Table 9-48. ODR Field Descriptions3749.12.2.2 Inbound Doorbell Register (IDR)374Figure 9-63. Inbound Doorbell Register (IDR)374Table 9-49. IDR Field Descriptions3759.12.3 I2O Unit375Figure 9-64. I2O Message Queue3769.12.3.1 PCI Configuration Identification3769.12.3.2 Inbound FIFOs3769.12.3.2.1 Inbound Free_FIFO Head Pointer Register (IFHPR) and Inbound Free_FIFO Tail Pointer Register (IFTPR)377Figure 9-65. Inbound Free_FIFO Head Pointer Register (IFHPR)377Table 9-50. IFHPR Field Descriptions377Figure 9-66. Inbound Free_FIFO Tail Pointer Register (IFTPR)378Table 9-51. IFTPR Field Descriptions3789.12.3.2.2 Inbound Post_FIFO Head Pointer Register (IPHPR) and Inbound Post_FIFO Tail Pointer Register (IPTPR)378Figure 9-67. Inbound Post_FIFO Head Pointer Register (IPHPR)379Table 9-52. IPHPR Field Descriptions379Figure 9-68. Inbound Post_FIFO Tail Pointer Register (IPTPR)379Table 9-53. IPTPR Field Descriptions3809.12.3.3 Outbound FIFOs3809.12.3.3.1 Outbound Free_FIFO Head Pointer Register (OFHPR) and Outbound Free_FIFO Tail Pointer Register (OFTPR)380Figure 9-69. Outbound Free_FIFO Head Pointer Register (OFHPR)380Table 9-54. OFHPR Field Descriptions381Figure 9-70. Outbound Free_FIFO Tail Pointer Register (OFTPR)381Table 9-55. OFTPR Field Descriptions3819.12.3.3.2 Outbound Post_FIFO Head Pointer Register (OPHPR) and Outbound Post_FIFO Tail Pointer Register (OPTPR)381Figure 9-71. Outbound Post_FIFO Head Pointer Register (OPHPR)382Table 9-56. OPHPR Field Descriptions382Figure 9-72. Outbound Post_FIFO Tail Pointer Register (OPTPR)383Table 9-57. OPTPR Field Descriptions3839.12.3.4 I2O Registers3839.12.3.4.1 Inbound FIFO Queue Port Register (IFQPR)383Figure 9-73. Inbound FIFO Queue Port Register (IFQPR)383Table 9-58. IFQPR Field Descriptions3849.12.3.4.2 Outbound FIFO Queue Port Register (OFQPR)384Figure 9-74. Outbound FIFO Queue Port Register (OFQPR)384Table 9-59. OFQPR Field Descriptions3849.12.3.4.3 Outbound Message Interrupt Status Register (OMISR)384Figure 9-75. Outbound Message Interrupt Status Register (OMISR)385Table 9-60. OMISR Field Descriptions3859.12.3.4.4 Outbound Message Interrupt Mask Register (OMIMR)385Figure 9-76. Outbound Message Interrupt Mask Register (OMIMR)386Table 9-61. OMIMR Field Descriptions3869.12.3.4.5 Inbound Message Interrupt Status Register (IMISR)386Figure 9-77. Inbound Message Interrupt Status Register (IMISR)387Table 9-62. IMISR Field Descriptions3879.12.3.4.6 Inbound Message Interrupt Mask Register (IMIMR)388Figure 9-78. Inbound Message Interrupt Mask Register (IMIMR)388Table 9-63. IMIMR Field Descriptions (continued)3889.12.3.4.7 Messaging Unit Control Register (MUCR)389Figure 9-79. Messaging Unit Control Register (MUCR)389Table 9-64. MUCR Field Descriptions3899.12.3.4.8 Queue Base Address Register (QBAR)390Figure 9-80. Queue Base Address Register (QBAR)390Table 9-65. QBAR Field Descriptions3909.13 DMA Controller391Figure 9-81. DMA Controller Block Diagram3919.13.1 DMA Operation3919.13.1.1 DMA Direct Mode3929.13.1.2 DMA Chaining Mode3929.13.1.3 DMA Coherency3939.13.1.4 Halt and Error Conditions3939.13.1.5 DMA Transfer Types3939.13.1.6 DMA Registers3949.13.1.6.1 DMA Mode Register [0-3] (DMAMRx)394Figure 9-82. DMA Mode Register [0-3] (DMAMRx)394Table 9-66. DMAMRx Field Descriptions (continued)3959.13.1.6.2 DMA Status Register [0-3] (DMASRx)396Figure 9-83. DMA Status Register [0-3] (DMASRx)396Table 9-67. DMASRx Field Descriptions3979.13.1.6.3 DMA Current Descriptor Address Register [0-3] (DMACDARx)397Figure 9-84. DMA Current Descriptor Address Register [0-3] (DMACDARx)397Table 9-68. DMACDARx Field Descriptions3989.13.1.6.4 DMA Source Address Register [0-3] (DMASARx)398Figure 9-85. DMA Source Address Register [0-3] (DMASARx)398Table 9-69. DMASARx Field Descriptions3989.13.1.6.5 DMA Destination Address Register [0-3] (DMADARx)398Figure 9-86. DMA Destination Address Register [0-3] (DMADARx)399Table 9-70. DMADARx Field Descriptions3999.13.1.6.6 DMA Byte Count Register [0-3] (DMABCRx)399Figure 9-87. DMA Byte Count Register [0-3] (DMABCRx)399Table 9-71. DMABCRx Field Descriptions4009.13.1.6.7 DMA Next Descriptor Address Register [0-3] (DMANDARx)400Figure 9-88. DMA Next Descriptor Address Register [0-3] (DMANDARx)400Table 9-72. DMANDARx Field Descriptions4009.13.2 DMA Segment Descriptors401Table 9-73. DMA Segment Descriptor Fields401Figure 9-89. DMA Chain of Segment Descriptors4029.13.2.1 Descriptor in Big Endian Mode4029.13.2.2 Descriptor in Little Endian Mode4039.14 Error Handling4039.14.1 Interrupt and Error Signals4039.14.1.1 PCI Bus Error Signals4039.14.1.1.1 System Error (SERR)4049.14.1.1.2 Parity Error (PERR)4049.14.1.1.3 Error Reporting4049.14.1.2 Illegal Register Access Error4049.14.1.3 PCI Interface4049.14.1.3.1 Address Parity Error4059.14.1.3.2 Data Parity Error4059.14.1.3.3 Master-Abort Transaction Termination4059.14.1.3.4 Target-Abort Error4069.14.1.3.5 NMI4069.14.1.4 Embedded Utilities4069.14.1.4.1 Outbound Free Queue Overflow4069.14.1.4.2 Inbound Post Queue Overflow4069.14.1.4.3 Inbound DoorBell Machine Check406Chapter 10 Clocks and Power Control40710.1 Clock Unit40710.2 Clock Configuration40710.3 External Clock Inputs40710.4 Main PLL40810.4.1 PLL Block Diagram408Figure 10-1. System PLL Block Diagram40810.4.2 Skew Elimination40910.4.3 PCI Bridge Clocking40910.4.3.1 PCI Bridge as an Agent Operating from the PCI System Clock409Figure 10-2. PCI Bridge as an Agent, Operating from the PCI System Clock41010.4.3.2 PCI Bridge as a Host and Generating the PCI System Clock410Figure 10-3. PCI Bridge as a Host, Generating the PCI System Clock41010.4.3.2.1 CPM CLOCK and PCI Frequency Equations41110.5 Clock Dividers41110.6 PowerQUICC II Internal Clock Signals41110.6.1 General System Clocks41110.7 PLL Pins412Table 10-1. Dedicated PLL Pins (continued)412Figure 10-4. PLL Filtering Circuit41310.8 System Clock Control Register (SCCR)414Figure 10-5. System Clock Control Register (SCCR)414Table 10-2. SCCR Field Descriptions (continued)41410.9 System Clock Mode Register (SCMR)415Figure 10-6. System Clock Mode Register (SCMR)415Table 10-3. SCMR Field Descriptions416Figure 10-7. Relationships of SCMR Parameters416Table 10-4. 60x Bus-to-Core Frequency41710.10 Basic Power Structure417Chapter 11 Memory Controller419Figure 11-1. Dual-Bus Architecture42011.1 Features42111.2 Basic Architecture422Figure 11-2. Memory Controller Machine Selection423Figure 11-3. Simple System Configuration424Figure 11-4. Basic Memory Controller Operation42511.2.1 Address and Address Space Checking42511.2.2 Page Hit Checking42511.2.3 Error Checking and Correction (ECC)42611.2.4 Parity Generation and Checking42611.2.5 Transfer Error Acknowledge (TEA) Generation42611.2.6 Machine Check Interrupt (MCP) Generation42611.2.7 Data Buffer Controls (BCTLx and LWR)42711.2.8 Atomic Bus Operation42711.2.9 Data Pipelining42711.2.10 External Memory Controller Support42811.2.11 External Address Latch Enable Signal (ALE)42811.2.12 ECC/Parity Byte Select (PBSE)42811.2.13 Partial Data Valid Indication (PSDVAL)429Table 11-1. Number of PSDVAL Assertions Needed for TA Assertion429Figure 11-5. Partial Data Valid for 32-Bit Port Size Memory, Double-Word Transfer42911.2.14 BADDR[27:31] Signal Connections430Table 11-2. BADDR Connections43011.3 Register Descriptions430Table 11-3. 60x Bus Memory Controller Registers43011.3.1 Base Registers (BRx)431Figure 11-6. Base Registers (BRx)431Table 11-4. BRx Field Descriptions (continued)43111.3.2 Option Registers (ORx)433Figure 11-7. Option Registers (ORx)-SDRAM Mode433Table 11-5. ORx Field Descriptions (SDRAM Mode) (continued)434Figure 11-8. ORx -GPCM Mode435Table 11-6. ORx-GPCM Mode Field Descriptions (continued)435Figure 11-9. ORx-UPM Mode437Table 11-7. Option Register (ORx)-UPM Mode43711.3.3 60x SDRAM Mode Register (PSDMR)438Figure 11-10. 60x/Local SDRAM Mode Register (PSDMR/LSDMR)438Table 11-8. PSDMR Field Descriptions (continued)43911.3.4 Local Bus SDRAM Mode Register (LSDMR)441Table 11-9. LSDMR Field Descriptions (continued)44111.3.5 Machine A/B/C Mode Registers (MxMR)444Figure 11-11. Machine x Mode Registers (MxMR)444Table 11-10. Machine x Mode Registers (MxMR) (continued)44511.3.6 Memory Data Register (MDR)446Figure 11-12. Memory Data Register (MDR)447Table 11-11. MDR Field Descriptions44711.3.7 Memory Address Register (MAR)447Figure 11-13. Memory Address Register (MAR)447Table 11-12. MAR Field Description44811.3.8 60x Bus-Assigned UPM Refresh Timer (PURT)448Figure 11-14. 60x Bus-Assigned UPM Refresh Timer (PURT)448Table 11-13. 60x Bus-Assigned UPM Refresh Timer (PURT)44811.3.9 Local Bus-Assigned UPM Refresh Timer (LURT)448Figure 11-15. Local Bus-Assigned UPM Refresh Timer (LURT)448Table 11-14. Local Bus-Assigned UPM Refresh Timer (LURT)44911.3.10 60x Bus-Assigned SDRAM Refresh Timer (PSRT)449Figure 11-16. 60x Bus-Assigned SDRAM Refresh Timer (PSRT)449Table 11-15. 60x Bus-Assigned SDRAM Refresh Timer (PSRT)44911.3.11 Local Bus-Assigned SDRAM Refresh Timer (LSRT)449Figure 11-17. Local Bus-Assigned SDRAM Refresh Timer (LSRT)450Table 11-16. LSRT Field Descriptions45011.3.12 Memory Refresh Timer Prescaler Register (MPTPR)450Figure 11-18. Memory Refresh Timer Prescaler Register (MPTPR)450Table 11-17. MPTPR Field Descriptions45011.3.13 60x Bus Error Status and Control Registers (TESCRx)45111.3.14 Local Bus Error Status and Control Registers (L_TESCRx)45111.4 SDRAM Machine451Table 11-18. SDRAM Interface Signals451Figure 11-19. 128-Mbyte SDRAM (Eight-Bank Configuration, Banks 1 and 8 Shown)45211.4.1 Supported SDRAM Configurations45311.4.2 SDRAM Power-On Initialization45311.4.3 JEDEC-Standard SDRAM Interface Commands453Table 11-19. SDRAM Interface Commands45411.4.4 Page-Mode Support and Pipeline Accesses45411.4.5 Bank Interleaving45511.4.5.1 Using BNKSEL Signals in Single-PowerQUICC II Bus Mode45511.4.5.2 SDRAM Address Multiplexing (SDAM and BSMA)455Table 11-20. SDRAM Address Multiplexing (A0-A15)456Table 11-21. SDRAM Address Multiplexing (A16-A31)45611.4.6 SDRAM Device-Specific Parameters45611.4.6.1 Precharge-to-Activate Interval457Figure 11-20. PRETOACT = 2 (2 Clock Cycles)45711.4.6.2 Activate to Read/Write Interval457Figure 11-21. ACTTORW = 2 (2 Clock Cycles)45811.4.6.3 Column Address to First Data Out-CAS Latency458Figure 11-22. CL = 2 (2 Clock Cycles)45811.4.6.4 Last Data Out to Precharge459Figure 11-23. LDOTOPRE = 2 (-2 Clock Cycles)45911.4.6.5 Last Data In to Precharge-Write Recovery459Figure 11-24. WRC = 2 (2 Clock Cycles)45911.4.6.6 Refresh Recovery Interval (RFRC)460Figure 11-25. RFRC = 4 (6 Clock Cycles)46011.4.6.7 External Address Multiplexing Signal460Figure 11-26. EAMUX = 146011.4.6.8 External Address and Command Buffers (BUFCMD)460Figure 11-27. BUFCMD = 146111.4.7 SDRAM Interface Timing461Figure 11-28. SDRAM Single-Beat Read, Page Closed, CL = 3461Figure 11-29. SDRAM Single-Beat Read, Page Hit, CL = 3462Figure 11-30. SDRAM Two-Beat Burst Read, Page Closed, CL = 3462Figure 11-31. SDRAM Four-Beat Burst Read, Page Miss, CL = 3462Figure 11-32. SDRAM Single-Beat Write, Page Hit463Figure 11-33. SDRAM Three-Beat Burst Write, Page Closed463Figure 11-34. SDRAM Read-after-Read Pipeline, Page Hit, CL = 3463Figure 11-35. SDRAM Write-after-Write Pipelined, Page Hit464Figure 11-36. SDRAM Read-after-Write Pipelined, Page Hit46411.4.8 SDRAM Read/Write Transactions46411.4.9 SDRAM Mode-Set Command Timing465Figure 11-37. SDRAM Mode-Set Command Timing465Figure 11-38. Mode Data Bit Settings46511.4.10 SDRAM Refresh46511.4.11 SDRAM Refresh Timing466Figure 11-39. SDRAM Bank-Staggered CBR Refresh Timing46611.4.12 SDRAM Configuration Examples46611.4.12.1 SDRAM Configuration Example (Page-Based Interleaving)467Table 11-22. 60x Address Bus Partition467Table 11-23. SDRAM Device Address Port during activate Command467Table 11-24. SDRAM Device Address Port during read/write Command467Table 11-25. Register Settings (Page-Based Interleaving)46811.4.13 SDRAM Configuration Example (Bank-Based Interleaving)468Table 11-26. 60x Address Bus Partition468Table 11-27. SDRAM Device Address Port during activate Command469Table 11-28. SDRAM Device Address Port during read/write Command469Table 11-29. Register Settings (Bank-Based Interleaving)46911.5 General-Purpose Chip-Select Machine (GPCM)469Table 11-30. GPCM Interfaces Signals470Figure 11-40. GPCM-to-SRAM Configuration47011.5.1 Timing Configuration471Table 11-31. GPCM Strobe Signal Behavior47111.5.1.1 Chip-Select Assertion Timing471Figure 11-41. GPCM Peripheral Device Interface472Figure 11-42. GPCM Peripheral Device Basic Timing (ACS = 1x and TRLX = 0)47211.5.1.2 Chip-Select and Write Enable Deassertion Timing472Figure 11-43. GPCM Memory Device Interface473Figure 11-44. GPCM Memory Device Basic Timing (ACS = 00, CSNT = 1, TRLX = 0)473Figure 11-45. GPCM Memory Device Basic Timing (ACS ¹ 00, CSNT = 1, TRLX = 0)47411.5.1.3 Relaxed Timing474Figure 11-46. GPCM Relaxed Timing Read (ACS = 1x, SCY = 1, CSNT = 0, TRLX = 1)474Figure 11-47. GPCM Relaxed-Timing Write (ACS = 1x, SCY = 0, CSNT = 0,TRLX = 1)475Figure 11-48. GPCM Relaxed-Timing Write (ACS = 10, SCY = 0, CSNT = 1, TRLX = 1)475Figure 11-49. GPCM Relaxed-Timing Write (ACS = 00, SCY = 0, CSNT = 1, TRLX = 1)47611.5.1.4 Output Enable (OE) Timing47611.5.1.5 Programmable Wait State Configuration47611.5.1.6 Extended Hold Time on Read Accesses477Table 11-32. TRLX and EHTR Combinations477Figure 11-50. GPCM Read Followed by Read (ORx[29-30] = 00, Fastest Timing)477Figure 11-51. GPCM Read Followed by Read (ORx[29-30] = 01)478Figure 11-52. GPCM Read Followed by Write (ORx[29-30] = 01)478Figure 11-53. GPCM Read Followed by Write (ORx[29-30] = 10)47911.5.2 External Access Termination479Figure 11-54. External Termination of GPCM Access48011.5.3 Boot Chip-Select Operation480Table 11-33. . Boot Bank Field Values after Reset (continued)48011.5.4 Differences between MPC8xx’s GPCM and MPC82xx’s GPCM48111.6 User-Programmable Machines (UPMs)481Table 11-34. UPM Interfaces Signals481Figure 11-55. User-Programmable Machine Block Diagram48211.6.1 Requests482Figure 11-56. RAM Array Indexing483Table 11-35. UPM Routines Start Addresses48311.6.1.1 Memory Access Requests48411.6.1.2 UPM Refresh Timer Requests484Figure 11-57. Memory Refresh Timer Request Block Diagram48411.6.1.3 Software Requests-run Command48511.6.1.4 Exception Requests48511.6.2 Programming the UPMs48511.6.3 Clock Timing485Figure 11-58. Memory Controller UPM Clock Scheme for Integer Clock Ratios486Figure 11-59. Memory Controller UPM Clock Scheme for Non-Integer (2.5:1/3.5:1) Clock Ratios486Figure 11-60. UPM Signals Timing Example48711.6.4 The RAM Array487Figure 11-61. RAM Array and Signal Generation48811.6.4.1 RAM Words488Figure 11-62. The RAM Word488Table 11-36. RAM Word Bit Settings (continued)48911.6.4.1.1 Chip-Select Signals (CxTx)492Figure 11-63. CS Signal Selection49311.6.4.1.2 Byte-Select Signals (BxTx)493Figure 11-64. BS Signal Selection49311.6.4.1.3 General-Purpose Signals (GxTx, GOx)49411.6.4.1.4 Loop Control494Table 11-37. MxMR Loop Field Usage49411.6.4.1.5 Repeat Execution of Current RAM Word (REDO)49411.6.4.2 Address Multiplexing495Table 11-38. UPM Address Multiplexing49511.6.4.3 Data Valid and Data Sample Control495Figure 11-65. UPM Read Access Data Sampling49611.6.4.4 Signals Negation49611.6.4.5 The Wait Mechanism496Figure 11-66. Wait Mechanism Timing for Internal and External Synchronous Masters49711.6.4.6 Extended Hold Time on Read Accesses49711.6.5 UPM DRAM Configuration Example497Table 11-39. 60x Address Bus Partition498Table 11-40. DRAM Device Address Port during an activate command498Table 11-41. Register Settings49811.6.6 Differences between MPC8xx UPM and MPC82xx UPM49811.7 Memory System Interface Example Using UPM499Figure 11-67. DRAM Interface Connection to the 60x Bus (64-Bit Port Size)499Table 11-42. UPMs Attributes Example500Figure 11-68. Single-Beat Read Access to FPM DRAM501Figure 11-69. Single-Beat Write Access to FPM DRAM502Figure 11-70. Burst Read Access to FPM DRAM (No LOOP)503Figure 11-71. Burst Read Access to FPM DRAM (LOOP)504Figure 11-72. Burst Write Access to FPM DRAM (No LOOP)505Figure 11-73. Refresh Cycle (CBR) to FPM DRAM506Figure 11-74. Exception Cycle507Table 11-43. UPMs Attributes Example507Figure 11-75. FPM DRAM Burst Read Access (Data Sampling on Falling Edge of CLKIN)50911.7.0.1 EDO Interface Example510Figure 11-76. PowerQUICC II/EDO Interface Connection to the 60x Bus510Table 11-44. EDO Connection Field Value Example (continued)510Figure 11-77. Single-Beat Read Access to EDO DRAM512Figure 11-78. Single-Beat Write Access to EDO DRAM513Figure 11-79. Single-Beat Write Access to EDO DRAM Using REDO to Insert Three Wait States514Figure 11-80. Burst Read Access to EDO DRAM515Figure 11-81. Burst Write Access to EDO DRAM516Figure 11-82. Refresh Cycle (CBR) to EDO DRAM517Figure 11-83. Exception Cycle For EDO DRAM51811.8 Handling Devices with Slow or Variable Access Times51911.8.1 Hierarchical Bus Interface Example51911.8.2 Slow Devices Example51911.9 External Master Support (60x-Compatible Mode)51911.9.1 60x-Compatible External Masters (non-PowerQUICC II)52011.9.2 PowerQUICC II External Masters52011.9.3 Extended Controls in 60x-Compatible Mode52011.9.4 Address Incrementing for External Bursting Masters52011.9.5 External Masters Timing521Figure 11-84. Pipelined Bus Operation and Memory Access in 60x-Compatible Mode522Figure 11-85. External Master Access (GPCM)52311.9.5.1 Example of External Master Using the SDRAM Machine523Figure 11-86. External Master Configuration with SDRAM Device524Chapter 12 Secondary (L2) Cache Support52512.1 L2 Cache Configurations52512.1.1 Copy-Back Mode525Figure 12-1. L2 Cache in Copy-Back Mode52612.1.2 Write-Through Mode526Figure 12-2. External L2 Cache in Write-Through Mode52812.1.3 ECC/Parity Mode528Figure 12-3. External L2 Cache in ECC/Parity Mode53012.2 L2 Cache Interface Parameters53012.3 System Requirements When Using the L2 Cache Interface53112.4 L2 Cache Operation53112.5 Timing Example531Figure 12-4. Read Access with L2 Cache532Chapter 13 IEEE 1149.1 Test Access Port53313.1 Overview533Figure 13-1. Test Logic Block Diagram534Table 13-1. TAP Signals53413.2 TAP Controller534Figure 13-2. TAP Controller State Machine53513.3 Boundary Scan Register535Figure 13-3. Output Pin Cell (O.Pin)536Figure 13-4. Observe-Only Input Pin Cell (I.Obs)536Figure 13-5. Output Control Cell (IO.CTL)537Figure 13-6. General Arrangement of Bidirectional Pin Cells53713.4 Instruction Register537Table 13-2. Instruction Decoding (continued)53813.5 PowerQUICC II Restrictions53913.6 Nonscan Chain Operation539Part IV Communications Processor Module541Intended Audience541Contents541Suggested Reading543Architecture Documentation543Conventions543Acronyms and Abbreviations544Chapter 14 Communications Processor Module Overview54914.1 Features549Figure 14-1. PowerQUICC II CPM Block Diagram55114.2 PowerQUICC II Serial Configurations551Table 14-1. Possible PowerQUICC II Applications55214.3 Communications Processor (CP)55214.3.1 CPM Performance Evaluation55214.3.2 Features55214.3.3 CP Block Diagram553Figure 14-2. Communications Processor (CP) Block Diagram55414.3.4 G2 Core Interface55414.3.5 Peripheral Interface555Table 14-2. Peripheral Prioritization (continued)55514.3.6 Execution from RAM55614.3.7 RISC Controller Configuration Register (RCCR)556Figure 14-3. RISC Controller Configuration Register (RCCR557Table 14-3. RISC Controller Configuration Register Field Descriptions (continued)55714.3.8 RISC Time-Stamp Control Register (RTSCR)559Figure 14-4. RISC Time-Stamp Control Register (RTSCR)559Table 14-4. RTSCR Field Descriptions55914.3.9 RISC Time-Stamp Register (RTSR)559Figure 14-5. RISC Time-Stamp Register (RTSR)56014.3.10 RISC Microcode Revision Number560Table 14-5. RISC Microcode Revision Number56014.4 Command Set56014.4.1 CP Command Register (CPCR)561Figure 14-6. CP Command Register (CPCR)561Table 14-6. CP Command Register Field Descriptions (continued)56114.4.1.1 CP Commands562Table 14-7. CP Command Opcodes563Table 14-8. Command Descriptions (continued)56414.4.2 Command Register Example56514.4.3 Command Execution Latency56514.5 Dual-Port RAM565Figure 14-7. Dual-Port RAM Block Diagram566Figure 14-8. Dual-Port RAM Memory Map56714.5.1 Buffer Descriptors (BDs)568Table 14-9. Buffer Descriptor Format56814.5.2 Parameter RAM568Table 14-10. Parameter RAM56914.6 RISC Timer Tables57014.6.1 RISC Timer Table Parameter RAM570Figure 14-9. RISC Timer Table RAM Usage571Table 14-11. RISC Timer Table Parameter RAM57114.6.2 RISC Timer Command Register (TM_CMD)572Figure 14-10. RISC Timer Command Register (TM_CMD)572Table 14-12. TM_CMD Field Descriptions57214.6.3 RISC Timer Table Entries57214.6.4 RISC Timer Event Register (RTER)/Mask Register (RTMR)572Figure 14-11. RISC Timer Event Register (RTER)/Mask Register (RTMR)57314.6.5 set timer Command57314.6.6 RISC Timer Initialization Sequence57314.6.7 RISC Timer Initialization Example57414.6.8 RISC Timer Interrupt Handling57414.6.9 RISC Timer Table Scan Algorithm57414.6.10 Using the RISC Timers to Track CP Loading575Chapter 15 Serial Interface with Time-Slot Assigner577Figure 15-1. SI Block Diagram57815.1 Features57915.2 Overview580Figure 15-2. Various Configurations of a Single TDM Channel581Figure 15-3. Dual TDM Channel Example58215.3 Enabling Connections to TSA583Figure 15-4. Enabling Connections to the TSA58415.4 Serial Interface RAM58415.4.1 One Multiplexed Channel with Static Frames585Figure 15-5. One TDM Channel with Static Frames and Independent Rx and Tx Routes58515.4.2 One Multiplexed Channel with Dynamic Frames585Figure 15-6. One TDM Channel with Shadow RAM for Dynamic Route Change58615.4.3 Programming SIx RAM Entries586Figure 15-7. SIx RAM Entry Fields586Table 15-1. SIx RAM Entry (MCC = 0) (continued)587Figure 15-8. Using the SWTR Feature588Table 15-2. SIx RAM Entry (MCC = 1)58915.4.4 SIx RAM Programming Example590Table 15-3. SIx RAM Entry Descriptions59015.4.5 Static and Dynamic Routing590Figure 15-9. Example: SIx RAM Dynamic Changes, TDMa and b, Same SIx RAM Size59215.5 Serial Interface Registers59315.5.1 SI Global Mode Registers (SIxGMR)593Figure 15-10. SI Global Mode Registers (SIxGMR)593Table 15-4. SIxGMR Field Descriptions59315.5.2 SI Mode Registers (SIxMR)593Figure 15-11. SI Mode Registers (SIxMR)594Table 15-5. SIxMR Field Descriptions (continued)594Figure 15-12. One-Clock Delay from Sync to Data (xFSD = 01)596Figure 15-13. No Delay from Sync to Data (xFSD = 00)596Figure 15-14. Falling Edge (FE) Effect When CE = 1 and xFSD = 01597Figure 15-15. Falling Edge (FE) Effect When CE = 0 and xFSD = 01597Figure 15-16. Falling Edge (FE) Effect When CE = 1 and xFSD = 00598Figure 15-17. Falling Edge (FE) Effect When CE = 0 and xFSD = 0059915.5.3 SIx RAM Shadow Address Registers (SIxRSR)599Figure 15-18. SIx RAM Shadow Address Registers (SIxRSR)600Table 15-6. SIxRSR Field Descriptions60015.5.4 SI Command Register (SIxCMDR)600Figure 15-19. SI Command Register (SIxCMDR)600Table 15-7. SIxCMDR Field Description60115.5.5 SI Status Registers (SIxSTR)601Figure 15-20. SI Status Registers (SIxSTR)601Table 15-8. SIxSTR Field Descriptions60115.6 Serial Interface IDL Interface Support601Figure 15-21. Dual IDL Bus Application Example60215.6.1 IDL Interface Example602Figure 15-22. IDL Terminal Adaptor603Table 15-9. IDL Signal Descriptions603Figure 15-23. IDL Bus Signals60415.6.2 IDL Interface Programming605Table 15-10. SIx RAM Entries for an IDL Interface (continued)60515.7 Serial Interface GCI Support606Table 15-11. GCI Signals607Figure 15-24. GCI Bus Signals60715.7.1 SI GCI Activation/Deactivation Procedure60815.7.2 Serial Interface GCI Programming60815.7.2.1 Normal Mode GCI Programming60815.7.2.2 SCIT Programming609Table 15-12. SIx RAM Entries for a GCI Interface (SCIT Mode)609Chapter 16 CPM Multiplexing611Figure 16-1. CPM Multiplexing Logic (CMX) Block Diagram61216.1 Features61216.2 Enabling Connections to TSA or NMSI613Figure 16-2. Enabling Connections to the TSA61416.3 NMSI Configuration614Figure 16-3. Bank of Clocks615Table 16-1. Clock Source Options61616.4 CMX Registers61716.4.1 CMX UTOPIA Address Register (CMXUAR)617Figure 16-4. CMX UTOPIA Address Register (CMXUAR)617Table 16-2. CMXUAR Field Descriptions (continued)617Figure 16-5. Connection of the Master Address619Figure 16-6. Connection of the Slave Address619Figure 16-7. Multi-PHY Receive Address Multiplexing62116.4.2 CMX SI1 Clock Route Register (CMXSI1CR)622Figure 16-8. CMX SI1 Clock Route Register (CMXSI1CR)622Table 16-3. CMXSI1CR Field Descriptions62216.4.3 CMX SI2 Clock Route Register (CMXSI2CR)622Figure 16-9. CMX SI2 Clock Route Register (CMXSI2CR)623Table 16-4. CMXSI2CR Field Descriptions62316.4.4 CMX FCC Clock Route Register (CMXFCR)623Figure 16-10. CMX FCC Clock Route Register (CMXFCR)624Table 16-5. CMXFCR Field Descriptions (continued)62416.4.5 CMX SCC Clock Route Register (CMXSCR)626Figure 16-11. CMX SCC Clock Route Register (CMXSCR)626Table 16-6. CMXSCR Field Descriptions (continued)62616.4.6 CMX SMC Clock Route Register (CMXSMR)629Figure 16-12. CMX SMC Clock Route Register (CMXSMR)629Table 16-7. CMXSMR Field Descriptions629Chapter 17 Baud-Rate Generators (BRGs)631Figure 17-1. Baud-Rate Generator (BRG) Block Diagram63117.1 BRG Configuration Registers 1-8 (BRGCx)632Figure 17-2. Baud-Rate Generator Configuration Registers (BRGCx)632Table 17-1. BRGCx Field Descriptions633Table 17-2. BRG External Clock Source Options63417.2 Autobaud Operation on a UART63417.3 UART Baud Rate Examples635Table 17-3. Typical Baud Rates for Asynchronous Communication635Chapter 18 Timers637Figure 18-1. Timer Block Diagram63718.1 Features63718.2 General-Purpose Timer Units63818.2.1 Cascaded Mode639Figure 18-2. Timer Cascaded Mode Block Diagram63918.2.2 Timer Global Configuration Registers (TGCR1 and TGCR2)639Figure 18-3. Timer Global Configuration Register 1 (TGCR1)640Table 18-1. TGCR1 Field Descriptions640Figure 18-4. Timer Global Configuration Register 2 (TGCR2)641Table 18-2. TGCR2 Field Descriptions64118.2.3 Timer Mode Registers (TMR1-TMR4)641Figure 18-5. Timer Mode Registers (TMR1-TMR4)642Table 18-3. TMR1-TMR4 Field Descriptions64218.2.4 Timer Reference Registers (TRR1-TRR4)642Figure 18-6. Timer Reference Registers (TRR1-TRR4)64318.2.5 Timer Capture Registers (TCR1-TCR4)643Figure 18-7. Timer Capture Registers (TCR1-TCR4)64318.2.6 Timer Counters (TCN1-TCN4)643Figure 18-8. Timer Counter Registers (TCN1-TCN4)64318.2.7 Timer Event Registers (TER1-TER4)643Figure 18-9. Timer Event Registers (TER1-TER4)644Table 18-4. TER Field Descriptions644Chapter 19 SDMA Channels and IDMA Emulation645Figure 19-1. SDMA Data Paths64519.1 SDMA Bus Arbitration and Bus Transfers646Figure 19-2. SDMA Bus Arbitration (Transaction Steal)64719.2 SDMA Registers64719.2.1 SDMA Status Register (SDSR)647Figure 19-3. SDMA Status Register (SDSR)647Table 19-1. SDSR Field Descriptions64719.2.2 SDMA Mask Register (SDMR)64819.2.3 SDMA Transfer Error Address Registers (PDTEA and LDTEA)64819.2.4 SDMA Transfer Error MSNUM Registers (PDTEM and LDTEM)648Figure 19-4. SDMA Transfer Error MSNUM Registers (PDTEM/LDTEM)648Table 19-2. PDTEM and LDTEM Field Descriptions64819.3 IDMA Emulation64919.4 IDMA Features64919.5 IDMA Transfers65019.5.1 Memory-to-Memory Transfers650Table 19-3. IDMA Transfer Parameters (continued)650Figure 19-5. IDMA Transfer Buffer in the Dual-Port RAM651Figure 19-6. Example IDMA Transfer Buffer States for a Memory-to-Memory Transfer (Size = 128 Bytes)65219.5.1.1 External Request Mode65219.5.1.2 Normal Mode65319.5.1.3 Working with a PCI Bus65319.5.2 Memory to/from Peripheral Transfers65319.5.2.1 Dual-Address Transfers65419.5.2.1.1 Peripheral to Memory65419.5.2.1.2 Memory to Peripheral65419.5.2.2 Single Address (Fly-By) Transfers65419.5.2.2.1 Peripheral-to-Memory Fly-By Transfers65519.5.2.2.2 Memory-to-Peripheral Fly-By Transfers65519.5.3 Controlling 60x Bus Bandwidth65519.5.4 PCI Burst Length and Latency Control65619.6 IDMA Priorities65719.7 IDMA Interface Signals65719.7.1 DREQx and DACKx65719.7.1.1 Level-Sensitive Mode658Figure 19-7. Timing Requirement for DREQ Negation when IMDA Read from a Peripheral65919.7.1.2 Edge-Sensitive Mode65919.7.2 DONEx65919.8 IDMA Operation66019.8.1 Auto Buffer and Buffer Chaining660Figure 19-8. IDMAx Channel’s BD Table66119.8.2 IDMAx Parameter RAM661Table 19-4. IDMAx Parameter RAM (continued)66219.8.2.1 DMA Channel Mode (DCM)663Figure 19-9. DCM Parameters663Table 19-5. DCM Field Descriptions (continued)66419.8.2.2 Data Transfer Types as Programmed in DCM665Table 19-6. IDMA Channel Data Transfer Operation (continued)66519.8.2.3 Programming DTS and STS666Table 19-7. Valid Memory-to-Memory STS/DTS Values666Table 19-8. Valid STS/DTS Values for Peripherals66719.8.3 IDMA Performance66719.8.4 IDMA Event Register (IDSR) and Mask Register (IDMR)668Figure 19-10. IDMA Event/Mask Registers (IDSR/IDMR)668Table 19-9. IDSR/IDMR Field Descriptions66819.8.5 IDMA BDs668Figure 19-11. IDMA BD Structure669Table 19-10. IDMA BD Field Descriptions (continued)66919.9 IDMA Commands67119.9.1 start_idma Command67119.9.2 stop_idma Command67219.10 IDMA Bus Exceptions672Table 19-11. IDMA Bus Exceptions67219.10.1 Externally Recognizing IDMA Operand Transfers67319.11 Programming the Parallel I/O Registers673Table 19-12. Parallel I/O Register Programming-Port C673Table 19-13. Parallel I/O Register Programming-Port A674Table 19-14. Parallel I/O Register Programming-Port D67419.12 IDMA Programming Examples67419.12.1 Peripheral-to-Memory Mode (60x Bus to Local Bus)-IDMA2674Table 19-15. Example: Peripheral-to-Memory Mode-IDMA2 (continued)67419.12.2 Memory-to-Peripheral Fly-By Mode-IDMA3676Table 19-16. Example: Memory-to-Peripheral Fly-By Mode (on 60x)-IDMA3 (continued)67619.12.3 Memory-to-Memory (PCI Bus to 60x Bus)-IDMA1677Table 19-17. Programming Example: Memory-to-Memory (PCI-to-60x)-IDMA1 (continued)677Chapter 20 Serial Communications Controllers (SCCs)679Figure 20-1. SCC Block Diagram68020.1 Features68020.1.1 The General SCC Mode Registers (GSMR1-GSMR4)681Figure 20-2. GSMR_H-General SCC Mode Register (High Order)681Table 20-1. GSMR_H Field Descriptions (continued)681Figure 20-3. GSMR_L-General SCC Mode Register (Low Order)683Table 20-2. GSMR_L Field Descriptions (continued)68320.1.2 Protocol-Specific Mode Register (PSMR)68720.1.3 Data Synchronization Register (DSR)687Figure 20-4. Data Synchronization Register (DSR)68720.1.4 Transmit-on-Demand Register (TODR)688Figure 20-5. Transmit-on-Demand Register (TODR)688Table 20-3. TODR Field Descriptions68820.2 SCC Buffer Descriptors (BDs)688Figure 20-6. SCC Buffer Descriptors (BDs)689Figure 20-7. SCC BD and Buffer Memory Structure69020.3 SCC Parameter RAM691Table 20-4. SCC Parameter RAM Map for All Protocols (continued)69120.3.1 SCC Base Addresses692Table 20-5. Parameter RAM-SCC Base Addresses69320.3.2 Function Code Registers (RFCR and TFCR)693Figure 20-8. Function Code Registers (RFCR and TFCR)693Table 20-6. RFCRx /TFCRx Field Descriptions69320.3.3 Handling SCC Interrupts694Table 20-7. SCCx Event, Mask, and Status Registers69420.3.4 Initializing the SCCs69520.3.5 Controlling SCC Timing with RTS, CTS, and CD69520.3.5.1 Synchronous Protocols695Figure 20-9. Output Delay from RTS Asserted for Synchronous Protocols696Figure 20-10. Output Delay from CTS Asserted for Synchronous Protocols696Figure 20-11. CTS Lost in Synchronous Protocols697Figure 20-12. Using CD to Control Synchronous Protocol Reception69820.3.5.2 Asynchronous Protocols69820.3.6 Digital Phase-Locked Loop (DPLL) Operation699Figure 20-13. DPLL Receiver Block Diagram699Figure 20-14. DPLL Transmitter Block Diagram700Table 20-8. Preamble Requirements (continued)70020.3.6.1 Encoding Data with a DPLL701Figure 20-15. DPLL Encoding Examples701Table 20-9. DPLL Codings70220.3.7 Reconfiguring the SCCs70220.3.7.1 General Reconfiguration Sequence for an SCC Transmitter70220.3.7.2 Reset Sequence for an SCC Transmitter70320.3.7.3 General Reconfiguration Sequence for an SCC Receiver70320.3.7.4 Reset Sequence for an SCC Receiver70320.3.7.5 Switching Protocols70320.3.8 Saving Power703Chapter 21 SCC UART Mode705Figure 21-1. UART Character Format70521.1 Features70621.2 Normal Asynchronous Mode70621.3 Synchronous Mode70721.4 SCC UART Parameter RAM707Table 21-1. UART-Specific SCC Parameter RAM Memory Map (continued)70821.5 Data-Handling Methods: Character- or Message-Based70921.6 Error and Status Reporting70921.7 SCC UART Commands710Table 21-2. Transmit Commands710Table 21-3. Receive Commands71021.8 Multidrop Systems and Address Recognition710Figure 21-2. Two UART Multidrop Configurations71121.9 Receiving Control Characters711Figure 21-3. Control Character Table712Table 21-4. Control Character Table, RCCM, and RCCR Descriptions71221.10 Hunt Mode (Receiver)71321.11 Inserting Control Characters into the Transmit Data Stream713Figure 21-4. Transmit Out-of-Sequence Register (TOSEQ)713Table 21-5. TOSEQ Field Descriptions (continued)71321.12 Sending a Break (Transmitter)71421.13 Sending a Preamble (Transmitter)71421.14 Fractional Stop Bits (Transmitter)714Figure 21-5. Asynchronous UART Transmitter714Table 21-6. DSR Fields Descriptions71521.15 Handling Errors in the SCC UART Controller715Table 21-7. Transmission Errors715Table 21-8. Reception Errors71621.16 UART Mode Register (PSMR)716Figure 21-6. Protocol-Specific Mode Register for UART (PSMR)717Table 21-9. PSMR UART Field Descriptions (continued)71721.17 SCC UART Receive Buffer Descriptor (RxBD)718Figure 21-7. SCC UART Receiving using RxBDs720Figure 21-8. SCC UART Receive Buffer Descriptor (RxBD)721Table 21-10. SCC UART RxBD Status and Control Field Descriptions (continued)72121.18 SCC UART Transmit Buffer Descriptor (TxBD)722Figure 21-9. SCC UART Transmit Buffer Descriptor (TxBD)722Table 21-11. SCC UART TxBD Status and Control Field Descriptions (continued)72221.19 SCC UART Event Register (SCCE) and Mask Register (SCCM)723Figure 21-10. SCC UART Interrupt Event Example724Figure 21-11. SCC UART Event Register (SCCE) and Mask Register (SCCM)724Table 21-12. SCCE/SCCM Field Descriptions for UART Mode72521.20 SCC UART Status Register (SCCS)725Figure 21-12. SCC Status Register for UART Mode (SCCS)725Table 21-13. UART SCCS Field Descriptions72621.21 SCC UART Programming Example72621.22 S-Records Loader Application727Table 21-14. UART Control Characters for S-Records Example (continued)727Chapter 22 SCC HDLC Mode72922.1 SCC HDLC Features72922.2 SCC HDLC Channel Frame Transmission730Figure 22-1. HDLC Framing Structure73022.3 SCC HDLC Channel Frame Reception73022.4 SCC HDLC Parameter RAM731Table 22-1. HDLC-Specific SCC Parameter RAM Memory Map (continued)731Figure 22-2. HDLC Address Recognition73222.5 Programming the SCC in HDLC Mode73222.6 SCC HDLC Commands733Table 22-2. Transmit Commands733Table 22-3. Receive Commands73322.7 Handling Errors in the SCC HDLC Controller733Table 22-4. Transmit Errors734Table 22-5. Receive Errors73422.8 HDLC Mode Register (PSMR)735Figure 22-3. HDLC Mode Register (PSMR)735Table 22-6. PSMR HDLC Field Descriptions (continued)73522.9 SCC HDLC Receive Buffer Descriptor (RxBD)736Figure 22-4. SCC HDLC Receive Buffer Descriptor (RxBD)736Table 22-7. SCC HDLC RxBD Status and Control Field Descriptions (continued)736Figure 22-5. SCC HDLC Receiving Using RxBDs73822.10 SCC HDLC Transmit Buffer Descriptor (TxBD)739Figure 22-6. SCC HDLC Transmit Buffer Descriptor (TxBD)739Table 22-8. SCC HDLC TxBD Status and Control Field Descriptions73922.11 HDLC Event Register (SCCE)/HDLC Mask Register (SCCM)740Figure 22-7. HDLC Event Register (SCCE)/HDLC Mask Register (SCCM)740Table 22-9. SCCE/SCCM Field Descriptions (continued)740Figure 22-8. SCC HDLC Interrupt Event Example74122.12 SCC HDLC Status Register (SCCS)742Figure 22-9. CC HDLC Status Register (SCCS)742Table 22-10. HDLC SCCS Field Descriptions74222.13 SCC HDLC Programming Examples74222.14 SCC HDLC Programming Example #174222.14.1 SCC HDLC Programming Example #274422.15 HDLC Bus Mode with Collision Detection744Figure 22-10. Typical HDLC Bus Multimaster Configuration745Figure 22-11. Typical HDLC Bus Single-Master Configuration74622.15.1 HDLC Bus Features74622.15.2 Accessing the HDLC Bus746Figure 22-12. Detecting an HDLC Bus Collision74722.15.3 Increasing Performance747Figure 22-13. Nonsymmetrical Tx Clock Duty Cycle for Increased Performance74822.15.4 Delayed RTS Mode748Figure 22-14. HDLC Bus Transmission Line Configuration748Figure 22-15. Delayed RTS Mode74922.15.5 Using the Time-Slot Assigner (TSA)749Figure 22-16. HDLC Bus TDM Transmission Line Configuration74922.15.6 HDLC Bus Protocol Programming75022.15.6.1 Programming GSMR and PSMR for the HDLC Bus Protocol75022.15.6.2 HDLC Bus Controller Programming Example750Chapter 23 SCC BISYNC Mode751Figure 23-1. Classes of BISYNC Frames75123.1 Features75223.2 SCC BISYNC Channel Frame Transmission75223.3 SCC BISYNC Channel Frame Reception75323.4 SCC BISYNC Parameter RAM753Table 23-1. SCC BISYNC Parameter RAM Memory Map75323.5 SCC BISYNC Commands754Table 23-2. Transmit Commands755Table 23-3. Receive Commands75523.6 SCC BISYNC Control Character Recognition755Figure 23-2. Control Character Table and RCCM756Table 23-4. Control Character Table and RCCM Field Descriptions75723.7 BISYNC SYNC Register (BSYNC)757Figure 23-3. BISYNC SYNC (BSYNC)757Table 23-5. BSYNC Field Descriptions75823.8 SCC BISYNC DLE Register (BDLE)758Figure 23-4. BISYNC DLE (BDLE)758Table 23-6. BDLE Field Descriptions75923.9 Sending and Receiving the Synchronization Sequence759Table 23-7. Receiver SYNC Pattern Lengths of the DSR75923.10 Handling Errors in the SCC BISYNC759Table 23-8. Transmit Errors760Table 23-9. Receive Errors76023.11 BISYNC Mode Register (PSMR)760Figure 23-5. Protocol-Specific Mode Register for BISYNC (PSMR)760Table 23-10. PSMR Field Descriptions (continued)76123.12 SCC BISYNC Receive BD (RxBD)762Figure 23-6. SCC BISYNC RxBD762Table 23-11. SCC BISYNC RxBD Status and Control Field Descriptions (continued)76223.13 SCC BISYNC Transmit BD (TxBD)764Figure 23-7. SCC BISYNC Transmit BD (TxBD)764Table 23-12. SCC BISYNC TxBD Status and Control Field Descriptions (continued)76423.14 BISYNC Event Register (SCCE)/BISYNC Mask Register (SCCM)765Figure 23-8. BISYNC Event Register (SCCE)/BISYNC Mask Register (SCCM)766Table 23-13. SCCE/SCCM Field Descriptions76623.15 SCC Status Registers (SCCS)766Figure 23-9. SCC Status Registers (SCCS)766Table 23-14. SCCS Field Descriptions76723.16 Programming the SCC BISYNC Controller767Table 23-15. Control Characters76823.17 SCC BISYNC Programming Example768Chapter 24 SCC Transparent Mode77124.1 Features77124.2 SCC Transparent Channel Frame Transmission Process77224.3 SCC Transparent Channel Frame Reception Process77224.4 Achieving Synchronization in Transparent Mode77324.4.1 Synchronization in NMSI Mode77324.4.1.1 In-Line Synchronization Pattern773Table 24-1. Receiver SYNC Pattern Lengths of the DSR77324.4.1.2 External Synchronization Signals77324.4.1.2.1 External Synchronization Example774Figure 24-1. Sending Transparent Frames between PowerQUICC IIs77424.4.1.3 Transparent Mode without Explicit Synchronization77524.4.2 Synchronization and the TSA77524.4.2.1 Inline Synchronization Pattern77524.4.2.2 Inherent Synchronization77524.4.3 End of Frame Detection77524.5 CRC Calculation in Transparent Mode77624.6 SCC Transparent Parameter RAM776Table 24-2. SCC Transparent Parameter RAM Memory Map77624.7 SCC Transparent Commands776Table 24-3. Transmit Commands (continued)776Table 24-4. Receive Commands77724.8 Handling Errors in the Transparent Controller777Table 24-5. Transmit Errors777Table 24-6. Receive Errors77824.9 Transparent Mode and the PSMR77824.10 SCC Transparent Receive Buffer Descriptor (RxBD)778Figure 24-2. SCC Transparent Receive Buffer Descriptor (RxBD)778Table 24-7. SCC Transparent RxBD Status and Control Field Descriptions77924.11 SCC Transparent Transmit Buffer Descriptor (TxBD)780Figure 24-3. SCC Transparent Transmit Buffer Descriptor (TxBD)780Table 24-8. SCC Transparent TxBD Status and Control Field Descriptions (continued) (continued)78024.12 SCC Transparent Event Register (SCCE)/Mask Register (SCCM)781Figure 24-4. SCC Transparent Event Register (SCCE)/Mask Register (SCCM)781Table 24-9. SCCE/SCCM Field Descriptions (continued)78124.13 SCC Status Register in Transparent Mode (SCCS)782Figure 24-5. SCC Status Register in Transparent Mode (SCCS)782Table 24-10. SCCS Field Descriptions78224.14 SCC2 Transparent Programming Example782Chapter 25 SCC Ethernet Mode785Figure 25-1. Ethernet Frame Structure78525.1 Ethernet on the PowerQUICC II785Figure 25-2. Ethernet Block Diagram78625.2 Features78625.3 Connecting the PowerQUICC II to Ethernet788Figure 25-3. Connecting the PowerQUICC II to Ethernet78825.4 SCC Ethernet Channel Frame Transmission78925.5 SCC Ethernet Channel Frame Reception79025.6 The Content-Addressable Memory (CAM) Interface79025.7 SCC Ethernet Parameter RAM791Table 25-1. SCC Ethernet Parameter RAM Memory Map (continued)79125.8 Programming the Ethernet Controller79325.9 SCC Ethernet Commands793Table 25-2. Transmit Commands794Table 25-3. Receive Commands79425.10 SCC Ethernet Address Recognition795Figure 25-4. Ethernet Address Recognition Flowchart79525.11 Hash Table Algorithm79625.12 Interpacket Gap Time79625.13 Handling Collisions79625.14 Internal and External Loopback79725.15 Full-Duplex Ethernet Support79725.16 Handling Errors in the Ethernet Controller797Table 25-4. Transmission Errors (continued)797Table 25-5. Reception Errors79825.17 Ethernet Mode Register (PSMR)798Figure 25-5. Ethernet Mode Register (PSMR)798Table 25-6. PSMR Field Descriptions79925.18 SCC Ethernet Receive BD800Figure 25-6. SCC Ethernet RxBD800Table 25-7. SCC Ethernet RxBD Status and Control Field Descriptions (continued)800Figure 25-7. Ethernet Receiving using RxBDs80225.19 SCC Ethernet Transmit Buffer Descriptor802Figure 25-8. SCC Ethernet TxBD803Table 25-8. SCC Ethernet TxBD Status and Control Field Descriptions (continued)80325.20 SCC Ethernet Event Register (SCCE)/Mask Register (SCCM)804Figure 25-9. SCC Ethernet Event Register (SCCE)/Mask Register (SCCM)804Table 25-9. SCCE/SCCM Field Descriptions (continued)804Figure 25-10. Ethernet Interrupt Events Example80525.21 SCC Ethernet Programming Example806Chapter 26 SCC AppleTalk Mode80926.1 Operating the LocalTalk Bus809Figure 26-1. LocalTalk Frame Format80926.2 Features81026.3 Connecting to AppleTalk810Figure 26-2. Connecting the PowerQUICC II to LocalTalk81126.4 Programming the SCC in AppleTalk Mode81126.4.1 Programming the GSMR81126.4.2 Programming the PSMR81226.4.3 Programming the TODR81226.4.4 SCC AppleTalk Programming Example812Chapter 27 Serial Management Controllers (SMCs)813Figure 27-1. SMC Block Diagram81327.1 Features81427.2 Common SMC Settings and Configurations81427.2.1 SMC Mode Registers (SMCMR1/SMCMR2)814Figure 27-2. SMC Mode Registers (SMCMR1/SMCMR2)815Table 27-1. SMCMR1/SMCMR2 Field Descriptions (continued)81527.2.2 SMC Buffer Descriptor Operation816Figure 27-3. SMC Memory Structure81727.2.3 SMC Parameter RAM817Table 27-2. SMC UART and Transparent Parameter RAM Memory Map (continued)81827.2.3.1 SMC Function Code Registers (RFCR/TFCR)820Figure 27-4. SMC Function Code Registers (RFCR/TFCR)820Table 27-3. RFCR/TFCR Field Descriptions82027.2.4 Disabling SMCs On-the-Fly82027.2.4.1 SMC Transmitter Full Sequence82127.2.4.2 SMC Transmitter Shortcut Sequence82127.2.4.3 SMC Receiver Full Sequence82127.2.4.4 SMC Receiver Shortcut Sequence82127.2.4.5 Switching Protocols82127.2.5 Saving Power82227.2.6 Handling Interrupts in the SMC82227.3 SMC in UART Mode822Figure 27-5. SMC UART Frame Format82227.3.1 Features82327.3.2 SMC UART Channel Transmission Process82327.3.3 SMC UART Channel Reception Process82327.3.4 Programming the SMC UART Controller82327.3.5 SMC UART Transmit and Receive Commands824Table 27-4. Transmit Commands824Table 27-5. Receive Commands82427.3.6 Sending a Break82427.3.7 Sending a Preamble82527.3.8 Handling Errors in the SMC UART Controller825Table 27-6. SMC UART Errors82527.3.9 SMC UART RxBD825Figure 27-6. SMC UART RxBD826Table 27-7. SMC UART RxBD Field Descriptions (continued)826Figure 27-7. RxBD Example82827.3.10 SMC UART TxBD829Figure 27-8. SMC UART TxBD829Table 27-8. SMC UART TxBD Field Descriptions82927.3.11 SMC UART Event Register (SMCE)/Mask Register (SMCM)830Figure 27-9. SMC UART Event Register (SMCE)/Mask Register (SMCM)830Table 27-9. SMCE/SMCM Field Descriptions830Figure 27-10. SMC UART Interrupts Example83127.3.12 SMC UART Controller Programming Example83127.4 SMC in Transparent Mode83227.4.1 Features83227.4.2 SMC Transparent Channel Transmission Process83327.4.3 SMC Transparent Channel Reception Process83327.4.4 Using SMSYN for Synchronization834Figure 27-11. Synchronization with SMSYNx83527.4.5 Using the Time-Slot Assigner (TSA) for Synchronization835Figure 27-12. Synchronization with the TSA83627.4.6 SMC Transparent Commands837Table 27-10. SMC Transparent Transmit Commands837Table 27-11. SMC Transparent Receive Commands83727.4.7 Handling Errors in the SMC Transparent Controller837Table 27-12. SMC Transparent Error Conditions83827.4.8 SMC Transparent RxBD838Figure 27-13. SMC Transparent RxBD838Table 27-13. SMC Transparent RxBD Field Descriptions (continued)83827.4.9 SMC Transparent TxBD839Table 27-14. SMC Transparent TxBD839Table 27-15. SMC Transparent TxBD Field Descriptions83927.4.10 SMC Transparent Event Register (SMCE)/Mask Register (SMCM)840Figure 27-14. SMC Transparent Event Register (SMCE)/Mask Register (SMCM)841Table 27-16. SMCE/SMCM Field Descriptions84127.4.11 SMC Transparent NMSI Programming Example84127.5 The SMC in GCI Mode84227.5.1 SMC GCI Parameter RAM842Table 27-17. SMC GCI Parameter RAM Memory Map84327.5.2 Handling the GCI Monitor Channel84327.5.2.1 SMC GCI Monitor Channel Transmission Process84327.5.2.2 SMC GCI Monitor Channel Reception Process84327.5.3 Handling the GCI C/I Channel84427.5.3.1 SMC GCI C/I Channel Transmission Process84427.5.3.2 SMC GCI C/I Channel Reception Process84427.5.4 SMC GCI Commands844Table 27-18. SMC GCI Commands84427.5.5 SMC GCI Monitor Channel RxBD844Figure 27-15. SMC Monitor Channel RxBD844Table 27-19. SMC Monitor Channel RxBD Field Descriptions84527.5.6 SMC GCI Monitor Channel TxBD845Figure 27-16. SMC Monitor Channel TxBD845Table 27-20. SMC Monitor Channel TxBD Field Descriptions84527.5.7 SMC GCI C/I Channel RxBD845Figure 27-17. SMC C/I Channel RxBD846Table 27-21. SMC C/I Channel RxBD Field Descriptions84627.5.8 SMC GCI C/I Channel TxBD846Figure 27-18. SMC C/I Channel TxBD846Table 27-22. SMC C/I Channel TxBD Field Descriptions84627.5.9 SMC GCI Event Register (SMCE)/Mask Register (SMCM)846Figure 27-19. SMC GCI Event Register (SMCE)/Mask Register (SMCM)847Table 27-23. SMCE/SMCM Field Descriptions847Chapter 28 Multi-Channel Controllers (MCCs)84928.1 MCC Operation Overview85028.1.1 MCC Data Structure Organization850Figure 28-1. BD Structure for One MCC85128.2 Global MCC Parameters852Table 28-1. Global MCC Parameters (continued)85228.3 Channel-Specific Parameters85328.3.1 Channel-Specific HDLC Parameters853Table 28-2. Channel-Specific Parameters for HDLC (continued)85428.3.1.1 Internal Transmitter State (TSTATE)-HDLC Mode855Figure 28-2. TSTATE High Byte855Table 28-3. TSTATE High-Byte Field Descriptions85528.3.1.2 Interrupt Mask (INTMSK)-HDLC Mode856Figure 28-3. INTMSK Mask Bits85628.3.1.3 Channel Mode Register (CHAMR)-HDLC Mode856Figure 28-4. Channel Mode Register (CHAMR)856Table 28-4. CHAMR Field Descriptions (continued)85728.3.1.4 Internal Receiver State (RSTATE)-HDLC Mode858Figure 28-5. Rx Internal State (RSTATE) High Byte858Table 28-5. RSTATE High-Byte Field Descriptions (continued)85828.3.2 Channel-Specific Transparent Parameters859Table 28-6. Channel-Specific Parameters for Transparent Operation (continued)85928.3.2.1 Internal Transmitter State (TSTATE)-Transparent Mode86028.3.2.2 Interrupt Mask (INTMSK)-Transparent Mode86028.3.2.3 Channel Mode Register (CHAMR)-Transparent Mode861Figure 28-6. Channel Mode Register (CHAMR)-Transparent Mode861Table 28-7. CHAMR Field Descriptions-Transparent Mode (continued)86128.3.2.4 Internal Receiver State (RSTATE)-Transparent Mode86228.3.3 MCC Parameters for AAL1 CES Usage86228.3.3.1 Channel-Specific Parameters-AAL1 CES863Table 28-8. CES-Specific Global MCC Parameters86328.3.3.1.1 Interrupt Circular Table Entry and Interrupt Mask (INTMSK)-AAL1 CES863Figure 28-7. INTMSK Mask Bits86328.3.3.2 Channel Mode Register (CHAMR)-AAL1 CES863Figure 28-8. Channel Mode Register (CHAMR)-CES Mode864Table 28-9. CHAMR Field Descriptions-CES Mode (continued)86428.3.4 Channel-Specific SS7 Parameters865Table 28-10. Channel-Specific Parameters for SS7 (continued)86728.3.4.1 Extended Channel Mode Register (ECHAMR)-SS7 Mode869Figure 28-9. Extended Channel Mode Register (ECHAMR)870Table 28-11. ECHAMR Fields Description (continued)87028.3.4.2 Signal Unit Error Monitor (SUERM)-SS7 Mode87128.3.4.2.1 SUERM in Japanese SS7871Table 28-12. Parameter Values for SUERM in Japanese SS787228.3.4.3 SS7 Configuration Register-SS7 Mode872Figure 28-10. SS7 Configuration Register (SS7_OPT)872Table 28-13. SS7 Configuration Register Fields Description87228.3.4.3.1 AERM Implementation87328.3.4.3.2 AERM in Japanese SS787328.3.4.3.3 Disabling SUERM87428.3.4.4 SU Filtering-SS7 Mode87428.3.4.4.1 Comparison Mask874Figure 28-11. Mask1 Format874Figure 28-12. Mask2 Format87428.3.4.4.2 Comparison State Machine87428.3.4.4.3 Filtering Limitations87528.3.4.4.4 Resetting the SU Filtering Mechanism87528.3.4.5 Octet Counting Mode-SS7 Mode87628.4 Channel Extra Parameters876Table 28-14. Channel Extra Parameters87628.5 Superchannels87728.5.1 Superchannel Table877Figure 28-13. Super Channel Table Entry87728.5.2 Superchannels and Receiving87828.5.3 Transparent Slot Synchronization87828.5.4 Superchannelling Programming Examples878Figure 28-14. Transmitter Super Channel Example879Figure 28-15. Receiver Super Channel with Slot Synchronization Example880Figure 28-16. Receiver Super Channel without Slot Synchronization Example88128.6 MCC Configuration Registers (MCCFx)881Figure 28-17. SI MCC Configuration Register (MCCF)881Table 28-15. MCCF Field Descriptions881Table 28-16. Group Channel Assignments88228.7 MCC Commands882Table 28-17. MCC Commands88328.8 MCC Exceptions883Figure 28-18. Interrupt Circular Table88428.8.1 MCC Event Register (MCCE)/Mask Register (MCCM)885Figure 28-19. MCC Event Register (MCCE)/Mask Register (MCCM)885Table 28-18. MCCE/MCCM Register Field Descriptions (continued)88528.8.1.1 Interrupt Circular Table Entry886Figure 28-20. Interrupt Circular Table Entry886Table 28-19. Interrupt Circular Table Entry Field Descriptions (continued)88728.8.1.2 Global Transmitter Underrun (GUN)88828.8.1.2.1 TDM Clock88828.8.1.2.2 Synchronization Pulse88828.8.1.2.3 SIRAM Programming88928.8.1.2.4 MCC Initialization88928.8.1.2.5 CPM Bandwidth88928.8.1.2.6 CPM Priority89028.8.1.2.7 Bus Latency89028.8.1.3 Recovery from GUN Errors890Table 28-20. GUN Error Recovery-.29mm (HiP3) Rev A.1 and B.2 Silicon890Table 28-21. GUN Error Recovery-.29mm (HiP3) Rev B.3 and Subsequent Silicon89128.8.1.4 Global Overrun (GOV)89128.9 MCC Buffer Descriptors89128.9.1 Receive Buffer Descriptor (RxBD)891Figure 28-21. MCC Receive Buffer Descriptor (RxBD)891Table 28-22. RxBD Field Descriptions (continued)89228.9.2 Transmit Buffer Descriptor (TxBD)893Figure 28-22. MCC Transmit Buffer Descriptor (TxBD)894Table 28-23. TxBD Field Descriptions (continued)89428.10 MCC Initialization and Start/Stop Sequence89528.10.1 Stopping and Restarting a Single-Channel89628.10.2 Stopping and Restarting a Superchannel89728.11 MCC Latency and Performance897Chapter 29 Fast Communications Controllers (FCCs)89929.1 Overview899Figure 29-1. FCC Block Diagram901Table 29-1. Internal Clocks to CPM Clock Frequency Ratio90129.2 General FCC Mode Registers (GFMRx)901Figure 29-2. General FCC Mode Register (GFMR)902Table 29-2. GFMR Register Field Descriptions (continued)90229.3 FCC Protocol-Specific Mode Registers (FPSMRx)90529.4 FCC Data Synchronization Registers (FDSRx)906Figure 29-3. FCC Data Synchronization Register (FDSR)90629.5 FCC Transmit-on-Demand Registers (FTODRx)906Figure 29-4. FCC Transmit-on-Demand Register (FTODR)907Table 29-3. FTODR Field Descriptions90729.6 FCC Buffer Descriptors907Figure 29-5. FCC Memory Structure908Figure 29-6. Buffer Descriptor Format90829.7 FCC Parameter RAM909Table 29-4. FCC Parameter RAM Common to All Protocols except ATM (continued)91029.7.1 FCC Function Code Registers (FCRx)911Figure 29-7. Function Code Register (FCRx)911Table 29-5. FCRx Field Descriptions91229.8 Interrupts from the FCCs91229.8.1 FCC Event Registers (FCCEx)91229.8.2 FCC Mask Registers (FCCMx)91329.8.3 FCC Status Registers (FCCSx)91329.9 FCC Initialization91329.10 FCC Interrupt Handling91429.10.1 FCC Transmit Errors91429.10.1.1 Re-Initialization Procedure91429.10.1.2 Recovery Sequence91529.10.1.3 Adjusting Transmitter BD Handling91529.11 FCC Timing Control915Figure 29-8. Output Delay from RTS Asserted916Figure 29-9. Output Delay from CTS Asserted916Figure 29-10. CTS Lost917Figure 29-11. Using CD to Control Reception91829.12 Disabling the FCCs On-the-Fly91829.12.1 FCC Transmitter Full Sequence91929.12.2 FCC Transmitter Shortcut Sequence91929.12.3 FCC Receiver Full Sequence91929.12.4 FCC Receiver Shortcut Sequence91929.12.5 Switching Protocols92029.13 Saving Power920Chapter 30 ATM Controller and AAL0, AAL1, and AAL592130.1 Features92130.2 ATM Controller Overview92430.2.1 Transmitter Overview92530.2.1.1 AAL5 Transmitter Overview92530.2.1.2 AAL1 Transmitter Overview92530.2.1.2.1 AAL1 CES Transmitter Overview92630.2.1.3 AAL0 Transmitter Overview92630.2.1.4 AAL2 Transmitter Overview92630.2.1.5 Transmit External Rate and Internal Rate Modes92630.2.2 Receiver Overview92630.2.2.1 AAL5 Receiver Overview92730.2.2.2 AAL1 Receiver Overview92730.2.2.2.1 AAL1 CES Receiver Overview92830.2.2.3 AAL0 Receiver Overview92830.2.2.4 AAL2 Receiver Overview92830.2.3 Performance Monitoring92830.2.4 ABR Flow Control92830.3 ATM Pace Control (APC) Unit92830.3.1 APC Modes and ATM Service Types928Table 30-1. ATM Service Types92930.3.2 APC Unit Scheduling Mechanism929Figure 30-1. APC Scheduling Table Mechanism92930.3.3 Determining the Scheduling Table Size93030.3.3.1 Determining the Cells Per Slot (CPS) in a Scheduling Table93030.3.3.2 Determining the Number of Slots in a Scheduling Table93030.3.4 Determining the Time-Slot Scheduling Rate of a Channel93130.3.5 ATM Traffic Type93130.3.5.1 Peak Cell Rate Traffic Type93130.3.5.2 Determining the PCR Traffic Type Parameters93130.3.5.3 Peak and Sustain Traffic Type (VBR)932Figure 30-2. VBR Pacing Using the GCRA (Leaky Bucket Algorithm)93230.3.5.3.1 Example for Using VBR Traffic Parameters93230.3.5.3.2 Handling the Cell Loss Priority (CLP)-VBR Type 1 and 293330.3.5.4 Peak and Minimum Cell Rate Traffic Type (UBR+)93330.3.6 Determining the Priority of an ATM Channel93330.4 VCI/VPI Address Lookup Mechanism93330.4.1 External CAM Lookup934Figure 30-3. External CAM Data Input Fields934Figure 30-4. External CAM Output Fields934Table 30-2. External CAM Input and Output Field Descriptions93430.4.2 Address Compression935Figure 30-5. Address Compression Mechanism935Table 30-3. Field Descriptions for Address Compression93630.4.2.1 VP-Level Address Compression Table (VPLT)936Figure 30-6. General VCOFFSET Formula for Contiguous VCLTs936Table 30-4. VCOFFSET Calculation Examples for Contiguous VCLTs936Table 30-5. VP-Level Table Entry Address Calculation Example937Figure 30-7. VP Pointer Address Compression93730.4.2.2 VC-Level Address Compression Tables (VCLTs)937Table 30-6. VC-Level Table Entry Address Calculation Example938Figure 30-8. VC Pointer Address Compression93830.4.3 Misinserted Cells93830.4.4 Receive Raw Cell Queue938Figure 30-9. ATM Address Recognition Flowchart93930.5 Available Bit Rate (ABR) Flow Control93930.5.1 The ABR Model940Figure 30-10. PowerQUICC II’s ABR Basic Model94030.5.1.1 ABR Flow Control Source End-System Behavior94030.5.1.2 ABR Flow Control Destination End-System Behavior94130.5.1.3 ABR Flowcharts941Figure 30-11. ABR Transmit Flow942Figure 30-12. ABR Transmit Flow (Continued)943Figure 30-13. ABR Transmit Flow (Continued)944Figure 30-14. ABR Receive Flow94530.5.2 RM Cell Structure945Table 30-7. Fields and their Positions in RM Cells94630.5.2.1 RM Cell Rate Representation946Figure 30-15. Rate Format for RM Cells946Figure 30-16. Rate Formula for RM Cells94630.5.3 ABR Flow Control Setup94730.6 OAM Support94730.6.1 ATM-Layer OAM Definitions947Table 30-8. Pre-Assigned Header Values at the UNI947Table 30-9. Pre-Assigned Header Values at the NNI94830.6.2 Virtual Path (F4) Flow Mechanism94830.6.3 Virtual Channel (F5) Flow Mechanism94830.6.4 Receiving OAM F4 or F5 Cells94830.6.5 Transmitting OAM F4 or F5 Cells94830.6.6 Performance Monitoring949Figure 30-17. Performance Monitoring Cell Structure (FMCs and BRCs)949Table 30-10. Performance Monitoring Cell Fields95030.6.6.1 Running a Performance Block Test95030.6.6.2 PM Block Monitoring95030.6.6.3 PM Block Generation951Figure 30-18. FMC, BRC Insertion95130.6.6.4 BRC Performance Calculations95230.7 User-Defined Cells (UDC)952Figure 30-19. Format of User-Defined Cells95230.7.1 UDC Extended Address Mode (UEAD)952Figure 30-20. External CAM Address in UDC Extended Address Mode95330.8 ATM Layer Statistics95330.9 ATM-to-TDM Interworking95330.9.1 Automatic Data Forwarding953Figure 30-21. ATM-to-TDM Interworking95430.9.2 Using Interrupts in Automatic Data Forwarding95430.9.3 Timing Issues95530.9.4 Clock Synchronization (SRTS and Adaptive FIFOs)95530.9.5 Mapping TDM Time Slots to VCs95530.9.6 CAS Support95530.9.7 Trunk Condition95630.9.8 ATM-to-ATM Data Forwarding95630.10 ATM Memory Structure95630.10.1 Parameter RAM956Table 30-11. ATM Parameter RAM Map (continued)95630.10.1.1 Determining UEAD_OFFSET (UEAD Mode Only)959Table 30-12. UEAD_OFFSETs for Extended Addresses in the UDC Extra Header95930.10.1.2 VCI Filtering (VCIF)959Figure 30-22. VCI Filtering Enable Bits959Table 30-13. VCI Filtering Enable Field Descriptions95930.10.1.3 Global Mode Entry (GMODE)960Figure 30-23. Global Mode Entry (GMODE)960Table 30-14. GMODE Field Descriptions (continued)96030.10.2 Connection Tables (RCT, TCT, and TCTE)961Table 30-15. Receive and Transmit Connection Table Sizes96130.10.2.1 ATM Channel Code961Figure 30-24. Example of a 1024-Entry Receive Connection Table96230.10.2.2 Receive Connection Table (RCT)962Figure 30-25. Receive Connection Table (RCT) Entry963Table 30-16. RCT Field Descriptions (continued)96430.10.2.2.1 AAL5 Protocol-Specific RCT965Figure 30-26. AAL5 Protocol-Specific RCT966Table 30-17. RCT Settings (AAL5 Protocol-Specific)96630.10.2.2.2 AAL5-ABR Protocol-Specific RCT966Figure 30-27. AAL5-ABR Protocol-Specific RCT967Table 30-18. ABR Protocol-Specific RCT Field Descriptions96730.10.2.2.3 AAL1 Protocol-Specific RCT967Figure 30-28. AAL1 Protocol-Specific RCT967Table 30-19. AAL1 Protocol-Specific RCT Field Descriptions (continued)96830.10.2.2.4 AAL0 Protocol-Specific RCT969Figure 30-29. AAL0 Protocol-Specific RCT969Table 30-20. AAL0-Specific RCT Field Descriptions (continued)96930.10.2.2.5 AAL1 CES Protocol-Specific RCT97030.10.2.2.6 AAL2 Protocol-Specific RCT97030.10.2.3 Transmit Connection Table (TCT)970Figure 30-30. Transmit Connection Table (TCT) Entry970Table 30-21. TCT Field Descriptions (continued)97330.10.2.3.1 AAL5 Protocol-Specific TCT975Figure 30-31. AAL5 Protocol-Specific TCT975Table 30-22. AAL5-Specific TCT Field Descriptions97530.10.2.3.2 AAL1 Protocol-Specific TCT975Figure 30-32. AAL1 Protocol-Specific TCT976Table 30-23. AAL1 Protocol-Specific TCT Field Descriptions97630.10.2.3.3 AAL0 Protocol-Specific TCT977Figure 30-33. AAL0 Protocol-Specific TCT977Table 30-24. AAL0-Specific TCT Field Descriptions97730.10.2.3.4 AAL1 CES Protocol-Specific TCT97730.10.2.3.5 AAL2 Protocol-Specific TCT97730.10.2.3.6 VBR Protocol-Specific TCTE977Figure 30-34. Transmit Connection Table Extension (TCTE)-VBR Protocol-Specific978Table 30-25. VBR-Specific TCTE Field Descriptions97830.10.2.3.7 UBR+ Protocol-Specific TCTE978Figure 30-35. UBR+ Protocol-Specific TCTE979Table 30-26. UBR+ Protocol-Specific TCTE Field Descriptions97930.10.2.3.8 ABR Protocol-Specific TCTE979Figure 30-36. ABR Protocol-Specific TCTE980Table 30-27. ABR-Specific TCTE Field Descriptions (continued)98030.10.3 OAM Performance Monitoring Tables982Figure 30-37. OAM Performance Monitoring Table982Table 30-28. OAM-Performance Monitoring Table Field Descriptions98330.10.4 APC Data Structure983Figure 30-38. ATM Pace Control Data Structure98430.10.4.1 APC Parameter Tables984Table 30-29. APC Parameter Table (continued)98430.10.4.2 APC Priority Table985Table 30-30. APC Priority Table Entry98530.10.4.3 APC Scheduling Tables985Figure 30-39. The APC Scheduling Table Structure985Figure 30-40. Control Slot986Table 30-31. Control Slot Field Description98630.10.5 ATM Controller Buffer Descriptors (BDs)98630.10.5.1 Transmit Buffer Operation986Figure 30-41. Transmit Buffers and BD Table Example98730.10.5.2 Receive Buffer Operation98730.10.5.2.1 Static Buffer Allocation987Figure 30-42. Receive Static Buffer Allocation Example98830.10.5.2.2 Global Buffer Allocation988Figure 30-43. Receive Global Buffer Allocation Example98930.10.5.2.3 Free Buffer Pools989Figure 30-44. Free Buffer Pool Structure989Figure 30-45. Free Buffer Pool Entry990Table 30-32. Free Buffer Pool Entry Field Descriptions99030.10.5.2.4 Free Buffer Pool Parameter Tables990Table 30-33. Free Buffer Pool Parameter Table (continued)99030.10.5.3 ATM Controller Buffers991Table 30-34. Receive and Transmit Buffers99130.10.5.4 AAL5 RxBD991Figure 30-46. AAL5 RxBD991Table 30-35. AAL5 RxBD Field Descriptions (continued)99230.10.5.5 AAL1 RxBD993Figure 30-47. AAL1 RxBD993Table 30-36. AAL1 RxBD Field Descriptions99430.10.5.6 AAL0 RxBD994Figure 30-48. AAL0 RxBD994Table 30-37. AAL0 RxBD Field Descriptions99530.10.5.7 AAL1 CES RxBD99530.10.5.8 AAL2 RxBD99530.10.5.9 AAL5, AAL1 CES User-Defined Cell-RxBD Extension996Figure 30-49. User-Defined Cell-RxBD Extension99630.10.5.10 AAL5 TxBDs996Figure 30-50. AAL5 TxBD996Table 30-38. AAL5 TxBD Field Descriptions99730.10.5.11 AAL1 TxBDs997Figure 30-51. AAL1 TxBD998Table 30-39. AAL1 TxBD Field Descriptions99830.10.5.12 AAL0 TxBDs998Figure 30-52. AAL0 TxBDs999Table 30-40. AAL0 TxBD Field Descriptions99930.10.5.13 AAL1 CES TxBDs99930.10.5.14 AAL2 TxBDs100030.10.5.15 AAL5, AAL1 User-Defined Cell-TxBD Extension1000Figure 30-53. User-Defined Cell-TxBD Extension100030.10.6 AAL1 Sequence Number (SN) Protection Table1000Figure 30-54. AAL1 Sequence Number (SN) Protection Table100030.10.7 UNI Statistics Table1001Table 30-41. UNI Statistics Table100130.11 ATM Exceptions100130.11.1 Interrupt Queues1001Figure 30-55. Interrupt Queue Structure100230.11.2 Interrupt Queue Entry1002Figure 30-56. Interrupt Queue Entry1002Table 30-42. Interrupt Queue Entry Field Description100330.11.3 Interrupt Queue Parameter Tables1003Table 30-43. Interrupt Queue Parameter Table (continued)100330.12 The UTOPIA Interface100430.12.1 UTOPIA Interface Master Mode1004Figure 30-57. UTOPIA Master Mode Signals1004Table 30-44. UTOPIA Master Mode Signal Descriptions (continued)100430.12.1.1 UTOPIA Master Multiple PHY Operation100530.12.2 UTOPIA Interface Slave Mode1006Figure 30-58. UTOPIA Slave Mode Signals1006Table 30-45. UTOPIA Slave Mode Signals (continued)100630.12.2.1 UTOPIA Slave Multiple PHY Operation100730.12.2.2 UTOPIA Clocking Modes100730.12.2.3 UTOPIA Loop-Back Modes1007Table 30-46. UTOPIA Loop-Back Modes100730.13 ATM Registers100730.13.1 General FCC Mode Register (GFMR)100830.13.2 FCC Protocol-Specific Mode Register (FPSMR)1008Figure 30-59. FCC ATM Mode Register (FPSMR)1008Table 30-47. FCC ATM Mode Register (FPSMR) (continued)100830.13.3 ATM Event Register (FCCE)/Mask Register (FCCM)1010Figure 30-60. ATM Event Register (FCCE)/FCC Mask Register (FCCM)1011Table 30-48. FCCE/FCCM Field Descriptions101130.13.4 FCC Transmit Internal Rate Registers (FTIRRx) (FCC1 and FCC2 Only)1011Figure 30-61. FCC Transmit Internal Rate Registers (FTIRRx)1012Table 30-49. FTIRRx Field Descriptions1012Figure 30-62. FCC Transmit Internal Rate Clocking101230.14 ATM Transmit Command1013Figure 30-63. COMM_INFO Field1013Table 30-50. COMM_INFO Field Descriptions101430.15 SRTS Generation and Clock Recovery Using External Logic1014Figure 30-64. AAL1 CES SRTS Generation Using External Logic1014Figure 30-65. AAL1 CES SRTS Clock Recovery Using External Logic101530.16 Configuring the ATM Controller for Maximum CPM Performance101530.16.1 Using Transmit Internal Rate Mode101530.16.2 APC Configuration101630.16.3 Buffer Configuration1016Chapter 31 ATM AAL1 Circuit Emulation Service101731.1 Features101731.2 AAL1 CES Transmitter Overview101931.2.1 Data Path1019Figure 31-1. AAL1 Transmit Cell Format1019Figure 31-2. AAL1 SDT Cells Type101931.2.2 Signaling Path1019Figure 31-3. AAL1 Framing Formats102031.3 AAL1 CES Receiver Overview1020Figure 31-4. AAL1 CES Receiver Data flow102231.4 Interworking Functions102231.4.1 Automatic Data Forwarding102231.4.1.1 ATM-to-TDM1023Figure 31-5. ATM-to-TDM Interworking102331.4.1.2 TDM-to-ATM1023Figure 31-6. TDM-to-ATM Interworking102431.4.2 Timing Issues102431.4.3 Clock Synchronization (SRTS, Adaptive FIFO)102531.4.4 Mapping TDM Time Slots to VCs102531.4.5 Trunk Condition102631.4.6 Channel Associated Signaling (CAS) Support1026Figure 31-7. Mapping CAS Data on a Serial Interface1026Figure 31-8. Internal CAS Block Formats102731.4.7 Mapping VC Signaling to CAS Blocks1027Figure 31-9. Mapping CAS Entry102831.4.7.1 CAS Routing Table1028Figure 31-10. AAL1 CES CAS Routing Table (CRT)1028Figure 31-11. AAL1 CES CAS Routing Table Entry1028Table 31-1. CAS Routing Table Entry Field Descriptions102931.4.7.2 TDM-to-ATM CAS Support1029Figure 31-12. CAS Flow TDM-to-ATM102931.4.7.2.1 CAS Mapping Using the Core (Optional)103031.4.7.3 ATM-to-TDM CAS Support1030Figure 31-13. CAS Flow ATM-to-TDM103031.4.7.3.1 CAS Updates Using the Core (Optional)103131.5 ATM-to-TDM Adaptive Slip Control1031Figure 31-14. Data Structure for ATM-to-TDM Adaptive Slip Control103231.5.1 CES Adaptive Threshold Tables1032Figure 31-15. CES Adaptive Threshold Table1033Table 31-2. CES Adaptive Threshold Table Field Descriptions1033Figure 31-16. Pre-Underrun Sequence1034Figure 31-17. Pre-Overrun Sequence103531.6 3-Step-SN Algorithm103631.6.1 The Three States of the Algorithm1036Figure 31-18. Recoverable Sync Fail sequence options1036Figure 31-19. 3-Step-SN-Algorithm103731.7 Pointer Verification Mechanism1037Figure 31-20. Pointer verification mechanism103831.8 AAL-1 Memory Structure103831.8.1 AAL1 CES Parameter RAM1038Table 31-3. AAL1 CES Field Descriptions (continued)1038Table 31-4. AAL1 CES Parameters104131.9 Receive and Transmit Connection Tables (RCT, TCT)104131.9.1 Receive Connection Table (RCT)1042Figure 31-21. Receive Connection Table (RCT) Entry1042Table 31-5. RCT Field Descriptions (continued)104331.9.1.1 AAL1 CES Protocol-Specific RCT1044Figure 31-22. AAL1 CES Protocol-Specific RCT1044Table 31-6. AAL1 CES Protocol-Specific RCT Field Descriptions (continued)104531.9.2 Transmit Connection Table (TCT)1047Figure 31-23. Transmit Connection Table (TCT) Entry1047Table 31-7. TCT Field Descriptions (continued)104831.9.2.1 AAL1 CES Protocol-Specific TCT1050Figure 31-24. AAL1 CES Protocol-Specific TCT1050Table 31-8. AAL1 CES Protocol-Specific TCT Field Descriptions (continued)105031.10 Outgoing CAS Status Register (OCASSR)1051Figure 31-25. Outgoing CAS Status Register (OCASSR)1051Table 31-9. OCASSR Field Descriptions105131.11 Buffer Descriptors105231.11.1 Transmit Buffer Operation1052Figure 31-26. Transmit Buffers and BD Table Example105331.11.2 Receive Buffer Operation1053Figure 31-27. Receive Buffers and BD Table Example105431.12 ATM Controller Buffers1054Table 31-10. Receive and Transmit Buffers105431.12.1 AAL1 CES RxBD1054Figure 31-28. AAL1 CES RxBD1055Table 31-11. AAL1 CES RxBD Field Descriptions105531.12.2 AAL1 CES TxBDs1056Figure 31-29. AAL1 CES TxBD1056Table 31-12. AAL1 CES TxBD Field Descriptions (continued)105631.13 AAL1 CES Exceptions105731.13.1 AAL1 CES Interrupt Queue Entry1057Figure 31-30. AAL1 CES Interrupt Queue Entry1057Table 31-13. AAL1 CES Interrupt Queue Entry Field Descriptions (continued)105731.14 AAL1 Sequence Number (SN) Protection Table1058Figure 31-31. AAL1 Sequence Number (SN) Protection Table105931.15 Internal AAL1 CES Statistics Tables1059Table 31-14. AAL1 CES DPR Statistics Table105931.16 External AAL1 CES Statistics Tables1060Table 31-15. AAL1 CES External Statistics Table106031.17 CES-Specific Additions to the MCC106031.18 Application Considerations1060Figure 31-32. TDM-to-ATM Timing Issue1061Chapter 32 ATM AAL2106332.1 Introduction1063Figure 32-1. AAL2 Data Units1063Figure 32-2. AAL2 Sublayer Structure1064Figure 32-3. AAL2 Switching Example106532.2 Features106532.3 AAL2 Transmitter106732.3.1 Transmitter Overview106732.3.2 Transmit Priority Mechanism106732.3.2.1 Round Robin Priority1068Figure 32-4. Round Robin Priority106832.3.2.2 Fixed Priority1068Figure 32-5. Fixed Priority Mode106932.3.3 Partial Fill Mode (PFM)106932.3.4 No STF Mode107032.3.5 AAL2 Tx Data Structures107032.3.5.1 AAL2 Protocol-Specific TCT1071Figure 32-6. AAL2 Protocol-Specific Transmit Connection Table (TCT)1071Table 32-1. AAL2 Protocol-Specific Transmit Connection Table (TCT) Field Descriptions (continued)107332.3.5.2 CPS Tx Queue Descriptor1075Figure 32-7. CPS Tx Queue Descriptor (TxQD)1076Table 32-2. CPS TxQD Field Descriptions (continued)107632.3.5.3 CPS Buffer Structure1077Figure 32-8. Buffer Structure Example for CPS Packets1077Figure 32-9. CPS TxBD1078Table 32-3. CPS TxBD Field Descriptions1078Figure 32-10. CPS Packet Header Format107932.3.5.4 SSSAR Tx Queue Descriptor1079Figure 32-11. SSSAR Tx Queue Descriptor1079Table 32-4. SSSAR TxQD Field Descriptions108032.3.5.5 SSSAR Transmit Buffer Descriptor1081Figure 32-12. SSSAR TxBD1081Table 32-5. SSSAR TxBD Field Descriptions (continued)108132.4 AAL2 Receiver108232.4.1 Receiver Overview108232.4.2 Mapping of PHY | VP | VC | CID1083Figure 32-13. CID Mapping Process108432.4.3 AAL2 Switching1084Figure 32-14. AAL2 Switching108532.4.4 AAL2 RX Data Structures108532.4.4.1 AAL2 Protocol-Specific RCT1086Figure 32-15. AAL2 Protocol-Specific Receive Connection Table (RCT)1086Table 32-6. AAL2 Protocol-Specific RCT Field Descriptions108732.4.4.2 CID Mapping Tables and RxQDs108932.4.4.3 CPS Rx Queue Descriptors1089Figure 32-16. CPS Rx Queue Descriptor1089Table 32-7. CPS RxQD Field Descriptions109032.4.4.4 CPS Receive Buffer Descriptor (RxBD)1090Figure 32-17. CPS Receive Buffer Descriptor1090Table 32-8. CPS RxBD Field Descriptions109132.4.4.5 CPS Switch Rx Queue Descriptor1091Figure 32-18. CPS Switch Rx Queue Descriptor1092Table 32-9. CPS Switch RxQD Field Descriptions109232.4.4.6 SWITCH Receive/Transmit Buffer Descriptor (RxBD)1092Figure 32-19. Switch Receive/Transmit Buffer Descriptor1092Table 32-10. Switch RxBD Field Descriptions109332.4.4.7 SSSAR Rx Queue Descriptor1093Figure 32-20. SSSAR Rx Queue Descriptor1094Table 32-11. SSSAR RxQD Field Descriptions (continued)109432.4.4.8 SSSAR Receive Buffer Descriptor1095Figure 32-21. SSSAR Receive Buffer Descriptor1095Table 32-12. SSSAR RxBD Field Descriptions109632.5 AAL2 Parameter RAM1097Table 32-13. AAL2 Parameter RAM (continued)109732.6 User-Defined Cells in AAL21100Figure 32-22. UDC Header Table110032.7 AAL2 Exceptions1100Figure 32-23. AAL2 Interrupt Queue Entry CID ¹ 01101Table 32-14. AAL2 Interrupt Queue Entry CID ¹ 0 Field Descriptions1101Figure 32-24. AAL2 Interrupt Queue Entry CID = 01101Table 32-15. AAL2 Interrupt Queue Entry CID = 0 Field Descriptions1102Chapter 33 Inverse Multiplexing for ATM (IMA)110333.1 Features1103Table 33-1. IMA Sublayer in Layer Reference Model110433.1.1 References110533.1.2 IMA Versions Supported110533.1.3 PowerQUICC II Versions Supported110533.1.4 PHY-Layer Devices Supported110533.1.5 ATM Features Not Supported110633.1.6 Additional Impact on PowerQUICC II Features110633.2 IMA Protocol Overview110633.2.1 Introduction1106Figure 33-1. Basic Concept of IMA110733.2.2 IMA Frame Overview1107Figure 33-2. Illustration of IMA Frames1108Figure 33-3. IMA Microcode Overview110833.2.3 Overview of IMA Cells110933.2.3.1 IMA Control Cells1109Figure 33-4. IMA Frame and ICP Cell Formats111233.2.3.2 IMA Filler Cells111233.3 IMA Microcode Architecture111233.3.1 IMA Function Partitioning111233.3.1.1 User Plane Functions Performed by Microcode111333.3.1.2 Plane Management Functions Performed by Microcode111333.3.2 Transmit Architecture1113Figure 33-5. IMA Transmit Task Interaction111433.3.2.1 TRL Operation111433.3.2.1.1 TRL Service Latency111533.3.2.2 Non-TRL Operation111533.3.2.3 Transmit Queue Operation Examples (ITC mode)1116Figure 33-6. Transmit Queue Normal Operating State1116Figure 33-7. Transmit Queue Behavior: Link Clock Rate Same as TRL1116Figure 33-8. Transmit Queue Behavior: Link Clock Rate Slower than TRL1117Figure 33-9. Transmit Queue Behavior: Link Clock Rate Faster than TRL, Worst-Case Event Sequence111833.3.2.4 Differences in CTC Operation111833.3.3 Receive Architecture1119Figure 33-10. IMA Receive Task Interaction111933.3.3.1 Cell Reception Task1119Figure 33-11. IMA Microcode: Receive Process112333.3.3.2 Cell Processing Activation Function112433.3.3.2.1 On-Demand Cell Processing112433.3.3.2.2 IDCR-Regulated Cell Processing112533.3.3.3 Cell Processing Task112633.4 IMA Programming Model112633.4.1 Data Structure Organization1126Figure 33-12. IMA Root Table Data Structures112733.4.2 IMA FCC Programming112833.4.2.1 FCC Registers112833.4.2.1.1 FPSMRx112833.4.2.1.2 FTIRRx112833.4.2.2 FCC Parameters112833.4.2.2.1 TCELL_TMP_BASE and RCELL_TMP_BASE112833.4.2.2.2 GMODE112833.4.2.3 IMA-Specific FCC Parameters1128Table 33-2. FCC Parameter RAM Additions112833.4.3 IMA Root Table1129Table 33-3. IMA Root Table (continued)112933.4.3.1 IMA Control (IMACNTL)1131Figure 33-13. IMA Control (IMACNTL)1131Table 33-4. IMACNTL Field Descriptions113133.4.4 IMA Group Tables113133.4.4.1 IMA Group Transmit Table Entry1132Table 33-5. IMA Group Transmit Table Entry (continued)113233.4.4.1.1 IMA Group Transmit Control (IGTCNTL)1133Figure 33-14. IMA Group Transmit Control (IGTCNTL)1133Table 33-6. IGTCNTL Field Descriptions113333.4.4.1.2 IMA Group Transmit State (IGTSTATE)1133Figure 33-15. IMA Group Transmit State (IGTSTATE)1134Table 33-7. IGTSTATE Field Descriptions113433.4.4.1.3 Transmit Group Order Table1134Figure 33-16. Transmit Group Order Table Entry1134Table 33-8. Transmit Group Order Table Entry Field Descriptions113533.4.4.1.4 ICP Cell Templates1135Table 33-9. ICP Cell Template (continued)113533.4.4.2 IMA Group Receive Table Entry1138Table 33-10. IMA Group Receive Table Entry (continued)113833.4.4.2.1 IMA Group Receive Control (IGRCNTL)1140Figure 33-17. IMA Group Receive Control (IGRCNTL)1140Table 33-11. IGRCNTL Field Descriptions114133.4.4.2.2 IMA Group Receive State (IGRSTATE)1141Figure 33-18. IMA Group Receive State (IGRSTATE)1141Table 33-12. IGRSTATE Field Descriptions114133.4.4.2.3 IMA Receive Group Frame Size1141Figure 33-19. IMA Receive Group Frame Size (IGRSTATE)1142Table 33-13. IRGFS Field Descriptions114233.4.4.2.4 Receive Group Order Tables1142Figure 33-20. Receive Group Order Table Entry1142Table 33-14. Receive Group Order Table Entry Field Descriptions114333.4.5 IMA Link Tables114333.4.5.1 IMA Link Transmit Table Entry1143Table 33-15. IMA Link Transmit Table Entry (continued)114333.4.5.1.1 IMA Link Transmit Control (ILTCNTL)1144Figure 33-21. IMA Link Transmit Control (ILTCNTL)1144Table 33-16. ILTCNTL Field Descriptions (continued)114433.4.5.1.2 IMA Link Transmit State (ILTSTATE)1145Figure 33-22. IMA Link Transmit State (ILTSTATE)1145Table 33-17. ILTSTATE Field Descriptions114533.4.5.1.3 IMA Transmit Interrupt Status (ITINTSTAT)1145Figure 33-23. IMA Transmit Interrupt Status (ITINTSTAT)1145Table 33-18. ITINTSTAT Field Descriptions114633.4.5.2 IMA Link Receive Table Entry1146Table 33-19. IMA Link Receive Table Entry (continued)114633.4.5.2.1 IMA Link Receive Control (ILRCNTL)1148Figure 33-24. IMA Link Receive Control (ILRCNTL)1148Table 33-20. ILRCNTL Field Descriptions114833.4.5.2.2 IMA Link Receive State (ILRSTATE)1149Figure 33-25. IMA Link Receive State (ILRSTATE)1149Table 33-21. ILRSTATE Field Descriptions114933.4.5.3 IMA Link Receive Statistics Table1150Table 33-22. IMA Link Receive Statistics Table Entry115033.4.6 Structures in External Memory115033.4.6.1 Transmit Queues1150Figure 33-26. IMA Transmit Queue115033.4.6.2 Delay Compensation Buffers (DCB)1151Figure 33-27. Cell Buffer in Delay Compensation Buffer1151Figure 33-28. IMA Delay Compensation Buffer115133.4.7 IMA Exceptions115133.4.7.1 IMA Interrupt Queue Entry1152Figure 33-29. IMA Interrupt Queue Entry1152Table 33-23. IMA Interrupt Queue Entry Field Descriptions115333.4.7.2 ICP Cell Reception Exceptions115333.4.8 IDCR Timer Programming115433.4.8.1 IDCR Master Clock115433.4.8.2 IDCR FCC Parameter Shadow115433.4.8.2.1 PowerQUICC II Features Unavailable if IDCR is Used1154Table 33-24. Unavailable Features when DREQx used as IDCR Master Clock115533.4.8.2.2 Programming the FCC Parameter Shadow115533.4.8.2.3 On-the-Fly Changes of FCC Parameters115533.4.8.3 IDCR_Init Command115633.4.8.4 IDCR Root Parameters1156Table 33-25. IDCR IMA Root Parameters115633.4.8.5 IDCR Table Entry1156Table 33-26. IDCR Table Entry115633.4.8.6 IDCR Counter Algorithm115733.4.8.7 IDCR Events1157Figure 33-30. IDMA Event/Mask Registers in IDCR Mode (IDSR/IDMR)1157Table 33-27. IDSR/IDMR Field Descriptions (continued)115733.4.9 APC Programming for IMA1158Table 33-28. Examples of APC Programming for IMA115833.4.9.1 Programming for CBR, UBR, VBR, and UBR+115933.4.9.2 Programming for ABR115933.4.10 Changing IMA Version1160Figure 33-31. COMM_INFO Field1160Table 33-29. COMM_INFO Field Descriptions116033.5 IMA Software Interface and Requirements116033.5.1 Software Model1160Figure 33-32. IMA Microcode/Software Interaction116133.5.2 Initialization Procedure116133.5.3 Software Responsibilities116133.5.3.1 System Definition116133.5.3.2 General Operation116233.5.3.3 Receive Link State Machine Control116233.5.3.4 Receive Group State Machine Control116233.5.3.5 Transmit Link State Machine Control116233.5.3.6 Transmit Group State Machine Control116333.5.3.7 Group Symmetry Control116333.5.3.8 ICP End-to-End Channel Transmission116333.5.3.9 Link Addition and Slow Recovery (LASR) Procedure116333.5.3.10 Failure Alarms116333.5.3.11 Test Pattern Control116433.5.3.12 Performance Parameter Measurement and Reporting116433.5.3.13 SNMP MIBs116433.5.4 IMA Software Procedures116433.5.4.1 Transmit ICP Cell Signalling116433.5.4.2 Receive Link Start-up Procedure116433.5.4.3 Group Start-up Procedure116533.5.4.3.1 As Initiator (TX)1166Figure 33-33. Near-End versus Far-End116733.5.4.3.2 As Responder (RX)116733.5.4.4 Link Addition Procedure116733.5.4.4.1 Rx Steps116733.5.4.4.2 TX Parameters116833.5.4.5 Link Removal Procedure116933.5.4.5.1 Rx Steps116933.5.4.5.2 TX Parameters117033.5.4.6 Link Receive Deactivation Procedure117033.5.4.7 Link Receive Reactivation Procedure117133.5.4.8 TRL On-the-Fly Change Procedure117133.5.4.9 Transmit Event Response Procedures117233.5.4.10 Receive Event Response Procedures117233.5.4.11 Test Pattern Procedure117433.5.4.11.1 As Initiator (NE)117433.5.4.11.2 As Responder (FE)117433.5.4.12 IDCR Operation117533.5.4.12.1 IDCR Start-up117533.5.4.12.2 Activating a Group in IDCR Mode117633.5.4.13 End-to-End Channel Signalling Procedure117633.5.4.13.1 Transmit117633.5.4.13.2 Receive1177Chapter 34 ATM Transmission Convergence Layer1179Figure 34-1. Serial ATM Using FCC2 and TC Blocks (Single Channel)117934.1 Features117934.2 Functionality1181Figure 34-2. TC Layer Block Diagram118234.2.1 Receive ATM Cell Functions1182Figure 34-3. TC Cell Delineation State Machine1183Figure 34-4. HEC: Receiver Modes of Operation118434.2.1.1 Receive ATM 2-Cell FIFO118434.2.2 Transmit ATM Cell Functions118434.2.2.1 Transmit ATM 2-Cell FIFO118434.2.3 Receive UTOPIA Interface118534.2.4 Transmit UTOPIA Interface118534.3 Signals1185Table 34-1. TC Layer Signals118534.4 TC Layer Programming Mode118534.4.1 TC Layer Registers118534.4.1.1 TC Layer Mode Register [1-8] (TCMODEx)1185Figure 34-5. TC Layer Mode Register (TCMODEx)1186Table 34-2. TCMODEx Field Descriptions (continued)118634.4.1.2 Cell Delineation State Machine Register [1-8] (CDSMRx)1187Figure 34-6. Cell Delineation State Machine Register (CDSMRx)1187Table 34-3. CDSMRx Field Descriptions118734.4.1.3 TC Layer Event Register [1-8] (TCERx)1188Figure 34-7. TC Layer Event Register (TCERx)1188Table 34-4. TCERx Field Descriptions118834.4.1.4 TC Layer Mask Register (TCMRx)118934.4.2 TC Layer General Registers118934.4.2.1 TC Layer General Event Register (TCGER)1189Figure 34-8. TC Layer General Event Register (TCGER)1189Table 34-5. TCGER Field Descriptions118934.4.2.2 TC Layer General Status Register (TCGSR)1189Figure 34-9. TC Layer General Status Register (TCGSR)1190Table 34-6. TCGSR Field Descriptions119034.4.3 TC Layer Cell Counters119034.4.3.1 Received Cell Counter [1-8] (TC_RCCx)119034.4.3.2 Transmitted Cell Counter [1-8] (TC_TCCx)119034.4.3.3 Errored Cell Counter [1-8] (TC_ECCx)119034.4.3.4 Corrected Cell Counter [1-8] (TC_CCCx)119034.4.3.5 Transmitted IDLE Cell Counter [1-8] (TC_ICCx)119034.4.3.6 Filtered Cell Counter [1-8] (TC_FCCx)119134.4.4 Programming FCC2119134.4.5 Programming and Operating the TC Layer119134.4.5.1 Receive119134.4.5.2 Transmit1191Figure 34-10. TC Operation in FCC External Rate Mode1192Figure 34-11. TC Operation in FCC Internal Rate Mode (Sub Rate Mode)119334.5 Implementation Example1193Figure 34-12. Example of Serial ATM Application119434.5.1 Operating the TC Layer at Higher Frequencies119434.5.2 Programming a T1 Application1194Step 11195Table 34-7. Programming GFMR and FPSMR to Setup the FCC21195Step 21195Step 31195Table 34-8. Enable FCC21195Step 41195Table 34-9. Programming the CPM MUX for a TI Application1195Step 51195Table 34-10. Programming the TC Layer Block1195Step 61196Table 34-11. Programming the SI RAM (Rx or Tx) for a T1 Application1196Step 71196Table 34-12. Programming SI Registers to Enable TDM1196Chapter 35 Fast Ethernet Controller1197Figure 35-1. Ethernet Frame Structure119735.1 Fast Ethernet on the PowerQUICC II1198Figure 35-2. Ethernet Block Diagram119835.2 Features119835.3 Connecting the PowerQUICC II to Fast Ethernet1200Figure 35-3. Connecting the PowerQUICC II to Ethernet120035.4 Ethernet Channel Frame Transmission120135.5 Ethernet Channel Frame Reception120235.6 Flow Control1203Table 35-1. Flow Control Frame Structure120335.7 CAM Interface120335.8 Ethernet Parameter RAM1204Table 35-2. Ethernet-Specific Parameter RAM (continued)120435.9 Programming Model120735.10 Ethernet Command Set1207Table 35-3. Transmit Commands1208Table 35-4. Receive Commands120835.11 RMON Support1209Table 35-5. RMON Statistics and Counters (continued)120935.12 Ethernet Address Recognition1210Figure 35-4. Ethernet Address Recognition Flowchart121235.13 Hash Table Algorithm121235.14 Interpacket Gap Time121335.15 Handling Collisions121335.16 Internal and External Loopback121335.17 Ethernet Error-Handling Procedure1213Table 35-6. Transmission Errors1214Table 35-7. Reception Errors121435.18 Fast Ethernet Registers121435.18.1 FCC Ethernet Mode Register (FPSMR)1214Figure 35-5. FCC Ethernet Mode Registers (FPSMR)1215Table 35-8. FPSMR Ethernet Field Descriptions (continued)121535.18.2 Ethernet Event Register (FCCE)/Mask Register (FCCM)1216Figure 35-6. Ethernet Event Register (FCCE)/Mask Register (FCCM)1216Table 35-9. FCCE/FCCM Field Descriptions1217Figure 35-7. Ethernet Interrupt Events Example121835.19 Ethernet RxBDs1218Figure 35-8. Fast Ethernet Receive Buffer (RxBD)1219Table 35-10. RxBD Field Descriptions (continued)1219Figure 35-9. Ethernet Receiving Using RxBDs122135.20 Ethernet TxBDs1221Figure 35-10. Fast Ethernet Transmit Buffer (TxBD)1222Table 35-11. Ethernet TxBD Field Definitions (continued)1222Chapter 36 FCC HDLC Controller122536.1 Key Features122536.2 HDLC Channel Frame Transmission Processing1226Figure 36-1. HDLC Framing Structure122636.3 HDLC Channel Frame Reception Processing122736.4 HDLC Parameter RAM1227Table 36-1. FCC HDLC-Specific Parameter RAM Memory Map (continued)1227Figure 36-2. HDLC Address Recognition Example122936.5 Programming Model122936.5.1 HDLC Command Set1229Table 36-2. Transmit Commands (continued)1229Table 36-3. Receive Commands123036.5.2 HDLC Error Handling1230Table 36-4. HDLC Transmission Errors1230Table 36-5. HDLC Reception Errors123136.6 HDLC Mode Register (FPSMR)1231Figure 36-3. HDLC Mode Register (FPSMR)1232Table 36-6. FPSMR Field Descriptions (continued)123236.7 HDLC Receive Buffer Descriptor (RxBD)1233Figure 36-4. FCC HDLC Receiving Using RxBDs1234Figure 36-5. FCC HDLC Receive Buffer Descriptor (RxBD)1235Table 36-7. RxBD field Descriptions (continued)123536.8 HDLC Transmit Buffer Descriptor (TxBD)1236Figure 36-6. FCC HDLC Transmit Buffer Descriptor (TxBD)1236Table 36-8. HDLC TxBD Field Descriptions123736.9 HDLC Event Register (FCCE)/Mask Register (FCCM)1238Figure 36-7. HDLC Event Register (FCCE)/Mask Register (FCCM)1238Table 36-9. FCCE/FCCM Field Descriptions1239Figure 36-8. HDLC Interrupt Event Example124036.10 FCC Status Register (FCCS)1240Figure 36-9. FCC Status Register (FCCS)1240Table 36-10. FCCS Register Field Descriptions1241Chapter 37 FCC Transparent Controller124337.1 Features124337.2 Transparent Channel Operation124437.3 Achieving Synchronization in Transparent Mode124437.3.1 In-Line Synchronization Pattern1244Figure 37-1. In-Line Synchronization Pattern124437.3.2 External Synchronization Signals124537.3.3 Transparent Synchronization Example1245Figure 37-2. Sending Transparent Frames between PowerQUICC IIs1246Chapter 38 Serial Peripheral Interface (SPI)1247Figure 38-1. SPI Block Diagram124738.1 Features124738.2 SPI Clocking and Signal Functions124838.3 Configuring the SPI Controller124938.3.1 The SPI as a Master Device1249Figure 38-2. Single-Master/Multi-Slave Configuration124938.3.2 The SPI as a Slave Device125038.3.3 The SPI in Multimaster Operation1250Figure 38-3. Multimaster Configuration125138.4 Programming the SPI Registers125238.4.1 SPI Mode Register (SPMODE)1252Figure 38-4. SPMODE-SPI Mode Register1252Table 38-1. SPMODE Field Descriptions (continued)1252Figure 38-5. SPI Transfer Format with SPMODE[CP] = 01253Figure 38-6. SPI Transfer Format with SPMODE[CP] = 1125438.4.1.1 SPI Examples with Different SPMODE[LEN] Values1254Table 38-2. Example Conventions125438.4.2 SPI Event/Mask Registers (SPIE/SPIM)1255Figure 38-7. SPIE/SPIM-SPI Event/Mask Registers1255Table 38-3. SPIE/SPIM Field Descriptions125538.4.3 SPI Command Register (SPCOM)1256Figure 38-8. SPCOM-SPI Command Register1256Table 38-4. SPCOM Field Descriptions125638.5 SPI Parameter RAM1256Table 38-5. SPI Parameter RAM Memory Map125738.5.1 Receive/Transmit Function Code Registers (RFCR/TFCR)1258Figure 38-9. RFCR/TFCR-Function Code Registers1258Table 38-6. RFCR/TFCR Field Descriptions125838.6 SPI Commands1258Table 38-7. SPI Commands (continued)125838.7 The SPI Buffer Descriptor (BD) Table1259Figure 38-10. SPI Memory Structure125938.7.1 SPI Buffer Descriptors (BDs)125938.7.1.1 SPI Receive BD (RxBD)1260Figure 38-11. SPI RxBD1260Table 38-8. SPI RxBD Status and Control Field Descriptions (continued)126038.7.1.2 SPI Transmit BD (TxBD)1261Figure 38-12. SPI TxBD1261Table 38-9. SPI TxBD Status and Control Field Descriptions (continued)126138.8 SPI Master Programming Example126238.9 SPI Slave Programming Example126338.10 Handling Interrupts in the SPI1264Chapter 39 I2C Controller1265Figure 39-1. I2C Controller Block Diagram126539.1 Features126639.2 I2C Controller Clocking and Signal Functions1266Figure 39-2. I2C Master/Slave General Configuration126639.3 I2C Controller Transfers1266Figure 39-3. I2C Transfer Timing126739.3.1 I2C Master Write (Slave Read)1267Figure 39-4. I2C Master Write Timing126739.3.2 I2C Loopback Testing126839.3.3 I2C Master Read (Slave Write)1268Figure 39-5. I2C Master Read Timing126839.3.4 I2C Multi-Master Considerations126939.4 I2C Registers127039.4.1 I2C Mode Register (I2MOD)1270Figure 39-6. I2C Mode Register (I2MOD)1270Table 39-1. II2MOD Field Descriptions127039.4.2 I2C Address Register (I2ADD)1270Figure 39-7. I2C Address Register (I2ADD)1271Table 39-2. I2ADD Field Descriptions127139.4.3 I2C Baud Rate Generator Register (I2BRG)1271Figure 39-8. I2C Baud Rate Generator Register (I2BRG)1271Table 39-3. I2BRG Field Descriptions127139.4.4 I2C Event/Mask Registers (I2CER/I2CMR)1271Figure 39-9. I2C Event/Mask Registers (I2CER/I2CMR)1272Table 39-4. I2CER/I2CMR Field Descriptions127239.4.5 I2C Command Register (I2COM)1272Figure 39-10. I2C Command Register (I2COM)1272Table 39-5. I2COM Field Descriptions127239.5 I2C Parameter RAM1273Table 39-6. I2C Parameter RAM Memory Map (continued)1273Figure 39-11. I2C Function Code Registers (RFCR/TFCR)1274Table 39-7. RFCR/TFCR Field Descriptions127439.6 I2C Commands1275Table 39-8. I2C Transmit/Receive Commands127539.7 The I2C Buffer Descriptor (BD) Table1275Figure 39-12. I2C Memory Structure127639.7.1 I2C Buffer Descriptors (BDs)127639.7.1.1 I2C Receive Buffer Descriptor (RxBD)1276Figure 39-13. I2C RxBD1277Table 39-9. I2C RxBD Status and Control Bits127739.7.1.2 I2C Transmit Buffer Descriptor (TxBD)1277Figure 39-14. I2C TxBD1278Table 39-10. I2C TxBD Status and Control Bits1278Chapter 40 Parallel I/O Ports127940.1 Features127940.2 Port Registers127940.2.1 Port Open-Drain Registers (PODRA-PODRD)1279Figure 40-1. Port Open-Drain Registers (PODRA-PODRD)1280Table 40-1. PODRx Field Descriptions128040.2.2 Port Data Registers (PDATA-PDATD)1280Figure 40-2. Port Data Registers (PDATA-PDATD)128140.2.3 Port Data Direction Registers (PDIRA-PDIRD)1281Figure 40-3. Port Data Direction Register (PDIR)1281Table 40-2. PDIR Field Descriptions128140.2.4 Port Pin Assignment Register (PPAR)1282Figure 40-4. Port Pin Assignment Register (PPARA-PPARD)1282Table 40-3. PPAR Field Descriptions128240.2.5 Port Special Options Registers A-D (PSORA-PSORD)1282Figure 40-5. Special Options Registers (PSORA-POSRD)1283Table 40-4. PSORx Field Descriptions128340.3 Port Block Diagram1283Figure 40-6. Port Functional Operation128440.4 Port Pins Functions128440.4.1 General Purpose I/O Pins128540.4.2 Dedicated Pins128540.5 Ports Tables1285Figure 40-7. Primary and Secondary Option Programming1286Table 40-5. Port A-Dedicated Pin Assignment (PPARA = 1) (continued)1286Table 40-6. Port B Dedicated Pin Assignment (PPARB = 1) (continued)1290Table 40-7. Port C Dedicated Pin Assignment (PPARC = 1) (continued)1292Table 40-8. Port D Dedicated Pin Assignment (PPARD = 1) (continued)129540.6 Interrupts from Port C1297Appendix A Register Quick Reference Guide1299A.1 PowerPC Registers-User Registers1299A.2 PowerPC Registers-Supervisor Registers1299A.3 MPC8260-Specific SPRs1301Appendix B Reference Manual (Rev 1) Errata1303B.1 Document Errata1303Glossary1319Index1329Größe: 9,52 MBSeiten: 1360Language: EnglishHandbuch öffnen