Freescale Semiconductor MPC5200B manual
- Consulta online o descarga el manual de instrucciones
- 762 páginas
- 4.69 mb
Ir a la página of
manuales de instrucciones parecidos
-
Computer Hardware
Freescale Semiconductor S08
46 páginas 1.11 mb -
Computer Hardware
Freescale Semiconductor MCF5480
1032 páginas 8.48 mb -
Computer Hardware
Freescale Semiconductor MC68HC908MR16
282 páginas 1.83 mb -
Computer Hardware
Freescale Semiconductor MCF5482
1032 páginas 8.48 mb -
Computer Hardware
Freescale Semiconductor SC140
760 páginas 8.24 mb -
Computer Hardware
Freescale Semiconductor MCF5481
1032 páginas 8.48 mb -
Computer Hardware
Freescale Semiconductor MCF5485
1032 páginas 8.48 mb -
Computer Hardware
Freescale Semiconductor 56F8122
137 páginas 0.85 mb
Buen manual de instrucciones
Las leyes obligan al vendedor a entregarle al comprador, junto con el producto, el manual de instrucciones Freescale Semiconductor MPC5200B. La falta del manual o facilitar información incorrecta al consumidor constituyen una base de reclamación por no estar de acuerdo el producto con el contrato. Según la ley, está permitido adjuntar un manual de otra forma que no sea en papel, lo cual últimamente es bastante común y los fabricantes nos facilitan un manual gráfico, su versión electrónica Freescale Semiconductor MPC5200B o vídeos de instrucciones para usuarios. La condición es que tenga una forma legible y entendible.
¿Qué es un manual de instrucciones?
El nombre proviene de la palabra latina “instructio”, es decir, ordenar. Por lo tanto, en un manual Freescale Semiconductor MPC5200B se puede encontrar la descripción de las etapas de actuación. El propósito de un manual es enseñar, facilitar el encendido o el uso de un dispositivo o la realización de acciones concretas. Un manual de instrucciones también es una fuente de información acerca de un objeto o un servicio, es una pista.
Desafortunadamente pocos usuarios destinan su tiempo a leer manuales Freescale Semiconductor MPC5200B, sin embargo, un buen manual nos permite, no solo conocer una cantidad de funcionalidades adicionales del dispositivo comprado, sino también evitar la mayoría de fallos.
Entonces, ¿qué debe contener el manual de instrucciones perfecto?
Sobre todo, un manual de instrucciones Freescale Semiconductor MPC5200B debe contener:
- información acerca de las especificaciones técnicas del dispositivo Freescale Semiconductor MPC5200B
- nombre de fabricante y año de fabricación del dispositivo Freescale Semiconductor MPC5200B
- condiciones de uso, configuración y mantenimiento del dispositivo Freescale Semiconductor MPC5200B
- marcas de seguridad y certificados que confirmen su concordancia con determinadas normativas
¿Por qué no leemos los manuales de instrucciones?
Normalmente es por la falta de tiempo y seguridad acerca de las funcionalidades determinadas de los dispositivos comprados. Desafortunadamente la conexión y el encendido de Freescale Semiconductor MPC5200B no es suficiente. El manual de instrucciones siempre contiene una serie de indicaciones acerca de determinadas funcionalidades, normas de seguridad, consejos de mantenimiento (incluso qué productos usar), fallos eventuales de Freescale Semiconductor MPC5200B y maneras de solucionar los problemas que puedan ocurrir durante su uso. Al final, en un manual se pueden encontrar los detalles de servicio técnico Freescale Semiconductor en caso de que las soluciones propuestas no hayan funcionado. Actualmente gozan de éxito manuales de instrucciones en forma de animaciones interesantes o vídeo manuales que llegan al usuario mucho mejor que en forma de un folleto. Este tipo de manual ayuda a que el usuario vea el vídeo entero sin saltarse las especificaciones y las descripciones técnicas complicadas de Freescale Semiconductor MPC5200B, como se suele hacer teniendo una versión en papel.
¿Por qué vale la pena leer los manuales de instrucciones?
Sobre todo es en ellos donde encontraremos las respuestas acerca de la construcción, las posibilidades del dispositivo Freescale Semiconductor MPC5200B, el uso de determinados accesorios y una serie de informaciones que permiten aprovechar completamente sus funciones y comodidades.
Tras una compra exitosa de un equipo o un dispositivo, vale la pena dedicar un momento para familiarizarse con cada parte del manual Freescale Semiconductor MPC5200B. Actualmente se preparan y traducen con dedicación, para que no solo sean comprensibles para los usuarios, sino que también cumplan su función básica de información y ayuda.
Índice de manuales de instrucciones
-
Página 1
MPC5200B User s Guide Document Number : MPC5200BUG Re v . 1 05/2005[...]
-
Página 2
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C - 1 Chapter 1 Introduction 1.1 Overview ......... ................ ............. ................ ............. ............... ................ ............. .... .......... ............... ................ .......1-1 1.1.1 Features .[...]
-
Página 3
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 2 F reescale Semiconductor 4.2.2 Hard Reset—HRESET ...... ................ ................ ............... .............. ............... ................ ...... ......... ................ .......4-1 4.2.3 Soft Reset—SRES ET .... ..............[...]
-
Página 4
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C - 3 Chapter 7 System Integration Unit ( SIU ) 7.1 Overview ......... ................ ............. ................ ............. ............... ................ ............. .... .......... ............... ................ .......7[...]
-
Página 5
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 4 F reescale Semiconductor 7.3.2.1.16 GPS GPIO Simple Inte rrupt Status Register—MBAR + 0x0B3C ........... ...................... ......... ............7-44 7.3.2.2 WakeUp GPIO Registers—MBAR + 0x0C00 ...................... ............ ........[...]
-
Página 6
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C - 5 8.4.4.3 Bank Active Command ................ ................ ............... ................ ................ ............... ...... ........ ............... ...8-14 8.4.4.4 Read Command ................... ................ .....[...]
-
Página 7
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 6 F reescale Semiconductor 9.7.4.4 LPC Rx / Tx FIFO Alarm Re gister—MBAR + 0x3C4C ........... ....................................................... .......... 9-30 9.7.4.5 LPC Rx / Tx FIFO Read Pointer Regi ster—MBAR + 0x3C50 ............ ....[...]
-
Página 8
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C - 7 10.3.3.1.4 Tx Enables PCITER(RW)—MBAR + 0x380 C ............. ............ ...................... ......... ......... ........ ........ 10-24 10.3.3.1.5 Tx Next Address PCITNAR(R) — M BAR + 0x3810 ........... ..................[...]
-
Página 9
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 8 F reescale Semiconductor 10.4.6.2 Addressing ..... ............. ................ ................ ............... ................ ............... ............ ............... ................ .....10-57 10.4.6.3 Data Tr anslation ......... .....[...]
-
Página 10
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C - 9 11.3.3.5 ATA Drive Error Register—MBA R + 0x3A64 ................. ................ ............... ................ ............... . .......11-14 11.3.3.6 ATA Drive Sector Count R egister —MBAR + 0x3A68 ................ .....[...]
-
Página 11
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 1 0 F reescale Semiconductor 12.4.3.2 USB HC Period Current Endpoint Descrip tor Register —MBA R + 0x101C .......... ........... ......... ............12-13 12.4.3.3 USB HC Control Head Endpoint De scriptor Register —MBAR + 0x1020 ..............[...]
-
Página 12
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C -1 1 13.12.22 SDMA Initiator Priority 24 Register—MBAR + 0x1254 ....... ............................................ .................. .. ........13-17 13.12.23 SDMA Initiator Priority 28 Register—MBAR + 0x1258 ....... ...........[...]
-
Página 13
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 1 2 F reescale Semiconductor 14.5.17 FEC Descriptor Individual Address 2 Register—MBAR + 0x311C ... ........... ............ ........ ........................... .14-24 14.5.18 FEC Descriptor Group Address 1 Re gister—MBAR + 0x3120 .......... ..[...]
-
Página 14
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C -1 3 15.2.14 Codec Clock Register (0x20)—CCR ..... .................................................................. ......... ........ . ................ .....15-21 15.2.15 Interrupt Vector Regist er (0x30)—IVR ................ .[...]
-
Página 15
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 1 4 F reescale Semiconductor 15.3.3.4 Configuration Sequence for AC97 Mode ....... ................ ............... ................ ............... ............. ...............15-58 15.3.4 PSC in SIR Mode ................... ................ .....[...]
-
Página 16
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C -1 5 Chapter 17 Serial Peripheral Interface ( SPI ) 17.1 Overview ......... ................ ............. ................ ............... ................ ............. ................ ............. ................ ............... [...]
-
Página 17
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 1 6 F reescale Semiconductor 19.5.4 MSCAN Control Register 1 (CANCTL1) —MBAR + 0x0901 ........... ........... ............ ........... ........... ......... ....... 19-6 19.5.5 MSCAN Bus Timing Register 0 (CANBTR 0)—MBAR + 0x0904 ....... .......[...]
-
Página 18
T able of Contents Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor TO C -1 7 Chapter 20 Byte Data Link Controller (BDLC) 20.1 Overview ......... ................ ............. ................ ............... ................ ............. ................ ............. ................ ............... ...[...]
-
Página 19
Ta b l e O f C o n t e n t s Pa ra g ra p h Pag e Number Number MPC5200B Users Guide, Rev . 1 TO C - 1 8 F reescale Semiconductor 20.8.8.1 Transmitting Or Receiv ing A Block Mode Message ....... ................ ................. ................ ............... . .......20-45 20.8.8.2 Transmitting Or Receiv ing A Message In 4X Mode ... ...........[...]
-
Página 20
List of Figures Figure Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LOF-1 1-1 Simplified Block Diag ram—MP C5200 ............. ........... ........... ............ ............................................ .. ................ .......1-4 1-2 MPC5200-Based System .......... ............ ...........................[...]
-
Página 21
List of Figures Figure Pa g e Number Number MPC5200B Users Guide, Rev . 1 LOF-2 F reescale Semiconductor 12-2 Communication Channel s ..... ................ ............... ................ ................ ............. ................ ... .......... ............... ..........12-2 12-3 Typical List Structure ............ ................ ........[...]
-
Página 22
List of Figures Figure Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LOF-3 19-11 Initialization Request /Acknowledge Cycle ...... ................................. ............ ...................... ........ ..... ................ .....19-35 20-1 BDLC Operati ng Modes State Diagram ... ................ ..............[...]
-
Página 23
List of Figures MPC5200B Users Guide, Rev . 1 LOF-4 F reescale Semiconductor Notes[...]
-
Página 24
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LO T -1 2-1 Signals by Ball / Pin ........... ............. ................ ............... ................ ............. ................ .... ......... .............. ............... .....2-4 2-2 Signals by Signa l Name .......... .............[...]
-
Página 25
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 LO T -2 Freescale Semiconductor 5-19 CDM PSC2 Mclo ck Config ................ ............... .............. ............... ................ ............... ......... .. ................ .............. 5-21 5-20 CDM PSC3 Mclo ck Config ................ ............... ....[...]
-
Página 26
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LO T -3 7-51 SLT 0 Terminal Count Regist er .............. ................................. ..................... ........ ......... ........ . ................ ............... .7-62 7-52 SLT 0 Control Re gister .............. ............... ....[...]
-
Página 27
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 LO T -4 Freescale Semiconductor 10-9 Special Cyc le Message Encodings ...... ............... ................ ............. ................ ............... .......... . ................ ............1 0-54 10-10 Unsupported XLB Transfers .. .......... ............ .........[...]
-
Página 28
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LO T -5 12-8 USB HC Period Current Endpoint Descri ptor Register ..... ...................... ................................. ............ ...... ..........12-13 12-9 USB HC Control Head Endpoint Descriptor Register ....... ......................[...]
-
Página 29
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 LO T -6 Freescale Semiconductor 14-1 Signal Properti es ..... ............... ................ ............... .............. ............... ................ ......... .... .............. ............... ............14-3 14-2 MII: Valid Encoding of TxD , Tx_EN and Tx_ER ..[...]
-
Página 30
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LO T -7 15-9 Stop-Bit L engths ..... ............. ................ ............. ................ ............... .............. .............. .............. ................ .............. 15-7 15-10 Status Register (0x04) for UART Mode ........[...]
-
Página 31
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 LO T -8 Freescale Semiconductor 15-63 Tx FIFO Control (0x88) ............. ....................................................... ............ ........... ........ ......... ................ ............1 5-37 15-64 Tx FIFO Alarm (0x8E) .... ...............................[...]
-
Página 32
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 F reescale Semico nductor LO T -9 18-5 I 2 C Control Register ........ ............... ................ ............. ................ ............... ................ ......... .... ................ ............... .18-7 18-6 I 2 C Status Register .................. ......[...]
-
Página 33
List of T ables Ta b l e Pa g e Number Number MPC5200B Users Guide, Rev . 1 LO T -10 Freescale Semiconductor 20-16 BDLC Receiver VPW Symbol Ti ming for Binary Frequencies ..... ................ .................. ............... ............. ........20-21 20-17 BDLC Receiver VPW 4X Symbol Timing for Integer Frequenc ies . ................ ........[...]
-
Página 34
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1 Revision History Release Date A uthor Summary of Changes 0 26MAR2005 AS Initial V ersion 0.1 26MAR2005 AS, TB , PL Updated PCI, PSC , BestComm, I2C , GPIO , CDM chapters . 0.2 03MA Y2005 AE Cross refs, h yperlinks, T OC, V erso , and fonts . 1 12A UG2005 AE, TB , PL, CM, AS Minor updates.[...]
-
Página 35
MPC5200B Users Guide, Rev . 1 F reescale Semiconductor[...]
-
Página 36
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1-1 Chapter 1 Intr oduction 1.1 Overview The digital communication ne tworking and consumer markets re quire significant processor perfor mance to enable operating systems and applications such as VxW orks ™ , QNX ™ , JA V A and soft modems. High integration is esse ntial to reduc[...]
-
Página 37
MPC5200B Users Guide, Rev . 1 1-2 F reescale Semiconductor Architecture — IrDA mode from 2400 bps to 4 Mbps • Fast Ethernet Controller (F EC) — Supports 100Mbps IEEE 802.3 MII, 10Mbps IEEE 802.3 MII, 10Mbps 7-wire interface • Universal Serial Bus Controller (USB) — USB Revision 1.1 Host — Open Host Controller Interface (OHCI) — Integr[...]
-
Página 38
Arc hitectur e MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1-3 A dynamically managed extern al pin multiplexing sche me minimizes overall pin c ount. The result is low cost packaging and board assem bly costs. Figure 1-1 shows a simplified MPC5200B block diagram. Figure 1-1. Simplified Bloc k Diagram—MPC5200B e300 Core SDRAM / DDR JT [...]
-
Página 39
MPC5200B Users Guide, Rev . 1 1-4 F reescale Semiconductor Architecture The MPC5200B supports a dual extern al bus architectur e consisting of: 1. an SDRAM Bus 2. a multi-function L ocalPlus Bus The SDRAM Bus has a Memory Controller inte rface which supports standard SDRAM and D ouble Data Rate ( DDR ) SDRAM devices. The Memory Controller h as 13 M[...]
-
Página 40
Arc hitectur e MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1-5 Figure 1-2. MPC5200B-Based System 1.2.1 Embedded e300 Core The MPC5200B embedded e300 core is derived f r om Freescale’ s (formerly Moto rola) MPC603e family of Re duced Instruction Set Compu ter ( RISC ) microprocessors. The e300 core is a high-perfo rmance, low-power imp[...]
-
Página 41
MPC5200B Users Guide, Rev . 1 1-6 F reescale Semiconductor Architecture Up to 3 instructions can be issued and retire d per clock. Most instructions execute in a single cycl e. The core contains an int egrated Floating Point Unit ( FPU ), a Data Cache Memory Management Unit and an Instruction Cache Memory Management Unit.. The core implements the 3[...]
-
Página 42
Arc hitectur e MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1-7 MSCAN supports both standard and extended id entifier ( ID ) message formats specified in BOSCH CAN protocol sp ecification, revision 2.0, part B. Each MSCAN module contains: • 4 receive buffers ( with FIFO storage scheme ) • 3 transmit buf fers • flexible maskable ide[...]
-
Página 43
MPC5200B Users Guide, Rev . 1 1-8 F reescale Semiconductor Architecture 1.2.5.5 Functional Pin Multiple xing Many serial / parallel port pins serve multiple functi ons, allowing flexibility in optimizing the system to me et a specific set o f integration requirements. For example, when PSC 3 interfa ces to a full function exte rnal modem, 10 pins a[...]
-
Página 44
Arc hitectur e MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 1-9 A W ake Up capability is supported by CAN, R TC, several GPIOs and the interrupt lines. Therefore, the MPC5200B can be shut down to a low-power standby mode, then re-enabled by one of the W ake Up inputs without resetting the MPC5200B. 1.2.9 Systems Debug and T est The MPC52[...]
-
Página 45
MPC5200B Users Guide, Rev . 1 1-10 F reescale Semiconductor Architecture[...]
-
Página 46
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-1 Chapter 2 Signal Descriptions 2.1 Overview The MPC5200B contains a e300 core, an inte rnal DMA engine, Best Comm, multiple functional blocks and associated I/O ports. There are two external data/address bus structures, th e LocalPlus bus and SDRAM bus. A block diag ram of the MPC5[...]
-
Página 47
MPC5200B Users Guide, Rev . 1 2-2 F reescale Semiconductor Overview Figure 2-1. 272-Pin PBGA Pin Detail Ta b l e 2 - 1 gives a list of MPC5200 B I / O signa ls sorted by package ball name. Ta b l e 2 - 2 gives the same list sorted by signal name. Many signal pins can h ave multiple functi ons depending on internal regi ster settings. These additi o[...]
-
Página 48
MPC5200B Users Guide, Rev . 1 F reescale Semiconductor 2-3 Figure 2-2. 272-Pi n PBGA — T op Vie w A01 A02 A03 A04 A05 A06 A07 A08 A09 A10 A1 1 A12 A13 A14 A15 A16 A17 A18 A19 A20 TEST_MODE_1 JT AG_TDO JT AG_TDI JT AG_TMS PSC3_8 PSC 3_5 PSC3_2 PSC2_4 PSC2_2 P SC1_4 PSC1_1 PSC6_2 PORRESET SRESET SYS_XT AL_IN MEM_ MA _ 1 MEM_M BA _ 1 MEM_RAS MEM_WE [...]
-
Página 49
MPC5200B Users Guide, Rev . 1 2-4 F reescale Semiconductor Pinout T ables Figure 2-3. MPC5200B P eripheral Muxing 2.2 Pinout T ables T able 2-1. Signal s by Ball / P in B a l l/P i n Pin Name B a l l/P i n Pin Name A01 TEST_MODE_1 B16 M EM_MA _ 2 A02 JT AG_TDO B17 MEM_MA _ 10 A03 JT A G_TDI B18 MEM_CS_0 A04 JT AG_TMS B19 MEM_CAS A05 PSC3_8 B20 MEM_[...]
-
Página 50
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-5 A11 PSC1_1 C06 PSC3_3 A12 PSC6_2 C07 PSC3_0 A13 PORRESET C08 CORE_PLL_A VDD A14 SRESET C09 PSC2_0 A15 SYS_XT AL_IN C10 PSC1_2 A16 MEM_MA _ 1 C11 PSC6_1 A17 MEM_MBA_ 1 C12 GPIO_WKUP_7 A18 MEM_RAS C13 PSC6_3 A19 MEM_WE C14 SYS_PLL_A VSS A20 MEM_DQM _2 C15 GPIO_WKUP_6 B01 TEST_[...]
-
Página 51
MPC5200B Users Guide, Rev . 1 2-6 F reescale Semiconductor Pinout T ables E01 TIMER_7 J10 VSS_IO/CORE E02 TIMER_6 J11 VSS_IO/CORE E03 TIMER_5 J12 VSS_IO/CORE E04 VDD_IO J17 MEM_MDQ _ 22 E17 VDD_MEM_IO J18 MEM_MDQ _ 21 E18 MEM_MDQ _ 1 6 J19 MEM_MDQ _ 8 E19 MEM_MA _ 9 J20 MEM_MDQ _ 9 E20 MEM_MA _ 11 K01 ETH_0 F01 USB_7 K02 ETH_1 F02 USB_8 K03 ETH_2 F[...]
-
Página 52
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-7 M09 VSS_IO/CORE T18 MEM_MDQ _ 30 M10 VSS_IO/CORE T19 MEM_MDQ _ 3 M11 VSS_IO/CORE T20 MEM_MDQ _ 2 M12 VSS_IO/CORE U01 PCI_REQ M17 VDD_MEM_IO U02 PCI_IDSEL M18 MEM_MDQ _ 24 U03 EXT_AD _ 24 M19 MEM_MDQ _ 14 U04 VSS_IO/CORE M20 MEM_MDQ _ 15 U05 VDD_IO N01 E TH_7 U06 VDD_IO N02 E[...]
-
Página 53
MPC5200B Users Guide, Rev . 1 2-8 F reescale Semiconductor Pinout T ables V13 EXT_AD _ 0 Y10 EXT_AD _ 10 V14 LP_ALE Y11 EXT_AD _ 7 V15 LP_CS2 Y12 EXT_AD _ 3 V16 LP_CS5 Y13 LP_TS V17 A T A_DRQ Y14 LP_CS1 V18 TIMER_1 Y15 LP_CS4 V19 I2C_0 Y16 A T A_ISOLA TION V20 I2C_2 Y17 A T A_IOR W01 EXT_AD _ 29 Y18 A T A_D ACK W02 EXT_AD _ 25 Y19 A T A_INTRQ W03 E[...]
-
Página 54
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-9 T able 2-2. Signals b y Signal Name Signal Name B a l l/P i n Signal Name B a l l/P i n A T A_D ACK Y18 EXT_AD _ 6 U11 A T A_DRQ V17 EXT_AD _ 7 Y11 A T A_INTRQ Y19 EXT_AD _ 8 W11 A T A_IOCHRD Y W18 EXT_AD _ 9 V10 A T A_IOR Y17 EXT_AD _ 10 Y10 A T A_IOW W17 EXT_AD _ 11 V09 A [...]
-
Página 55
MPC5200B Users Guide, Rev . 1 2-10 F reescale Semiconductor Pinout T ables EXT_AD _ 4 V11 PSC6_0 B12 EXT_AD _ 5 W 12 PSC6_2 A12 PSC6_3 C13 MEM_MBA _1 A17 PSC6_1 C11 MEM_MDQ _ 0 U20 IRQ0 P03 MEM_MDQ _ 1 U19 IRQ1 P01 MEM_MDQ _ 2 T20 IRQ2 P02 MEM_MDQ _ 3 T19 IRQ3 R01 MEM_MDQ _ 4 R20 JT AG_TCK B04 MEM_MDQ _ 5 R19 JT A G_TDI A03 MEM_MDQ _ 6 P20 JT AG_TD[...]
-
Página 56
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-11 MEM_MA _ 10 B17 MEM_MDQS _ 0 N20 MEM_MA _ 11 E20 MEM_MDQS _ 1 H20 MEM_MA _ 12 F19 MEM_MDQS _ 2 D18 MEM_MBA _0 C18 MEM_MDQS _ 3 L18 MEM_CLK G19 PSC3_5 A06 MEM_CLK G20 PSC3_6 C05 MEM_RAS A18 PSC3_7 B05 MEM_WE A19 PSC3_8 A05 PCI_CBE_ 0 W10 PSC3_9 C04 PCI_CBE _1 Y08 R TC_XT AL_[...]
-
Página 57
MPC5200B Users Guide, Rev . 1 2-12 F reescale Semiconductor Pinout T ables PSC2_4 A08 USB_6 G04 PSC3_0 C07 USB_7 F 01 PSC3_1 B07 USB_8 F02 PSC3_2 A07 USB_9 F03 PSC3_3 C06 VDD_C ORE D05 PSC3_4 B06 VSS_IO/CORE J12 VDD_CORE D10 VSS_IO/CORE K10 VDD_CORE D11 VSS_IO/CORE K10 VDD_CORE K04 VSS_IO/CORE K11 VDD_CORE M04 VSS_IO/CORE K12 VDD_CORE P04 VSS_IO/CO[...]
-
Página 58
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-13 VDD_MEM_IO P17 VDD_MEM_IO T17 VSS_IO/CORE D04 VSS_IO/CORE D16 VSS_IO/CORE J09 VSS_IO/CORE J10 VSS_IO/CORE J11 T able 2-3. LocalPlus Bus Ad dress / Data Pin As signments MPC5200B LocaLPlus Bus Address / Data Pins E X T _ A D 3 1 E X T _ A D 3 0 E X T _ A D 2 9 E X T _ A D 2 [...]
-
Página 59
MPC5200B Users Guide, Rev . 1 2-14 F reescale Semiconductor Pinout T ables T able 2-4. LocalPlus Pin Functions Pin name BAL L LocalPlu s Non-mux LocalPlus MUL TIP LEXED BUS PCI BUS ATA MOST Large Flash RESET Addr /Data 24/8 Addr /Data 16/16 Address Phase 32-bit Data Phase 16-bit Data Phase 8-bit Data Phase PCI Address Phase 32-bit Data Phase 16-bit[...]
-
Página 60
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-15 PCI_CBE_2 W06 PCI_CBE _2 A3 A19 PCI_CBE_3 Y02 PCI_CBE _3 A4 A20 PCI_TRD Y W05 PCI_TRD Y A5 A21 PCI_IRD Y Y06 PCI_IRD Y A6 A22 PCI_STOP V06 PCI_ST OP A7 A23 PCI_DEVS EL W07 PCI_DEVSEL A8 A24 PCI_FRAM E V05 PCI_FRAME A9 A25 PCI_SERR W08 PCI_SERR A 10 Note 1 PCI_PERR Y07 PCI_P[...]
-
Página 61
MPC5200B Users Guide, Rev . 1 2-16 F reescale Semiconductor Pinout T ables 1. The PCI signals , which are not used as addre ss in Large Flash mode, are drive low during a Large Flash access. 2. F or a burst transaction LP_A CK signal indicates the b urst . LP_OE D08 LP_OE LP_OE LP_CS0 W14 CS_0 / CS_BOO T CS_0 / CS_BO OT LP_CS1 Y14 CS_ 1 CS_1 LP_CS2[...]
-
Página 62
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-17 Pin EXT_AD_30 Ball R03 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase TSIZE0 D6 D14 D30 hi - z LocalPlus TSIZE0 LocalPlus Data Bit 6 LocalPlus Data Bit 14 LocalPlus Data Bit 30 LocalPlus non-mux 16-bit addr/16-bit data 24-[...]
-
Página 63
MPC5200B Users Guide, Rev . 1 2-18 F reescale Semiconductor Pinout T ables Pin EXT_AD_27 Ball Y01 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase logic 0 D3 D11 D27 hi - z logic 0 LocalPlus Data Bit 3 LocalPlus Data Bit 11 LocalPlus Data Bit 27 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/[...]
-
Página 64
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-19 Pin EXT_AD_24 Ball U03 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A24 D0 D8 D24 hi - z LocalPlus Address Bit 24 LocalPlus Data Bit 0 LocalPlus Data Bit 8 LocalPlus Data Bit 24 LocalPlus non-mux 16-bit addr/16-bit data [...]
-
Página 65
MPC5200B Users Guide, Rev . 1 2-20 F reescale Semiconductor Pinout T ables Pin EXT_AD_21 Ball Y03 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A21 logic 0 D5 D21 hi - z LocalPlus Address Bit A21 logic 0 LocalPlus Data Bit 5 LocalPlus Data Bit D21 LocalPlus non-mux 16-bit addr/16-bit data 24-bit [...]
-
Página 66
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-21 Pin EXT_AD_18 Ball V04 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A18 logic 0 D2 D18 hi - z LocalPlus Address Bit A18 logic 0 LocalPlus Data Bit 2 LocalPlus Data Bit D18 LocalPlus non-mux 16-bit addr/16-bit data 24-bit[...]
-
Página 67
MPC5200B Users Guide, Rev . 1 2-22 F reescale Semiconductor Pinout T ables Pin EXT_AD_15 Ball U08 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A15 logic 0 logic 0 D15 hi - z LocalPlus Address Bit A15 logic 0 logic 0 LocalPlus Data Bit D15 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-b[...]
-
Página 68
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-23 Pin EXT_AD_12 Ball Y09 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A12 logic 0 logic 0 D12 hi - z LocalPlus Address Bit A12 logic 0 logic 0 LocalPlus Data Bit D12 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-[...]
-
Página 69
MPC5200B Users Guide, Rev . 1 2-24 F reescale Semiconductor Pinout T ables Pin EXT_AD_9 Ball V10 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A9 logic 0 logic 0 D9 hi - z LocalPlus Address Bit A9 logic 0 logic 0 LocalPlus Data Bit D9 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-bit da[...]
-
Página 70
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-25 Pin EXT_AD_6 Ball U11 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A6 logic 0 logic 0 D6 hi - z LocalPlus Address Bit A6 logic 0 logic 0 LocalPlus Data Bit D6 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-bit d[...]
-
Página 71
MPC5200B Users Guide, Rev . 1 2-26 F reescale Semiconductor Pinout T ables Pin EXT_AD_3 Ball Y12 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A3 logic 0 logic 0 D3 hi - z LocalPlus Address Bit A3 logic 0 logic 0 LocalPlus Data Bit D3 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-bit da[...]
-
Página 72
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-27 Pin EXT_AD_0 Ball V13 LocalPlus Bus multiplex ed mode Address Phase 8-Bit Data Phase 16-Bit Data Phase 32-Bit Data Phase A0 logic 0 logic 0 D0 hi - z LocalPlus Address Bit A0 logic 0 logic 0 LocalPlus Data Bit D0 LocalPlus non-mux 16-bit addr/16-bit data 24-bit addr/8-bit d[...]
-
Página 73
MPC5200B Users Guide, Rev . 1 2-28 F reescale Semiconductor Pinout T ables Pin PCI_TRD Y Ball W05 PCI PCI_TRD Y logic 1 PCI_TRD Y PCI T arget Ready LFLASH A21 logic 1 Large Flash Address Bit A21 MOST Graphics A5 logic 1 MOST Graphics Address Bit A5 Pin PCI_IRD Y Ball Y06 PCI PCI_IRD Y logic 1 PCI Initiator (HOST) Ready LFLASH A22 logic 1 Large Flas[...]
-
Página 74
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-29 Pin PCI_RESET Ball R02 PCI PCI_RESET logic 0 PCI Reset Output (open drain) MOST Graphics A15 logic 0 MOST Graphics Address Bit A15 T able 2-7. A T A Dedicated Signals PIN / BALL NUMBER Function Reset Va l u e Description Pin A T A_DRQ Ball V17 A T A A T A_DRQ logic 0 A T A [...]
-
Página 75
MPC5200B Users Guide, Rev . 1 2-30 F reescale Semiconductor Pinout T ables T able 2-8. LocalPlus Dedicated Signals PIN / BALL NUMBER Function Reset Va l u e Description Pin LP_RW Ball W16 LocalPlus Read/Wr ite logic 1 LocalPlus Read/Wr ite LIne Reset Configuration RST_CFG3 logic 1 Bit 3 -- ppc_pll_cfg_1 Pin LP_ALE Ball V14 LocalPlus Address Latch E[...]
-
Página 76
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-31 Figure 2-4 . PSC1 P or t Map—5 Pin s T able 2-9. PSC1 Pin Functions Pin Name Dir . GPIO A C9 7_1 UA R T 1 UA R T 1 e CODEC1 CODEC1 w/ MCLK PSC1_0 I/O GPIO AC97_1_SD A T A_OUT UAR T1_TXD U AR T1e_TXD CODEC1_TXD CODEC1_w/ MCLK_TXD PSC1_1 I/O GPIO AC97_1_SD A T A_IN UAR T1_R[...]
-
Página 77
MPC5200B Users Guide, Rev . 1 2-32 F reescale Semiconductor Pinout T ables T able 2-10. PSC1 Functions b y Pin PIN / BALL NUMBER Function Reset Va l u e Description Pin PSC1_0 Ball B11 GPIO hi - z GPIO Simple General Purpose I/O A C97_1 hi - z AC97_1_SD A T A_OUT AC97 Serial Data Out U ART1 hi - z UAR T1_TXD T ransmit Data U ART1e hi - z UAR T1e_TX[...]
-
Página 78
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-33 Pin PSC1_3 Ball B10 GPIO hi - z GPIO Simple General Purpose I/O A C97_1 hi - z AC97_1_BITCLK AC97 Bit Cloc k U ART1 hi - z UAR T1_CTS U ART Clear T o Send U ART1e hi - z UAR T1e_CTS U ART e C lear T o Send CODEC1 hi - z CODEC1_CLK CODEC Bit Clock CODEC1_w/MCLK hi - z CODEC1[...]
-
Página 79
MPC5200B Users Guide, Rev . 1 2-34 F reescale Semiconductor Pinout T ables Figure 2-5 . PSC2 P or t Map—5 Pin s T able 2-11. PSC2 Pin Functions Pin Name Dir . GPIO CAN1 /2 A C97_2 UA R T 2 UA RT 2 e CODEC2 CODEC2 w/ MCLK PSC2_0 I/O GPIO CAN1_TX A C97_2_SDA T A_OUT UAR T2_TXD U ART2e_TXD CODEC2_TXD CODEC2_w/ MCLK_TXD PSC2_1 I/O GPIO CAN1_RX AC97_2[...]
-
Página 80
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-35 T able 2-12. PSC2 Functions b y Pin PIN / BALL NUMBER Function Reset Va l u e Description Pin PSC2_0 Ball C09 GPIO hi - z GPIO Simple General Purpose I/O CAN1, CAN2 hi - z CAN1_TX CAN T ransmit A C97_2 hi - z AC97_2_SD A T A_OUT AC97 Serial Data Out U ART2 hi - z UAR T2_TXD[...]
-
Página 81
MPC5200B Users Guide, Rev . 1 2-36 F reescale Semiconductor Pinout T ables Pin PSC2_3 Ball B08 GPIO hi - z GPIO Simple General Purpose I/O CAN1, CAN2 hi - z CAN2_RX CAN Receive Data A C97_2 hi - z AC97_2_BITCLK AC97 Bit Cloc k U ART2 hi - z UAR T2_CTS U ART Clear T o Send U ART2e hi - z UAR T2e_CTS U ART e C lear T o Send CODEC2 hi - z CODEC2_CLK C[...]
-
Página 82
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-37 Figure 2-6. PSC3 P ort Map—10 Pins T able 2-13. PSC3 Pin Functions Pin name Dir . GPIO USB2 UA RT 3 UAR T 3 e CODEC3 PSC3_0 I/O (O) GPIO USB2_OE U ART3_TXD UAR T3e_TXD CODEC3_TXD PSC3_1 I/O(I) GPIO USB2_TXN U ART3_RXD U ART3e_RXD CODEC3_RXD PSC3_2 I/O(I) GPIO USB2_TXP U A[...]
-
Página 83
MPC5200B Users Guide, Rev . 1 2-38 F reescale Semiconductor Pinout T ables T able 2-14. PSC3 Pin Function s (cont.) Pin name Di r . CODEC3 w / M SPI U ART3 / SPI U AR T3e / SPI CODEC3 / SPI PSC3_0 I/O CODEC3_w/MCLK_TXD GPIO U ART3_TXD UAR T3e_TXD CODEC3_TXD PSC3_1 I/O CODEC3_w/MCLK_RXD GPIO UAR T3_RXD UAR T3e_RXD CODEC3_RXD PSC3_2 I/O CODEC3_w/MCLK[...]
-
Página 84
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-39 Pin PSC3_1 Ball B07 GPIO hi - z GPIO Simple General Purpose I/O USB2 hi - z USB2_TXN USB T ransmit Negativ e U ART3 hi - z U ART3_RXD Uar t Receiv e Data U ART3e hi - z U ART3e_RXD Uar t Receiv e Data CODEC3 hi - z CODEC3_RXD CODEC Receive Data CODEC3_w/MCLK hi - z CODEC3_w[...]
-
Página 85
MPC5200B Users Guide, Rev . 1 2-40 F reescale Semiconductor Pinout T ables Pin PSC3_3 Ball C06 GPIO hi - z GPIO Simple General Purpose I/O USB2 hi - z USB2_RXD USB Receive Data U ART3 hi - z UAR T3_CTS Uar t Clear T o Send U ART3e hi - z U ART3e_CTS Uar t Clear T o Send CODEC3 hi - z CODEC3_FRAME CODEC F rame Sync CODEC3_w/MCLK hi - z CODEC3_w/MCLK[...]
-
Página 86
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-41 Pin PSC3_5 Ball A06 GPIO hi - z LP_CS_7 USB2 hi - z USB2_RXN USB Receive P ositiv e UA RT 3 h i - z L P _ CS _ 7 U ART3e hi - z LP_CS_7 CODEC3 hi - z LP_CS_7 CODEC3_w/MCLK hi - z CODEC3_w/MCLK_MCLK CODEC Clock SPI hi - z LP_CS_7 U ART3, SPI hi - z LP_CS_7 U ART3e,SPI hi - z[...]
-
Página 87
MPC5200B Users Guide, Rev . 1 2-42 F reescale Semiconductor Pinout T ables Pin PSC3_7 Ball B05 GPIO hi - z GPIO Simple General Purpose I/O USB2 hi - z USB2_SPEED USB Speed UA RT 3 h i - z G P I O Simple General Purpose I/O U ART3e hi - z GPIO Simple General Purpose I/O CODEC3 hi - z GPIO Simple General Purpose I/O CODEC3_w/MCLK hi - z GPIO Simple G[...]
-
Página 88
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-43 Figure 2-7. USB P ort Map—10 Pins Pin PSC3_9 Ball C04 GPIO hi - z GPIO_W/W AKE_UP Simple General Purpose I/O with W AKE UP USB2 hi - z USB2_O VRCRNT USB Over Current U ART3 hi - z GPIO_W/W AKE_UP Simple General Purpose I/O with W AKE UP U ART3e hi - z GPIO_W/W AKE_UP Simp[...]
-
Página 89
MPC5200B Users Guide, Rev . 1 2-44 F reescale Semiconductor Pinout T ables T able 2-16. USB Pin Functions Pin Name Dir . Reset Configuration GPIO USB 2x U AR T4/5 USB_0 I/O GPIO USB1_OE GPIO USB_1 I/O RST_CFG6 USB1_TXN U AR T4_RTS USB_2 I/O RST_CFG7 USB1_TXP U ART4_TXD USB_3 I USB1_RXD UAR T4_RXD USB_4 I USB1_RXP U ART4_CTS USB_5 I USB1_RXN UAR T5_[...]
-
Página 90
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-45 Pin USB_3 Ball G01 GPIO hi - z ---- USB1 hi - z USB1_RXD USB1 Receive Data RESET Config. hi - z ---- UA RT 4 , UA RT 5 h i - z UART 4 _ R X D Uar t Receive Data Pin USB_4 Ball G02 GPIO hi - z ---- USB1 hi - z USB1_RXP USB1 Receive P ositive RESET Config. hi - z ---- UA RT _[...]
-
Página 91
MPC5200B Users Guide, Rev . 1 2-46 F reescale Semiconductor Pinout T ables Figure 2-8. Ethernet Output P ort Map—8 Pins Pin USB_9 Ball F03 GPIO hi - z GPIO Simple General Purpose I /O USB1 hi - z USB1_OVRCRNT USB1 Over Current RESET Config. hi - z ---- UA RT 4 , UA RT 5 h i - z IN T E R RUP T Function Po r t _c o nf [12:15] ETH_0 ETH_1 ETH_2 ET H[...]
-
Página 92
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-47 Figure 2-9. Ethernet In put / Control P ort Map—10 Pins T able 2-18. Ethernet Pin Functions Pin name Dir . Reset Configuration GPIO USB2 ETH7 ETH7 / USB2 ETH_0 I/O RST_ CFG8 OUTPUT OUTPUT ETH7_TXEN ETH7_TXEN ETH_1 I/O RST_CFG15 OUTPUT OUTPUT ETH7_TXD_0 ETH7_TXD_0 ETH_2 I/[...]
-
Página 93
MPC5200B Users Guide, Rev . 1 2-48 F reescale Semiconductor Pinout T ables ETH_9 I/O GPIO GPIO ETH7_RXCLK ETH7_RXCLK ETH_10 I/O GPIO GPIO ETH7_COL ETH7_COL ETH_11 I/O GPIO GPIO ETH 7_TXCLK ETH7_TXCLK ETH_12 I ETH7_RXD_0 ETH7_RXD_0 ETH_13 I/O INTERR UPT USB2_RXD INTERR UPT USB2_RXD ETH_14 I/O INTERR UPT USB2_RXP INTERR UPT USB2_RXP ETH_15 I/O INTERR[...]
-
Página 94
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-49 ETH_16 I/O ETH18_RXERR ETH18_w/ MD_RXERR U ART4e__DCD INTERR UPT UAR T4_CD INTERRUPT INTERRUPT ETH_17 I/O ETH18_CRS ETH18_w/ MD_CRS GPIO_W/W AKE- UP GPIO_W/W AKE-UP GPIO_W/W AKE-UP GPIO_W/W AKE- UP GPIO_W/W AKE- UP T able 2-20. Ethernet Output Funct ions by Pin PIN / BALL N[...]
-
Página 95
MPC5200B Users Guide, Rev . 1 2-50 F reescale Semiconductor Pinout T ables Pin ETH_1 Ball K02 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z GPIO Simple General Purpose Output ETH7 Wire hi - z ETH_TXD_0 Ethernet T ransmit Data Output ETH7 Wire / USB2 hi - z ETH_TXD_0 Ethernet T ransmit Data Output ETH18 Wire w/o MD hi - z ETH_TXD_0 Ethe[...]
-
Página 96
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-51 Pin ETH_2 Ball K03 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z USB2_TXP USB T ransmit P ositiv e ETH7 Wire hi - z GPIO Simple General Purpose Output ETH7 Wire / USB2 hi - z USB2_TXP USB T ransmit P ositiv e ETH18 Wire w/o MD hi - z ETH_TXD_1 Ethernet T ransmi[...]
-
Página 97
MPC5200B Users Guide, Rev . 1 2-52 F reescale Semiconductor Pinout T ables Pin ETH_3 Ball J01 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z USB2_PrtPWR U S B Po r t Po we r ETH7 Wire hi - z GPIO Simple General Purpose Output ETH7 Wire / USB2 hi - z USB2_PrtPWR U S B Po r t Po we r ETH18 Wire w/o MD hi - z ETH_TXD_2 Ethernet T ransmit D[...]
-
Página 98
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-53 Pin ETH_4 Ball J02 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z USB2_Speed USB Speed ETH7 Wire hi - z GPIO Simple General Purpose Output ETH7 Wire / USB2 hi - z USB2_Speed USB Speed ETH18 Wire w/o MD hi - z ETH_TXD_3 Ethernet T ransmit Data Output ETH18 Wire w[...]
-
Página 99
MPC5200B Users Guide, Rev . 1 2-54 F reescale Semiconductor Pinout T ables Pin ETH_5 Ball L03 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z USB2_Suspend USB Suspend ETH7 Wire hi - z GPIO Simple General Purpose Output ETH7 Wire / USB2 hi - z USB2_Suspend USB Suspend ETH18 Wire w/o MD hi - z ETH_TXERR Ethernet T ransmit Error Output ETH1[...]
-
Página 100
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-55 Pin ETH_6 Ball N02 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z USB2_OE USB Output Enable ETH7 Wire hi - z GPIO Simple General Purpose Output ETH7 Wire / USB2 hi - z USB2__OE USB Output Enable ETH18 Wire w/o MD hi - z GPIO Simple General Purpose Output ETH18 W[...]
-
Página 101
MPC5200B Users Guide, Rev . 1 2-56 F reescale Semiconductor Pinout T ables Notes: 1. The e xter nal bus clock (pci_clk) will be 1/2 the frequency of t he inter nal bus cloc k (ipb_clk) at powerup. Theref ore, 4 IPbus wait sta tes will translate to as little as 1 external wait state (i.e. peripheral must respond within 2 e xter nal clocks). The &quo[...]
-
Página 102
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-57 T able 2-21. Ethernet Input / Contr ol Functions by Pin PIN / BALL NUMBER Function Reset Va l u e Description Pin ETH_8 Ball M03 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z GPIO Simple General Purpose Output ETH7 Wire hi - z ETH_CD Ethernet Carr ier Detect ET[...]
-
Página 103
MPC5200B Users Guide, Rev . 1 2-58 F reescale Semiconductor Pinout T ables Pin ETH_10 Ball J03 GPIO hi - z GPIO Simple General Purpose Output USB2 hi - z GPIO Simple General Purpose Output ETH7 Wire hi - z ETH_COL Ethernet Collision De tect Input ETH7 Wire / USB2 hi - z ETH_COL Ethernet Collision De tect Input ETH18 Wire w/o MD hi - z ETH_COL Ether[...]
-
Página 104
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-59 Pin ETH_12 Ball M02 GPIO hi - z USB2 hi - z ETH7 Wire hi - z ETH_RXD0 Ethernet Receive Data Input ETH7 Wire / USB2 hi - z ETH_RXD0 Ethernet Receive Data Input ETH18 Wire w/o MD hi - z ETH_RXD0 Ethernet Receive Data Input ETH18 Wire w/ MD hi - z ETH_RXD0 Ethernet Receive Dat[...]
-
Página 105
MPC5200B Users Guide, Rev . 1 2-60 F reescale Semiconductor Pinout T ables Pin ETH_14 Ball N04 GPIO hi - z INTERR UPT USB2 hi - z USB_2_RXP USB Receive P ositiv e ETH7 Wire hi - z INTERRUPT ETH7 Wire / USB2 hi - z USB_2_RXP USB Receive P ositiv e ETH18 Wire w/o MD hi - z ETH_RXD2 Ethernet Receive Data Input ETH18 Wire w/ MD hi - z ETH_RXD2 Ethernet[...]
-
Página 106
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-61 Pin ETH_16 Ball L02 GPIO hi - z INTERR UPT USB2 hi - z USB_2_O VRCNT USB Over Current ETH7 Wire hi - z INTERRUPT ETH7 Wire / USB2 hi - z USB_2_O VRCNT USB Over Current ETH18 Wire w/o MD hi - z ETH_RXERR Ethern et Receiv e Erro r Input ETH18 Wire w/ MD hi - z ETH_RXERR Ether[...]
-
Página 107
MPC5200B Users Guide, Rev . 1 2-62 F reescale Semiconductor Pinout T ables Figure 2-10. Timer P or t Map—8 Pins T able 2-22. Timer Pin Functions Pin Name Dir . GPIO TIMER A T A CHIP SEL CAN2 SPI CAN2 / SPI TIMER 0 I/O SIMPLE GPIO TIMER 0 A T A_CS_0 CAN2_TX SIMPLE GPIO CAN2_TX TIMER 1 I/O SIMPLE GPIO TIMER 1 A T A_CS_1 CAN2_RX SIMPLE GPIO CAN2_RX [...]
-
Página 108
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-63 T able 2-23. Timer F unctions by Pin PIN / BALL NUMBER Function Reset Va l ue Description Pin TIMER_0 Ball Y20 TIMER hi - z TIMER_0 GPIO hi - z GPIO Simple General Pur pose I/O A T A CHIP SELECTS hi - z A T A_CS0 A T A Chip Select 0 CAN2 hi - z CAN2_TX CAN 2 T ransmit Data [...]
-
Página 109
MPC5200B Users Guide, Rev . 1 2-64 F reescale Semiconductor Pinout T ables Pin TIMER_3 Ball D02 TIMER hi - z TIMER_3 GPIO hi - z GPIO Simple General Pur pose I/O A T A CHIP SELECTS hi - z GPIO Simple General Pur pose I/O CAN2 hi - z GPIO Simple General Pur pose I/O SPI hi - z SPI _MISO SPI Master In Slav e Out CAN2 / SPI hi - z SPI MISO SPI Master [...]
-
Página 110
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-65 Figure 2-11. PSC6 P ort Map—4 Pins Pin TIMER_6 Ball E02 TIMER hi - z TIMER_6 GPIO hi - z GPIO Simple General Pur pose I/O A T A CHIP SELECTS hi - z GPIO Simple General Pur pose I/O CAN2 hi - z GPIO Simple General Pur pose I/O SPI hi - z GPIO Simple General Pur pose I/O CA[...]
-
Página 111
MPC5200B Users Guide, Rev . 1 2-66 F reescale Semiconductor Pinout T ables T able 2-24. PSC6 Pin Functions Pin name Dir . GPIO UA R T 6 / I r D A CODEC6 / IrD A PSC6_0 I/O WA KE_UP U ART6_RXD IrD A_RX CODEC6_RXD Irda_RX PSC6_1 I/O W AKE_UP U ART6_CTS CODEC6_FRAME PSC6_2 I/O SIMPLE GPIO U ART6_TXD IrD A_TX CODEC6_TXD IrD A_TX PSC6_3 I/O SIMPLE GPIO [...]
-
Página 112
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-67 Figure 2-12. I 2 C P ort Map—4 Pins ( two pins e ach, for tw o I 2 Cs ) T able 2-26. I 2 C Functions by Pin PIN / BALL NUMBER Function Reset Va l u e D escription Pin I2C_0 Ball V19 I2C_1 / I2C_2 I2C_1_CLK I2C Clock CAN_1/I2C_2 CAN1_TX CAN T ransmit Data I2C_1/A T A_CS I2[...]
-
Página 113
MPC5200B Users Guide, Rev . 1 2-68 F reescale Semiconductor Pinout T ables T able 2-27. SDRAM Bus Pin Functions PIN B ALL NUMBER Function Reset Va l u e Description Pin MEM_RAS Ball A18 logic 0 SDRAM Bus Row Address Strobe Pin MEM_CAS Ball B19 logic 0 SDRAM Bus Column Address Strobe Pin MEM_WE Ball A19 logic 0 SD RAM Bus Write enable Pin MEM_CS_0 B[...]
-
Página 114
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-69 Pin MEM_MA_11 Ball E20 logic 0 SDRAM Bus Memor y Address 11 Pin MEM_MA_10 Ball B17 logic 0 SDRAM Bus Memor y Address 10 Pin MEM_MA_9 Ball E19 logic 0 SDRAM Bus Memor y Address 9 Pin MEM_MA_8 Ball D20 logic 0 SDRAM Bus Memor y Address 8 Pin MEM_MA_7 Ball D19 logic 0 SDRAM Bu[...]
-
Página 115
MPC5200B Users Guide, Rev . 1 2-70 F reescale Semiconductor Pinout T ables Pin MEM_MDQ_24 Ball M18 hi - z SDRAM Bus Data 24 Pin MEM_MDQ_23 Ball K18 hi - z SDRAM Bus Data 23 Pin MEM_MDQ_22 Ball J17 hi - z SDRAM Bus Data 22 Pin MEM_MDQ_21 Ball J18 hi - z SDRAM Bus Data 21 Pin MEM_MDQ_20 Ball H18 hi - z SDRAM Bus Data 20 Pin MEM_MDQ_19 Ball G18 hi - z[...]
-
Página 116
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-71 Pin MEM_MDQ_5 Ball R19 hi - z SDRAM Bus Data 5 Pin MEM_MDQ_4 Ball R20 hi - z SDRAM Bus Data 4 Pin MEM_MDQ_3 Ball T19 hi - z SDRAM Bus Data 3 Pin MEM_MDQ_2 Ball T20 hi - z SDRAM Bus Data 2 Pin MEM_MDQ_1 Ball U19 hi - z SDRAM Bus Data 1 Pin MEM_MDQ_0 Ball U20 hi - z SDRAM Bus[...]
-
Página 117
MPC5200B Users Guide, Rev . 1 2-72 F reescale Semiconductor Pinout T ables T able 2-29. CLOCK / RESET Pin Functions CLOCK / RESET Func tions Reset Va l u e Description Pin PORRESET Ball A13 logic 1 P ower On Reset Pin HRESET Ball B13 logic 1 Hard Reset Pin SRESET Ball A14 logic 1 Soft Reset Pin SYS_XT AL_IN Ball A15 APLL Chip clock crystal / extern[...]
-
Página 118
Pinout T ables MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 2-73 Pin LP_OE Ball D08 logic 1 LocalPlus Bus Output Enable Pin IRQ0 Ball P03 External Interr upt 0 Pin IRQ1 Ball P01 External Interr upt 1 Pin IRQ2 Ball P02 External Interr upt 2 Pin IRQ3 Ball R01 External Interr upt 3 Pin R TC_XT AL_IN Ball C02 Real Time Clock Crystal Input / [...]
-
Página 119
Signal De scriptions Notes MPC5200B Users Guide, Rev . 1 2-74 F reescale Semiconductor[...]
-
Página 120
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 3-1 Chapter 3 Memory Map 3.1 Overview The following sections are contained in this document: • MPC5200B Internal Register Memory Map • MPC5200B Memory Map • SDRAM Bus • LocalPlus Bus — Memory Cycles – Boot Chip Se lect – Chip Selects — A T A Cycles — PCI Cycles • M[...]
-
Página 121
MPC5200B Users Guide, Rev . 1 3-2 F reescale Semiconductor Internal Register Memory Map 3.2 Internal Register Memory Map T able 3-1. Internal Regi ster Memory Map Address Name Description Reference MBAR + 0x0000 MM Memory Map Registers Section 3.3.3 MBAR + 0x0100 SDRAM SDRAM Memor y Controller registers. Section 8.7 MBAR + 0x0200 CDM Clock Distribu[...]
-
Página 122
MPC5200B Memory Map MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 3-3 3.3 MPC5200B Memory Map The MPC5200B memory map has the following main regions: • MPC5200B Internal Register Space • External Busses — SDRAM Bus — LocalPlus Bus – External Chip Selects 0 - 7 – Memory Space – Boot Space – Program Space – Data Spac e •[...]
-
Página 123
MPC5200B Users Guide, Rev . 1 3-4 F reescale Semiconductor MPC5200B Memor y Map 3.3.2.2 LocalPlus Bus The LocalPlus Bus is designed to connect to ROM, FLASH, static RAM and other peripheral devi ces. It is not de signed to accommod ate DRAM’ s. Program execution begins from the Loca lPlus Bus memory device connected to LP_CS0 . In actual practice[...]
-
Página 124
MPC5200B Memory Map MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 3-5 3.3.3 Memory Map Space R egister Description These registers exist in the Memory Map registe r spac e relative to Memory Base Address Register (MBAR). 3.3.3.1 Memory Address Base Re gister —MBAR + 0x0000 3.3.3.2 Boot and Chip Select Addresses msb 0 1 2 3 4 5 6 7 8 9 1[...]
-
Página 125
MPC5200B Users Guide, Rev . 1 3-6 F reescale Semiconductor MPC5200B Memor y Map All of these Base Address Reg isters work the same 3.3.3.3 SDRAM Chip Select Configuration Registers 0x002C CS5 Star t Address Chip Select 5 through th e LocalPlus Bus. Any access on an address between the Star t and Stop Addresses enabl es this chip select. 0x0030 CS5 [...]
-
Página 126
MPC5200B Memory Map MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 3-7 msb 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 R Base XLB Address Reser v ed W RESET 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reserved SDRAM Size W R E S E T 0000000000000000 Bit s Name Description 0:11 Base XLB Address Star t add[...]
-
Página 127
MPC5200B Users Guide, Rev . 1 3-8 F reescale Semiconductor MPC5200B Memor y Map 3.3.3.4 IPBI Contr ol Register and W ait State Enable —MB AR+0x0054 The IPBI Control Register consists of the Enable s for the Ba se Addresses set in Memory Map Spac e msb 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 R Reser v ed CS7 Ena CS6 Ena Boot Ena Reserved CS5 Ena CS4[...]
-
Página 128
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 4-1 Chapter 4 Resets and Reset Configuration 4.1 Overview The following sections are contained in this document: • Hard and Soft Reset Pins • Reset Sequence • Reset Operation • Other Resets • Reset Configuration 4.2 Har d and Soft Reset Pins MPC5200B has three primary reset [...]
-
Página 129
MPC5200B Users Guide, Rev . 1 4-2 F reescale Semiconductor Reset Sequen ce 4.2.3 Soft Reset—SRESET External SRESET is an open drain signal. SRESET requires an external pull-up. Assertion of SRESET causes a ssertion of the internal soft reset. Internal soft reset is ac tually an interrupt that takes the same exception vector as HRESET . In particu[...]
-
Página 130
Other Resets MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 4-3 Figure 4-2. PORRESET Asser tion When external HRESET is asserted, internal reset logic catches the reset signal held low and a sserts internal hard and soft resets for 4096 reference clock cy cles. The external reset signal must be held low for at least 4 reference cloc k cycl[...]
-
Página 131
MPC5200B Users Guide, Rev . 1 4-4 F reescale Semiconductor Reset Configu ration 4.6 Reset Configuration The MPC5200B is init ialized by sampling values found on specific device pins dur ing power-on reset (PORRESET ) or hard-reset (HRESET ). These pins are outputs in normal operation, but are sampled as inputs during power-on re set or hard-reset. [...]
-
Página 132
Reset Configuration MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 4-5 L03 RST_CFG13 ETH5 PORCFG[18] boot_rom_size F or non-muxed boot R OMs: 2,3 bit = 0 : 8 bit boot ROM data b us, 24 bit max boot ROM address bus bit = 1 : 16 bit boot R OM data b us, 16 bit boot ROM address bus F or muxed boot R OMs: boot ROM address is max 25 significant[...]
-
Página 133
Resets and Reset Configuration Notes MPC5200B Users Guide, Rev . 1 4-6 F reescale Semiconductor[...]
-
Página 134
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-1 Chapter 5 Cloc ks and P ower Mana gement 5.1 Overview The following sections are contained in this document: • Clock Distribution Module (CDM) • MPC5200B Clock Domains • Power Management • CDM Registers 5.2 Cloc k Distribution Module (CDM) The CDM is the source of all inte[...]
-
Página 135
MPC5200B Users Guide, Rev . 1 5-2 F reescale Semiconductor MPC5200B Clock Domains — When generated externally , th e frequency can be different NO TE Only one pin is allocated to s upply the USB and PSC6/IrDA clock. If both modules require exter nal clock generation, the fre quency must b e 48MHz. SPI —The SPI (Serial Periphera l Interface) has[...]
-
Página 136
MPC5200B Clock Domains MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-3 5.3.1 MPC5200B T op Level Cloc k Relations Figure 5-2 shows the CDM clock divide circuitry . Th is picture shows only the functional clocks. The clock network regarding the scan and bypass modes is not included. Figure 5-2. MPC5200 Cloc k Relations SYS_XT AL_IN XLB C[...]
-
Página 137
MPC5200B Users Guide, Rev . 1 5-4 F reescale Semiconductor MPC5200B Clock Domains Ta b l e 5 - 2 shows the System PLL configuration and the corresponding fsystem frequencies for a 27.0 MH z and 33.0 MHz input clock. Ta b l e 5 - 3 shows all possible clock ratios. T able 5-2. System PLL Ratios SYS_XT AL_IN sys_pll_ cfg[1] sys_pll_cfg[0] f VCOsys [MH[...]
-
Página 138
MPC5200B Clock Domains MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-5 Ta b l e 5 - 4 shows the typical clock r ati os with a 33.0 MHz clock input on the SYS_XT AL_IN pin and a System PLL divide value 16 (sys_pll_cfg[0] = 0). NO TE Frequency ranges in Ta b l e 5 - 3 and Ta b l e 5 - 4 represen t possib le ranges of operation. A variety [...]
-
Página 139
MPC5200B Users Guide, Rev . 1 5-6 F reescale Semiconductor MPC5200B Clock Domains Ta b l e 5 - 6 gives the e300 Core APLL and operating frequency opti ons compared to the xlb_clk reference input (shown in Figure 5-2 ). The selection of an e300 Core frequency is made at Power-On Reset (POR) vi a the reset configuration input s. For more information [...]
-
Página 140
MPC5200B Clock Domains MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-7 NO TE The XLB CLOCK frequency and the ppc_pll_cfg[0:4] must be chosen such that resulting CORE CLOCK frequency and PLL (f VCOco re ) frequency do n ot exceed thei r respective maximium or minimum operating freque ncies. Refer to Ta b l e 5 - 5 and MPC5200B Har eware [...]
-
Página 141
MPC5200B Users Guide, Rev . 1 5-8 F reescale Semiconductor MPC5200B Clock Domains Figure 5-3 shows the clock relationships for the SDRAM Controller . Figure 5-3. Timing Dia gram—Clock W a veforms f or SDRAM and DDR Memories The XLB is 64bits a nd the SDRAM external bus is 32bits. When SDR (sing le data ra te) SDRAM memory is used, th e XLB bandwi[...]
-
Página 142
P ower Management MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-9 5.4 P ower Management Power Management modes are listed below . Details are give n in the sections that follow . • Full-Power Mode • Power Conservation Modes The MPC5200B design is equipped wi th many power conservation featur es, which are supported in the peripheral[...]
-
Página 143
MPC5200B Users Guide, Rev . 1 5-10 F reescale Semiconductor P ower Manag ement 5.4.3.1 Dynamic P ower Mode This is the default power state mode. The core is fully powered and internal functi onal units are operating at the full process or clock speed. If Dynamic Mode is enabled, idle functional un its automa tically enter a l ow-power state. This d[...]
-
Página 144
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-11 mode. The e300 Core must enable the deep sleep process in the CDM module, then put itse lf into sleep mode before the e300 Core PL L can be disabled. Since MPC5200B clocks are stopped in Deep Sleep mode, the wake-up time is longer than in the e300 Core-only power down modes.[...]
-
Página 145
MPC5200B Users Guide, Rev . 1 5-12 F reescale Semiconductor CDM Registers 5.5.1 CDM JT A G ID Num ber Register—MB AR + 0x0200 The CDM JT AG ID Number Register is a read -only register that contains the JT AG Identification number identifying MPC5200B. The value is hard coded (1001 101D hex) and cannot be modified. Device I.D. Register = 1001 101D[...]
-
Página 146
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-13 15 sys_pll_b ypass bit = 0 :Nor mal mode. The SYS OSC cloc k input is multiplied up by the system PLL, then the PLL VCO is divided down to produce inter nal clocks. bit = 1 :The SYS OSC clock input is used directly , bypassing the system PLL. No multiplication of the input f[...]
-
Página 147
MPC5200B Users Guide, Rev . 1 5-14 F reescale Semiconductor CDM Registers 5.5.3 CDM Bread Crumb Register—MB AR + 0x0208 The CDM Bread Crumb Register is a 32-bit regi ster that is not reset. It s purpose is to let firmware designers leave some status code before entering a reset condition. Since this register is never reset, the value wri tten is [...]
-
Página 148
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-15 NO TE The clock ratio should only be cha nged if no module, which is clocke d by the IPB and/or PCI clock, is currently running. Suggestion is to cha nge the clock ratio dur ing the boot time only . 5.5.5 CDM 48MHz Fractional Divider Configuratio n Register—MBAR + 0x0210 T[...]
-
Página 149
MPC5200B Users Guide, Rev . 1 5-16 F reescale Semiconductor CDM Registers 5.5.6 CDM Cloc k Enable Register—MB AR + 0x0214 The CDM Clock Enable Register , or power mana gement register , contains control bits th at enable/disable pe ripheral clocks. Unuse d peripherals can have their clock st opped, reducing power consumption. Bit Name Description[...]
-
Página 150
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-17 5.5.7 CDM System Oscillator C onfiguration Regi ster—MB AR + 0x0218 This register contains the System Oscillator disable bit. The system oscillator is disabled if an external clock so urce (not a crystal) drives the oscillator in package pin. The crystal oscillator pad cel[...]
-
Página 151
MPC5200B Users Guide, Rev . 1 5-18 F reescale Semiconductor CDM Registers 5.5.8 CDM Cloc k Contro l Sequencer Confi guration Regist er—MB AR + 0x021C This register contains the conf iguration that controls the CCS module. The CCS mo dule lets MPC5200B enter deep sleep power down mode (all clocks stopped). 16 17 18 19 20 21 22 23 24 25 26 27 28 29[...]
-
Página 152
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-19 16–30 — Reser ved f or future use. Wr ite 0. 31 ccs_qreq_ test CCS T est bit—Used in CCS module functional simula tion to simulate a QREQ sig nal. bit = 0 : QREQ input to CCS f orced activ e. bit = 1 : QREQ input to CCS comes directly from e300 Core. Bit Name Descripti[...]
-
Página 153
MPC5200B Users Guide, Rev . 1 5-20 F reescale Semiconductor CDM Registers 5.5.9 CDM Soft Reset Register—MB AR + 0x0220 This register contains 2 reset control bits. 5.5.10 CDM System PLL St atus Register—MB AR + 0x0224 This register contains cont rol and status bits of the CDM PLL lock detect module. T able 5-1 6. CDM Soft Rese t Register m s b [...]
-
Página 154
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-21 5.5.11 PSC1 Mcloc k Config Register—MB AR + 0x0228 This register controls the gene ration of the Mclk for PSC1. Before modify the register value the divi der must be disabled. Bit Name Description 0–6 — Reserved f or future use. Write 0. 7 pll_lock 1 CDM System PLL Loc[...]
-
Página 155
MPC5200B Users Guide, Rev . 1 5-22 F reescale Semiconductor CDM Registers 5.5.12 PSC2 Mcloc k Config Register—MB AR + 0x022C This register controls the gene ration of the Mclock for PSC2. Before modify the register value the divider must be disabled. 5.5.13 PSC3 Mcloc k Config Register—MB AR + 0x0230 This register controls the gene ration of th[...]
-
Página 156
CDM Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 5-23 5.5.14 PSC6 (IrD A) Mcloc k C onfig Register—MB AR + 0x0234 This register controls the gene ration of the Mclock for PSC6. Before modify the r egister value the divider must be disabled. T able 5-21. CDM PSC6 Mcloc k Config m s b 0 123456789 1 0 1 1 1 2 1 3 1 4 1 5 R Reser[...]
-
Página 157
MPC5200B Users Guide, Rev . 1 5-24 F reescale Semiconductor CDM Registers[...]
-
Página 158
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 6-1 Chapter 6 e300 Pr ocessor Core 6.1 Overview The following sections are contained in this document: • MPC5200B e300 Processor Core Fu nctional Overview • e300 Core Reference Manual • Not supported e300 Core Features 6.2 MPC5200B e300 Pr ocessor Core Functional Over vie w The [...]
-
Página 159
MPC5200B Users Guide, Rev . 1 6-2 F reescale Semiconductor e300 Core Reference Manual 6.3 e300 Core Reference Man ual A complete specification for the e300 core implementation used on the MPC5200B is obtained through a coll ection of documentatio n. • PowerPC MicroprocessorFamily: The Programming Envir onments for 32-bit Mi croprocessors, Rev . 2[...]
-
Página 160
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-1 Chapter 7 System Integration Unit ( SIU ) 7.1 Overview The following sections are contained in this document: • Interrupt Controller , includes: — Interrupt Controller Registers • General Purpose I / O ( GPIO ) , includes: — GPIO Standard Registers—MBAR + 0x0B 00 — W a[...]
-
Página 161
MPC5200B Users Guide, Rev . 1 7-2 F reescale Semiconductor Interrupt Controller Ta b l e 7 - 1 does not include machin e-check bus errors or transac tion handshaking. e300 core interrupt pins given in Section 7.2.1.1, Machine Check Pin—core_mcp through Section 7.2.1.3, S tandar d Interrupt—cor e_int show e300 core interrupt priority . 7.2.1.1 M[...]
-
Página 162
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-3 Figure 7-1. Interr upt Sources and e300 core In terrupt Pins IRQ [ 0 : 3 ] Interrupt Requests IRQ [ 0 : 3 ] provides interrupt requests to Interrupt Controllers for external devices such as: • graphics controllers • PCI interrupt controller •A T A s • transport[...]
-
Página 163
MPC5200B Users Guide, Rev . 1 7-4 F reescale Semiconductor Interrupt Controller 7.2.2 Interface Description Figure 7-2. Interrupt Contr oller Routing Scheme 7.2.3 Programming Note Under specific conditions, the Interrupt C ontroller may not support nested interrupts. The Interrup t Controller may prevent the assertion of a core_cint interrupt if a [...]
-
Página 164
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-5 correct behavior , the e300 core always completes the core_int be fore treating the core _smi. In this case, the CPU does not auth orize nested interrupt at the exception if the ISR set the 603e’ s MSR[ EE] to support nested interrupt (core_smi a nd core_int). In ord[...]
-
Página 165
MPC5200B Users Guide, Rev . 1 7-6 F reescale Semiconductor Interrupt Controller Bit s Name Description — P er_mask Bits 0 : 23—T o mask/a ccept individual per ipheral interrup t sources. This masking is in addition to interrupt en ab les, which may exist in each source module. 0=Accept interr upt from source module. 1=Ignore interr upt from sou[...]
-
Página 166
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-7 7.2.4.2 ICTL P eripheral Priority and HI / LO Select 1 Re gister —MBAR + 0x0504 T able 7-5. ICTL P eripheral Priorit y and HI / LO Select 1 Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R P er0_pr i Per1_pri P er2_pr i P er3_p ri W R E S E T : 0 00000000 0 0 0 [...]
-
Página 167
MPC5200B Users Guide, Rev . 1 7-8 F reescale Semiconductor Interrupt Controller 7.2.4.3 ICTL P eripheral Priority and HI / LO Select 2 Re gister —MBAR + 0x0508 7.2.4.4 ICTL P eripheral Priority and HI / LO Select 3 Re gister —MBAR + 0x050C T able 7-6. ICTL P eripheral Priority and HI / LO Select 2 Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4[...]
-
Página 168
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-9 7.2.4.5 ICTL External Enabl e and External T ypes Register —MB AR + 0x0510 8 : 1 1 P er1 8_pri P eriph eral 18 = CAN2 12 : 1 5 P er19_pri Reser ved 16 : 1 9 P er20_pri Reser ved 20 : 23 P er21_pri P eriph eral 21 = XLB Arbiter 24 : 2 7 P er22_pri P er iphe ral 22 = B[...]
-
Página 169
MPC5200B Users Guide, Rev . 1 7-10 F reescale Semiconductor Interrupt Controller 7.2.4.6 ICTL Critical Priority and Main Interrupt Ma sk Register—MBAR + 0x0514 — EENA [ x ] Individual e nab le bits f or each IRQ input pin. Setting the associated bit lets th e related IRQ pin generate interr upts. In either case, status indications in PSa and CS[...]
-
Página 170
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-11 — Main_Mask [ x ] T o mask / accept ind ividual main interrupt sources (as opposed to peripheral or critical interrupt sources). This masking is in addition to interrupt e nab les, which may e xist in each source module. 0=Default. Accept interrupt from source modul[...]
-
Página 171
MPC5200B Users Guide, Rev . 1 7-12 F reescale Semiconductor Interrupt Controller 7.2.4.7 ICTL Main Interrupt Priority and INT / SMI Select 1 Register —MB AR + 0x0518 T able 7-10. ICTL M ain Interrupt Priority and INT / SMI Select 1 Regis ter m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Main1_pri Main2_pri Main3_pri Main4_pri W R E S E T : 0 00000[...]
-
Página 172
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-13 7.2.4.8 ICTL Main Interrupt Priority and INT / SMI Select 2 Register—MB AR + 0x051 C T able 7-11. ICTL M ain Interrupt Priority and INT / SMI Select 2 Regis ter m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Main9_pri Main10_pri Main11_pr i Main12_pri W R E S E T : 0 [...]
-
Página 173
MPC5200B Users Guide, Rev . 1 7-14 F reescale Semiconductor Interrupt Controller 7.2.4.9 ICTL P erstat, MainStat, MainStat, CritSta t Encoded Register—MBAR + 0x0524 T able 7-12. ICTL P erStat, M ainStat, CritStat Encoded Re gister m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reser v ed PSe Reserved MSe W R E S E T : 0 00000000 0 0 0 00 0 0 16 17 [...]
-
Página 174
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-15 7.2.4.10 ICTL Critical Interrupt Stat us All Register—MBAR + 0x0528 21:23 CSe Critical Status Encoded—makes a singular i ndication of the current critical interr upt ( 3 bits indicating 1 of 4 possible interrupts ). The msb operates as a Flag bit, as descr ibed ab[...]
-
Página 175
MPC5200B Users Guide, Rev . 1 7-16 F reescale Semiconductor Interrupt Controller 7.2.4.11 ICTL Main Interrupt Status All Register—MB A R + 0x052C Bit s Name Description 0:3 — R e s e r v e d — CSa [ x ] Critical Interrupt Status All—Indicates all pendi ng interrupts, including the currently activ e interrupt ( if any ). CSa is binary , show[...]
-
Página 176
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-17 7.2.4.12 ICTL P eripheral Interrupt Status All Register—MB AR + 0x0530 23 MSa8 GPIO Wak eUp in terrupt 24 MSa9 TMR0 interrupt 25 MSa10 TMR1 interr upt 26 MSa11 TMR2 interr upt 27 MSa12 TMR3 interr upt 28 MSa13 TMR4 interr upt 29 MSa14 TMR5 interr upt 30 MSa15 TMR6 i[...]
-
Página 177
MPC5200B Users Guide, Rev . 1 7-18 F reescale Semiconductor Interrupt Controller 7.2.4.13 ICTL P eripheral Interrupt Status All Register—MB AR + 0x0538 16 PSa6 USB 17 PSa7 A T A 18 PSa8 PCI Control module 19 PSa9 PCI SC Initiator Rx 20 PSa10 PCI SC Initiator Tx 21 PSa11 PSC4 22 PSa12 PSC5 23 PSa13 SPI modf 24 PSa14 SPI spif 25 PSa15 I 2 C1 26 PSa[...]
-
Página 178
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-19 7.2.4.14 ICTL Main Interrupt Em ulation All Register—MB AR + 0x0540 T able 7-17. ICTL Main Interrupt Em ulation All Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reser v ed MEa W R E S E T : 0 00000000 0 0 0 00 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 3[...]
-
Página 179
MPC5200B Users Guide, Rev . 1 7-20 F reescale Semiconductor Interrupt Controller 7.2.4.15 ICTL P eripheral Interrupt Em ulation All Register—MB AR + 0x0544 T able 7-18. ICTL P eripheral Interrupt Emulation All Re gister m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reser v ed PEa W R E S E T : 0 00000000 0 0 0 00 0 0 16 17 18 19 20 21 22 23 24 25 [...]
-
Página 180
Interrupt Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-21 7.2.4.16 ICTL IRQ Interrupt Em ulation All Register—MB AR + 0x0548 27 PEa17 CAN1 28 PEa18 CAN2 29:30 — Reser v ed 31 PEa21 XLB Arbiter T able 7-19. IC TL IRQ Interrupt Emulation All Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reserved I RQEa Reserved W R[...]
-
Página 181
MPC5200B Users Guide, Rev . 1 7-22 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3 General Purpose I / O ( GPIO ) There are a total of 56 possible GPIO pins on the MPC5200B. V irtua lly all of these pins are shared with alternate hardware func tions. Therefore, GPIO av ailability is en tirely dependant on the peripheral set a[...]
-
Página 182
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-23 PSC1_0 UAR T1 / A C971 / CODEC1 No No PSC1_1 UAR T1 / A C971 / CODEC1 No No PSC1_2 U ART1 / AC971 N o N o PSC1_3 UAR T1 / A C971 / CODEC1 No No PSC1_4 UAR T1 / AC971 / CODEC1 Y es Y es PSC2_0 UAR T2 / A C972 / CODEC2 / CAN1 No N o PSC2_1 UAR T2 / A C972 / CO[...]
-
Página 183
MPC5200B Users Guide, Rev . 1 7-24 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) GPIO_ETHI_2 Ethernet No No GPIO_ETHI_3 Ethernet No No GPIO_SINT_4 ( ETH ) Ether net / USB2/J1850 Y es No GPIO_SINT_5 ( ETH ) Ethernet / USB2/U AR T4 Y es No GPIO_SINT_6 ( ETH ) Ethernet / USB2/U AR T4 Y es No GPIO_SINT_7 ( ETH ) Ethernet / USB2/U A[...]
-
Página 184
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-25 7.3.1 GPIO Pin Multiplexing Figure 7-3 shows the GPIO / Generic MUX cell. Figure 7-3. GPIO / Generic MUX Cell Pin MUX Logic I/O C e l l Alternate Func 1 IN OUT BC Enabled Alternate Func 2 IN OUT BC Enabled TIMER IN OUT BC Enabled G P I O/d/W IN OUT BC Enable[...]
-
Página 185
MPC5200B Users Guide, Rev . 1 7-26 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.1.1 PSC1 ( U ART1 / A C97 / CODEC1 ) The PSC1 port has 5 pins with hardware support for: • CODEC • UAR T (4 pins consumed) • UAR T e (expanded with carrier detect input– 5 pins consumed ) •A C 9 7 Unused pins can serve as simple GPIOs[...]
-
Página 186
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-27 Full Ethernet consumes a ll 18 pins, unless the optional MDIO a nd MDC pins are specified as unused . In this case, 2 Output Only GPIO are available. Meanwhile, there are other cases becasue many pins can be used for UAR T , J1850. Please Refer to the port-m[...]
-
Página 187
MPC5200B Users Guide, Rev . 1 7-28 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) • T imer pins 6 and 7 are de dicated as T imer GPIO and have no alternate function. Although the T imer as GPIO only operates to the Simple GPIO lev el, Inte rrupt capability can be achi eved by configuring the Time r for Input Capture mode. 7.3.[...]
-
Página 188
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-29 7.3.2.1.1 G PS P ort C onfiguration Register — MBAR + 0x0B00 T able 7-21. GPS P ort Configuration Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RC S 1 LPTZ AL Ts CS7 CS6 A T A IR_USB_CLK IRD A Ether W R E S E T : 0 00000000 0 0 0 0000 16 17 18 19 20 [...]
-
Página 189
MPC5200B Users Guide, Rev . 1 7-30 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 9 : 1 1 IR D A Infrared Data Associati on 000 = Al l IrD A pins are GPIOs 001 = Reserved 010 = Reserved 011 = R eserved 100 = Reserved 101 = UAR T (without CD) / IrDA 110 = Reser ved 111 = CODEC (without MCLK) / IrD A 12: 15 Ether Ether net 0000 = [...]
-
Página 190
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-31 7.3.2.1.2 G PS Simple GPIO Enab les Register — MBAR + 0x0B04 20 : 23 PSC3 Programmab le Ser ial Controller 3 0000 = All PSC3 pins are GPIOs 0001 = USB2 on PSC3, no GPIOs availab le, see Note 3 001X = Reser ved 0100 = U ART functi onality without CD 0101 = [...]
-
Página 191
MPC5200B Users Guide, Rev . 1 7-32 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) R Reserve d IRDA ETHR Rese rved USB W 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed PSC3 PSC2 PSC1 W R E S E T : 0 00000000 0 0 0 00 0 0 Bit Name Description 0:1 — R e s e r v e d 2 : 3 IRD A Individual enab le bits for the 2 S[...]
-
Página 192
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-33 7.3.2.1.3 G PS Simple GPIO Open Dr ain T ype Register —MBAR + 0x0B08 24 : 27 PSC2 Individual enable bits f or the 4 Simple GPIO on PSC2 por t. bit 24 controls GPIO_PSC2_3 (PSC2_3 pin) bit 25 controls GPIO_PSC2_2 (PSC2_2 pin) bit 26 controls GPIO_PSC2_1 (PS[...]
-
Página 193
MPC5200B Users Guide, Rev . 1 7-34 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.4 G PS Simple GPIO Data Direction Regist er—MBAR + 0x0B0C 12 : 1 5 USB Indivi dual bits to cause open drain em ulation f or pins configured as GPIO outpu t. bit 12 controls GPIO_USB_3 (USB1_8 pin) bit 13 controls GPIO_USB_2 (USB1_7 pin) b[...]
-
Página 194
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-35 Bit Name Description 0:1 — R e s e r v e d 2 : 3 IRD A Individual bits to control directionality of the pin as GPIO . bit 2 controls GPIO_IRD A_1 (IR_USB_CLK pi n) bit 3 controls GPIO_IRD A_0 (IRDA_TX pin) 0 = Pin is Input (default) 1 = Pin is Output 4 : 7[...]
-
Página 195
MPC5200B Users Guide, Rev . 1 7-36 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 24 : 27 PSC2 Individual bits to control directionali ty of the pin as GPIO . bit 24 controls GPIO_PSC2_3 (PSC2_3 pin) bit 25 controls GPIO_PSC2_2 (PSC2_2 pin) bit 26 controls GPIO_PSC2_1 (PSC2_1 pin) bit 27 controls GPIO_PSC2_0 (PSC2_0 pin) 0 = Pin[...]
-
Página 196
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-37 7.3.2.1.5 G PS Simple GPIO Data Ou tput V alues Register —MB AR + 0x0B10 T able 7-25. GPS Simple GPIO Data Output V alues Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reserve d IRDA ETHR Rese rved USB W R E S E T : 0 00000000 0 0 0 00 0 0 16 17 18[...]
-
Página 197
MPC5200B Users Guide, Rev . 1 7-38 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.6 G PS Simple GPIO Data I nput V alues Register —MB AR + 0x0B14 24 : 2 7 PSC2 Individual bits to control the st ate of pins config ur ed as GPIO output. bit 24 controls GPIO_PSC2_3 (PSC2_3 pin) bit 25 controls GPIO_PSC2_2 (PSC2_2 pin) bit[...]
-
Página 198
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-39 7.3.2.1.7 G PS GPIO Output-Onl y Enables Register —MB AR + 0x0B18 12 : 15 USB Indivi dual status bits reflecting the state of correspond ing GPIO pins. bit 12 reflects GPIO_USB_3 (USB1_8 pin) bit 13 reflects GPIO_USB_2 (USB1_7 pin) bit 14 reflects GPIO_USB[...]
-
Página 199
MPC5200B Users Guide, Rev . 1 7-40 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.8 G PS GPIO Output -Onl y Da ta V alue Out R egister —MB AR + 0x0B1C Bit Name Description 0 : 7 ETHR Individual bits to enable each Output On ly GPIO pin—all re side on the Ether net por t. bit 0 controls GPIO_ETHO_7 (ETH_7 pin) bit 1 c[...]
-
Página 200
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-41 7.3.2.1.9 G PS GPIO Simple Interrupt Enable Register—MB AR + 0x0B20 Bit Name Description 0 : 7 ETH R Individual bits to control the st ate of enabled Output Only GPIO pins . bit 0 controls GPIO_ETHO_7 (ETH_7 pin) bit 1 controls GPIO_ETHO_6 (ETH_6 pin) bit [...]
-
Página 201
MPC5200B Users Guide, Rev . 1 7-42 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.10 GPS GPIO Simple Interrupt Open-Drain Em ulatio n Register —MBAR + 0x0B24 Bit Name Description 0 : 7 SIGPIOE Individual bits to enable each Interrupt GPIO pin (pins are scattered). bit 0 controls GPIO_SINT_7 (ETH_16 pin) bit 1 controls [...]
-
Página 202
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-43 7.3.2.1.11 GPS GPIO Simple Interrupt Da ta Direction Register —MBAR + 0x0B28 7.3.2.1.12 GPS GPIO Simple Interrupt Data V alue Out Register —MBAR + 0x0B2C T able 7-3 1. GPS GPIO Simple Interrupt D ata Direction Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 [...]
-
Página 203
MPC5200B Users Guide, Rev . 1 7-44 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.13 GPS GPIO Simple Interrupt In terrupt Enable Regi ster —MB AR + 0x0B30 Bit Name Description 0 : 7 SID V O Individual bits to control the st ate of pins configur ed as GPIO output. bit 0 controls GPIO_SINT_7 (ETH_16 pin) bit 1 controls G[...]
-
Página 204
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-45 7.3.2.1.14 GPS GPIO Simple Interrupt Interrupt T ypes Regist er —MB AR + 0x0B34 7.3.2.1.15 GPS GPIO Simple Interrupt Ma ster Enable Register —MB AR + 0x0B38 T able 7-34. G PS GPIO Simple Interrupt Inte rrupt T ypes Register m s b 0 12345678 9 1 0 1 1 1 2[...]
-
Página 205
MPC5200B Users Guide, Rev . 1 7-46 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.1.16 GPS GPIO Simple Interr upt Status Register—MB AR + 0x0B3C Bit Name Description 0:2 — R e s e r v e d 3 ME GPIO Simple Interrupt Master Enable pin—This pin must be high befo re any Simple Interrupt pin can generate an interr upt. Th[...]
-
Página 206
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-47 7.3.2.2 W akeUp GPIO Register s—MBAR + 0x0C00 The W akeUp GPIO Register Set provides GPIO control for the 8 W akeUp GPIO pins. Thes e pins are scattered throughout the pin grou ps, but are all controlled in thi s module. It should be noted that W ake Up GP[...]
-
Página 207
MPC5200B Users Guide, Rev . 1 7-48 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.2.2 G PW W akeUp GPIO Open Drain Em ulation Register —MB AR + 0x0C04 7.3.2.2.3 G PW W akeUp GPIO Data Direction Regist er—MB AR + 0x0C08 T able 7-38. GPW W akeUp GPIO Open Drain Emulati on Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1[...]
-
Página 208
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-49 7.3.2.2.4 G PW W akeUp GP IO Data V alue Out Register —MBAR + 0x0C0C Bit Name Description 0 : 7 WDDR [ 7 : 0 ] Individual bits to co ntrol directionality of the pin as GPIO . Bit 0 controls GPIO_WKUP_7 (GPIO_ WKUP_7 pin) Bit 1 controls GPIO_WKUP_6 (GPIO_ W[...]
-
Página 209
MPC5200B Users Guide, Rev . 1 7-50 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.2.5 G PW W akeUp GPIO Interr upt Enab le Register—MBAR + 0x0C10 7.3.2.2.6 G PW W akeUp GPIO Individual Interrupt Enable Register —MB AR + 0x0C14 T able 7-41. GP W W akeUp GPIO Interrupt Enable Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1[...]
-
Página 210
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-51 7.3.2.2.7 G PW W akeUp GPIO Inte rrupt T ypes Register—MBAR + 0x0C18 Bit Name Description 0 : 7 WINe Individual bits to enable generation of Simple interru pt f or W akeUp GPIO configured as input. Bit 0 controls GPIO_WKUP_7 (GPIO_ WKUP_7 pin) Bit 1 contro[...]
-
Página 211
MPC5200B Users Guide, Rev . 1 7-52 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.2.8 G PW W akeUp GPIO Master Enab les Register —MB AR + 0x0C1C Bit Name Description 0 : 1 Ityp7 GPIO Interr upt T ype bits for W akeUp GPIO pins 7–0 00 = I n terrupt at any transition 01 = I nte rrupt on rising edge 10 = I n terrupt on fa[...]
-
Página 212
General Purpose I / O ( GPIO ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-53 7.3.2.2.9 G PW W akeUp GP IO Data Input V alues Register —MB AR + 0x0C20 Bit Name Description 0:6 — R e s e r v e d 7 ME W akeUp GPIO Master Enab le p in. This pin must be high before any W ak eUp GPIO pi n can generate an interr upt. This bit should rem[...]
-
Página 213
MPC5200B Users Guide, Rev . 1 7-54 F reescale Semiconductor G e n e r a l P u r p o s e I/O (G P I O) 7.3.2.2.10 GPW W akeUp GPIO Status Register—MB AR + 0x0C24 T able 7-46 . GPW W akeUp G PIO Status Regi ster m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RI s t a t Reser v ed W rwc rwc rwc rwc rwc rwc rwc rwc R E S E T : 1 11111110 0 0 0 01 1 1 16 [...]
-
Página 214
General Purpose Timers ( GPT ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-55 7.4 General Purpose Timers ( GPT ) Eight ( 8 ) General-Purpose Timer ( G P T ) pins are configurable for: • Input Capture • Output Compare • Pulse W idth Modulation ( PWM ) Output •S i m p l e G P I O • Internal CPU timer • W atchdog Timer (on GP[...]
-
Página 215
MPC5200B Users Guide, Rev . 1 7-56 F reescale Semiconductor General Purpose Timer s ( GPT ) 7.4.4 GPT Registers—MB AR + 0x0600 Each GP T uses 4 32-bit registers. These re gisters are located at an offset from MBAR of 0x0600. Register addresses are relative to this offset. Therefore, the actual regist er address is: MBAR + 0x0600 + register addr e[...]
-
Página 216
General Purpose Timers ( GPT ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-57 Bit Name Description 0 : 7 OC PW Output Compa re Pulse Width—Applies to OC Pulse types only . Th is field specifies the number of IP b us clocks ( non-prescaled ) to create a short ou tput pulse at each Output Event. This pulse is generated at the end of t[...]
-
Página 217
MPC5200B Users Guide, Rev . 1 7-58 F reescale Semiconductor General Purpose Timer s ( GPT ) 21 Stop_Cont Stop Continuous—Applies to multiple modes, as f ollows: 0 = Stop 1 = Continuous •I C m o d e Stop operation—At each IC e vent, counter is reset. Continuous operation—counter is not reset at each IC ev ent. Effect is to create Status coun[...]
-
Página 218
General Purpose Timers ( GPT ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-59 7.4.4.2 GPT 0 Counter Input Register—MB AR + 0x0604 GPT 1 Counter Input Register—MB AR + 0x0614 GPT 2 Counter Input Register—MB AR + 0x0624 GPT 3 Counter Input Register—MB AR + 0x0634 GPT 4 Counter Input Register—MB AR + 0x0644 GPT 5 Counter Input [...]
-
Página 219
MPC5200B Users Guide, Rev . 1 7-60 F reescale Semiconductor General Purpose Timer s ( GPT ) 7.4.4.3 GPT 0 PWM Configuration Register—MB AR + 0x0608 GPT 1 PWM Configuration Register—MB AR + 0x0618 GPT 2 PWM Configuration Register—MB AR + 0x0628 GPT 3 PWM Configuration Register—MB AR + 0x0638 GPT 4 PWM Configuration Register—MB AR + 0x0648 [...]
-
Página 220
General Purpose Timers ( GPT ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-61 7.4.4.4 GPT 0 Status Register—MB AR + 0x060C GPT 1 Status Register—MB AR + 0x061C GPT 2 Status Register—MB AR + 0x062C GPT 3 Status Register—MB AR + 0x063C GPT 4 Status Register—MB AR + 0x064C GPT 5 Status Register—MB AR + 0x065C GPT 6 Status Reg[...]
-
Página 221
MPC5200B Users Guide, Rev . 1 7-62 F reescale Semiconductor Slice Timers 7.5 Slice Timers T wo Slice T imers are included to provide shorter term periodic interrupts. Each timer consists of a 24-bit counter with no prescale. Running off the IP bus clock, each timer can g enera te interrupts from 7.75 uS to 508 mS in 30 nS steps ( based on 33 MHz IP[...]
-
Página 222
Slice Timers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-63 7.5.1.1 SL T 0 T erminal Count Register—MB AR + 0x0700 SL T 1 T erminal Count Register—MB AR + 0x0710 7.5.1.2 SL T 0 Contr ol Register—MB AR + 0x0704 SL T 1 Contr ol Register—MB AR + 0x0714 T able 7-51. SL T 0 T erminal Count Register SL T 1 T erminal Count Register m[...]
-
Página 223
MPC5200B Users Guide, Rev . 1 7-64 F reescale Semiconductor Slice Timers 7.5.1.3 SL T 0 Count V alue Register—MB AR + 0x0708 SL T 1 Count V alue Register—MB AR + 0x0718 Bit Name Description 0:4 — Reserved 5 Run_ W ait A high indicates the Time r should run co ntinuously while en ab led. W hen the Timer counter reaches ter minal count it immed[...]
-
Página 224
Real-Time Clock MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-65 7.5.1.4 SL T 0 Timer Status Register—MB AR + 0x070C SL T 1 Timer Status Reg ister—MBAR + 0x071C 7.6 Real-Time Clock The Real-T ime Clock ( R TC ) uses an extern al 32 KHz crystal to provide: •a l a r m • stop-watch • periodic interrupts — minute — second — [...]
-
Página 225
MPC5200B Users Guide, Rev . 1 7-66 F reescale Semiconductor Real-Tim e Clock Periodic interrupts are separately enabled by control bits, and a global enable must be asserted to allow any of the periodic s ources to generate a CPU interrupt. Clearing Pe riodic interrupts is ac complished by writ ing 1 to the appropriate status bit. Stopwa tch and Al[...]
-
Página 226
Real-Time Clock MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-67 7.6.3.1 RTC Time Set Registe r—MBAR + 0x0800 • R TC New Y ear and Stopwatch Register (0x0808) • R TC Periodic Interrupt and Bus Error Register (0x081C) , read-only • R TC Alarm and Interrupt Enable Register (0 x080C) • R TC T est Register/Divides Register (0x0820[...]
-
Página 227
MPC5200B Users Guide, Rev . 1 7-68 F reescale Semiconductor Real-Tim e Clock 7.6.3.2 RTC Date Set Register—MB AR + 0x0804 18 : 23 Minute_set Minute written in R TC after successful state machine transition by set_time and pause_ti me bits. 24 : 2 5 — Reserved 26 : 31 Second_set Second wr itten in R TC after successful state machine transition b[...]
-
Página 228
Real-Time Clock MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-69 7.6.3.3 RTC Ne w Y ear and Stopwatch Register—MB AR + 0x0808 7.6.3.4 RTC Alarm and Interrupt Enable Register—MB AR + 0x080C T able 7-58. R TC New Y ear and Stopwatch Re gister m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reserve d write_SW SW_set W R E S E T : 0 000000[...]
-
Página 229
MPC5200B Users Guide, Rev . 1 7-70 F reescale Semiconductor Real-Tim e Clock 7.6.3.5 RTC Curre nt Time Register—MB AR + 0x0810 This is a read-only register . 8:10 — Reser v ed 11:15 Alm_24Hset Hour setting (in 24 hour f or mat) to be co mpared to time of day f or the pur pose of generating Alar m Status/Interrupt. Can be written at any time. 16[...]
-
Página 230
Real-Time Clock MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-71 7.6.3.6 RTC Current Date Regis ter—MBAR + 0x0814 This is a read-only register . 7.6.3.7 RTC Alarm and Stopwa tch Interrupt Register—MB AR + 0x0818 This is a read-only register . 24 : 2 5 — Reser ved 26 : 31 Second Shows seconds in current time. T able 7-61. RTC Curre[...]
-
Página 231
MPC5200B Users Guide, Rev . 1 7-72 F reescale Semiconductor Real-Tim e Clock 7.6.3.8 RTC P eriodic Interrupt and Bus Err or Register—MB AR + 0x081C This is a read-only register . Bit s Name Description 0:6 — R e s e r v e d 7 Int_alm Status bit in dicating that enab le d once-a-da y Alar m has occurred (activ e high). Alar m interrupt has been [...]
-
Página 232
Real-Time Clock MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 7-73 7.6.3.9 RTC T est Register/Divides Register—MB AR + 0x0820 This register is used during manufactu ring test to expedite R TC testing and is not in tended to be a user register . However , no protection from software access is provided. 16 : 2 2 — Reser ved 23 Int_min P[...]
-
Página 233
MPC5200B Users Guide, Rev . 1 7-74 F reescale Semiconductor Real-Tim e Clock[...]
-
Página 234
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-1 Chapter 8 SDRAM Memory Controller 8.1 Overview The following sections are contained in this document: • Section 8.2, T erminology and Notation • Section 8.3, Featur es — Section 8.3.1, Devices Supported • Section 8.4, Functional Description — Section 8.4.1, External Sign[...]
-
Página 235
MPC5200B Users Guide, Rev . 1 8-2 F reescale Semiconductor Features stripped along the way). Nor is the transpor tation of data an executio n context. W ithout knowledge of atom boundaries and signi ficance (if any), the following convention is th e de facto standard: •“ Bit significance , byte address ”: From every observation point in a sys[...]
-
Página 236
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-3 — 2 bits of bank address (BA[1:0]) NO TE In this document the Auto Precharge control si gnal (A10 usually), conveye d on the memory address bus along with column address, is never included in the stated CA width; it is always in addition to the CA width. The Memory Controller do[...]
-
Página 237
MPC5200B Users Guide, Rev . 1 8-4 F reescale Semiconductor Features T able 8-1. 32-Bit External Data Wid th Legal Memory Configurations Row Bits Column Bits Ba nk Bits Spaces (CS ) Physical Address Rang e 11 8 2 1 1 x 64Mb 512K x 4bank x 32b it 8MB 22 x 6 4 M b 512K x 4bank x 32b it 16MB 12 8 2 1 2 x 64Mb 1M x 4bank x 16bit 16MB 1 x 128Mb 1M x 4ban[...]
-
Página 238
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-5 12 13 12 11 2 2 1 4 x 512Mb 16M x 4bank x 8bit 256MB 2 x 1Gb 16M x 4bank x 16bit 1 x 2Gb 16M x 4bank x 32bit 2 4 x 1Gb 16M x 4bank x 16bit 512MB 2 x 2Gb 16M x 4bank x 32bit 11 8 2 1 1 x 64Mb 512K x 4bank x 32b it 24MB + 12 8 2 1 1 x 128Mb 1M x 4bank x 32bit 11 8 2 1 1 x 64Mb 512K [...]
-
Página 239
MPC5200B Users Guide, Rev . 1 8-6 F reescale Semiconductor Features 12 8 2 1 2 x 64Mb 1M x 4bank x 16bit 144MB + 12 13 11 10 2 1 2 x 512Mb 8M x 4bank x 16bit 12 8 2 1 2 x 64Mb 1M x 4bank x 16bit 272MB + 12 13 12 11 2 1 2 x 1Gb 16M x 4bank x 16bit 12 8 2 1 1 x 128Mb 1M x 4bank x 32bit 48MB + 12 13 9 8 2 1 1 x 256Mb 2M x 4bank x 32bit 12 8 2 1 1 x 12[...]
-
Página 240
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-7 13 8 2 1 2 x 128Mb 2M x 4bank x 16bit 160MB + 13 10 2 1 2 x 512Mb 8M x 4bank x 16bit 12 9 2 1 2 x 128Mb 2M x 4bank x 16bit 288MB + 12 12 2 1 2 x 1Gb 16M x 4bank x 16bit 13 8 2 1 2 x 128Mb 2M x 4bank x 16bit 288MB + 13 11 2 1 2 x 1Gb 16M x 4bank x 16bit 12 9 2 1 1 x 256Mb 2M x 4ban[...]
-
Página 241
MPC5200B Users Guide, Rev . 1 8-8 F reescale Semiconductor Features 12 10 2 1 2 x256Mb 4M x 4bank x 16bit 192MB + 12 11 2 1 2 x 512Mb 8M x 4bank x 16bit 13 9 2 1 2 x256Mb 4M x 4bank x 16bit 192MB + 13 10 2 1 2 x 512Mb 8M x 4bank x 16bit 12 10 2 1 2 x256Mb 4M x 4bank x 16bit 320MB + 12 12 2 1 2 x 1Gb 16M x 4bank x 16bit 13 9 2 1 2 x256Mb 4M x 4bank [...]
-
Página 242
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-9 13 9 2 1 2 x 512Mb 8M x 4bank x 32bit 384MB + 13 11 2 1 2 x 1Gb 16M x 4bank x 32bit 12 11 2 1 1 x 1Gb 8M x 4bank x 32bit 384MB + 12 12 2 1 1 x 2Gb 16M x 4bank x 32bit 13 10 2 1 1 x 1Gb 8M x 4bank x 32bit 384MB + 13 11 2 1 1 x 2Gb 16M x 4bank x 32bit T able 8-2. 16-Bit External Dat[...]
-
Página 243
MPC5200B Users Guide, Rev . 1 8-10 F reescale Semiconductor Features 13 10 2 1 2 x 256Mb 8M x 4bank x 8bit 64MB 1 x 512Mb 8M x 4bank x 16bit 2 4 x 256Mb 8M x 4bank x 8bit 128MB 2 x 512Mb 8M x 4bank x 16bit 13 11 2 1 2 x 512Mb 16M x 4bank x 8bit 128MB 1 x 1Gb 16M x 4bank x 16bit 2 4 x 512Mb 16M x 4bank x 8bit 256MB 2 x 1Gb 16M x 4bank x 16bit 12 9 2[...]
-
Página 244
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-11 12 9 2 1 2 x 64Mb 2M x 4bank x 8bit 144MB + 13 11 2 1 1 x 1Gb 16M x 4bank x 16bit 12 9 2 1 1 x 128Mb 2M x 4bank x 16bit 48MB + 13 9 2 1 1 x 256Mb 4M x 4bank x 16bit 12 9 2 1 1 x 128Mb 2M x 4bank x 16bit 80MB + 13 10 2 1 2 x 256Mb 8M x 4bank x 8bit 12 9 2 1 1 x 128Mb 2M x 4bank x [...]
-
Página 245
MPC5200B Users Guide, Rev . 1 8-12 F reescale Semiconductor Features 12 10 2 1 2 x 128Mb 4M x 4bank x 8bit 160MB + 13 11 2 1 2 x 256Mb 16M x 4bank x 8bit 12 10 2 1 2 x 128Mb 4M x 4bank x 8bit 160MB + 13 11 2 1 1 x Gb 16M x 4bank x 16bit 13 9 2 1 1 x 256Mb 4M x 4bank x 16bit 96MB + 13 10 2 1 1 x 512Mb 8M x 4bank x 16bit 13 9 2 1 1 x 256Mb 4M x 4bank[...]
-
Página 246
Features MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-13 13 11 2 1 2 x 512Mb 16M x 4bank x 8bit 256MB + 13 11 2 1 1 x 1Gb 16M x 4bank x 16bit T able 8-2. 16-Bit Externa l Data Width Legal Memory Configurations (contin ued) Row Bits Column Bits Ba nk Bits Spaces (CS ) Physical Address Rang e[...]
-
Página 247
MPC5200B Users Guide, Rev . 1 8-14 F reescale Semiconductor Features Figure 8-1 shows an example memory co nfiguration of 1 space (CS) of 4 devices of 128Mbit (4M x 4 ba nks x 8bit) DDR SDRAM, for a total memory size of 64MB. Figure 8-1. Bloc k Diagram—SDRAM Subsyste m Example Both chip select s contribute together to access the whole m emory . E[...]
-
Página 248
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-15 8.4 Functional Description 8.4.1 External Si gnals (SDRAM Side) T able 8-3. SDRAM External Signals Signal Name Description Outputs MEM_CLK Memory Clo c k (frequency is the same as the internal XL bus clock). Maximu m all o wed value is 132 MHz. MEM_CLK In ver ted M[...]
-
Página 249
MPC5200B Users Guide, Rev . 1 8-16 F reescale Semiconductor Functional Des cription 8.4.2 Bloc k Diagram Figure 8-2 shows the SDRAM MC block diagra m. It is important to notice: • the internal XL bus is 64 bits wide • the external i nterface to th e SDRAM is only 32 bits wide The SDRAM row , column, and bank address bits are extracted fro m int[...]
-
Página 250
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-17 modulo 8 boundary within the modulo 32 range; the address “wraps” from the highest addres s to the lowest address of the range i f the startin g address is not aligned at the beginning of the range. No da ta is masked during a burst. The beat address order of t[...]
-
Página 251
MPC5200B Users Guide, Rev . 1 8-18 F reescale Semiconductor Functional Des cription Some of the configuration parameters requi red by the memory are also needed by the Me mory Contro ller for command generation. Th e parameters are: • burst length • latency These must be programmed in the Memory C ontroller Configuration regist ers separately f[...]
-
Página 252
Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-19 W ith both SDR and DDR memory , a Read comman d can be issued overlapping the masked beat s at the end of a previous Single W rite o f the same CS ; the Read command aborts the rema ining (unnecessary) Write beats. W ith DDR memory , a Read of one CS can ev en overlap the masked[...]
-
Página 253
MPC5200B Users Guide, Rev . 1 8-20 F reescale Semiconductor Programming the SDRAM Controller If all the memory and controller regi ster values have been precalculate d and stored in ROM, skip step 3 and go directly to step 4 . Otherwise, continue with step 3 . Step 3. Read the SDRAM parameters (type, si ze, address muxing, timing), and determine th[...]
-
Página 254
Memory Controller Registers (MB AR+0x0100:0x010C) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-21 T able 8-5. Memory Controller Mode Register m s b 0 1 23456789 1 0 1 1 1 2 1 3 1 41 5 R Rsvd W MEM_MBA [1:0] MEM_MA[11:0] cmd R E S E T : 0 0 000000000000 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed W R E S E T : 0[...]
-
Página 255
MPC5200B Users Guide, Rev . 1 8-22 F reescale Semiconductor Memory Controller Registers (MB AR+0x0100:0 x010C) 8.7.2 Control Regi ster—MB AR + 0x0104 The 32-bit read/write Contr ol register controls specific operatio ns and generates some SDRAM comm ands. This regis ter is reset o nly by a power-up reset signal. T able 8-6. Memory Contro ller Con[...]
-
Página 256
Memory Controller Registers (MB AR+0x0100:0x010C) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-23 The Ta b l e 8 - 7 indicates how the internal address bits XLA[4:7] are mult iplexed internally to s upport higher column or row address bits. 10:15 ref_interval[0:5] The av erage periodic inter val at which the controller gener ates refre[...]
-
Página 257
MPC5200B Users Guide, Rev . 1 8-24 F reescale Semiconductor Memory Controller Registers (MB AR+0x0100:0 x010C) T able 8-8. 32-B it SDRAM Address Multiplexing De vice Structure Row bits × Col bits × Bank bits hi_ addr Inter nal XLA[4:29] 45678 9:19 20:21 22 :29 64Mbit 2Mx32bit 11x8x2 0 — a a All MEM_MA pins are driven in all cases, bu t only the[...]
-
Página 258
Memory Controller Registers (MB AR+0x0100:0x010C) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-25 8.7.3 Configuration R egister 1—MB AR + 0x0108 The 32-bit read/write Configuration register 1 stores delay valu es necessary between specific SDRAM commands. Duri ng initializa tion, software loa ds values to the regi ster acco rding to [...]
-
Página 259
MPC5200B Users Guide, Rev . 1 8-26 F reescale Semiconductor Memory Controller Registers (MB AR+0x0100:0 x010C) MEM_CLK2—double frequency of MEM_CLK—DDR uses both edges of the bus-frequenc y clock (MEM_CLK) to read/write data. T able 8-10. Memory Controller Config uration Register 1 m s b 0 1 2 3 4 5 6 7 8 9 1 01 11 2 1 3 1 4 1 5 R srd2rwp swt2r[...]
-
Página 260
Memory Controller Registers (MB AR+0x0100:0x010C) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-27 8.7.4 Configuration R egister 2—MB AR + 0x010C The 32-bit read/write Configuration register 2 stores delay valu es necessary between specific SDRAM commands. Duri ng initializa tion, software loa ds values to the regi ster acco rding to [...]
-
Página 261
MPC5200B Users Guide, Rev . 1 8-28 F reescale Semiconductor Memory Controller Registers (MB AR+0x0100:0 x010C) Bit Name Description 0:3 brd2rp Burst Read to Read/Precharge delay . Limiting case is Read to Read. F or DDR, su ggested value = 0x4 (BurstLength/2) F or SDR, suggested value = 0x8 (BurstLength) 4:7 bwt2rwp Burst Write to Read/Wr ite/Prech[...]
-
Página 262
Memory Controller Registers (MB AR+0x0100:0x010C) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-29 The Figure 8-3. Programmable Command T imings shows the timings which can be program med by the two Controller Configuration Register . The timing diagra m uses the suggested valu es for a DDR memory and a 132 MHz memory clock. Th e displa[...]
-
Página 263
MPC5200B Users Guide, Rev . 1 8-30 F reescale Semiconductor Address Bus Mapping 8.8 Address Bus Mapping Figure 8-4. Addres s Bus Mapping (3 2-Bit Exter nal Data Width) The Memory Controller extracts the Column Address from t he XL bus address. The Column Address is p resented on the MPC5200B MEM_MA[12:0] pins during SDRAM Read and Write commands. C[...]
-
Página 264
Address Bus Mapping MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 8-31 Figure 8-5. Addres s Bus Mapping (1 6-Bit Exter nal Data Width) 8.8.1 Example—Ph ysical Address Multiplexing The mapping of XL address bus to memory address bus is shown in Figure 8-4 . The default mapping is: • Row address comes from XLA[8:19] • Column address c[...]
-
Página 265
MPC5200B Users Guide, Rev . 1 8-32 F reescale Semiconductor Address Bus Mapping By default, the Memor y Controller onl y provides 12 row address bits and 12 co lumn address bits. T o enab le the 13 th row address bit, the hi_addr bit of the Control regist er must be set to 1 (MBAR+0x0104, Control[7]). Th is also reduces the co lumn address width to[...]
-
Página 266
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-1 Chapter 9 LocalPlus Bus (External Bus Interface) 9.1 Overview The LocalPlus Bus is the external bus inte rface of the MPC5200B. This multi-function bus system supports in terfacing to externa l Boot ROM or Flash memories, e xternal SRAM memori es or other memory mapped devices. Th[...]
-
Página 267
MPC5200B Users Guide, Rev . 1 9-2 F reescale Semiconductor Interface – (Address 8, 16, 24 or 25 bits, Da ta 8,16 or 32 bi ts, 2 Bank Select s) • 8 Chip Select (CS) signals — Programmable W ait S tates per CS — Programmable Deadc ycles per CS — Programmable Byte Swapping per CS • Configurable Boot interface supporting PowerPC architectur[...]
-
Página 268
Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-3 9.3.2 Bloc k Diagram The block diagram of the LocalPlus Controller (LPC) is shown in Figure 9-1. This diagram shows the non-mu ltiplexed implementation of address and data lines. The LPC is driven by the internal IP bus cl ock and the PCI_CLOCK. The supported ratios of the IP bus[...]
-
Página 269
MPC5200B Users Guide, Rev . 1 9-4 F reescale Semiconductor Modes of Operation Figure 9-2. Muxed Mode Ad dress Latching 9.4 Modes of Operation There are 2 primary modes of operation: • MUXed • non-MUXed (Legacy , Lar ge Flash, Most /Graphic modes, Burst and Non-Burst) W ithin each mode, there is considerable flexibility to control the operation.[...]
-
Página 270
Modes of Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-5 NO TE The 24-bit data width is not supported. The total pin number requires also the addition of the control signals CS, R/W , ACK , OE , TS (MOST/Graphis and Large Flash mode) and TS IZ (MOST/ Graphics mode) where avail able. The total supported memory size has been cal[...]
-
Página 271
MPC5200B Users Guide, Rev . 1 9-6 F reescale Semiconductor Modes of Operation Figure 9-4. Timing Diagr am—Non-MUXed Mode Figure 9-5. Timing Diagram—Bu rst Mode ADDR DATA ( rd ) CS [x ] R/W D A T A (w r) OE TS TSIZ[1:2] ACK Valid Address Valid write Dat a Valid read Da ta NOTE: 1. ACK can shorten the CS pulse width. 2. TS is only available in La[...]
-
Página 272
Modes of Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-7 In this mode, the per ipheral address and data lines are li mited to a total of 32 in Legacy Modes, to 40 or 48 in Lar ge Flash or to 56 in MOST Graphics mode. They are driven/read simult aneous ly on the external AD bus. A single dedicated R/W pin is driven to indicate [...]
-
Página 273
MPC5200B Users Guide, Rev . 1 9-8 F reescale Semiconductor Modes of Operation The MUXed mode requires exter nal logic to latch the address during the address tenure and to decode bank selects if they are en coded. This mode is slower than the non-MUXed mode be cause data and address are multiplexed in time. The supported addr ess space is limited b[...]
-
Página 274
Configuration MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-9 Figure 9-6 shows a MUXed transact ion type timing diagram. Figure 9-6. Timing Diagram—MUXed Mode 9.5 Configuration The LPC supports several opt ions in terms of modes, address and data sizes, speed, and confi guration which are described below . 9.5.1 Boot Configuration Aft[...]
-
Página 275
MPC5200B Users Guide, Rev . 1 9-10 F reescale Semiconductor Configuration • The boot address/exception table ca n be located at 0x0000 0100 or 0xfff0 0100. The PowerPC architecture compatib le processor core requires 64-bit instruction fe tches. During boot code accesses from CS Boot spac e on-chip logic is provided to perform enough Lo calPlus a[...]
-
Página 276
DMA (BestComm) Interface (SCLPC) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-11 • BootSwap Ta b l e 9 - 1 describes possible boot settings. 9.6 DMA (BestComm) Interface (SCLPC) The SCLPC interface provides a sepa rate path from BestComm directly (on CommBus) to any peripheral. Th e supported transactions are limited to 1, 2, 4, or 8[...]
-
Página 277
MPC5200B Users Guide, Rev . 1 9-12 F reescale Semiconductor Programmer’ s Model • Section 9-10, Chip Select Status Register (0x031C) • Section 9-1 1, Chip Select Burst Contr ol Re gister (0x0328) • Section 9-12, Chip Select Deadcyc le Contr ol Register (0x032C) • Section 9-7, Chip Select 0/Boot Configuration Register (0x0300)[...]
-
Página 278
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-13 9.7.1.1 Chip Select 0/Boot Configuration Register—MB AR + 0x0300 T able 9-7. C hip Select 0/Boot C onfiguration Regist er m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RW a i t P W a i t X W R E S E T : 0 0000000 c f g c f g c f g c f g c f g c f g c f g c f g 16 17[...]
-
Página 279
MPC5200B Users Guide, Rev . 1 9-14 F reescale Semiconductor Programmer’ s Model 20 : 21 AS Address Size field—defines size of peripheral Address bus (in b ytes) and must be consistent with physical connections . 00 = 8 bi ts 01 = 16 bits 10 = 24 bits 11 = > 25 bits See documentation for Ph ysical Connection requireme nts. The combination of [...]
-
Página 280
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-15 9.7.1.2 Chip Select 1 Configuration Register—MB AR + 0x0304 Chip Select 2 Configuration Register—MB AR + 0x0308 Chip Select 3 Configuration Register—MB AR + 0x030C Chip Select 4 Configuration Register—MB AR + 0x0310 Chip Select 5 Configuration Register—MB[...]
-
Página 281
MPC5200B Users Guide, Rev . 1 9-16 F reescale Semiconductor Programmer’ s Model 16 MX MX bit specifies whether transaction operates as multiplex ed or non-multiple xed. A multiple xed transaction presents address an d data in different tenures . Du ring the address tenure, ALE is a sser ted. At the end of ALE , AD bus is s witched to data tenure [...]
-
Página 282
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-17 9.7.1.3 Chip Select Contr ol Register—MBAR + 0x0318 28 WS Wri te Sw ap bit—If high, Endian b yte swapping occurs during writes to a per ipheral. • F or 8-bit per ipherals, this bit has no eff ect. • F or 16-bi t peripherals, byte swapping can occur . • F [...]
-
Página 283
MPC5200B Users Guide, Rev . 1 9-18 F reescale Semiconductor Programmer’ s Model 9.7.1.4 Chip Select Status Register—MBAR + 0x031C 9.7.1.5 Chip Select Burst Control Register—MBAR + 0x0328 Bit s Name Description 0:6 — R e s e r v e d 7 ME Maste r Enab le bit—a gl obal module enable bit. If this bit is low , register access can still occur ,[...]
-
Página 284
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-19 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R CW3 SLB3 Rsvd BRE3 CW2 SLB2 Rsvd BRE2 CW1 SLB1 Rsvd BRE1 CW0 SLB0 Rsvd BRE0 W R E S E T : 0 000 0 000 0 000 0 000 Bit s Name Description 0 CW7 Chip Select 7 Cache Wrap capable, set if peripheral burst can perfor[...]
-
Página 285
MPC5200B Users Guide, Rev . 1 9-20 F reescale Semiconductor Programmer’ s Model 13 SLB4 Chi p Select 4 Shor t/Long Burst, 0 for Shor t Burst only , 1 for Long Burst capable. Short burst is 8-bytes , used for Instruction f etche s , and CDWF cache line b ursts on XLB if cache wrap not capable. Lo ng Burst capable means that peri pheral can do 32-b[...]
-
Página 286
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-21 9.7.1.6 Chip Select Deadcyc le Control Register—MB AR + 0x032C 28 CW0 Chip Sel ect 0 Cache Wrap capable , set i f peripheral burst can perform PPC cache wrap. This bit setting only applies in Large Flash or MOST Graphics Mode. 29 SLB0 Chi p Select 0 Shor t/Long B[...]
-
Página 287
MPC5200B Users Guide, Rev . 1 9-22 F reescale Semiconductor Programmer’ s Model NO TE Deadcycle counter is only used, if no arbitration to an other module (A T A or PCI) of the shared local bus happens. If an arbitration happ ens the bus can be dirven within 4 IPB clocks by an other module. 12:13 — Reser v ed 14:15 DC4 Deadcycles can be specifi[...]
-
Página 288
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-23 9.7.2 SCLPC Registers—MB AR + 0x3C00 There are 6 32-bit BestComm Registers for the LocalPlus (SCLPC). These registers are lo cated at an offset from MBAR of 0x3C00. Register addresses are relati ve to this offset. Therefor e, the actual register address is: MBAR [...]
-
Página 289
MPC5200B Users Guide, Rev . 1 9-24 F reescale Semiconductor Programmer’ s Model 9.7.2.2 SCLPC Star t Address Register—MB A R + 0x3C04 9.7.2.3 SCLPC Control Register—MB AR + 0x3C08 T able 9-14. SCLPC Sta r t Address Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Star t Address W R E S E T : 0 00000000 0 0 0 00 0 0 16 17 18 19 20 21 22 2[...]
-
Página 290
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-25 9.7.2.4 SCLPC Enable Register—MB AR + 0x3C0C 16:22 — Reser v ed 23 DAI Disable A uto Increment. Nor mally , SCLPC and LPC will present seque ntial incrementing addresses to the p eripheral as the Pac ket proceeds. If the peripheral is operating as a single addr[...]
-
Página 291
LocalPlus Bus (External Bus Interface) Notes MPC5200B Users Guide, Rev . 1 9-26 F reescale Semiconductor 9.7.2.5 SCLPC Bytes Done Status Register—MB AR + 0x3C14 Note: X: Bit does not reset to a defined value . 22 AIE Abor t Interrupt Enable. If set, and a fifo error occurs during pac ket transmission, a cpu interrupt from SCLPC will be generated.[...]
-
Página 292
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-27 7 NT Nor mal T er mination. This bit is set to 1 whene ver a complete P ack et has been transf erred successfully . Note: This bit is ANDed with the NIE bit above to generate a single CPU interrupt signal to the core. This bit is "sticky wr ite to 1" f or[...]
-
Página 293
MPC5200B Users Guide, Rev . 1 9-28 F reescale Semiconductor Programmer’ s Model 9.7.3 SCLPC FIFO Registers—MB AR + 0x3C40 LPC uses a single FIFO that changes direc tio n based on the Rx / Tx mode. Software contro ls direction change and flushes FIFO befo re changing directions. FIFO me mory is 512 Bytes ( 32 x 128 ). LPC FIFO is controlled by s[...]
-
Página 294
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-29 9.7.3.2 LPC Rx / Tx FIFO Status Register—MB AR + 0x3C44 Bit s Name Description 0 : 31 FIFO_Data_Word The FIFO data por t. Reading from this location “pops” data from the FIFO , wr iting “pushes” data into the FIFO. During normal op eration the BestComm Co[...]
-
Página 295
MPC5200B Users Guide, Rev . 1 9-30 F reescale Semiconductor Programmer’ s Model 9.7.3.3 LPC Rx / Tx FIFO Contr ol Register—MBAR + 0x3 C48 9.7.3.4 LPC Rx / Tx FIFO Alarm Register—MB AR + 0x3C4C T able 9-20. LPC Rx / Tx FIFO Contr ol Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reserved WFR Reserved GR Reserved W R E S E T : 0 00000010[...]
-
Página 296
Prog rammer’ s Mode l MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 9-31 9.7.3.5 LPC Rx / Tx FIFO Read P ointer Register—MB AR + 0x3C50 9.7.3.6 LPC Rx / Tx FIFO Write P ointer Register—MB AR + 0x3C54 T able 9-22. LPC Rx / Tx FIFO Read P ointer Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reser v ed W R E S E T : 0 00000000 [...]
-
Página 297
LocalPlus Bus (External Bus Interface) Notes MPC5200B Users Guide, Rev . 1 9-32 F reescale Semiconductor[...]
-
Página 298
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-1 Chapter 10 PCI Contr oller 10.1 Overview The Peripheral Component Interface ( P CI ) Bus is a high-performance bus with multiplexed address and data lines. It is especiall y suitable for high data-rate applications. The MPC5200B PCI Controller module supports a 32-bit PCI initiat[...]
-
Página 299
MPC5200B Users Guide, Rev . 1 10-2 F reescale Semiconductor PCI External Signals 10.1.2 Bloc k Diagram Figure 10- 1. PCI Block Diagram 10.2 PCI External Sig nals T able 10-1. PCI External Signals Signal I/O Definition AD[31:0] I / O Multipl e xed Address and Data Bus ( Shared with A T A and LPC ). AD31 is the most significant bit while AD0 is the l[...]
-
Página 300
PCI External Signals MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-3 For detailed description of the PCI bus signals, see the PCI Local Bus Specification, Revision 2.2 . 10.2.1 PCI_AD[31:0] - Address/Data Bus The PCI_AD[31:0] lines are a tim e multiplexe d address data bus. The address is presen ted on the bus during the address phase [...]
-
Página 301
MPC5200B Users Guide, Rev . 1 10-4 F reescale Semiconductor Registers 10.3 Registers MPC5200B has several sets of registers that control and report status for the differ ent interfac es to the PCI controller: PCI T ype 0 Configuration Space Registers, Ge neral Status/Control Registers, and C ommunication Sub-System Inte rface Registers. All of t he[...]
-
Página 302
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-5 0x74 PCIIW1BT AR Initiator Window 1 Base/T ranslation Address Register 0x78 PCIIW2BT AR Initiator Window 2 Base/T ranslation Address Register 0x7C Reser ved 0x80 PCIIWCR Initiator Wind ow Configur ation Regi ster 0x84 PCIICR Initiator Control Register 0x88 PCIISR Initiator Stat[...]
-
Página 303
MPC5200B Users Guide, Rev . 1 10-6 F reescale Semiconductor Registers 10.3.1 PCI Controller T y pe 0 Configuration Space MPC5200B supplies a type 0 PCI Configura tion Space header . These register s are accessible as an offset from MBAR ( Sec tion 3.2, Internal Register Memor y Map ) or through externally mastered PCI Configuration Cycles. NO TE Th[...]
-
Página 304
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-7 PCI Dword Reserved space (0x10 - 0x3F) can be accessed only from an ex ternal PCI Con fi guration access. NO TE A PCI Double W ord (DWORD) is a 32 bit long word . A Po werPC Double W ord is instead a 64 bit word (according to the EABI rule) while a W ord is a 32 bit value. In t[...]
-
Página 305
MPC5200B Users Guide, Rev . 1 10-8 F reescale Semiconductor Registers 10.3.1.2 Status/Command Registers PCISCR(R/R W/R WC) —MB AR + 0x0D04 Bits 31-27 and 24 are read -write-clear (R WC). • Hardware can set R WC bits, but cannot clea r them. • Only PCI configurat ion cycles can clear R WC bits that are curr ently set by writing a 1 to the bit [...]
-
Página 306
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-9 9 Reser v ed (R) Fixed to 0. Prior to the 2.2 PCI Spec, this was the UDF (User Defined Features) Suppor ted bit. 1 = Suppo r ted User Defined F eature s 0 = Does not suppor t UDF 10 66 MHz Capable (66M) Fixed to 1. This bit i ndicates that the PCI controller is 66 MHz capable. [...]
-
Página 307
MPC5200B Users Guide, Rev . 1 10-10 F reescale Semiconductor Registers 10.3.1.3 Revision ID/ Class Code Re gisters PCICCRIR(R ) —MB AR + 0x0D08 10.3.1.4 Configuration 1 Register PCICR1 (R/R W) —MBAR + 0x0D0C 30 Memory Access Control (M) This bit controls the PCI controller’ s response to Memor y Space accesses. A v alue of 0 disables the resp[...]
-
Página 308
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-11 10.3.1.5 Base Address Regi ster 0 PCIBAR0(R W) —MB AR + 0x0D10 Bit s Name Description 0:7 Built-In Self Te s t (BIST) Fixed to 0x00. The PCI controller does not im plement the Built-In Self T est register . Initialization software should write a 0x00 to this register locatio[...]
-
Página 309
MPC5200B Users Guide, Rev . 1 10-12 F reescale Semiconductor Registers 10.3.1.6 Base Address Regi ster 1 PCIBAR1(R W) —MB AR + 0x0D14 10.3.1.7 CardBus CIS P ointer Register PCICCPR(R W) —MB AR + 0x0D28 This optional register contains the pointer to the Card Inform ation S tructure (CIS) for the CardBus card. All 32 bits of the re gister are pro[...]
-
Página 310
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-13 10.3.1.10 Capabilities P ointer (Cap_Ptr) PCICPR(R)—MBAR + 0x0D34 Not implemented. Fixed to 0x00000000. 10.3.1.11 Configuration 2 Register PCICR2 (R/R W) —MB AR + 0x0D3C 10.3.2 General Contr o l/Status Registers The General Control/S tatus Registers primari ly address the [...]
-
Página 311
MPC5200B Users Guide, Rev . 1 10-14 F reescale Semiconductor Registers 16 1 7 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Rsvd BME PEE SEE Reserv ed PR W RESET 0 00000000000000 1 Bit s Name Description 0 Reserved Unused bit. Software should write zero to this register . 1 Broken Master Detected (BM) This bit is set when the PCI Arbiter detects [...]
-
Página 312
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-15 20:30 Re served Unused bits. Software should write zero to this re gister . 31 PCI Reset (PR) This bit controls the external PCI RST . When this bit is cleared, the external PCI RST deasser ts. Setting this bit does not reset the inter nal PCI controller . The application soft[...]
-
Página 313
MPC5200B Users Guide, Rev . 1 10-16 F reescale Semiconductor Registers 10.3.2.2 T arget Base Address T ranslation Register 0 PCITB A TR0(R W) —MBAR + 0x 0D64 10.3.2.3 T arget Base Address T ranslation Register 1 PCITB A TR1(R W) —MBAR + 0x 0D68 msb 0 123456789 1 0 1 1 1 2 1 3 1 4 1 5 R Base Address T ranslation 0 Reserved W RESET 0 0 0000000000[...]
-
Página 314
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-17 10.3.2.4 T arget Control Register PCITCR(R W) —MB AR + 0x0D6C Bit s Name Description 0:1 Base Address T ranslati on 1 This base address regi ster corresponds to a hit on the BAR1 in MPC5200B PCI T ype 0 Configuration space register (PCI space) . When there is a hit on MPC520[...]
-
Página 315
MPC5200B Users Guide, Rev . 1 10-18 F reescale Semiconductor Registers 10.3.2.5 Initiator Window 0 Base/T ranslation Address Register PCIIW0BT AR(R W)—MB AR + 0x0D70 23 Write Combine Disable (WCD) This control bit applies only when MPC5200 is T arget. When set, it prev ents the PCI Controller from automatically combining write d ata to be sent ou[...]
-
Página 316
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-19 10.3.2.6 Initiator Window 1 Base/T ranslation Address Register PCIIW1BT AR(R W) —MB AR + 0x0D74 16:23 Window 0 T ranslation Address F o r an y translated bit (descr ibed abov e), the corresponding value here will be driven onto the PCI address bus f or the XL bus Window 0 ad[...]
-
Página 317
MPC5200B Users Guide, Rev . 1 10-20 F reescale Semiconductor Registers 10.3.2.7 Initiator Window 2 Base/T ranslation Address Register PCIIW2BT AR(R W) —MB AR + 0x0D78 10.3.2.8 Initiator Window Configu ration Register PCIIWCR(RW) —MB AR + 0x0D80 m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Window 2 Base Address W indo w 2 Address Mask W RESET 0 [...]
-
Página 318
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-21 10.3.2.9 Initiator Contr ol Register PCIICR(R W) —MBAR + 0x0D84 8:11 Reser ved Reser ved register . Write a zero to this register . 12:15 Window 1Control [3:0] Bit[3] - IO/M#. Bit[2:1] - PRC. Bit[0] - Enab le. 16:19 Reserved Reserved register . Write a zero to this register [...]
-
Página 319
MPC5200B Users Guide, Rev . 1 10-22 F reescale Semiconductor Registers 10.3.2.10 Initiator Status Register PCIISR(R WC) —MB AR + 0x0D88 10.3.2.11 PCI Arbiter Register PCIARB(R W) —MB AR + 0x0D8C msb 0 123456789 1 0 1 1 1 2 1 3 1 4 1 5 R Reserved RE IA T A Reser ved W rwc rwc rwc RESET 0 0 00000000000000 16 1 7 18 19 20 21 22 23 24 25 26 27 28 2[...]
-
Página 320
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-23 10.3.2.12 Configuration Address Regi ster PCICAR (R W) —MB AR + 0x0DF8 10.3.3 Communication Sub-Syst em Interface Registers The Communication Sub-System/Multi -Channel DMA interface (also shor tly referred to as SCPCI) has se parate control registers for transmit and receive[...]
-
Página 321
MPC5200B Users Guide, Rev . 1 10-24 F reescale Semiconductor Registers 10.3.3.1.1 Tx P acket Size PCITPSR(R W) —MB AR + 0x3800 10.3.3.1.2 Tx Star t Address PCITSAR(R W) —MB AR + 0x3804 10.3.3.1.3 Tx T ransaction Control Re gister PCITTCR(R W) —MBAR + 0x3808 m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R P acket_Size[31:16] W RESET 0 00000000 0 [...]
-
Página 322
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-25 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser ved Max_Beats Rese rved W Reser v ed DI W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:3 Reser v ed Unused. Software should wr ite zero to these bits. 4:7 PCI_cmd The user writes th is field with the desired[...]
-
Página 323
MPC5200B Users Guide, Rev . 1 10-26 F reescale Semiconductor Registers 10.3.3.1.4 Tx Enables PCITER(R W)—MB AR + 0x380C m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RR C R F Rsvd CM BE Reserv ed ME Rese rved FEE SE RE T AE IAE NE W RESET 0 00000000 0 0 0 00 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed W RESET 0 00000000 0 0 [...]
-
Página 324
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-27 10.3.3.1.5 Tx Next Address PCITNAR(R) —MB AR + 0x3810 12 Retr y abor t Enable (RE) User writes this bit high to enable CPU Interr upt generation in the case of retry abo rt termin ation of a pack et transmission. It may be desirab le to mask CPU inte rrupts in the case that [...]
-
Página 325
MPC5200B Users Guide, Rev . 1 10-28 F reescale Semiconductor Registers 10.3.3.1.6 Tx Last W ord PC ITL WR(R) —MB AR + 0x3814 10.3.3.1.7 Tx Bytes Done C ounts PCITDCR(R) —MB AR + 0x3818 10.3.3.1.8 Tx P ackets Done C ounts PCITPDCR(R) —MB AR + 0x3820 m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Last_Word W RESET 0 00000000 0 0 0 00 0 0 16 17 18[...]
-
Página 326
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-29 10.3.3.1.9 Tx Status PCITS R(R WC) —MB AR + 0x381C 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R P ackets_Done W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:31 P ackets_Done This status register indicates the nu mber of pac kets transmitted and i s activ e[...]
-
Página 327
MPC5200B Users Guide, Rev . 1 10-30 F reescale Semiconductor Registers 10.3.3.1.10 Tx FIFO Data Regi ster PCITFDR(R W ) —MB AR + 0x3840 10 Bus Error type 1 (BE1) This flag is set whenev er a Slav e bus transaction attempts to read a Reserved register (an entire 32-bit register , not just a Re ser ved bit or byte). This flag bit is set regardless [...]
-
Página 328
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-31 10.3.3.1.11 Tx FIFO St atus Register PCITFSR( R/R WC) —MBAR + 0x3844 Bit s Name Description 0:31 FIFO_Data_Word This is the data por t to the FIFO. Reading from this l ocation will “pop” data from the FIFO , writing da ta will “push” data into the FIFO . Durin g norm[...]
-
Página 329
MPC5200B Users Guide, Rev . 1 10-32 F reescale Semiconductor Registers 10.3.3.1.12 Tx FIFO Contr ol R egister PCITFCR(RW ) —MBAR + 0x3848 10.3.3.1.13 Tx FIFO Alarm Regi ster PCITF AR(R W) —MB AR + 0x384C msb 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 R Reserved GR IP_MASK F AE_MASK RXW_MASK UF_MASK OF_MASK Reserved W RESET 0 0 0 0 0 1 0 0 0 0 1 0 0 [...]
-
Página 330
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-33 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed Alar m A larm W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:19 Reser v ed Unused. Software should wr ite zero to these bits. 20:31 Alar m User writes these bits to set low le vel “watermark”, whi c[...]
-
Página 331
MPC5200B Users Guide, Rev . 1 10-34 F reescale Semiconductor Registers 10.3.3.1.14 Tx FIFO Read P ointer Register PCITFRPR(R W) —MB AR + 0x3850 10.3.3.1.15 Tx FIFO Write P ointer Register PCI TFWPR(R W) —MB AR + 0x3854 This marks the end of the PCI Multi-Ch annel DMA T ransmit Interface description. 10.3.3.2 Multi-Channel DMA Receive Interface [...]
-
Página 332
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-35 10.3.3.2.1 Rx Pac ket Size PCIRPSR(R W) —MB AR + 0x3880 10.3.3.2.2 Rx Star t Address PCIRSAR (R W) —MB AR + 0x3884 10.3.3.2.3 Rx T ransaction Control Re gister PCIR TCR(R W) —MB AR + 0x3888 m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R P acket_Size[31:16] W RESET 0 000000[...]
-
Página 333
MPC5200B Users Guide, Rev . 1 10-36 F reescale Semiconductor Registers 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reserve d FB R Max_Beats Reser v ed W Reser v ed DI W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:3 Reser ve d Unused. Software should write zero to these bits. 4:7 PCI_cmd The user wr ites this field with the desi[...]
-
Página 334
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-37 10.3.3.2.4 Rx Enables PCI RER (R W) —MB AR + 0x388C m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RR C R F F E C M B E Reserve d ME Reserved FEE SE R E T AE IAE NE W RESET 0 00000000 0 0 0 00 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed W RESET 0 0000000[...]
-
Página 335
MPC5200B Users Guide, Rev . 1 10-38 F reescale Semiconductor Registers 10.3.3.2.5 Rx Next Address PCIRNAR(R) —MBAR + 0x3890 10.3.3.2.6 Rx Last W or d PCIRL WR(R) —MB AR + 0x3 894 11 System error Enable (SE) User write s this bit high to enable CPU In terrupt generation in t he case of system error ter mination of a pack et transmission. It may [...]
-
Página 336
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-39 10.3.3.2.7 Rx Bytes Done Count s PCIRDCR(R) —MB AR + 0x3898 10.3.3.2.8 Rx Pac kets Done Coun ts PCIRPDCR(R) —MB AR + 0x38A0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Last_Word W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:31 L ast_W ord This status r[...]
-
Página 337
MPC5200B Users Guide, Rev . 1 10-40 F reescale Semiconductor Registers 10.3.3.2.9 Rx Status PCIRS R (R/sw1) —MB AR + 0x389C Bit s Name Description 0:31 Pa ckets_Done This status registe r indicates the number of pack ets received. It is active on ly if continuous mode is in eff ect. If the follo wi ng occurs, the counter is reset: • Reset Contr[...]
-
Página 338
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-41 10.3.3.2.10 Rx FIFO Data Regi ster PCIRFDR(R W) —MB AR + 0x38C0 10.3.3.2.11 Rx FIFO Status Register PCIRFSR(R/sw1) —MB AR + 0x38C4 12 System Erro r (SE) This flag is set in response to the T ransmit Controller enter ing an illegal state. A CPU interrupt will be generated i[...]
-
Página 339
MPC5200B Users Guide, Rev . 1 10-42 F reescale Semiconductor Registers 10.3.3.2.12 Rx FIFO Contro l Regi ster PCIRFCR(R W) —MB AR + 0x38C8 R Reser v ed RXW UF OF FR Full Alar m Empty W rwc rwc rwc 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed W RESET 0 00000000 0 0 0 00 0 0 Bit s Name Description 0:8 Reser ved Unused byte . Sof[...]
-
Página 340
Regist ers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-43 10.3.3.2.13 Rx FIFO Alarm Regi ster PCIRF AR(R W) —MB AR + 0x38CC Bit s Name Description 0:4 Reser v ed Unused. Software shall write z ero to these bits. (R/W) 5:7 Granu lar ity (GR) Granularity bits control high “water mark” point at which FIFO nega tes Alarm condition [...]
-
Página 341
MPC5200B Users Guide, Rev . 1 10-44 F reescale Semiconductor Functional Des cription 10.3.3.2.14 Rx FIFO Read P ointer R egister PCIRFRPR(R W) —MB AR + 0x38D0 10.3.3.2.15 Rx FIFO Write P ointer R egister PCIRFWPR (R W) —MB AR + 0x38D4 This marks the end of the PCI Multi-Channel DMA Rec eive Interface description. 10.4 Function al Description Th[...]
-
Página 342
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-45 NO TE Only the internal PCI arbiter of the MPC5200B can be used as PCI ar biter for the PCI bus. An external PCI arbiter cannot be used. The registers, described in Section 10.3, Registers , control and provide informatio n about th ese multiple interfa ces. An ad[...]
-
Página 343
MPC5200B Users Guide, Rev . 1 10-46 F reescale Semiconductor Functional Des cription or more data phases. Data is tr ansferred between initiat or and target in each cycl e that both IRDY and TRDY are ass erted. W ai t cycles may be inserted in a data phase by the initiator (by negating IRDY ) or by the target (by negating TRDY ). Once an initiator [...]
-
Página 344
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-47 Figure 10-3. PCI Write T erminated by T arget 10.4.1.4 PCI Bus Commands PCI supports a number of different co mmands. These commands are presente d by the initiator on the C/BE[3:0] lines during the address phase of a PCI transact ion. T able 10-5. PCI Bus Command[...]
-
Página 345
MPC5200B Users Guide, Rev . 1 10-48 F reescale Semiconductor Functional Des cription Though MPC5200B supports many PCI co mmands as an initiator , the Communicatio n Sub-System Initiator inte rface is intended to use PCI Memory Read, and Me mory W rite commands. 10.4.1.5 Addressing PCI defines three physical address spaces: PCI memory space, PCI I/[...]
-
Página 346
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-49 For linear in crementing mode, the memor y address is encoded/dec oded using AD[31:2]. Thereafter, th e address is incremented by 4 bytes after each dat a phase completes until the transac tion is terminated or complete d (a 4 byte data width per data phase i s im[...]
-
Página 347
MPC5200B Users Guide, Rev . 1 10-50 F reescale Semiconductor Functional Des cription Figure 10-4. Contents of t he AD Bus During Address Phase of a T ype 0 Configuration T ransaction Address bits [10:8] identify th e target function and bits AD[7:2] select one of the 64 configurat ion dwords within the target f unction’ s configuration space. For[...]
-
Página 348
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-51 10.4.2 Initiator Arbitration There are three possible internal initiator sources - CommBus Transmit, Co mmBus Receive, or the XL bus (from Internal System Ar biter). Custom interfac e logic arbitrates and provides mux s ele ct control for these sources to the PCI [...]
-
Página 349
MPC5200B Users Guide, Rev . 1 10-52 F reescale Semiconductor Functional Des cription In addition to the configurable address wi ndow mapping logic, the register interface provides a Configuration Address Register , which provides the ability to genera te Configura tion, Interrupt Acknowledge a nd Specia l Cycl es. External PC I devices should be co[...]
-
Página 350
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-53 101 001 -- -- -- -- -- OP7 -- -- 100 1101 -- -- OP7 -- 110 001 -- -- -- -- -- -- OP7 -- 100 1011 -- OP7 -- -- 111 001 -- -- -- -- -- -- -- OP7 100 0111 OP7 -- -- -- 000 010 OP6 OP7 -- -- -- -- -- -- 00 0 1100 -- -- OP7 OP6 001 010 -- OP6 OP7 -- -- -- -- -- 000 100[...]
-
Página 351
MPC5200B Users Guide, Rev . 1 10-54 F reescale Semiconductor Functional Des cription 10.4.4.2 Configuration Mechanism In order to support both T ype 0 and T ype 1 configuration transac tions, MPC5200B provides the 32 bit C onfiguration Address Regis ter (CAR), located at module address 0x1F8. The regist er specifies the target PCI bus, device, f un[...]
-
Página 352
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-55 Figure 10-7. T ype 0 Configurat ion T ra nslation For T ype 0 configuration cy cles, MPC5200B translates the device number field of the Configurati on Address Register into a uniqu e IDSEL line shown in T able 10-8 . (allows for 21 di fferent devices). T able 10-8[...]
-
Página 353
MPC5200B Users Guide, Rev . 1 10-56 F reescale Semiconductor Functional Des cription NOTE: Device numbers 0b0_0000 to 0b0_1001 are reserved. Programming to these values and issuing a co nfiguration transaction will result in a PCI configuration cy cle with AD31-A D1 1 driven low . MPC5200B can issue PCI configuration transa ctions to itself. A T yp[...]
-
Página 354
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-57 During the data phase, AD[31:0] c ontain the S pecial Cycle message and an optional data field. The Special Cycle message is e nco ded on the 16 least significan t bits (AD[15:0]) and the optional data field is enc oded on the most significant bits (AD[31:16]). Th[...]
-
Página 355
MPC5200B Users Guide, Rev . 1 10-58 F reescale Semiconductor Functional Des cription 10.4.5.1 Reads from Local Memory MPC5200B can provide continuous data to a PCI master using two 32-b yte buffers . The PCI controller bursts reads internally at e ach 32-byte PCI address boundary . The data is stored in the first 32-byte buff er until either the PC[...]
-
Página 356
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-59 10.4.5.4 T arget Abort A target abort will occur if the PCI addres s falls within a base address window (BAR 0 or BAR1) that has not been enabled. Section 10.3 .2.2, T a rget Base Address T ranslation Regi ster 0 PCITBA TR0(R W) —MBAR + 0x0D64 and Section 10.3.2[...]
-
Página 357
MPC5200B Users Guide, Rev . 1 10-60 F reescale Semiconductor Functional Des cription The Communication Sub-System Initiat or Interface consists of Receiv e and Transmit FIFOs, integrated as separate Multi-Cha nnel D MA peripherals. Therefore, it is generally controlled by the Multi-Channel DMA controller through a pre-described program loop. As wit[...]
-
Página 358
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-61 2. Set the PCI command, Max_Retries, and Max_Beats 3. Set mode, Continuous or Non-continuous 4. Reset the FIFO 5. Set the FIFO Alarm and Granularity fields 6. Set the Master Enab le bit (eventually enable the wanted in terrupt in case of errors or even of a normal[...]
-
Página 359
MPC5200B Users Guide, Rev . 1 10-62 F reescale Semiconductor PCI Arbiter 10.4.6.8 Alarms The FIFO alarm registe rs allow software to control when the DMA fill s or empties the appropriate FIFO. 10.4.6.9 Bus Error s Since Bus Errors are particular to the module register set a nd that register set includes both T ransmit and Receive Controller and FI[...]
-
Página 360
Application Inf ormation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-63 The PCI Arbiter implements a Round-Robin fa irness algorithm, which avoids the domination of th e bus by high-priority masters an d exclusion of low-priority masters. The PCI Arbiter is capable of Parking the current Ma ste r to stay on last master in abse nce o [...]
-
Página 361
MPC5200B Users Guide, Rev . 1 10-64 F reescale Semiconductor Application Information 10.6.2 Address Maps The address mapping in MPC5200B system is setup by soft ware through a number of ba se address registers. ( Section 3.2, Internal Register Memory Map for more detail). The internal CPU writ es the base address value to module base address regist[...]
-
Página 362
Application Inf ormation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-65 Figure 10-8. Inbo und Address Map 10.6.2.1.2 Outbound Ad dress T ranslation Figure 10-9 shows example XL Bus Initiator W indow configurations . Overlapping the inbound memory window (MPC5200B Memory) and the outbound translation window is not suppor ted and can c[...]
-
Página 363
MPC5200B Users Guide, Rev . 1 10-66 F reescale Semiconductor Application Information Figure 10-9. Out bound Address Map 10.6.2.1.3 Base Address Register Overview T able 10-1 5 shows the available accessibility for all PCI associated base ad dress and translation address registers in MPC5200B. Base Address Regist er Register Function PCI Bus Co nfig[...]
-
Página 364
Application Inf ormation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 10-67 10.6.3 XL b us Arbitration Priority When the XL Bus Arbiter Master Priority Regi ster ( Section 16.2 .11, Arbiter Master Prior ity Register (R/W)—MBAR + 0x1F68 ) is set to any configuration except all-ma ster fair-share (all ma sters have t he same priority), l[...]
-
Página 365
MPC5200B Users Guide, Rev . 1 10-68 F reescale Semiconductor Application Information[...]
-
Página 366
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-1 Chapter 11 A T A Controller 11.1 Overview The following sections are contained in this document: • Section 1 1.2, BestComm Key Featur es — Section 1 1.3, A T A Register Interface , includes: — Section 1 1.3. 1, A T A Host Registers—MBAR + 0x3A00 — Section 1 1.3. 2, A T [...]
-
Página 367
MPC5200B Users Guide, Rev . 1 11-2 F reescale Semiconductor A T A Register Interface 4. As FIFO fills, BestComm is in terrupted and moves data from FIFO to an internal destination. 11.2.2 BestComm Write 1. microprocessor sets up descriptors in BestComm RAM and initi ates a transfer . 2. BestComm hits on an A T A command FIFO sp ac e and writes a co[...]
-
Página 368
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-3 11.3.1.2 A T A Host Status Registe r—MBAR + 0x3A04 11.3.1.3 A T A PIO Timing 1 Register—MB AR + 0x3A08 6 IE Enables driv e interr upt to pass to CPU in PIO modes. 7 IORD Y Set by software when the drive supports IORD Y . Required for PIO mode 3 and abo ve. 16 [...]
-
Página 369
MPC5200B Users Guide, Rev . 1 11-4 F reescale Semiconductor A T A Register Interface 11.3.1.4 A T A PIO Timing 2 Register—MB AR + 0x3A0C 11.3.1.5 A T A Multiw ord DMA Timing 1 Register—MB AR + 0x3A10 Bit s Name Description 0 : 7 pio_t0 PIO cycle time count v alue is based on system clock operating frequency . 8 : 15 pio_t2_8 PIO read / write pu[...]
-
Página 370
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-5 11.3.1.6 A T A Multiw ord DMA Timing 2 Register—MB AR + 0x3A14 11.3.1.7 A T A Ultra DMA Timing 1 Re gister—MBAR + 0x3A18 Bit s Name Description 0 : 7 dma_t0 Multiword DMA cycle time. Count value is based on system clock operating frequency . 8 : 15 dma_td Mult[...]
-
Página 371
MPC5200B Users Guide, Rev . 1 11-6 F reescale Semiconductor A T A Register Interface 11.3.1.8 A T A Ultra DMA Timing 2 Re gister—MBAR + 0x3A1C 11.3.1.9 A T A Ultra DMA Timing 3 Re gister—MBAR + 0x 3A20 Bit s Name Description 0 : 7 ud ma_t2cyc Ultr a DMA sustained av erage two cycle time. Count value is based on system clock operating frequency [...]
-
Página 372
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-7 11.3.1.10 A T A Ultra DMA Timing 4 Register—MB AR + 0x3A24 Bit s Name Description 0 : 7 u dma_tmli Limited interlock time with a defined min imum, when drive or host are waiting f or response from each other . Count value is based on system clock operating frequ[...]
-
Página 373
MPC5200B Users Guide, Rev . 1 11-8 F reescale Semiconductor A T A Register Interface 11.3.1.11 A T A Ultra DMA Timing 5 Register—MB AR + 0x3A28 11.3.1.12 A T A Share Count Register—MB AR + 0x3A2C 11.3.2 A T A FIFO Regi sters—MB AR + 0x3A00 A T A uses a single FIFO that changes direct ion based on the Rx / Tx mode. Software contro ls direction[...]
-
Página 374
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-9 A T A FIFO is controlled by 32-bit registers. These registers are located at an of fset from MBAR of 0x3a00. Register addresses ar e relative to this offset. Therefore, the actual register address is: MBAR + 0x3A00 + r egister address Hyperlinks to the A T A FIFO [...]
-
Página 375
MPC5200B Users Guide, Rev . 1 11-10 F reescale Semiconductor A T A Register Interface 11.3.2.3 A T A Rx / Tx FIFO Contr ol Register—MBAR + 0x3A44 11.3.2.4 A T A Rx / Tx FIFO Alarm Register—MB AR + 0x3A48 10 UF Und erFlow—flag indicates read pointer has sur passed the write pointer. FIFO w as read bey ond empty . Resetting FIFO clears this co [...]
-
Página 376
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-11 11.3.2.5 A T A Rx / Tx FIFO Read P ointer Register—MB AR + 0x3A4C 11.3.2.6 A T A Rx / Tx FIFO Write P ointer Register—MB AR + 0x3A50 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed Alar m W R E S E T : 0 00000000 0 0 0 00 0 0 Bit s Name Descr[...]
-
Página 377
MPC5200B Users Guide, Rev . 1 11-12 F reescale Semiconductor A T A Register Interface 11.3.3 A T A Drive Registers—MB AR + 0x3A00 The A T A drive registers are physically located inside the drive c ontroller on the A T A disk drive. The MPC5200B A T A Host Control ler provides acces s to these registers using the chip select s and address bits. A[...]
-
Página 378
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-13 11.3.3.2 A T A Drive Alternate Status Reg ister—MBAR + 0x3A5C 11.3.3.3 A T A Drive Data Register—MB AR + 0x3A60 T able 11-20 . A T A Drive Al ternate Status Re gister m s b 0 1 23456789 1 0 1 1 1 2 1 3 1 4 1 5 RB S Y D R D Y Reser ved DRQ Rsvd ERR Reser v ed [...]
-
Página 379
MPC5200B Users Guide, Rev . 1 11-14 F reescale Semiconductor A T A Register Interface 11.3.3.4 A T A Drive Features Register—MB AR + 0x3A64 11.3.3.5 A T A Drive Err or Register—MB AR + 0x3A64 T able 11-22. A T A Drive Features Regi ster m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Reserved WD a t a R E S E T : 0 00000000 0 0 0 00 0 0 16 17 18 1[...]
-
Página 380
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-15 11.3.3.6 A T A Drive Sector Count Registe r —MB AR + 0x3A68 11.3.3.7 A T A Drive Sector Number Registe r —MB AR + 0x3A6C T able 11-24. A T A Drive Sector Count Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RD a t a Reser v ed W R E S E T : 0 00000000 0 [...]
-
Página 381
MPC5200B Users Guide, Rev . 1 11-16 F reescale Semiconductor A T A Register Interface 11.3.3.8 A T A Drive Cylinder Lo w Register—MB AR + 0x3A70 11.3.3.9 A T A Drive Cylinder High Register—MB AR + 0x3A74 T able 11-26. A T A Drive Cylinder Low Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RD a t a Reser v ed W R E S E T : 0 00000000 0 0 0 [...]
-
Página 382
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-17 11.3.3.10 A T A Drive Device / Head Register—MB AR + 0x3A78 11.3.3.11 A T A Drive Device Command Register—MB AR + 0x3A7C T able 11-28. A T A Drive Device / He ad Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 R Rsvd Data Rsvd DEV D ata Reserved W R E S E[...]
-
Página 383
MPC5200B Users Guide, Rev . 1 11-18 F reescale Semiconductor A T A Register Interface Bit s Name Description 0 : 7 Data Register cont ains the command co de sent to the driv e. When this register is written, command ex ecution begins immediately . Writing this register clears any pending interrup t condition. 8— R e s e r v e d 9 HUT Host UDMA bu[...]
-
Página 384
A T A Register Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-19 11.3.3.12 A T A Drive Device Status Register—MB AR + 0x3A7C T able 11-30. A T A Drive Device Status Register m s b 0 1 2 3 45678 9 1 0 1 1 1 2 1 3 1 4 1 5 R BSY DRD Y Data DRQ Reserved ERR Rsvd HUT FR FE IE UDMA Read Wr ite W R E S E T : 0 0 0 0 00000 0 0 0 0 0[...]
-
Página 385
MPC5200B Users Guide, Rev . 1 11-20 F reescale Semiconductor A T A Host Contr oller Operation 11.4 A T A Host Controller Operation W ith the asynchronous A T A interface, an interf ace must be implemented that meets the timing specifications, given an input cloc k from the processor that is not fixed among all applic ations. The challenge is to mee[...]
-
Página 386
A T A Host Contr oller Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-21 udma_t2cyc is another special ca se. Unlike the name i mplies, this regist er does not control 2 UDMA ti min g cycles. Rather , it controls how long the host continue s to accept data after it ha s de-asserted HDMARDY–. Accordi ng to the A T A-4 specifi[...]
-
Página 387
MPC5200B Users Guide, Rev . 1 11-22 F reescale Semiconductor A T A Host Contr oller Operation If A T A drive address space is accessed by CPU, the A T A IPBI module generates: • a signal to en able the PIO mode state machine • a wait state to the IPBI module to hold off any further IPBI module access The PIO state machine indicates transfer is [...]
-
Página 388
Signals and Connections MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-23 11.5 Signals and Connections NO TE The A T A_ISOLA TION output is an active high signal to control external A T A transceiver devices and to isolate the A T A bus from the Local Plus (share d) bus. The A T A_ISOLA TION pin is driven low immediately after the posit[...]
-
Página 389
MPC5200B Users Guide, Rev . 1 11-24 F reescale Semiconductor A T A Interface Description Figure 11-2. Connections—Contr oller Cable, System Boa rd, MPC5200B 11.6 A T A Interface Description T able 11-34. A T A Contr oller External Connections Pin # Cable I/O System Boar d I/O MPC5200B 1 RESET O RESET : Reset — N / A—GPIO op tional 2 G N D —[...]
-
Página 390
A T A Inter face Description MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-25 NO TE MPC5200B provides the A T A_ISOLA TION output signal. This signal is shared with the A22 output of the LocalPlus Most/Graphic s mode. The A T A_ISOLA TION is not a signal defined by the A T A Standard. It is provided to su ppor t an external A T A trans[...]
-
Página 391
MPC5200B Users Guide, Rev . 1 11-26 F reescale Semiconductor A T A Bus Background Figure 11-3. Pi n Description—A T A Interface 11.7 A T A Bus Backgr ound 11.7.1 T erminology The most popular interface used in modern hard disks is the Integrated Drive Electronics ( I DE ) interface, also known by various other names such as: A T A, EIDE, A T A-2,[...]
-
Página 392
A T A Bus Bac kground MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-27 11.7.2 A T A Modes 11.7.3 A T A Addressing In the A T A interface, there are two aspe cts of addressing that are present: register addressing and secto r addressing. These are discussed in the next sections. T able 11-35. A T A Stan dards Interface Standard Standard[...]
-
Página 393
MPC5200B Users Guide, Rev . 1 11-28 F reescale Semiconductor A T A Bus Background 11.7.3.1 A T A Register Ad dressing The address used to reference an A T A drive r egister . This is the a ctual address ( CS [1]F X , CS [3]F X , DA [ 2 : 0 ] ) present on the physical A T A interface. T able 1 1-37 gives details. 11.7.3.2 Drive Interrupt A pending d[...]
-
Página 394
A T A Bus Bac kground MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-29 Notes 1. LBA mode is on ly available in A T A-2 or later specifications. 2. A block mode exists ( not to be confused with logical block addressing ), in which sectors are grouped into a unit, called a bl ock, for purposes of data transfer . The number of sectors is [...]
-
Página 395
MPC5200B Users Guide, Rev . 1 11-30 F reescale Semiconductor A T A Bus Background 11.7.4 A T A T ransactions A T A Transactions ar e di vided into three types: • PIO Mode • Multiword DMA •U l t r a D M A 11.7.4.1 PIO Mode T ransactions PIO mode transactions are the simp lest transaction available on the A T A interface. They essentially consi[...]
-
Página 396
A T A Bus Bac kground MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-31 Figure 11-5. Timing Diagram— PIO Read Command ( Cl ass 1 ) 11.7.4.1.2 Class 2—PIO Write The PIO single sector wr ite command [ format, write buf fer , write sector ( s ) ] is as follows: 1. HOST : W rite to A T A control / command bl ock registers to setup for d[...]
-
Página 397
MPC5200B Users Guide, Rev . 1 11-32 F reescale Semiconductor A T A Bus Background Figure 11-6. Timing Diagram—PIO Write Command ( C lass 2 ) 11.7.4.1.3 Class 3— Non-Data Command The Non-Data Command is as follows: 1. HOST : W rite to A T A control / command bl ock registers to setup for data read. 2. HOST : W rite to A T A command register to e[...]
-
Página 398
A T A Bus Bac kground MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-33 3. W rite command code 0xEF to comm and register to execute SET FEA TURES command. This sets the data transfer pro tocol to multiword DMA with desired mode. Data transfers into DMA di ffer from a PIO transfe r in that: • Data is transf erred using the DMA channel.[...]
-
Página 399
MPC5200B Users Guide, Rev . 1 11-34 F reescale Semiconductor A T A Bus Background Figure 11-8. Flo w Diagram—DMA Command Pr otocol Host: BSY = 0 & DRQ = 0 No Host: BSY = 0 & DRQ = 0 No Yes Yes Drive: Error Yes No Drive: Transfer Done Drive: Error Drive: nIEN = 0 No Yes No Yes No Yes Write Comma nd Code to Command register Write Control / [...]
-
Página 400
A T A Bus Bac kground MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-35 11.7.4.3 Multiwor d DMA T ransactions Multiword DMA transactions dif fer from PIO mode transactions in three ways: 1. Data transfers are done using a drive DMA and a host DMA (optional). 2. Handshaking is done with DMARQ a nd DMACK, no address is necessary . 3. Inte[...]
-
Página 401
MPC5200B Users Guide, Rev . 1 11-36 F reescale Semiconductor A T A RESET / P ower -Up NO TE Ultra DMA mode 2 (UDMA2) requires that th e ip bus clock speed is at least 66 MHz. T able 1 1-39 lists the redefined ultra DMA protocol signal lines. These lines provide new functions during th e ultra DMA mode. At terminati on of an ultra DMA burst, the hos[...]
-
Página 402
A T A I/O Cable Specifications MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 11-37 Figure 11-10. Timing Dia gram—Reset Timing 11.9 A T A I/O Cable Specifications For reference, the standard A T A cable specifications affects st em integrity and should not exceed 18 inches or 0 . 46 m. T ot al cable capacitance should not exceed 35 pF . [...]
-
Página 403
ATA C o n t r o l l e r Notes MPC5200B Users Guide, Rev . 1 11-38 F reescale Semiconductor[...]
-
Página 404
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-1 Chapter 12 Univer sal Serial Bus ( U SB ) 12.1 Overview The following sections are contained in this document: • Section 12.2, Data T ransfer T ypes • Section 12.4, Host Contr ol ( HC ) Operational Registers , includes: — Section 12.4.2, Contr ol and S tatus Pa rtition—MB[...]
-
Página 405
MPC5200B Users Guide, Rev . 1 12-2 F reescale Semiconductor Host Controller Interface • Bulk T ransfers —Non-periodic data transfers used to communicate large amo unts of informat ion between clien t software and the USB device. In OpenHCI the data tra nsfer types are classified into two ca tegories: period ic a nd nonperiodic. Periodic transfe[...]
-
Página 406
Host Controller Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-3 The HCCA includes the “virtual” regist ers HccaFrameNumber and Hcc aPad1. The offse ts shall be 0x80 (for HccaFrameNumbe r) and 0x82 (for HccaPad1). In the USB module of the MPC5200B these tw o “virtual” registers are swap ped. The HccaFrameNumber is a co[...]
-
Página 407
MPC5200B Users Guide, Rev . 1 12-4 F reescale Semiconductor Host Controller Interface Figure 12-4. Interru pt ED Structure Figure 12-5 shows a sample interrupt endpoi nt schedule. The schedule shows: • two endpoint descriptors at a 1 ms poll interval • two endpoint descriptors at a 2 ms poll interval • one endpoint descriptor at a 4 ms poll i[...]
-
Página 408
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-5 Figure 12-5. Sample Interrupt Endpo int Schedule 12.4 Host Control ( HC ) Operational Registers Host Control contains a set of on-chip operational registers which are mapped into a non-cacheable portion of the system addres sab le space. These r[...]
-
Página 409
MPC5200B Users Guide, Rev . 1 12-6 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.2 Control and Status P artition—MB AR + 0x1000 This HC partition uses 6 32-bit registers. These registers are located at an offs et from MBAR of 0x1000. Register addresses are relative to this offset. Therefore, the actual register address [...]
-
Página 410
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-7 Bit s Name Description 0 : 20 — Reser v ed 21 RW E Remote W akeUp E n ab le—HCD uses bit to enable or disable the remote Wak eUp feature on detection of upstream resume signaling. When this bit is set and the ResumeDetected bit in HcInterr u[...]
-
Página 411
MPC5200B Users Guide, Rev . 1 12-8 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.2.3 USB HC Command Status Register—MB AR + 0x1008 HC uses the HC Command Sta tus register to receive ( Rx ) commands issued by HCD. It reflects the current HC status. T o HCD, it ap pears to be a write-to-set register . HC ensur es bits wri[...]
-
Página 412
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-9 12.4.2.4 USB HC Interrupt Status Register —MB AR + 0x 100C This register provides status on various events that cause hardwa re interrupts. When an event oc curs, HC sets the corresponding register bit. When a bit is set, a hardware interrupt [...]
-
Página 413
MPC5200B Users Guide, Rev . 1 12-10 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.2.5 USB HC Interrupt Enable Register—MB AR + 0x 1010 Each enable bit in the HC Interrupt Enable register corresponds to an associated interrupt bit in the HcIn terruptStatus registe r. T h e HcInterruptEnable register is us ed to control w[...]
-
Página 414
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-11 12.4.2.6 USB HC Interrupt Disable Re gister—MBAR + 0x 1014 Each disable bit in the HC Interrupt Disabl e register corresponds to an associated in terrupt bit in the Hc InterruptStatus regis ter . The HcInterruptDisable regist er is coupled wi[...]
-
Página 415
MPC5200B Users Guide, Rev . 1 12-12 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.3 Memory P ointer P ar tition—MBAR + 0x1018 This HC partition uses 7 32-bit registers. These registers are located at an offs et from MBAR of 0x1018. Register addresses are relative to this offset. Therefore, the actual register address is[...]
-
Página 416
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-13 • USB HC Bulk Current Endpi nt Descriptor Register (0x102C) • USB HC Done Head Register (0x1030) 12.4.3.1 USB HC HCCA Register—MB AR + 0x1018 The HC HCCA register contains the physical address of the Host Controller Communication Area. HC[...]
-
Página 417
MPC5200B Users Guide, Rev . 1 12-14 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.3.3 USB HC Control Head Endpoint Descriptor Register —MB AR + 0x1020 The HC Control Head Endpoint Desc riptor register contains the phys ical address of the first endpoi nt descriptor of the Control list. 12.4.3.4 USB HC Control Current En[...]
-
Página 418
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-15 12.4.3.6 USB HC Bulk Current Endpoint Descriptor Register—MB AR + 0x102C The HC Bulk Current Endpoint Descriptor re gister contains the physical address of the current endpoint of the bulk list. The bu lk list is served in a round-robin fashi[...]
-
Página 419
MPC5200B Users Guide, Rev . 1 12-16 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.4 Frame Counter P ar tition—MB AR + 0x1034 This HC partition uses 5 32-bit registers. These registers are located at an offs et from MBAR of 0x1034. Register addresses are relative to this offset. Therefore, the actual register address is:[...]
-
Página 420
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-17 12.4.4.2 USB HC Frame Remaining Register—MB AR + 0x1038 This register is a 14-bit coun t-down counter containi ng the remaining cu rrent Frame bit-time. 12.4.4.3 USB HC Frame Number Register—MB AR + 0x103C The HC Frame Number register is a [...]
-
Página 421
MPC5200B Users Guide, Rev . 1 12-18 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.4.4 USB HC P eriodic Star t Register—MB AR + 0x1040 This register has a 14-bit programmable valu e that determines when is the earliest time HC should start processing the periodic list . 12.4.4.5 USB HC LS Threshold Register—MB AR + 0x1[...]
-
Página 422
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-19 12.4.5 Root Hub P ar tition—MB AR + 0x1048 This HC partition uses 5 32-bit registers. These registers are located at an offs et from MBAR of 0x1048. Register addresses are relative to this offset. Therefore, the actual register address is: MB[...]
-
Página 423
MPC5200B Users Guide, Rev . 1 12-20 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.5.2 USB HC Rh Descriptor B Register—MB AR + 0x104C This register is the second of two regist ers describing the Root Hub characteristics. These fields are written during initializ ation to correspond with the system implem entation. Reset [...]
-
Página 424
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-21 12.4.5.3 USB HC Rh Status Register—MB AR + 0x1050 This register is divided into two parts. The lower 16 bits of a 32-bit word represen ts the hub status field; the upper word rep resen ts the hub status change field. Reserved b its should alw[...]
-
Página 425
MPC5200B Users Guide, Rev . 1 12-22 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.5.4 USB HC Rh P ort1 Status Register—MBAR + 0x10 54 This register is controls and reports port events on a per-port basis. The Number of Downstream Ports ( NDP ) represents the numb er of Hc Rh Port Status registers that are implemented in[...]
-
Página 426
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-23 T able 12-22. USB HC Rh P ort 1 Status Register m s b 0 123456789 1 0 1 1 1 2 1 3 1 4 1 5 R Reser v ed PRSC OCIC PSSC PESC CSC W R E S E T : 0 000000000 0 0 0000 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R Reser v ed LSD A PPS Reserve[...]
-
Página 427
MPC5200B Users Guide, Rev . 1 12-24 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 15 CSC Connect Status Change—bit is set whene ver a connect or disconnect ev ent occurs. • Writing 1 causes HC to clear th is bit. • Writing 0 has no effect. If CCS is cleared when a Set P or t Reset, Set P or t Enable, or Set Port Suspend [...]
-
Página 428
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-25 28 POCI Port Over Curren t Indicator ( r ead )—bit is only v alid when root hub is configured in such a wa y that ov ercurrent conditio ns are repor ted on a per-por t basis. If per-por t ov ercurrent repor ting is not suppor ted, this bit is[...]
-
Página 429
MPC5200B Users Guide, Rev . 1 12-26 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 12.4.5.5 USB HC Rh P ort2 Status Register—MBAR + 0x10 58 This register is controls and reports port events on a per-port basis. The Number of Downstream Ports ( NDP ) represents the numb er of Hc Rh Port Status registers that ar e implemented i[...]
-
Página 430
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-27 Bit s Name Description 0 : 10 — Reserved 11 PRSC P or t Reset Status Ch ange—bit is set at the end of the 10 ms port rese t signal. • Writing 1 clears this bit. • Writing 0 has no effect. 0 = P or t reset not complete 1 = P or t reset c[...]
-
Página 431
MPC5200B Users Guide, Rev . 1 12-28 F reescale Semiconductor Host Control ( HC ) Oper ational Registers 23 PPS P or t P ower Status ( read )—bit reflects the por t po wer status , regardless of the type of power s witch ing implemented. If an ov ercurrent condition is dete cted, this bit is cleared. HCD sets this bit by writing SetP or tP ower or[...]
-
Página 432
Host Contr ol ( HC ) Operational Register s MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 12-29 29 PSS P or t Suspend Status ( read )—bit indi cates por t is suspended or in resume sequence. It is set by a Set Suspe nd State write and cleared when P or t Suspend Status Change is set at the end of the resume interval. This bit cannot be [...]
-
Página 433
Universal Serial Bus ( USB ) Notes MPC5200B Users Guide, Rev . 1 12-30 F reescale Semiconductor[...]
-
Página 434
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-1 Chapter 13 BestComm 13.1 Overview The following sections are contained in this document: • Section 13.2, BestComm Functional Description • Section 13.15, BestComm DMA Registers—MBAR + 0x1200 • Section 13.16, On-Chip SRAM BestComm provides an efficient, integrated approach[...]
-
Página 435
MPC5200B Users Guide, Rev . 1 13-2 F reescale Semiconductor Features summary NO TE It is possible for the BESTComm DMA to produce misaligned word addresses on its Slave and Comm bus. These accesses occur due to incorrect progr am code executed by the BestComm unit. Any misaligned access wi ll be incorrectly processed on the in ternal SRAM bus and t[...]
-
Página 436
T ask T able (Entry T able) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-3 Each task has an entry (8 long words) that contains informa tion about the microcode’ s location (start address and stop address) in memory as well as pointers to the variable table to be used in the task, the Function Descriptor T able for the logic function[...]
-
Página 437
MPC5200B Users Guide, Rev . 1 13-4 F reescale Semiconductor BestComm XLB Ad dress Snooping 13.14 BestComm XLB Address Snooping BestComm prefetches dat a from the XLB into 4 32-Byte wide Read Line Buffers. A buffer will be inv alidated, if the BestComm XLB Address Snooping (BSDIS) is enabled, see XLB Arbiter Configuration Register, and a writ e oper[...]
-
Página 438
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-5 13.15.2 SDMA Current P oin ter Register—MBAR + 0x1204 13.15.3 SDMA End P ointer Register—MB AR + 0x1208 13.15.4 SDMA V ariab le P ointer Register—MBAR + 0x120C T able 13-2. SDMA Current P ointer Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1[...]
-
Página 439
MPC5200B Users Guide, Rev . 1 13-6 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.5 SDMA Interrupt V ector , PTD Contr ol Register —MB AR + 0x1210 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R V ariableP ointer W R E S E T : 0 00000000 0 0 0 00 0 0 Bit Name Description 0 : 31 variableP ointer V ariableP ointer cont[...]
-
Página 440
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-7 13.15.6 SDMA Interrupt Pendi ng Register—MB AR + 0x1214 Bit Name Description 0 : 7 IntV ect1 The Interrupt V ector register is used during interr upt ackno wledge read cycl es . The high order four bits are programmed b y th e user , a nd the low o[...]
-
Página 441
MPC5200B Users Guide, Rev . 1 13-8 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.7 SDMA Interrupt M ask Register—MBAR + 0x1218 Bit Name Description 0D B G D e b u g 1:2 — Reser ved 3 TEA A TEA has been receiv ed b y the currently running task. The corresp onding task number is written in the Error T ask Number field 4:7[...]
-
Página 442
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-9 13.15.8 SDMA T ask Control 0 Register—MB AR + 0x121C SDMA T ask Contr ol 1 Re gister—MBAR + 0x121E T able 13-8 . SDMA T ask Control 0 Register SDMA T a sk Control 1 Register m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 RE n V a l A l w Init IN[4:0][...]
-
Página 443
MPC5200B Users Guide, Rev . 1 13-10 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.9 SDMA T ask Control 2 Register—MB AR + 0x1220 SDMA T ask Contr ol 3 Re gister—MBAR + 0x1222 9 High En High-Enable - High Prior ity T ask Enable 0 = Nor mal task enab le control 1 = High prior ity task enable control This bit can be set or[...]
-
Página 444
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-11 13.15.10 SDMA T ask Control 4 Register—MB AR + 0x1224 SDMA T ask Contr ol 5 Re gister—MBAR + 0x1226 13.15.11 SDMA T ask Control 6 Register—MB AR + 0x1228 SDMA T ask Contr ol 7 Re gister—MBAR + 0x122A T able 13-10. SDMA T ask Contr ol 4 Regis[...]
-
Página 445
MPC5200B Users Guide, Rev . 1 13-12 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.12 SDMA T ask Control 8 Register—MB AR + 0x122C SDMA T ask Contr ol 9 Re gister—MBAR + 0x122E 13.15.13 SDMA T ask Control A Register—MB AR + 0x1230 SDMA T ask Contr ol B Re gister—MBAR + 0x1232 T able 13-12. SDMA T ask Contr ol 8 Regis[...]
-
Página 446
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-13 13.15.14 SDMA T ask Control C Register—MB AR + 0x1234 SDMA T ask Contr ol D Re gister—MBAR + 0x1236 13.15.15 SDMA T ask Control E Register—MB AR + 0x1238 SDMA T ask Contr ol F Re gister—MBAR + 0x123C T able 13- 14. SDMA T as k Control C Regi[...]
-
Página 447
MPC5200B Users Guide, Rev . 1 13-14 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.16 SDMA Initiator Priori ty 0 Register—MBAR + 0x123C SDMA Initiator Priority 1 Register—MB AR + 0x123D SDMA Initiator Priority 2 Register—MB AR + 0x123E SDMA Initiator Priority 3 Register—MB AR + 0x123F T able 13-16. SDMA Initi ator Pr[...]
-
Página 448
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-15 13.15.17 SDMA Initiator Priori ty 4 Register—MBAR + 0x1240 SDMA Initiator Priority 5 Register—MB AR + 0x1241 SDMA Initiator Priority 6 Register—MB AR + 0x1242 SDMA Initiator Priority 7 Register—MB AR + 0x1243 13.15.18 SDMA Initiator Priori t[...]
-
Página 449
MPC5200B Users Guide, Rev . 1 13-16 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.19 SDMA Initiator Priori ty 12 Register—MBAR + 0x1248 SDMA Initiator Priority 13 Register—MB AR + 0x1249 SDMA Initiator Priority 14 Register—MB AR + 0x124A SDMA Initiator Priority 15 Register—MB AR + 0x124B 16 17 18 19 20 21 22 23 24 2[...]
-
Página 450
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-17 13.15.20 SDMA Initiator Priori ty 16 Register—MBAR + 0x124C SDMA Initiator Priority 17 Register—MB AR + 0x124D SDMA Initiator Priority 18 Register—MB AR + 0x124E SDMA Initiator Priority 19 Register—MB AR + 0x124F 16 : 23 IPR14 Initiator Prio[...]
-
Página 451
MPC5200B Users Guide, Rev . 1 13-18 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.21 SDMA Initiator Priori ty 20 Register—MBAR + 0x1250 SDMA Initiator Priority 21 Register—MB AR + 0x1251 SDMA Initiator Priority 22 Register—MB AR + 0x1252 SDMA Initiator Priority 23 Register—MB AR + 0x1253 13.15.22 SDMA Initiator Prio[...]
-
Página 452
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-19 13.15.23 SDMA Initiator Priori ty 28 Register—MBAR + 0x1258 SDMA Initiator Priority 29 Register—MB AR + 0x1259 SDMA Initiator Priority 30 Register—MB AR + 0x125A SDMA Initiator Priority 31 Register—MB AR + 0x125B 16 17 18 19 20 21 22 23 24 2[...]
-
Página 453
MPC5200B Users Guide, Rev . 1 13-20 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.24 SDMA Requestor MuxControl—MB AR + 0x125C 16 : 23 IPR30 Initiator Prior ity register fo r ini tiator 30. Same bit la yout as IPR0 24 : 31 IPR31 Initiator Prior ity register fo r ini tiator 31. Same bit la yout as IPR0 T able 13-24. SDMA Re[...]
-
Página 454
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-21 The remaining 16 Requestors are fixed as follows: 12:13 Req25 00: Requestor IrD A RX (PSC_6) 01: GPIO_PSC1_1 10: GPIO_USB_3 11: Alwa ys Requestor 25 14:15 Req24 00: Requestor I2C1_TX 01: GPIO_PSC1_0 10: GPIO_USB_2 11: Alwa ys Requestor 24 16:17 Req2[...]
-
Página 455
MPC5200B Users Guide, Rev . 1 13-22 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.25 SDMA task Si z e0—MB AR + 0x1260 SDMA task Size 1—MB AR + 0x1264 T able 13-25. FIxed REquestor s T ab le REQUEST ORS Peripheral REQ15 (RESER VED) REQ14 PSC1_TX REQ13 PSC1_RX REQ12 PSC2_TX REQ11 PSC2_RX REQ10 PSC3_TX REQ9 PSC3_RX REQ8 PC[...]
-
Página 456
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-23 13.15.26 SDMA task 0 & task Size 1 map 13.15.27 SDMA Reser ved R egister 1—MB AR + 0x1268 Bit Name Description srcSize[1:0] Each of the 16 tasks can be prog rammed to use the source and destination sizes contained in one of the T ask Size Regi[...]
-
Página 457
MPC5200B Users Guide, Rev . 1 13-24 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 13.15.28 SDMA Reser ved R egister 2—MB AR + 0x126C 13.15.29 SDMA Debug Module Comparator 1, V alue 1 Register—MB AR + 0x1270 13.15.30 SDMA Debug Module Comparator 2, V alue 2 Register—MB AR + 0x1274 T able 13-29. SDMA Reserved Register 2 m s b[...]
-
Página 458
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-25 13.15.31 SDMA Deb ug Module Control Register —MB AR + 0x1278 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb RV a l u e 2 W R E S E T : 0 00000000 0 0 0 00 0 0 Bit Name Description 0 : 31 V alue2 Debug Module Comparator 2 V alu e. T able 13-32[...]
-
Página 459
MPC5200B Users Guide, Rev . 1 13-26 F reescale Semiconductor BestComm DMA Registers—MB AR + 0x1200 The reserved encodi ngs are set to 0 indicating an uninitialized st ate. 25:28 EU breakpoints euBreakpoint: Th ese bits indicate that a breakpoint has occurred in one of the f o ur ex ecution units. Each e xecution unit has one bit dedica ted to it.[...]
-
Página 460
BestComm DMA Registers—MBAR + 0x1200 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-27 It must be noted that even if a breakpoint is issue d at a spec ific address the SDM A engine will halt ONL Y at a “data aligned” b oundary (for instance, if the task moves 32 bi ts o f data per transact ion and a breakpoint is set at addre ss 0[...]
-
Página 461
MPC5200B Users Guide, Rev . 1 13-28 F reescale Semiconductor On-Chip SRAM 13.16 On-Chip SRAM MPC5200B contains 16 KBytes of on-chip SRAM. This memory is dire ctly accessible by the BestComm DM A un it. It is used primarily a s storage for task table and buffer descript ors used by BestComm DMA to move peripheral data to and from SDRAM or other loca[...]
-
Página 462
Programming Model MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-29 04 5 1 4 1 5 1 9 2 0 3 1 T ask 0 T ask Descriptor Star t P ointer T ask Descr iptor End P ointer V ariab le T able Po inter Function Descriptor Base Address R S V P I EP I S P R C W R L Reserved Reserved Base Address f or Conte xt Sav e Space Literal Base 0 Reser v ed L[...]
-
Página 463
BestComm Notes MPC5200B Users Guide, Rev . 1 13-30 F reescale Semiconductor 13.17.1.1 Integ er Mode This input signal is only valid if the pack signal is negated (s et to ‘0’). This signal indicate s if the SDMA engine should ope rate in integer mode or fractional mode. During integer mode , the engine sign-extends read data and th e it reads t[...]
-
Página 464
Programming Model MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 13-31 task’ s V ariable T able is desired. In addi tion, if a task does not use the last 16 variables, anothe r V ariable T able could start immediately after that task ’ s increment values , so as to not waste memory . When the user write s a program, or when the assembl[...]
-
Página 465
MPC5200B Users Guide, Rev . 1 13-32 F reescale Semiconductor Programming Model[...]
-
Página 466
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-1 Chapter 14 F ast Ethernet Controller ( FEC ) 14.1 Overview The fast Ethernet controller (FEC ) is an Ethernet MAC plus two 1 Kbyte FIFOs that work under the control of the processor and B estComm DMA engine to support 10/100 M bps Ethernet/802.3 networks. T able 14-1 shows a bloc[...]
-
Página 467
MPC5200B Users Guide, Rev . 1 14-2 F reescale Semiconductor Overview Figure 14-1. Block Dia gram—FEC 14.1.1 Features The FEC incorporates se veral features/d esign goals that are key to its use: • Support for different Ethernet physical interfaces: — 100 Mbps IEEE 802.3 MII — 10 Mbps IEEE 802.3 MII — 10 Mbps 7-wire interfa ce (industry st[...]
-
Página 468
Modes of Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-3 • Automatic internal flus hing of the Rx FIFO for runts (collision fragments ) and address recognition re jects (no processor bus utilization). • Address recognition — Frames with broadcast address may be always acce pted or always rejected — Exact match for sin[...]
-
Página 469
MPC5200B Users Guide, Rev . 1 14-4 F reescale Semiconductor I / O Signal Overview 14.3.1 Detailed Si gnal Descriptions 14.3.1.1 MII Ethernet MA C-PHY Interface This section gives a detailed de scription of the Media-Independe nt Interface (MII). An overview of the MII is presented followe d by a description of the MII signals. T wo dif ferent types[...]
-
Página 470
I / O Signal Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-5 Tx_EN . . . . . . . . . . . . . Assertion of this signal in dicates va lid nibbles are bein g presented on the MII. This signal is asse rted with the first nibble of preamble and is nega ted prior to the first Tx_CLK foll owing the final nibble of the frame. TxD . . [...]
-
Página 471
MPC5200B Users Guide, Rev . 1 14-6 F reescale Semiconductor FEC Memory Map and Regis ters 14.3.1.2.1 MII Manage ment Register Set The MII management register set loc ated in the PHY may consist of a basic register set and an ex tended register set as defined in T able 14-5 . 14.4 FEC Memor y Map and Registers The FEC device is programmed by a combi[...]
-
Página 472
FEC Memory Map and Regis ters MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-7 14.4.1 Control and Status (CSR) Memory Map T able 14-6. Module Memor y Map Address Function 000–1FF Con trol / Status Registers 200–3FF MIB Block Counters, see Ta b l e 1 4 - 8 400–7FF Reser ved T able 14-7. CSR Counters Address Mnemonic Name 000 FEC_ID[...]
-
Página 473
MPC5200B Users Guide, Rev . 1 14-8 F reescale Semiconductor FEC Memory Map and Regis ters 14.4.2 MIB Bloc k Counters Memory Map T able 14-8 defines the MIB Counters memory map which defines the MIB RAM space locations wh ere hardware-maintai ned counters reside. These fall in the 3200-33FF address range . Counters are divided into two groups. 1. RM[...]
-
Página 474
FEC Memory Map and Regis ters MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-9 T able 14- 8. MIB Counters Address Mnemonic Description 200 RMON_T_DROP Count of Fr ames Not Correctly Counted 204 RMON_T_P A CKETS RMON Tx Pac ket Count 208 RMON_T_BC_PKT RMON Tx Broadcast P ackets 20C RMON_T_MC_PKT RMON Tx Multicast P ack ets 210 RMON_T_CRC[...]
-
Página 475
MPC5200B Users Guide, Rev . 1 14-10 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5 FEC Reg ister s—MBAR + 0x3000 The FEC uses 37 32-bit registers. These registers are located at an offset fro m MBAR of 0x3000. Register addresses are relative to th is offset. Therefore, the actual regist er address is MBAR + 0x3000 + register addr es[...]
-
Página 476
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-11 14.5.1 FEC ID Register—MB AR + 0x3000 The read-only FEC ID Regist er (FEC_I D) identifies the FEC block and revision. • Section 14-9, FEC I D Register (0x3000) • Section 14-10, FEC Interrupt Event Register (0x3004) • Section 14-1 1, FEC Interrupt En[...]
-
Página 477
MPC5200B Users Guide, Rev . 1 14-12 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5.2 FEC Interrupt E vent Register—MB AR + 0x3004 When an event occurs that sets a bit in the IEVENT register , an interrupt is gene rated if the corresponding bit in the interrup t enable register (IMASK) is also set. The IEVENT register bit is cleared [...]
-
Página 478
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-13 R Reser v ed W Bit s Name Description 0 HBERR Hear tbe at Error— interrupt bit indicates HBC is set in the X_CNTRL register and COL input was not assert ed within the hear tbeat window f ollowing a transmission. 1 BABR Babbling Receiv e Error—bit indica[...]
-
Página 479
MPC5200B Users Guide, Rev . 1 14-14 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5.3 FEC Interrupt Enab le Register—MB AR + 0x3008 The IMASK register provides control over the interrupt events allowed to gene rate an interrupt. All implemented bits in this CS R are R / W . This register is cleared by a hardware reset. If corres pond[...]
-
Página 480
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-15 The R_DES_ACTIVE bit is cleared at reset and by the clearing of ETHER_EN. 14.5.5 FEC Tx Descriptor Ac tive Register—MB AR + 0x3014 The FEC descriptor active register is a command register which should be written by the us er to indicate that the transmit [...]
-
Página 481
MPC5200B Users Guide, Rev . 1 14-16 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5.6 FEC Ethernet Contr o l Register—MBAR + 0x3024 The ECNTRL regist er is a read / write user register that can en able / di sable the FEC. S ome fiel ds may be altered by hardware. Bit s Name Description 0:6 — R e s e r v e d 7 X_DES_ACTIVE Set to on[...]
-
Página 482
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-17 14.5.7 FEC MII Management Frame Register—MBAR + 0x3040 This MII_DA T A register does not reset to a defined value. The MII_DA T A register is us ed to communicate with the attached MII co mpati ble PHY device(s), providing read / wri te access to the MII [...]
-
Página 483
MPC5200B Users Guide, Rev . 1 14-18 F reescale Semiconductor FEC Registers—MB AR + 0x3000 user . When the write management frame opera tion is complete, the M II_DA T AIO_COMPL interrupt is generate d. At this time the MII_ DA T A register contents match th e original value written. T o generate an MII Management Interface re ad frame (read a PHY[...]
-
Página 484
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-19 14.5.9 FEC MIB Contr ol Register—MBAR + 0x3064 The MIB_CONTROL register is a read/write re gister used to provide control of and to observe the state of the MIB block. This re gister is accessed by user software if ther e is a need to disable the MIB bloc[...]
-
Página 485
MPC5200B Users Guide, Rev . 1 14-20 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5.10 FEC Receive Contro l Register—MBAR + 0x3084 The R_CNTRL register is user pr ogrammable. It controls the operatio nal mode of the receive block and shoul d be written on ly whe n ETHER_EN = 0 (ini tialization tim e). Bit s Name Description 0 MIB_DIS[...]
-
Página 486
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-21 14.5.11 FEC Hash Register—MB AR + 0x3088 The read-only R_HASH register provides addr ess recognition information from the Rx bloc k about the frame currently being receiv ed. These bits provide information used in the ad dress recognition subroutine. 14.5[...]
-
Página 487
MPC5200B Users Guide, Rev . 1 14-22 F reescale Semiconductor FEC Registers—MB AR + 0x3000 14.5.13 FEC Physical Ad dress Low Register—MB AR + 0x30E4 The P ADDR1 register is written by the user . Th is register contains the lo wer 32 bits ( Bytes 0, 1, 2, 3) of the 48-bit address used in the address recognition process to com pare with the des ti[...]
-
Página 488
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-23 Note: X: Bit is not reset and must be initialized. 14.5.14 FEC Physical Ad dress High Register—MB AR + 0x30E8 The P ADDR2 register is written by the user . This register contains th e upper 16 bits (bytes 4 and 5) of the 48-bit address used in the address[...]
-
Página 489
MPC5200B Users Guide, Rev . 1 14-24 F reescale Semiconductor FEC Registers—MB AR + 0x3000 Note: X: Bit is not reset and must be initialized. 14.5.16 FEC Descriptor Individual Address 1 Registe—MB AR + 0x3118 The IADDR1 register is written by th e us er . This register contains the upper 32 bits of the 64-bit individual address hash tabl e used [...]
-
Página 490
FEC Registers—MB AR + 0x3000 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-25 Note: X: Bit is not reset and must be initialized. 14.5.18 FEC Descriptor Group Addr ess 1 Register —MBAR + 0x3120 The GADDR1 register is written by the user . This register contains the upper 32 bits of the 64-bit hash table used in the addres s recognit[...]
-
Página 491
MPC5200B Users Guide, Rev . 1 14-26 F reescale Semiconductor FEC Registers—MB AR + 0x3000 Note: X: Bit is not reset and must be initialized. 14.5.20 FEC Tx FIFO W atermark Register—MB AR + 0x3144 The X_WMRK register is a user programmable 4-bit read / write register that controls th e amount of data requi red in the transmit FIFO before transmi[...]
-
Página 492
FIFO Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-27 14.6 FIFO Interface The programming inte rface to the FIFO allows access to Data, S tatus, Control, Last W rite Pointer , Last Read Pointer , Alarm, Rea d and W rite Pointers for T ransmit and Receiv e configurations. The FIFO can be accessed by byte, word, or longword, bu[...]
-
Página 493
MPC5200B Users Guide, Rev . 1 14-28 F reescale Semiconductor FEC Tx FIFO Data Register—MB AR + 0x31A4 14.6.1 FEC Rx FIFO Data Register—MB AR + 0x3184 14.7 FEC Tx FIFO Data Register—MBAR + 0x31A4 The RFIFO_DA T A and TFIFO_DA T A registers are the main interface port for the transm it and receive FIFO. Data which is to be buf f ered in the FIF[...]
-
Página 494
FEC Tx FIFO Status Register—MB AR + 0x31A8 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-29 14.8.1 FEC Rx FIFO Cont rol Register—MB AR + 0x318C FEC Tx FIFO Control R egister—MBAR + 0x31A C The RFIFO_CONTROL and TFIF O_CONTROL registers provide program mability of many FIFO behavior s, from last transfer granularity to frame op er[...]
-
Página 495
MPC5200B Users Guide, Rev . 1 14-30 F reescale Semiconductor FEC Tx FIFO Status Register—MB AR + 0x31A8 14.8.2 FEC Rx FIFO Las t Read Frame P ointer Register—MB A R + 0x3190 FEC Tx FIFO Last Read Frame P o inter Register—MB AR + 0x31B0 The RFIFO_LRF_P TR and TFIFO_LRF_P TR are a FIFO-main tained pointer which indicates the location of the sta[...]
-
Página 496
FEC Tx FIFO Status Register—MB AR + 0x31A8 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-31 14.8.3 FEC Rx FIFO Las t Write Frame P ointer Register—MBAR + 0x3194 FEC Tx FIFO Last Write Frame P ointer Register—MB AR + 0x31B4 The RFIFO_L WF_P T R and TFIFO_L WF_P TR are a FIFO mainta ined pointer which indicates the location of the [...]
-
Página 497
MPC5200B Users Guide, Rev . 1 14-32 F reescale Semiconductor FEC Tx FIFO Status Register—MB AR + 0x31A8 14.8.5 FEC Rx FIFO Read P o inter Register—MB AR + 0x319C FEC Tx FIFO Read P ointe r Register—MB AR + 0x31BC The RFIFO_RDP TR and TFIFO_RDP TR are a FIFO-m aintained pointer which point to the nex t FIFO location to be read. The read pointe[...]
-
Página 498
FEC Tx FIFO Status Register—MB AR + 0x31A8 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-33 14.8.6 FEC Rx FIFO Write P o inter Register—MBAR + 0x31A0 FEC Tx FIFO Writer P ointe r Register—MB AR + 0x31C0 The RFIFO_WRP TR and TFIFO_WRP TR ar e a FIFO-maintained pointe r whic h point to the next FIFO loca tion to be written. The wri[...]
-
Página 499
MPC5200B Users Guide, Rev . 1 14-34 F reescale Semiconductor Initialization Sequen ce 14.8.8 FEC T ransmit FSM Register—MB AR + 0x31C8 The transmit finite state machin e register (XMIT_FSM) controls operation of a ppending CRC. T ypical use is en abled and CRC is ap pended. 14.9 Initialization Seq uence This section describes which registers are [...]
-
Página 500
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-35 14.9.2 User Initialization (P rior to Asserting ETHER_EN) The user needs to initialize por tions of the FEC prior to setting the ETHER_EN bi t. The exact values depend on the particular a pplication; the sequence of writing the registers is not important. Ethe rn[...]
-
Página 501
MPC5200B Users Guide, Rev . 1 14-36 F reescale Semiconductor Initialization Sequen ce 14.9.3.2 T ransmit Frame Control W ord The only requirement for this cont rol word is to have the TC and ABC bits valid. The TC bit defines whet her the transmit block should append the CRC (TC = 1) or not (TC = 0) for the current frame. The AB C bit defines wheth[...]
-
Página 502
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-37 Bits 31-27, 24-0—Reserved 14.9.4 Netw ork Interface Options The FEC supports both an MII inte rface for 10/100 Mbps Eth ernet and a 7-wire se rial interface for 10 M bps Ethernet. The interface mode is selected by the MII_MODE bit i n the R_CNTRL register . In [...]
-
Página 503
MPC5200B Users Guide, Rev . 1 14-38 F reescale Semiconductor Initialization Sequen ce In MII mode the receiver checks for at le ast one byte matching the SFD. Zero or more P A bytes may occur , but if a 00 bit sequen ce is detect ed prior to the SFD byte, the frame is ignored. After the first 6 bytes of the frame have been rece ived, the FEC perfor[...]
-
Página 504
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-39 Figure 14-2. Ethernet Ad dress R ecognition - receive bloc k decisions Accept/Reject Broadcast Addr ? ? PROM = 1 ? Receive Address Tru e NOTES: BC_REJ - field in R_CNTRL register (BroadCast REJect) False Tr u e False BC_REJ = 1 ? AR_EM_B - bit in RECV .AR_DONE re[...]
-
Página 505
MPC5200B Users Guide, Rev . 1 14-40 F reescale Semiconductor Initialization Sequen ce The hash table algorithm used in the group and individual hash filtering operates as follows. The 48-bit destination address is mapped into one of 64 bits which are represented by 64 bits stored in GADDR1,2 (group address hash match) or I ADDR1,2 (individual addre[...]
-
Página 506
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-41 T able 14- 45. Destination Address to 6-Bit Has h 48-bit D A 6-bit hash (in hex) hash decimal v alue 65:ff:ff:ff:ff: ff 0x0 0 55:ff:ff:ff:ff: ff 0x1 1 15:ff:ff:ff:ff: ff 0x2 2 35:ff:ff:ff:ff: ff 0x3 3 b5:ff:ff:ff:ff: ff 0x4 4 95:ff:ff:ff:ff: ff 0x5 5 d5:ff:ff:ff:[...]
-
Página 507
MPC5200B Users Guide, Rev . 1 14-42 F reescale Semiconductor Initialization Sequen ce 14.9.7 Full-Duplex Flo w Control Full-duplex flow control allows the user to transmit pause frames and to detect received pause fr ames. Upon detection of a paus e frame, MAC data frame transm is sion stops for a given pause duration. T o enab le pause frame detec[...]
-
Página 508
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-43 Pause frame detection is performed by the re ceiver and microcontroller modules. The microco ntroller runs an address recognition subroutine to detect the speci fied pause frame destination address, while th e receiver detects th e type and opcode pause frame fie[...]
-
Página 509
MPC5200B Users Guide, Rev . 1 14-44 F reescale Semiconductor Initialization Sequen ce If a collision occurs within 64 byte times the retry process is initiated. The transmitter waits a random number of slot times. A slot time is 512 bit times. If a collision occurs af ter 64 byte times no re transmi ssion is performed and the end of frame buffer is[...]
-
Página 510
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 14-45 Non-Octet Error (Dribbling Bi ts) — The Ethernet controller handles up to se ven dribbling bits when the receive frame terminates nonoc tet aligned and it checks the CRC of the frame on the last octet b oundary . If there is a CRC error , then the frame no noct[...]
-
Página 511
Fast Ethernet Contr oller ( FEC ) Notes MPC5200B Users Guide, Rev . 1 14-46 F reescale Semiconductor[...]
-
Página 512
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-1 Chapter 15 Pr ogrammable Serial Contr oller ( PSC) 15.1 Overview The following sections are contained in this document: • Section 15.2, PSC Registers—MBAR + 0x2000, 0x2200, 0x2400, 0x26 00, 0x2800, 0x2C00 • Section 15.3, PSC Operation Modes • Section 15.4, PSC FIFO System[...]
-
Página 513
MPC5200B Users Guide, Rev . 1 15-2 F reescale Semiconductor Overview 15.1.1 PSC Functions Overview The PSC module of the MPC5200 provide different groups of interfaces to connect the MPC5200 to other devices. Figure 15-1. shows the groups of interfaces: Figure 15-1. PSC Functions Ov er view 1. PSC Codec Mode : In this section the name Codec mode is[...]
-
Página 514
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-3 PSC detect a “codec not re ady” status the PSC will stop se nding and receiving data. In the e nhanced AC97 mode, only the data slots must be in the FIFO. The PSC genera te the slot0,1 and slot2 values depend on data to send. In both AC97 modes the PSC reads only 32 bits from[...]
-
Página 515
MPC5200B Users Guide, Rev . 1 15-4 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 • Selectable pulse wi dth: either 3/16 bit duration or 1.6 µ s IrDA MIR mode: • Baud rate: 0.576 Mbps to 1.152 Mbps IrDA FIR mode: • Baud rate: 4 Mbps 15.2 PSC Registers—MB AR + 0x2000, 0x 2200, 0x2400, 0x260[...]
-
Página 516
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-5 PSC module operation is controlled by writing c ontrol bytes into the appropriate registers. 15.2.1 Mode Regi ster 1 (0x00) — MR1 The Mode registers control configuration. MR1 can b e read or wri tten when the Mode[...]
-
Página 517
MPC5200B Users Guide, Rev . 1 15-6 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 T able 15-4. Mo de Register 1 (0x00) f or SIR Mode m s b 0 123456 7 l s b R RxR TS RxIRQ/FFUL L Reser v ed W R E S E T : 00110011 T able 15-5. Mod e Register 1 (0x00) f or other Modes m s b 0 123456 7 l s b R Reser v [...]
-
Página 518
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-7 15.2.2 Mode Regi ster 2 (0x00) — MR2 MR2 can be read or written when th e Mode register pointe r points to it, which occurs after any a ccess to MR1 . An MR2 access does not update the mode register address. 01 F o[...]
-
Página 519
MPC5200B Users Guide, Rev . 1 15-8 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.3 Status Register (0x04) — SR The read-only SR register shows status of the transmitter , the receiver , and the FI FO. 3T x C T S UA R T / S I R —T ransmitter clear-to-send—If both TxCTS and TxR TS are ena[...]
-
Página 520
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-9 T able 15-12. Sta tus Register (0x04) f or MIR / FIR Mode m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 l s b RE O F PHYER R Reserved ORERR URERR TxRD Y FFULL RxRD Y DEOF Error Reserved W R E S E T : 0 00000000 0 0 0 00[...]
-
Página 521
MPC5200B Users Guide, Rev . 1 15-10 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 3 ORERR Overrun Error Indicates whet her an ov errun occurs. F or pur poses of o verrun, FIFO full means all FIFO space is occupied; the Rx FIFO threshold is irrelev ant to overrun. 0 = No ov err un occurred. 1 = One[...]
-
Página 522
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-11 NO TE The FIFO related status bits ORERR, URERR, Rx RDY , FFUL and TxRDY will be changed only if the peripheral (transmi tter or receiver) access the FIFO. These bits reflec t to the relat ed bits in the ISR , there[...]
-
Página 523
MPC5200B Users Guide, Rev . 1 15-12 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.4 Cloc k Select Register (0x04) — CSR The MPC5200B supports only the internal clock as source for th e UAR T / SIR clock generation. Fo r the UAR T clock generation a pr es caler by 32 or 4 is available. For t[...]
-
Página 524
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-13 T able 15-16. Command Re gister (0x08) f or all Modes msb 0 1 2 3 4 5 6 7 lsb R Reser v ed W Reserve d MISC TC RC R E S E T : 0 0 0 0 0000 Bit Va l u e Command Des cription 0— R e s e r v e d 1 : 3 000 no command [...]
-
Página 525
MPC5200B Users Guide, Rev . 1 15-14 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 4 : 5 00 no acti on taken Causes Tx to sta y in current mode. • I f Tx is enabled, it remains enabled. • I f Tx is disabled, it re mains disabled. 01 transmitter enable Enables operation of Tx channels. SR [ TxEM[...]
-
Página 526
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-15 15.2.6 Rx Buffer Register (0x0C) — RB Data are read from the Rx FIFO by reading from this read-only regi ster. The Rx FIFO s ize i s 512 bytes. T o read data from the RX FIFO you can also use the RFDA T A register[...]
-
Página 527
MPC5200B Users Guide, Rev . 1 15-16 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.7 Tx Buffer Register (0x0C) — TB Data is written to the Tx FIFO by writing to this write-only register . The Tx FIFO size is 512 bytes. T o write data to the TX F IFO you can also use the TFDA T A register , s[...]
-
Página 528
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-17 15.2.8 Input P ort C hang e Register (0x10) — IPCR The read-only IPCR register shows the current state and change-of-state for th e Modem control input port. T able 15-24. Input P or t Change Register (0x 10) for [...]
-
Página 529
MPC5200B Users Guide, Rev . 1 15-18 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.9 A uxiliary Control Register (0x10) — AC R The write-only ACR register controls Tx / Rx handshaking. Bit Name Description 0 SYNC Codec —Sy nc detected . 0 = Has not detected sync. 1 = Detected sync (F rame [...]
-
Página 530
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-19 15.2.10 Interrupt Stat us Register (0x14) — ISR The read-only ISR register provides stat us for all potential interrupt sources. Register contents is masked by the IMR . • If an ISR flag sets and the cor respond[...]
-
Página 531
MPC5200B Users Guide, Rev . 1 15-20 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.11 Interrupt M ask Register (0x14) — IMR The write-only IMR register se lects corresponding bits in the ISR that cause an interrupt. • If one ISR bit is set and the corresponding IM R bit is also set, the in[...]
-
Página 532
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-21 T able 15-28. Inte rrupt Mask Register (0x14) f or U AR T / SIR Mode m s b 0 12345678 9 1 0 1 1 1 2 1 3 1 4 1 5 l s b R Reser v ed WI P C Reserve d ORERR TxEMP DB RxRD Y FFULL TxRD Y Reserve d Error Reserved R E S E[...]
-
Página 533
MPC5200B Users Guide, Rev . 1 15-22 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.12 Counter Timer Upper Register (0x18) — CTUR This write-only register holds the upper byt es of the preload value used by the time r to provide a given Baud rate. Reading fro m this register shows the current[...]
-
Página 534
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-23 15.2.13 Counter Timer Lower Register (0x1C) — CTLR This write-only register hold the lower byte s of the preload value used by the timer to provide a given Baud rate. Reading from this register shows the current v[...]
-
Página 535
MPC5200B Users Guide, Rev . 1 15-24 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 R F rameSyncDiv[0:7] BitClkDiv[8:15] W msb 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R BitClkDiv[0:7] Reser ved W R E S E T : 000000000 0 0 0 00 0 0 T able 15-33. Codec Clock Register (0 x20)—CCR for MIR/[...]
-
Página 536
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-25 The Mclk frequency is generated in the Clock Di stribution Module (CDM) by dividing down th e f system frequency as follows: There is a separate cdm_pscX _bitclk_config register in the CDM fo r each of PSC1,2,3 and [...]
-
Página 537
MPC5200B Users Guide, Rev . 1 15-26 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.15 A C97 Slots Regi ster (0x24)—A C97Slots This write only register defines which slot s are expected in a receive AC97 frame and which slots will be send in a AC97 TX fra me. If the received fram e doesn’t [...]
-
Página 538
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-27 15.2.17 A C97 Status Data Register (0x2C)—A C97Data This read-only register contains the rece ived response of a AC97 read command. If th is register contains new data then the SR [DA T A_V ALID] will be set to on[...]
-
Página 539
MPC5200B Users Guide, Rev . 1 15-28 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.19 Input P or t Register (0x34) — IP This read-only IP register shows th e current state of the input ports. T able 15-38. In terrupt V ector Register (0x 30) for al l M ode s msb 0 1 2 3 4 5 6 7 lsb R I V R[0[...]
-
Página 540
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-29 15.2.20 Output P or t 1 Bit Set (0x38) — OP1 This is a write-on ly regist er . Output ports are asserted by writing to this register . 15.2.21 Output P or t 0 Bit Set (0x3C) — OP0 This is a writ e-only register [...]
-
Página 541
MPC5200B Users Guide, Rev . 1 15-30 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.22 Serial Interface Control Register (0x40) — SICR This register sets the main operation mode. 6 RES Asser t RES output. 0 = No operation 1 = Negate s output por t RES , (RES become s 1). 7R T S AC 9 7 —Rese[...]
-
Página 542
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-31 3 SHDIR Codec —Shift Direction. 0 = msb first 1 = lsb first other Modes —Reserved 4: 7 SIM [3 : 0 ] PSC o peration mode. CA UTION : When the operating mode chang e occurs, all Rx / Tx and error statuses are rese[...]
-
Página 543
MPC5200B Users Guide, Rev . 1 15-32 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 13 Cell2xClk Codec —Cell Slave 2x Clo c k F requency - takes eff ect only when bit 12 CellSlav e = 1 0 = PSC Mclk frequency = Bit Clock from PSC1 master 1 = PSC Mclk frequency = 2x the Bit Clock from PSC1 master ot[...]
-
Página 544
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-33 15.2.23 Infrared Cont rol 1 (0x44)—IRCR1 This register controls the configurati on in one of the IrDA modes (SIR/MIR/FIR). 15.2.24 Infrared Cont rol 2 (0x48)—IRCR2 This register controls the configurati on in on[...]
-
Página 545
MPC5200B Users Guide, Rev . 1 15-34 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.25 Infrared SIR Divide Register (0x4C)—IRSDR This register set the SIR p ulse width. T o set the SIR mode Baud rate see Section 15.2.12, Counter T imer Upper Re gister (0x18)—CTUR . T his register is reserve[...]
-
Página 546
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-35 15.2.26 Infrared MIR Divide Register (0x50)—IRMDR This register set the MIR mode Baud rate. This register is reserved in other modes. T able 15-49. Inf rared SIR Divide Register (0x48) f or SIR Mode msb 0 1 2 3 4 [...]
-
Página 547
MPC5200B Users Guide, Rev . 1 15-36 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.27 Infrared FIR Divi de Register (0x54)—IRFDR This register set the FIR mode Baud rate. Th is register is rese rved in other modes. Bit Name Description 0F R E Q MIR —0.576 M bps mode. 0 = The Baud rate is 1[...]
-
Página 548
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-37 Bit Name Description 0:3 — Reserved 4:7 F _ F D I V FIR —Clock divide ratio in FIR mode. The bit frequency is derived by: This bit frequency should be 8 MHz. In order to receive the minimum pulse width descr ibe[...]
-
Página 549
MPC5200B Users Guide, Rev . 1 15-38 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.28 Rx FIFO Number of Data (0x58) — RFNUM 15.2.29 Tx FIFO Number of Data (0x5C) — TFNUM 15.2.30 Rx FIFO Data (0x60) — RFD A T A Read - write registe r to access the internal RX FIFO Data register . Reads fr[...]
-
Página 550
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-39 15.2.32 Rx FIFO Control (0x68)—RFCNTL 15.2.33 Rx FIFO Alarm (0x6E)—RF ALARM Bit Name Description 0:3 — R e s e r v e d 4 : 7 F rame [ 3 : 0 ] Fr ame indicator. Not applicab le to PSC FIFO’ s, since the PSCs [...]
-
Página 551
MPC5200B Users Guide, Rev . 1 15-40 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.34 Rx FIFO Read P ointer (0x72)—RFRPTR 15.2.35 Rx FIFO Write P ointer(0x76)—RFWPTR 15.2.36 Rx FIFO Last R ead Frame (0x7A)—RFLRFPTR Bit Name Description 0:3 — R e s e r v e d 4 : 15 ALARM “Almost full?[...]
-
Página 552
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-41 15.2.37 Rx FIFO Last Write Frame PTR (0x7C)—RFL WFPTR 15.2.38 Tx FIFO Data (0x80)—TFD A T A Read - write register to acce ss the internal TX FIFO Data regist er . W rite to this registe r write data to the trans[...]
-
Página 553
MPC5200B Users Guide, Rev . 1 15-42 F reescale Semiconductor PSC Registers—MB AR + 0x200 0, 0x2200, 0x2400, 0x260 0, 0x2800, 0x2C00 15.2.40 Tx FIFO Control (0x88)—TFCNTL 15.2.41 Tx FIFO Alarm (0x8E)—TF ALARM 15.2.42 Tx FIFO Read P ointer (0x92)—TFRPTR 14 ALARM The FIFO is requesting ser vice from either BestComm or CPU . See Section 15.4, P[...]
-
Página 554
PSC Registers—MB AR + 0x2000, 0x22 00, 0x2400, 0 x2600, 0x2800, 0x2C00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-43 15.2.43 Tx FIFO Write P ointer (0x96)—TFWPTR 15.2.44 Tx FIFO Last R ead Frame (0x9A)—TFLRFPTR 15.2.45 Tx FIFO Last Write Frame PTR (0x9C)—TFL WFPTR Bit Name Description 0:3 — R e s e r v e d 4 : 15 R_PTR Rea[...]
-
Página 555
MPC5200B Users Guide, Rev . 1 15-44 F reescale Semiconductor PSC Operation Modes 15.3 PSC Operat ion Modes This section describes the different PSC operation modes including the pin muxing, the module config uration, sign al definition and some programming examples. All PSC are independent and can be used at the same time in different mode s. But n[...]
-
Página 556
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-45 Figure 1-1 PSC UART Block Diagram An internal interrupt request signal (IRQ ) is provided to notify the Interrupt Controller of an interrupt condition. The output is the logical NOR of unmasked ISR bits. The interrupt level of a PSC modul e is programmed in the Interr[...]
-
Página 557
MPC5200B Users Guide, Rev . 1 15-46 F reescale Semiconductor PSC Operation Modes Figure 15-2. Sign al configuration f or a PSC / RS-232 interface 15.3.1.2 U AR T Clock Generation IPB clock serves as t he basic t iming reference for the clock source generator logic, which consis ts of a Clock Generator and a programmable 16-bit divider dedicated to [...]
-
Página 558
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-47 After the stop bits are sent, if no new character is in the Tx holding register , the TxD output remains high ( mark condition ) a nd t he Tx empty bit, SR [ TxEMP ], is set. Tra nsmission resumes and TxEMP is cleared when the CPU loads a new character into the PSC Tx[...]
-
Página 559
MPC5200B Users Guide, Rev . 1 15-48 F reescale Semiconductor PSC Operation Modes Figure 15-5. Timing Dia gram—Receiver When the receiver detects a high-to-lo w ( mark-to-space ) transition of the sta rt bit on RxD, the state of RxD is sampled. It sam ples ea ch 16 × clock for eight clocks, starting one-h alf clock after the transition (asynchron[...]
-
Página 560
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-49 15.3.2 PSC in Codec Mode After reset all PSCs ar e in UAR T mode. PSC1 ,2,3 and 6 can be put to one of the Code c modes by writing the appropriate value to the SICR register . The other values should be initia lized at the same time. During Codec mode the PSC can conn[...]
-
Página 561
MPC5200B Users Guide, Rev . 1 15-50 F reescale Semiconductor PSC Operation Modes 15.3.2.1 Bloc k Diagram and Signal Definition f or Codec Mode Figure 15-6. PSC Codec Bloc k Diagram NO TE Here is important difference b etween PSC6 and th e other PSCs. T o work with PSC6 in slave mode (CODEC slave, SPI slave), the ext_48MH z_en bit in the cdm_48mhz_f[...]
-
Página 562
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-51 15.3.2.2 Codec Cloc k and FrameSync Generation The serial BitClk and the Fram eSync can either be inputs that com e from an external Codec device, or they can be internally gen erated by the PSC and provided as outputs to the ex ternal device, under control of bit SIC[...]
-
Página 563
MPC5200B Users Guide, Rev . 1 15-52 F reescale Semiconductor PSC Operation Modes The source for the internal clock generatio n is the MclkDiv clock divider in CDM modul e. The CDM provides for each Codec PSC (1 , 2, 3 and 6) a separate Mclk and MclkDiv clock divider . For mo re information about the f system clock see also Section 5.5.1 1, PSC1 Mcl[...]
-
Página 564
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-53 • Data shift direction SICR [SHDIR], data shifted out LSB first if SICR [SHDIR] = 1 otherwise data shi fted out MSB first if SICR [SHDIR] = 0 In the Codec “Soft Modem” mode the PSC send only one data word per frame. Figure 15-9. “Sof t Modem” Codec interface[...]
-
Página 565
MPC5200B Users Guide, Rev . 1 15-54 F reescale Semiconductor PSC Operation Modes • FrameSync is low true • lsb first, transfer starts one cycle after the leading ed ge of FrameSync • set Mclk frequency to 33MHz • set Bitclk frequency to 250 KHz • FrameSync every 35 BitClk • set FrameSync width to 3 BitClk • set the TF ALARM level to 0[...]
-
Página 566
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-55 Figure 15-10. ESAI Dat a T ransmiss ion T able 15-8 0 shows an example how to configure the PSC1 as ESAI master . For t he slave mode the bit SICR [GenClk] must be cleared and the configuration of the CCR register can be ignored. In this c onfiguration example the PSC[...]
-
Página 567
MPC5200B Users Guide, Rev . 1 15-56 F reescale Semiconductor PSC Operation Modes 15.3.2.5 T ransmitting and Receiving in “Cell Phone” Mode The transmission protocol for the “Cell Phone ” mode is the same like in the “Soft M odem” mode. The PSC use the configure and cl ock generation registers is th e same as described i n the section be[...]
-
Página 568
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-57 15.3.2.6 T ransmitting and Receiving in I2S Maste r Mode The next support mode is the I2S mode. Th e I2S tra nsmission is similar to the “Soft Modem” mode. Therefore the configuration is the sa me like described in Section 15.3.2.3, T ransmitting and Receiving in [...]
-
Página 569
MPC5200B Users Guide, Rev . 1 15-58 F reescale Semiconductor PSC Operation Modes Figure 15-1 2. I2S-Data T ransmission T able 15-8 4 shows an example how to configure the PSC1 as I2S master . Fo r the slave mode the bit SICR [GenClk] must be cleared and the configuration of the CCR register can be ignored. • use PSC1 as I2S master • 32bit data,[...]
-
Página 570
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-59 15.3.2.7 T ransmitting and Receiving in SPI Mode An other available Codec mode is the SPI mode. The PSC support a full duplex SPI inte rface. This mode is chosen by setting SICR [SPI] = 1, which must be true in order for the MS TR, CPOL, CPHA and UseEOF bits in the SI[...]
-
Página 571
MPC5200B Users Guide, Rev . 1 15-60 F reescale Semiconductor PSC Operation Modes Figure 15-13. SPI P arameter T able 15-8 5 shows an exampl e how to configure the PSC3 as SPI master . • 32bit data • clock is active high, CPOL = 1; • the first SCK edge is issued one half cycle into the data transfer; CPHA = 0 • msb first • Baud Rate 1MBit [...]
-
Página 572
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-61 T able 15-8 6 shows an exampl e how to configure the PSC2 as SPI slave. • use PSC2 as SPI slave • 8bit data • clock is active low , CPOL = 0; • the first SCK edge is issued at the beginning of the data transfer; CPHA = 1 • msb first • set the TF ALARM leve[...]
-
Página 573
MPC5200B Users Guide, Rev . 1 15-62 F reescale Semiconductor PSC Operation Modes 15.3.3.1 Bloc k Diagram and Signal Definition f or A C97 Mode Figure 15-14. PSC A C97 Bloc k Diagram Figure 15-14 shows the simplified PSC Block Diagram for AC97 mode. The BitClk is an input from the exte rnal Codec. The PSC divide BitClk by 256 to generate a Frame pul[...]
-
Página 574
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-63 Figure 15-15 . PSC - A C97 Interface Figure 15-16 shows the T iming diagram for the AC 97 interface. For more AC97 Controlle r interface inf ormation, see the Audio Codec’97 Component Specification. Figure 15-16. Timing Dia gram—AC97 Interface 15.3.3.2 Generate a [...]
-
Página 575
MPC5200B Users Guide, Rev . 1 15-64 F reescale Semiconductor PSC Operation Modes Low-power mode can be left through either a warm or cold reset. The CPU doe s a warm reset by setting SICR [ A WR ] for at least 1 µs. This asserts the FRAME frame sync output in AC97 mo de. The CPU does a cold reset in two steps: 1. W rites 0 to whichever GPIO is bei[...]
-
Página 576
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-65 the slot request for the specif ied slots was active (slot request bit was z ero in the previous frame). If the AC97 Codec set a slot request to one, then the transmitte r will send a complete empty frame because th e transmitter is not able to se nd a port of the req[...]
-
Página 577
MPC5200B Users Guide, Rev . 1 15-66 F reescale Semiconductor PSC Operation Modes T able 15-90. Signa l Description for IrDa Mode Figure 15-17. PSC SIR Bloc k Diagram 15.3.4.1.2 T ransmitting a nd Receiving in SIR Mode This data format is si milar to the UAR T . Each data consists of a start bit, 8 bit data and a stop bit. Each bit da ta is encoded [...]
-
Página 578
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-67 15.3.4.1.3 Configuration Se quence Example for SIR Mode The T able 15-91 shows the configuration sequenc es. This list includes the SIR mode rel ated regi sters only , not the othe r configure values like interrupt and FIFO configurations. PSC module registers can be [...]
-
Página 579
MPC5200B Users Guide, Rev . 1 15-68 F reescale Semiconductor PSC Operation Modes Figure 15-19. PSC MIR and FIR Blo ck Diagram For MIR and FIR mode the clock for the transmitter and receiver is generated by dividing down from the internal Mclk or from an external clock. If the bit GenClk in the SICR was set to “1” the n PSC generate the clock fr[...]
-
Página 580
PSC Operation Modes MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-69 The ST A represents the start of the frame and the STO represents the end of th e frame. Both of ST A and STO are defined as 01 1 11 1 10 in binary format. Like the UAR T mode , the MIR mode sends the lsb firs t.The FCS is a 16 bit CRC defined as NO TE The MIR module [...]
-
Página 581
Programmable Serial C ontr oller ( PSC) Notes MPC5200B Users Guide, Rev . 1 15-70 F reescale Semiconductor 15.3.4.3 PSC in FIR Mode The FIR mode is also a supported IrDA mode. Th is section will give some more informations abou t this mode. The importan t regist ers to configure the PSC6 (only this PSC support the IrDA modes) for FIR mode are: • [...]
-
Página 582
PSC FIFO System MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-71 NO TE The FIR module doesn’t support the CRC generation. If the transfer r equire a CRC Field use the CRC generation from the Best Comm module. See also Chapter 13, BestComm . The chip patterns for P A, ST A and STO are defined as: The FIR system must emit SIP (Serial I[...]
-
Página 583
MPC5200B Users Guide, Rev . 1 15-72 F reescale Semiconductor PSC FIFO System Depending on whether the FIFO is set for Tx or Rx, “Alarm” and “Granularity” are m easured differently , either: • valid data bytes ( T x FIFO ) • empty bytes ( Rx FIFO ) For both Tx and Rx FIFOs: • “Alarm” specif ies a threshold at which the FIFO generat[...]
-
Página 584
PSC FIFO System MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-73 Figure 15-22. PSC FIFO System 15.4.1 RX FIFO The RX FI FO space is 512 Byte. For an Rx FIFO, the “Alarm” value is not the amount of “data” in the Rx FI FO. Instead, an interrupt occurs as a result of the amount of em pty space remaining in the Rx FIFO. These facts[...]
-
Página 585
MPC5200B Users Guide, Rev . 1 15-74 F reescale Semiconductor PSC FIFO System When using BestComm you must specify a non- zero “Granularity” to get FIFO underrun errors. This is due to its internal pipelini ng. BestComm does not imme diately stop accessing the FIFO when the FIFO interrupt goes away . 15.4.2 TX FIFO The TX FIFO space is 512 Byte.[...]
-
Página 586
PSC FIFO System MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 15-75 Figure 15- 24. Local Loop -Back Features of this local loop-back mode are: • T ransmitter and CPU-to-receiver communications continue normally . • RxD input data is ignored. • TxD data is held marking. • The receiver is clocked by the transm itter clock. • T ran[...]
-
Página 587
MPC5200B Users Guide, Rev . 1 15-76 F reescale Semiconductor PSC FIFO System Figure 15-26. Timing Diag ram—Multidrop Mode A character sent from the master stat ion consists of: • a start bit • a programmed number of data bits • an address / data ( A / D ) bit flag — A / D = 1 indica tes an address character — A / D = 0 indi cates a data[...]
-
Página 588
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-1 Chapter 16 XLB Arbiter 16.1 Overview This document contains the following section: • Section 16.1, Overview • Section 16.2, XLB Arbiter Registers—MBAR + 0x1F00 16.1.1 Purpose The purpose of the XLB Arbiter is to manag e bus requests from the XLB masters (USB, PC I, BestComm[...]
-
Página 589
MPC5200B Users Guide, Rev . 1 16-2 F reescale Semiconductor Overview Multiple masters at level 0 will only be able to per form one tenure before the bus is passed to the next master at level 0 usin g the LRU algorithm. The priority level of each master may be changed while the arb iter is running. This allows dynamic changes in priority such as an [...]
-
Página 590
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-3 16.1.1.4.2 Other T en ure Ending Conditions In addition to the watchdog timers, this function will ter minate tenures with or without TEA depending on the following conditi ons: • AACK the address tenure for eciw x and ecowx transfer types, then TEA[...]
-
Página 591
MPC5200B Users Guide, Rev . 1 16-4 F reescale Semiconductor XLB Arbiter Registers—MB AR + 0x1F00 T able 16-1. Arbiter Configuration Regist er msb 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 RP L D I S Rsvd BSDIS W RESET : 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 lsb R SE USE_ WWF TBEN Rsvd WS SP Rsvd PM Rsvd BA DT[...]
-
Página 592
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-5 NO TE The PLDIS reset value is 1, which means the XLB Arbiter will prohibit tran saction pipelining. In most applications, transaction pipelining will provide a signifi cant performan ce increase, and therefore the customer should consider setting thi[...]
-
Página 593
MPC5200B Users Guide, Rev . 1 16-6 F reescale Semiconductor XLB Arbiter Registers—MB AR + 0x1F00 16.2.4 Arbiter Interrupt Enable Register (R/W)—MB AR + 0x1F4C The Arbiter Interru pt Enable Register is used to en able a status bit to cause a n interrupt. If the interrupt enable and corresp onding status bits are set in the Arbiter Status Registe[...]
-
Página 594
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-7 16.2.5 Arbiter Address Capture Register (R)—MB AR + 0x1F50 The Arbiter Address Capture Register captures the ad dress for a tenure that has either: • an address time-out, •a d a t a t ime-out, or • a TEA from another source The captured value [...]
-
Página 595
MPC5200B Users Guide, Rev . 1 16-8 F reescale Semiconductor XLB Arbiter Registers—MB AR + 0x1F00 16.2.6 Arbiter Bus Signal Capt ure Register (R)—MB AR + 0x1F54 The Arbiter Bus Signal Capture Register capt ures TT , TBST , GBL, and TSIZ for an XLB address t enure that has either: • an address time-out, •a d a t a t ime-out, or • a TEA from[...]
-
Página 596
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-9 16.2.8 Arbiter Data T enure Time -Out Register (R/W)—MB AR + 0x1F5C The Arbiter Data T enure Time-out Register p rovides an expiration value to the arbiter watchdog for da ta tenures. After a data t enure is initiated with a DBB signal assertion by [...]
-
Página 597
MPC5200B Users Guide, Rev . 1 16-10 F reescale Semiconductor XLB Arbiter Registers—MB AR + 0x1F00 16.2.10 Arbiter Master Priority En able Register (R/W)—MB AR + 0x1F64 The Arbiter Master Priority Enabl e Register determines whether the arbiter uses the hard-wired or software programmable priorit y f or a master . The default is en abled for all[...]
-
Página 598
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-11 16.2.11 Arbiter Master Priority Register (R/W)—MB AR + 0x1F68 The Arbiter Ma ster N Priority Register is used t o set the softwa re-programmable prior ity of each master . This register is used in conjunction with the Arbiter Ma ster Priority Enabl[...]
-
Página 599
MPC5200B Users Guide, Rev . 1 16-12 F reescale Semiconductor XLB Arbiter Registers—MB AR + 0x1F00 16.2.12 Arbiter Snoop Windo w Register (R W)—MB AR + 0x1F70 The Arbiter Snoop W indow Register is used by the PCI, BestComm, and USB Ho st interfaces to the XLB. This register dictates the size of an address range in memory that will allo w or proh[...]
-
Página 600
XLB Arbiter Registers—MBAR + 0x1F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 16-13 16.2.13 Arbiter Reserved Registers— MB AR + 0x1F00-1F3C, 0x1F74-1FFF These are reserved register s and should not be accessed. 25:26 — Reser ved 27:31 WINSIZE Window Siz e - Defines the size of window . The lo wer bits of WINBASE are effecttiv el[...]
-
Página 601
XLB Arbiter Notes MPC5200B Users Guide, Rev . 1 16-14 F reescale Semiconductor[...]
-
Página 602
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-1 Chapter 17 Serial P eripheral Interface ( SPI ) 17.1 Overview The following sections are contained in this document: • Section 17.2, SPI Signal Description • Section 17.3, SPI Registers—MBAR + 0x0F00 • Section 17.4, Functional Description The Serial Peripheral Interface ([...]
-
Página 603
MPC5200B Users Guide, Rev . 1 17-2 F reescale Semiconductor SPI Signal Description 17.1.2 Modes of Operation The SPI functions in the followi ng three modes: • Run Mode —The normal mode of operation. • Wa i t M o d e —The SPI can be configured to operate in low-power mode. Based on the inte rnal bit stat e, the SP I can operate normally whe[...]
-
Página 604
SPI Registers—MB AR + 0x 0F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-3 The SS pin is the mode fault inpu t when the SPI is in master mode and the asso ciated data di rection bit is clear . When the data direc tion bit is clear and SSOE = 1, the SS pin is a general-purpose input. SS is always an input when the SPI is in sl ave [...]
-
Página 605
MPC5200B Users Guide, Rev . 1 17-4 F reescale Semiconductor SPI Registers—MB AR + 0x0F00 17.3.2 SPI Control R egister 2—MB AR + 0x0F01 6 SSOE Slav e Select ( SS ) Output Enable—bit is enab led only in ma ster mode by asser ting SSOE and SPIDDR bit 3 as sho wn in T able 17-3 . 7 LSBFE SPI LSB-First Enab le—bit doe s not aff ect the position [...]
-
Página 606
SPI Registers—MB AR + 0x 0F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-5 17.3.3 SPI Baud Rate Register—MB AR + 0x0F04 The SPI baud rate is derived from the IPB clock. The SPI module clock di visor is calculated as followi ng: The SPI Baud rate is ca lculated as following: T able 17-7 shows some Baud rates derived fro m the pos[...]
-
Página 607
MPC5200B Users Guide, Rev . 1 17-6 F reescale Semiconductor SPI Registers—MB AR + 0x0F00 17.3.4 SPI Status Re gister —MB AR + 0x0F05 T able 17-7. SPI Baud Rat e Selection SPPR2 SPPR1 SPPR0 SPR2 SPR1 SPR0 SPI Module Clock Divisor Baud Rate IPB 33.0 MHz Baud Rate IPB 66.0 MHz Baud Rate IPB 132.0 MHz 000000 2 1 6 . 5 0 M H z 3 3 . 0 0 M H z 6 6 . [...]
-
Página 608
SPI Registers—MB AR + 0x 0F00 MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-7 17.3.5 SPI Data Register—MB AR + 0x0F09 17.3.6 SPI P ort Data Register—MBAR + 0x0F0D 17.3.7 SPI Data Directio n Register—MB AR + 0x0F10 T able 17- 9. SPI Data Registe r msb 0 1 2 3 4 5 6 7 lsb R D 7 D 6D 5D 4D 3 D 2 D 1 D 0 W R E S E T : 0 0 0 0 0000 [...]
-
Página 609
MPC5200B Users Guide, Rev . 1 17-8 F reescale Semiconductor Functional Des cription 17.4 Function al Description 17.4.1 General The SPI module allows full-duplex, synchronous , serial communication between the MCU a nd peripheral devices. Software can poll the SPI status flags or SPI operation can be interrupt driven. The SPI system is enabled by s[...]
-
Página 610
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-9 The SS pin is normally an input which should remain in the inacti ve high state. However, in the master mode, if the associated data direction bit (SPIDDR bit 4) is set, then the SS pin is a general-purpose output or the slave select output depending on the state o[...]
-
Página 611
MPC5200B Users Guide, Rev . 1 17-10 F reescale Semiconductor Functional Des cription Figure 17-2. Ma ster/Slave T ransfer Blo ck Diagram 17.4.4.1 Cloc k Phase and P olarity Controls Using two bits in the SPI control register 1, software selects one of four combinat ions o f serial clock phase and polarity . The CPOL clock polarity control bit speci[...]
-
Página 612
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-11 Figure 17-3. SPI Cloc k Format 0 (CPHA = 0) In slave mode, if the SS line is not deas serted between the successive transmissions then the conten t of the SPI Data Register is not tra nsmitted, instead the last recei ved byte is transmitted. If the SS line is de a[...]
-
Página 613
MPC5200B Users Guide, Rev . 1 17-12 F reescale Semiconductor Functional Des cription signal is the output from the master . The SS li ne is the slave select input to the slav e. The SS pin of the master must be eith er high or reconfigured as a general-purpos e outpu t not affecting the SPI. Figure 17-4. SPI Cloc k Format 1 (CPHA = 1) When CPHA = 1[...]
-
Página 614
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-13 Figure 17-5. Baud Rate Divisor Equation 17.4.6 Special Features 17.4.6.1 SS Output The SS output feature automatically drives the SS pin low during transmission to select external devices and drives it high dur ing idle to deselect external devices. When SS output[...]
-
Página 615
MPC5200B Users Guide, Rev . 1 17-14 F reescale Semiconductor Functional Des cription 17.4.7 Error Conditions The SPI has two error conditions: • Write collision error • Mode fault error 17.4.7.1 Write Collision Err or The WCOL status fla g in the SPI status register indi cates that a serial transfe r was in progress when the MCU trie d to write[...]
-
Página 616
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 17-15 NO TE Care must be taken when expecting data from a master while the slave is in wait or stop mode. Eve n though the shift register will continue to operate, the rest of the SPI is shut down (i.e. a SPIF interrupt will not be generated until exiting st op or wait [...]
-
Página 617
MPC5200B Users Guide, Rev . 1 17-16 F reescale Semiconductor Functional Des cription[...]
-
Página 618
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-1 Chapter 18 Inter -Integrated Circuit ( I 2 C) 18.1 Overview The following sections are contained in this document: • Section 18.2, I 2 C Contr oller • Section 18.3, I 2 C Interface Registers • Section 18.4, Initialization Sequence • Section 18.5, T ransfer Initiation and [...]
-
Página 619
MPC5200B Users Guide, Rev . 1 18-2 F reescale Semiconductor I 2 C Controller Figure 18-1. Bloc k Diagram—I 2 C M odule 18.2 I 2 C Contr oller The I 2 C has simple bidirectional two-wire bus for efficient in ter-IC c ontrol. The two wires, serial da ta line (SDA) and serial clock line (SCL), carry information between MPC520 0B and ot her devices c[...]
-
Página 620
I 2 C Controller MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-3 The master termi nates communicati on by generating a STOP signal, which frees the bus. The master can gener ate a STOP even if th e slave has generated an acknowledg e, at which point the sl ave must release the bus. The master can generate a ST AR T signal foll owed by [...]
-
Página 621
MPC5200B Users Guide, Rev . 1 18-4 F reescale Semiconductor I 2 C Controller Figure 18-4. Timing Diagram—Receiv er Acknowledgement 18.2.2.4 Repeated Start A repeated ST AR T signal is a ST AR T signal generated without first generating a STOP signal to terminate the communication. The master uses this means to communicate with anot her slave or w[...]
-
Página 622
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-5 Figure 18-6. Timing Dia gram—Clock Synchr onization A data arbitration procedure det ermines the relative priority of contending masters. A bus master lose s arbitrati on if it trans mits logic “1” while another master transmit s logic “0”. Losing maste[...]
-
Página 623
MPC5200B Users Guide, Rev . 1 18-6 F reescale Semiconductor I 2 C Interface Registers 18.3.1 I 2 C Address Register (MAD R)—MB AR + 0x3D00 / 0x3D40 18.3.2 I 2 C Frequency Divider Register (MFDR)—MB AR + 0x3D04 / 0x3D44 The Frequency Divide register de termines the SCL or serial bit-clock frequency . T a ble 18-4 must be used to select FDR bits [...]
-
Página 624
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-7 Timing Diagram—SCL Period and SDA Hold Time Figure 18-8. Timing Dia gram of I2C Signal Relationships For standard mode I2C, the I2C specification st ates that (SCL <= 100 kHz) AND (0.3 us <= SDA Hold T ime <= 3.45 us) AND (SCL Hold of ST AR T >= 4 u[...]
-
Página 625
MPC5200B Users Guide, Rev . 1 18-8 F reescale Semiconductor I 2 C Interface Registers 1. Identify all rows of T able 18-4 where SCL Period satisfie s criteria (5). This set of rows limit s the choices of SCL allowe d for this particular sy stem clock. 2. Calculate the SCL associated with these ro ws according to (1), and decide which spee ds are ?[...]
-
Página 626
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-9 00 000 011 144 25 70 73 00 000 100 288 49 142 145 00 000 101 576 97 286 289 00 000 110 1152 193 574 577 00 000 111 2304 385 115 0 1153 00 001 000 30 9 11 16 00 001 001 48 11 20 25 00 001 010 88 17 38 45 00 001 011 160 25 78 81 00 001 100 320 49 158 161 00 001 101[...]
-
Página 627
MPC5200B Users Guide, Rev . 1 18-10 F reescale Semiconductor I 2 C Interface Registers 00 101 110 768 65 382 385 00 101 111 1536 129 766 769 00 110 000 24 8 8 13 00 110 001 36 9 14 19 00 110 010 64 13 26 33 00 110 011 112 17 54 57 00 110 100 224 33 110 113 00 110 101 448 65 222 225 00 110 110 896 1 29 446 449 00 110 111 1792 257 894 897 00 111 000 [...]
-
Página 628
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-11 01 011 001 136 26 60 70 01 011 010 256 42 116 130 01 011 011 480 66 236 242 01 011 100 960 1 30 476 482 01 011 101 1920 258 956 962 01 011 110 3840 514 191 6 1922 01 011 111 7680 102 6 3836 3842 01 100 000 40 14 12 22 01 100 001 56 14 20 30 01 100 010 96 18 36 5[...]
-
Página 629
MPC5200B Users Guide, Rev . 1 18-12 F reescale Semiconductor I 2 C Interface Registers 10 or 11 000 100 1152 196 568 580 10 or 11 000 101 2304 388 1144 115 6 10 or 11 000 110 4608 772 2296 230 8 10 or 11 000 111 9216 1540 4600 4612 10 or 11 001 000 120 36 44 64 10 or 11 001 001 192 44 80 100 10 or 11 001 010 352 68 152 180 10 or 11 001 011 640 100 [...]
-
Página 630
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-13 18.3.3 I 2 C Contr ol Register (MCR )—MBAR + 0x3D08 / 0x3D48 10 or 11 101 111 6144 516 3064 307 6 10 or 11 110 000 96 32 32 52 10 or 11 110 001 144 36 56 76 10 or 11 110 010 256 52 104 132 10 or 11 110 011 448 68 216 228 10 or 11 110 100 896 132 440 452 10 or [...]
-
Página 631
MPC5200B Users Guide, Rev . 1 18-14 F reescale Semiconductor I 2 C Interface Registers Bit Name Description 0E N I 2 C Enable—bit controls softw a re reset of entire I 2 C module. If I 2 C module is enabled in the middle of a b yte transfer , interf ace behaves as follows: • Slave mode ignores current bus transfer and starts operati ng when a s[...]
-
Página 632
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-15 18.3.4 I 2 C Status Register (MSR )—MB AR + 0x3D0C / 0x3D4C T able 18-6. I 2 C Status Register m s b 0 12345 6789 1 0 1 1 1 2 1 3 1 4 1 5 R CF AAS BB AL AKF SRW IF RXAK Reser v ed W R E S E T : 0 00000 0 0 0 000 0 0 00 16 17 18 19 20 21 22 23 24 25 26 27 28 29[...]
-
Página 633
MPC5200B Users Guide, Rev . 1 18-16 F reescale Semiconductor I 2 C Interface Registers 18.3.5 I 2 C Data I / O Register (M DR)—MBAR+ x3D10 / 0x3D50 5 SRW Sla ve Read / Write—when set, bit indicates the R / W command bit value of the calling address sent from the master . BE A W ARE: Bit is v alid o nly when I 2 C is in slav e mode, a complete a[...]
-
Página 634
I 2 C Interface Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-17 18.3.6 I 2 C Interrupt Contr ol Register—MBAR + 0x3D20 The Interrupt Control register is common to both MPC5200B I 2 C modules. Each module generates an intern al interrupt that can be routed as follows: • T o the CPU interrupt, if IE is set to 1. • T o th[...]
-
Página 635
MPC5200B Users Guide, Rev . 1 18-18 F reescale Semiconductor I 2 C Interface Registers • T o the RX requestor at SDMA, if RE is set to 1. T ypically , only one (or none) of the above des tinations would be specified. Althou gh, it may be useful to send an interrupt to both the CPU and SDMA. Selecting betwee n TX and RX is based on whether the mod[...]
-
Página 636
Initializati on Sequence MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-19 An I2C glitch filter has been added outside the I2C legacy modules (but within the I2C package). This filter can absorb (or “ea t”) glitches on both the I2C clock and da ta lines for each I 2 C module. The width of glitch to absorb can be specified in terms o[...]
-
Página 637
MPC5200B Users Guide, Rev . 1 18-20 F reescale Semiconductor T ransfer Initiation and In terrupt 18.5.3 Special Note on AKF A new status bit has been added to MSR[4] fo r the MPC5200B release of this chip. The re ason for this is that the legacy I2C mod ule was found to violate, in a merely academ ic sense, the I2C specific ation by sending out a v[...]
-
Página 638
T ransfer Initiation and Interrupt MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 18-21 Figure 18-9. Software Flo wchart of T ypical I2C Interrupt Routine Clear Master Mode ? Tx/Rx ? Last Byte Transmit ted ? RXAK=0 ? End Of Addr Cycle (Master Rx) ? Write Next Byte To MDR Switch To Rx Mode Dummy Read From MDR Generate Stop Si gnal Read Data[...]
-
Página 639
MPC5200B Users Guide, Rev . 1 18-22 F reescale Semiconductor T ransfer Initiation and In terrupt[...]
-
Página 640
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-1 Chapter 19 Contr oller Area Network ( MSCAN ) 19.1 Overview The following sections are contained in this document: • Section 19.1, Overview • Section 19.2, Featur es • Section 19.3, External Signals • Section 19.4, CAN System • Section 19.5, Memory Map / Regi ster Defin[...]
-
Página 641
MPC5200B Users Guide, Rev . 1 19-2 F reescale Semiconductor Features 19.2 Features The basic features of the MSCAN are as follows: • Implementation of the CAN protocol - V ersion 2.0A/B — Stan dard and extended data frames — 0 - 8 bytes data length — Programmable bit rate up to 1 Mbps (Depending on th e actual bit timing and th e clock jit [...]
-
Página 642
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-3 Figure 19-2. The CAN System 19.5 Memor y Map / Register Definition The MPC5200B contains 2 inde pendent MSCAN Controller : • MSCAN1 = MBAR + 0x0900 • MSCAN2 = MBAR + 0x0980 19.5.1 Module Memory Map T able 19-1 and T able 19-2 give an overview on al l r[...]
-
Página 643
MPC5200B Users Guide, Rev . 1 19-4 F reescale Semiconductor Memory Map / Regi ster Definition T able 19-1 shows the individual regist ers associ ated with the MSCAN and their relative of fset from the base address. The detailed reg iste r descriptions follow in the order they app ear in the register map (see T able 19-2 ). $__20 IDENTIFIER FIL TER [...]
-
Página 644
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-5 19.5.2 Register Descriptions This section describes in detail all the re gisters and register bits in the MSCAN module. Each desc ription includes a standard register diagram with an associated figure number . Details of register bit and field function fol[...]
-
Página 645
MPC5200B Users Guide, Rev . 1 19-6 F reescale Semiconductor Memory Map / Regi ster Definition Bit Name Description 0 RXFRM Received F rame—flag bit is rea d and clear only . It is set when a receiver has received a valid message correctly , independently of the filter c onfiguration. Once set, it remains set until cleared by software or reset. Cl[...]
-
Página 646
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-7 19.5.4 MSCAN Contr ol Register 1 (CANCTL1)—MBA R + 0x0901 / 0x981 The MSCAN Control Register 1 provides for various control and ha ndshake status information of the MSCAN mod ule. READ: Anytime WRITE: Anytime when INITRQ = 1 and INIT AK = 1, exce pt CANE[...]
-
Página 647
MPC5200B Users Guide, Rev . 1 19-8 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.5 MSCAN Bus Timing Register 0 (CANBTR0)—MB AR + 0x0904 / 0x984 The MSCAN Bus T iming Register 0 provides for va rious bus timing control of the MSCAN module. Read: Anytime W rite: Anytime in In itialization Mode (INITRQ = 1 and INIT AK = 1) 6S L P A[...]
-
Página 648
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-9 19.5.6 MSCAN Bus Timing Register 1 (CANBTR1)—MB AR + 0x0905 / 0x985 The MSCAN Bus T iming Register 1 provides for va rious bus timing control of the MSCAN module. Read: Anytime W rite: Anytime in In itialization Mode (INITRQ = 1 and INIT AK = 1) Read: An[...]
-
Página 649
MPC5200B Users Guide, Rev . 1 19-10 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.7 MSCAN Receiver Flag Register (CAN RFLG)—MB AR+0x0908 / 0x988 Note: This register is held in th e reset state when the initialization mode is acti v e (INI TR Q = 1 and INIT AK = 1). This register is writable again as soon as the initializatio n m[...]
-
Página 650
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-11 Bit Name Description 0 WUPIF W akeUp Interrupt Flag—If MSCAN dete cts bu s activity whi le in sleep mode and WUPE=1 in CANTCTL0, it sets the WUPIF flag. If not masked, a W akeUp interrupt is pendin g while this flag is set. 0 = No W akeUp activity obser[...]
-
Página 651
MPC5200B Users Guide, Rev . 1 19-12 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.8 MSCAN Receiver Interr upt Enable Register (C ANRIER)—MB AR + 0x0909 / 0x989 7 RXF Receive Buff er Full—fl ag is set b y MSCAN when a new message is shifted into RX FIFO. Flag indicates whether the shifted buff er is loaded with a correctly rece[...]
-
Página 652
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-13 Note: The MSCAN Receive Interrupt Enable Register is held in reset state when the initi alization mode is activ e (INITRQ = 1 and INIT AK = 1). This register is wr itable again as soon as the initialization mode is e xited (INITRQ = 0 and INIT AK = 0). 19[...]
-
Página 653
MPC5200B Users Guide, Rev . 1 19-14 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.10 MSCAN T ransmitter In terrupt Enable Register (CANTIER)—MB AR+0x090D / 0x098D Note: This register is held in th e reset state when the initialization mode is acti v e (INI TR Q = 1 and INIT AK = 1). This register is writable again as soon as the[...]
-
Página 654
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-15 19.5.12 MSCAN T ransmitter Message Abor t Ack (CAN T AAK)—MBAR +0x0911 / 0x0991 Note: This register is held in the reset state when the init ialization mode is active (INITRQ = 1 and INIT AK = 1). READ: Anytime WRITE: Not writable at any time . 19.5.13 [...]
-
Página 655
MPC5200B Users Guide, Rev . 1 19-16 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.14 MSCAN ID Acceptanc e Control Register (CANI D A C)—MB AR + 0x0915 / 0x0995 READ: Anytime WRITE: Anytime in Initialization Mode (INITRQ = 1 and INIT AK =1) T able 19-17. MSCAN I D Acceptance Contr ol Register m s b 0 123456 7 l s b R Reser v ed I[...]
-
Página 656
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-17 19.5.15 MSCAN Receive Error Counter Re gister (CANRXERR)-M B AR + 0x091C / 0x099C READ: Only when in Sleep Mode (SLPRQ = 1 and SLP AK = 1) or Initializa tion Mode (INITRQ = 1 and INIT AK =1). WRITE: Unimplemented NO TE Reading this register when in any ot[...]
-
Página 657
MPC5200B Users Guide, Rev . 1 19-18 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.17 MSCAN ID Accept ance Registers (CANID AR0 -7)—MB AR + 0x0920 / 0x09A0 T able 19-22. MSCAN ID Accepta nce Registers (0 - 3) m s b 0 123456 7 l s b Adress Offset 0x920 / 0x9A0 CANIDR0 R AC7 AC 6 AC5 AC 4 AC3 AC 2 AC 1 AC0 W R E S E T : 00000000 m [...]
-
Página 658
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-19 READ: Anytime WRITE: Anytime in initialization m ode (INITRQ + 1 and INIT AK = 1). On reception, each messag e is written into the background receive buffer . The CPU is only signalled to read the message if it p asses the criteria in the identifier acc e[...]
-
Página 659
MPC5200B Users Guide, Rev . 1 19-20 F reescale Semiconductor Memory Map / Regi ster Definition 19.5.18 MSCAN ID Mask Register (CANIDMR0-7)—MB AR + 0x0928 / 0x09A8 T able 19-24. MSCAN ID Mas kRegisters (0 - 3) m s b 0 123456 7 l s b Adress Offset 0x928 / 0x9A8 CANIDMR0 R AM7 AM6 AM5 AM4 AM3 AM2 AM1 AM0 W R E S E T : 00000000 m s b 0 123456 7 l s b[...]
-
Página 660
Memory Map / Register Definition MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-21 READ: Anytime WRITE: Anytime in initialization m ode (INITRQ + 1 and INIT AK = 1). The identifier mask register sp ecifies which of the corresponding bits in the iden tifier acceptance register are relevant for a cc eptance filtering. • T o receive stan[...]
-
Página 661
MPC5200B Users Guide, Rev . 1 19-22 F reescale Semiconductor Programmer’ s Model of Messa g e Storage — CANIDMR7 19.6 Programmer’ s Model o f Messa g e Storage The following sec tion details th e organization of the receive and transmit message buf fers and the associated control registers . For reasons of programmer interfa ce simplification[...]
-
Página 662
Programmer’ s Model of Message Storage MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-23 Read: anytime for transmit buf fers; only when RXF flag is set for receive buffers (see Section 1 9.5.7, MSCAN Receiver Flag Register (CANRFLG)—MBAR+0x0908 / 0x988 ). W rite: anytime for transmit buf fers when TXEx flag is set (see Section 19.5.[...]
-
Página 663
MPC5200B Users Guide, Rev . 1 19-24 F reescale Semiconductor Programmer’ s Model of Messa g e Storage 19.6.1 Identifier R egister s (IDR0-3) The identifier registers for an extended form at identifier consist of a total of 32 b its; ID28 - ID0, SRR, IDE, and R TR bits. T he identifier registers for a standard format iden tifier consis t of a tota[...]
-
Página 664
Programmer’ s Model of Message Storage MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-25 19.6.3 Data Length R egister (DLR) This register keeps the data length field of the CAN frame. DLC3 - DLC0 — Data Length Code bits The data length code contains the number of bytes (data byte count) of the respectiv e message. During the transmi[...]
-
Página 665
MPC5200B Users Guide, Rev . 1 19-26 F reescale Semiconductor Functional Des cription 19.6.5 MSCAN Time Stam p Register High (TSRH)— MBAR + 0x097C / 0x09FC READ: Anytime WRITE: Unimplemented 19.6.6 MSCAN Time Stamp Regist er Low (TSRL)—MB AR + 0x097D / 0x09FD READ: Anytime WRITE: Unimplemented 19.7 Function al Description 19.7.1 General This sec[...]
-
Página 666
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-27 19.7.2 Message Storage Figure 19-3. User Model f or Message Buffer Or ganization MSCAN facilitates a sophist icated message storage system whic h addresses the requirements of a broad range of network applicati ons. 19.7.2.1 Message T ransmit Ba ckgroun d Modern a[...]
-
Página 667
MPC5200B Users Guide, Rev . 1 19-28 F reescale Semiconductor Functional Des cription A double buffer scheme de-couples the reloading of the transmit buf fer from the actual message se nding and, as such, reduces th e reactiveness requirements on the CPU. Problems can arise if the sending of a message is finished wh ile the CPU re-loads the second b[...]
-
Página 668
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-29 flag, and generates a receive interrupt Section 19.7.9.2, Rece ive Interrupt to the CPU 1 . The user ’ s receive handler has to read the received message from the RxFG and then reset the RXF flag to acknowledge the interrupt and to release the foregr ound buffer[...]
-
Página 669
MPC5200B Users Guide, Rev . 1 19-30 F reescale Semiconductor Functional Des cription Figure 19-4. 3 2-bit Maskable Id entifier Acceptance Filter Figure 19-5. 16 -bit Maskable Identifier Acce ptance Filters ID28 ID21 IDR0 ID10 ID3 IDR0 ID20 ID15 IDR1 ID2 IDE IDR1 ID14 ID7 IDR2 ID10 ID3 IDR2 ID6 RTR IDR3 ID10 ID3 IDR3 AC7 AC0 CANIDAR0 AM7 AM0 CANIDMR[...]
-
Página 670
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-31 Figure 19-6. 8- bit Maskable Identi fier Acceptance Filte rs 19.7.4 Protocol Viol ation Pr otection The MSCAN protects the user from accidentally violating the C AN protocol through programming errors. The protection logic imple ments the following features: • T[...]
-
Página 671
MPC5200B Users Guide, Rev . 1 19-32 F reescale Semiconductor Functional Des cription • All registers which control the configura tion of the MSCAN cannot be modified while the MSCAN is on-line. The MSCAN has to be in Initialization Mode. The corre sponding INITRQ/INIT AK handshake bits in th e CANCTL0/CANCTL1 registers Section 19.5.3, MSCAN Contr[...]
-
Página 672
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-33 • Time Segment 2: T his segment represents the PHASE_SEG2 of the CAN standard. It can be programmed by setting the TSEG2 parameter to be 2 to 8 time quanta long. Figure 19-8. Se gments within the Bit Time The Synchronization Jump W idth 1 can be programmed in a [...]
-
Página 673
MPC5200B Users Guide, Rev . 1 19-34 F reescale Semiconductor Functional Des cription 19.7.6 Timer Link The MSCAN generates an internal tim e stamp whenever a valid frame is received or transm itted and the TIME bit is enabled. Becau se the CAN specification defines a frame to be valid if no errors occur before the End of Frame (EOF) field is transm[...]
-
Página 674
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-35 19.7.8.1 CPU Run Mode As can be seen in T able 19-35 , only MSCAN Sleep Mode is available as lo w power option, when CPU is in run mode. 19.7.8.2 CPU Sleep Mode While the CPU is in Sleep Mode, the MSCAN can be operat ed in No rmal Mode and generate interrupts (reg[...]
-
Página 675
MPC5200B Users Guide, Rev . 1 19-36 F reescale Semiconductor Functional Des cription NO TE The MCU cannot clear the SLPRQ bit before Sleep Mode (SLPRQ =1 and SLP AK=1) is active. After wake-up, the MSCAN wa its for 11 consecutive recessive bits to synchroniz e to the bus. As a conseque nce, if t he MSCAN is w oken-up by a CAN frame, this frame is n[...]
-
Página 676
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-37 Figure 19-11. Initialization Request /Acknowle dg e Cycl e Due to independent clock domains within th e MSCAN the INITRQ has to be synchronized to all domains by using a special handshake mechanism. This handshake caus es additional synchroniza tion delay (). If t[...]
-
Página 677
Controller Area Network ( MSCAN ) Notes MPC5200B Users Guide, Rev . 1 19-38 F reescale Semiconductor 19.7.9.1 T ransmit Interrupt At least one of the three transmit buf fers is empty (not scheduled) an d can be loaded to schedule a message for transmission. T he TXEx flag of the empty message buf fer is set. 19.7.9.2 Receive Interrupt A message is [...]
-
Página 678
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 19-39 19.7.9.4 Error Interrupt An overrun of the receiver FIFO, error, warning or Bus-Off cond ition occurred. The Section 19.5.7, MSCAN Receiver Flag Register (CANRFLG)—MBAR+0x0908 / 0x988 indicates one of th e following conditions: • Overrun An overrun condition o[...]
-
Página 679
MPC5200B Users Guide, Rev . 1 19-40 F reescale Semiconductor Functional Des cription[...]
-
Página 680
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-1 Chapter 20 Byte Data Link Contr oller (BDLC) 20.1 Overview The BDLC module is a serial communicati on module which allows the user to send and receive messages across a Society of Automot ive Engineers (SAE) J1850 serial communication network . The user’ s software handles each[...]
-
Página 681
MPC5200B Users Guide, Rev . 1 20-2 F reescale Semiconductor Modes of Operation Figure 20-1. BDLC Operating Mode s State Diagram • Power Off This mode is entered from the Reset mo de whenever the BDLC module supply voltage V dd drops below its minimum specified value for the BDLC module to gua rantee operation. The BDLC module will be plac ed in t[...]
-
Página 682
Modes of Operation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-3 •R u n This mode is entered from the BDLC Disabl ed mode when the BDLCE bit in the BDLC Control Re gister is set. It is entered from the BDLC W ait mode whenever activity is sensed on the J1850 bus or some other MCU sou rce wa kes the CPU out of W ait mode. It is ente[...]
-
Página 683
MPC5200B Users Guide, Rev . 1 20-4 F reescale Semiconductor Block Diagram • Low Power Options The BDLC module can save power in Disabled, W ait, and S top m odes. A complete desc ription of what the BDLC module does while in a low power mode can be found in Section 20.3, Modes of Operation . 20.4 Block Diagram Figure 20-2. BDLC Bloc k Diagram Fig[...]
-
Página 684
Signal De scription MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-5 and reception. The MUX Interface provides the link between the BD LC digital section and the anal og Physical Inte rface. Th e wave shaping, driving and digitizing of data is performed by the Physical Interface. NO TE The Physical Interface is not implemented in th e B[...]
-
Página 685
MPC5200B Users Guide, Rev . 1 20-6 F reescale Semiconductor Memory Map and Registers READ: any time WRITE: IMSG , IE, and WCM any time. CLKS write once in normal and emulation modes. CLKS bit has modified functiona lity in spec ial test mode. W rites to unimplemented bits 5-2 are ignored. IMSG — Ignore Message (Bit 7) This bit allows the CPU to i[...]
-
Página 686
Memory Map and Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-7 1 = S top BDLC internal clocks dur ing CPU wait mode (BDLC_STOP) 0 = Run BDLC internal clocks dur ing CPU wait mode (BDLC_W AIT) 20.7.3.2 BDLC State V ector Register (DLCBSVR) - MB AR + 0x1300 This register is provided to substantiall y decrea se the CPU overhead [...]
-
Página 687
MPC5200B Users Guide, Rev . 1 20-8 F reescale Semiconductor Memory Map and Registers If the CPU executes a STOP all cloc ks to the BDLC as well as th e clocks in the MCU are turned off including clocks to the BDLC. The message which generates a W ake-up interrupt of th e BDLC and the CPU will not be received correctly . • Symbol Invalid or Out of[...]
-
Página 688
Memory Map and Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-9 0 = When cleared, digital filter input is connected to receive pin (RXB) and the transm itter output is conne cted to the transmi t pin (TXB). The BDLC module is taken out of Digital Loopback Mode and can now drive and receive from the J1850 bus normally . After w[...]
-
Página 689
MPC5200B Users Guide, Rev . 1 20-10 F reescale Semiconductor Memory Map and Registers The BDLC supports the In-frame Re sponse (IFR) feature of J1850 by setting these bits co rrectly . The four types of J1850 IFR are shown in Figure 20-3 . The purpose of the in-frame response modes is to allow single or multiple nodes to acknowledge receipt of the [...]
-
Página 690
Memory Map and Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-11 After the byte in the BDLC Data Register has been loaded into the transmit shift register , the TDRE flag will be set in t he BDL C State V ector Register register , similar to th e main message transmit sequence. If the interrupt enable bit (IE in BDLC Control R[...]
-
Página 691
MPC5200B Users Guide, Rev . 1 20-12 F reescale Semiconductor Memory Map and Registers NO TE The extra logic 1s are an enhancement to the J 1850 protocol which forces a byte boundary condition fault. This is helpful in preventing noise on the J1850 bus from corrupting a message. 20.7.3.4 BDLC Data Register (DLCBDR) - MB AR + 0x1305 This register is [...]
-
Página 692
Memory Map and Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-13 READ: any time WRITE: write once in normal and emulation modes. Register functionality modifi ed in special test mode. W rites to unimplemented bits 7, 5 are ignored. RXPOL — Receive Pin Polarity (Bit 6) The Receive pin Polarit y bit is used to select the polar[...]
-
Página 693
MPC5200B Users Guide, Rev . 1 20-14 F reescale Semiconductor Memory Map and Registers 20.7.3.6 BDLC Rate Select Regi ster (DLCBRSR) - MB AR + 0x1309 This register deter mines the divider prescaler value for the mux interface clock (f bdlc ). Only integer multiple of the 1 MHz or 1.048576 MHz f bdlc are supported as input clock. READ: any time WRITE[...]
-
Página 694
Memory Map and Registers MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-15 20.7.3.7 BDLC Contr ol Register (DLCSCR) - MBAR + 0 x130C The following register enables the BLDC module. READ: any time WRITE: any time BDLCE — BDLC Enabl e (Bit 4) This bit serves as a mux int erface clock (f bdlc ) enable/disable for power savings. 1 = The m[...]
-
Página 695
MPC5200B Users Guide, Rev . 1 20-16 F reescale Semiconductor Functional Des cription READ: any time WRITE: ignored in normal and emulation modes Register functionality is modi fied in spec ial test mode. IDLE Idle (Bit 0) This bit indicates when the BDLC module is idle. 1 = BDLC module has received IFS and no da ta is being transmitted or received.[...]
-
Página 696
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-17 Messages transmitted by th e BDLC module onto the J1850 bus must contain at least one data by te, and therefore can be as short a s one data byte and one CRC by te. Each data byte in the me ssage is 8 bits in length, transmitted MSB to LSB. • CRC - Cyclical Redu[...]
-
Página 697
MPC5200B Users Guide, Rev . 1 20-18 F reescale Semiconductor Functional Des cription Figure 20-5. J 1850 VPW Symbols Each message will begin with an SOF symbol, an active symbol, and therefore each data byte (including the CRC byte) will begin with a passive bit, regardless of whether it is a logic one or a logic zero. All VPW bit len gths stated i[...]
-
Página 698
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-19 The SOF symbol is defined as passive to active transition followed by an active period 200 µ s in length ( Figure 20-5 (c)) . This allows the data bytes which follow the SO F symbol to begin with a passive bit, regardless of whether it is a logic one or a logic z[...]
-
Página 699
MPC5200B Users Guide, Rev . 1 20-20 F reescale Semiconductor Functional Des cription 5 Star t of Fr ame (SOF) T tva3 198 200 20 2 t bdlc 6 End of D ata (EOD) 1 T tvp3 162 16 4 16 6 t bdlc 7 End of F rame (EOF) 1 T tv4 238 240 242 t bdlc 8 Inte r-F rame Separator (IFS) 1 T tv5 298 300 302 t bdlc Note: 1. The transmitter timing f or this symbol depen[...]
-
Página 700
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-21 T able 20-16. BDLC Receiv er VPW Symbol Timing for Binary Frequenc ies Number Characteristic Symbol Min T yp Max Unit 1 P assive Logic 0 T rvp 1 34 67 100 t bdlc 2 P assive Logic 1 T rvp 2 101 134 171 t bdlc 3 Active Logic 0 T rv a1 101 134 171 t bdlc 4 Active Log[...]
-
Página 701
MPC5200B Users Guide, Rev . 1 20-22 F reescale Semiconductor Functional Des cription The min and max symbol lim its shown in the following secti ons (Invalid Passive Bit - V ali d BREAK Symbol) and figures ( Figure 20-6 - Figure 20-9 ) refer to the values list ed in T able 20-13 through T able 20-18 . • Invalid Passive Bit If the passive to activ[...]
-
Página 702
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-23 Figure 20-7. J1850 VPW EOF and IFS Symbols • V alid EOF & IFS Symbol In Figure 20-7 (1), if the passive to active tran sition beginning the SOF symbol of the next message occurs between T rv4(Min) and T rv4(Max) , the current symbol will be considered a vali[...]
-
Página 703
MPC5200B Users Guide, Rev . 1 20-24 F reescale Semiconductor Functional Des cription Figure 20-8. J185 0 VPW Active Symbols • Invalid Active Bit If the active to passive transition beginning the next data bit or symbol occurs between the passive to active transition begin ning the current data bit or symbol and T rva2(Min) , the current bit would[...]
-
Página 704
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-25 • V alid BREAK Symbol If the next active to passive tr an sition does not oc cur until after T rv6(Min) , the current symbol will be considered a valid BREAK symbol. A BREAK symbol should be follo wed by a SOF symbol begi nning the next message to be transmitted[...]
-
Página 705
MPC5200B Users Guide, Rev . 1 20-26 F reescale Semiconductor Functional Des cription 20.8.1.4 J1850 Bus Err ors The BDLC module detects several types of transmit and receive er rors which can occur during the transmission of a message onto the J1850 bus. • T ransmission Error If the BDLC module is transmitting a message and the message receiv ed [...]
-
Página 706
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-27 If a BREAK symbol is received wh ile the BDLC module is transmitti ng or receiving, the symbol invalid or out of range flag (in BDLC State V ector Register) is set. Furt her transmission/reception will be disabled until the J1850 bus returns to the passive state a[...]
-
Página 707
MPC5200B Users Guide, Rev . 1 20-28 F reescale Semiconductor Functional Des cription Figure 20-11. BDLC Mo dule Rx Di gital Filter Block Dia gram • Operation The clock for the digital filter is provide d by the MUX Interface clock.At each posit ive edge of the clock signal, the current state of the Receiver input signal from the RXB pad is sample[...]
-
Página 708
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-29 20.8.3.1 Protocol Architect ure The Protocol Handler contains th e S tate Machine, Rx Shadow Register , Tx Shadow Register , R x Shift Register , Tx Shif t Register , and Loopback Multiplexer as shown in Figure 20-12 . Each block will now be described in more deta[...]
-
Página 709
MPC5200B Users Guide, Rev . 1 20-30 F reescale Semiconductor Functional Des cription • Digital Loopback Multiplexer The Digital Loopback Multiplexer connects the input of the receive digital fi lter (See Figure 20 -12 ) to either the transmit signal out to the pad (TXB) or the receive signal from the pad (RXB), depe nding on the state of the DLOO[...]
-
Página 710
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-31 NO TE Due to the byte-level architect ure of the BDLC module, the 12-byte limi t on message length as defined in SAE J1850 must be enforced by the user ’ s software. The number of bytes in a message (transmitted or received) has no meaning to the BDLC module. ?[...]
-
Página 711
MPC5200B Users Guide, Rev . 1 20-32 F reescale Semiconductor Functional Des cription Similar to a loss of arbitration, if any error (ex cept a CRC error) is detected on the SAE J1850 bus during a transmission, the BDLC module will stop transmitting immediately . The byte which was be ing transmitted will be discarde d, and the “Symbol Invalid or [...]
-
Página 712
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-33 Figure 20-13. Basic BDLC T ransmit Flo w chart 20.8.5 Receiving A Message The design of the BDLC module makes it especi ally easy to use for receiving messages off of the SAE J1850 bus. When the first b yte of a message comes in, the BDLC State V ector Register wi[...]
-
Página 713
MPC5200B Users Guide, Rev . 1 20-34 F reescale Semiconductor Functional Des cription 20.8.5.1 BDLC Reception Contr ol Bits The only control bit which is used for message reception, the IMSG bit, is actually used to prevent message reception. When the IMSG bit is set BDLC module interrupts of the CPU are in hibited until the next SOF sy mbol is rece[...]
-
Página 714
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-35 Once a message byte ha s been received, the CPU must se rvice the BDLC Data Register before the next byte i s received, or the fir st byte will be lost. If the BDLC Data Register is not serviced qu ickly enough, the next byte receiv ed will be written over the pr [...]
-
Página 715
MPC5200B Users Guide, Rev . 1 20-36 F reescale Semiconductor Functional Des cription Figure 20-14. Basic BDLC Receive Flo wchart 20.8.6 Transmitting An In-Frame Response (IFR) The BDLC module can be used to transmit all fo ur types of In -Frame Response (IFR) which are de fined in SAE J1850. A very brief definitio n of each IFR type is given below [...]
-
Página 716
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-37 20.8.6.1 IFR T ypes Suppor ted b y the BDLC module SAE J1850 defines four distinct t ypes of IFR. The first (and most basic) IFR is T ype 0, or no IF R. IFR types 1, 2 & 3 are each made up of one or more bytes and, dependi ng upon the type used, may be fo llow[...]
-
Página 717
MPC5200B Users Guide, Rev . 1 20-38 F reescale Semiconductor Functional Des cription 20.8.6.3 T ransmit Single Byte IFR The T ransmit Single Byte IFR (TSIFR) bi t in BDLC Control Register 2 is used to transmit T yp e 1 and T ype 2 IFRs onto the SAE J18 50 bus. If this bit is set after a byte is loaded into the BDLC Data Re gi ster, the BDLC module [...]
-
Página 718
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-39 • T ransmitting a T ype 1 IFR T o transmi t a T ype 1 IFR, the user loads the byte to b e transm itted into the BDLC Data Regist er and sets both the TSIFR bit and the TEOD bit. This will direct t he BDLC module to attempt transmitti ng the byte written to the B[...]
-
Página 719
MPC5200B Users Guide, Rev . 1 20-40 F reescale Semiconductor Functional Des cription — Step 1: Load the IFR Byte into the BDLC Data Register As with the T ype 1 IFR, the user begins initiation of a T ype 2 IFR by loading the desired IFR byte in to the BDLC Data Register . If a byte has already been written into the BD LC Data Register for transmi[...]
-
Página 720
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-41 byte when TEOD is set, the BDLC module will cont inue the trans mission until it is successful or it loses arbitration to another transmitter. At this point it will then discard the byte and make no more transmit attempts. NO TE When transmitting a T ype 2 IFR, th[...]
-
Página 721
MPC5200B Users Guide, Rev . 1 20-42 F reescale Semiconductor Functional Des cription The user begins initiation of a T ype 3 IFR, as with each of the other IFR types, by loading the desired IFR byte into the BDLC Data Register . If a byte has already been written into the BDLC Data Register for transm ission as a new message, the user can simply wr[...]
-
Página 722
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-43 Figure 20-1 7. T ransmi tting A T ype 3 IFR 20.8.7 Receiving An In -Frame Response (IFR) Receiving an In-Frame Response wi th the BDLC module is very s imilar to receivi ng a messag e frame. As each byte of an IFR is rec eived, the BDLC St ate V ector Register wil[...]
-
Página 723
MPC5200B Users Guide, Rev . 1 20-44 F reescale Semiconductor Functional Des cription NO TE As with a message transmission, the IMSG bit s hould never be used to ignore the BDLC module’ s own IFR transmissions. This is again due to the BDLC State V ector Register bits being inhibited from updating until IMSG is cl eared, preventing the CPU from de[...]
-
Página 724
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-45 . Figure 20-18. Recei ving An IFR With the BDLC module 20.8.7.2 Receiving IFR Exceptions This basic IFR receiving flow can be inte rrupted for the same reasons as a normal message reception. The IFR receiving process can be adversely affected due to a CRC error, a[...]
-
Página 725
MPC5200B Users Guide, Rev . 1 20-46 F reescale Semiconductor Functional Des cription Because of the BDLC module’ s architecture , it can both transmit and re ceive messages of unlimited length. The CRC calculations, both for transmitting and receiving, are not limited to eight bytes, but will inst ead be calculated and verifi ed using all bytes i[...]
-
Página 726
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-47 Figure 20-19. Ba sic BDLC Module T ransmit Flowc hart 20.8.9 BDLC Module Initialization This section includes sample flows for initializing the BDLC module and using it to tran smit and receive messages. 20.8.9.1 Initialization Sequence T o initialize the BDLC mod[...]
-
Página 727
MPC5200B Users Guide, Rev . 1 20-48 F reescale Semiconductor Functional Des cription 20.8.9.2 Initializing the Configuration Bits The first step ne cessary for initializing the BDLC mod ule following an MCU reset is to write the desired values t o each of the BDLC module control registers. This is best done b y st oring predetermined in itializatio[...]
-
Página 728
Functional Descrip tion MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 20-49 time passes between the exit from loopback modes and enabling the BDLC module and the enabling of interrupts. It is a good practice to al ways clear any s ource of interrupts before enabli ng interrupts on any MCU subsystem. If any interrupts are pending (BDLC S t[...]
-
Página 729
MPC5200B Users Guide, Rev . 1 20-50 F reescale Semiconductor Resets 20.9 Resets 20.9.1 General The reset state of each indi vidual bit is listed within Section 20.7, Memory Map and Registers which details the regi st ers and their bit-fields. BDLC module enters Run mode from Reset mod e Write desir ed config. data into DLCBARD Write desired config.[...]
-
Página 730
Overview MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 21-1 Chapter 21 Deb ug Suppor t and JT A G Interface 21.1 Overview The following sections are contained in this document: • Section 21.2, T AP Link Module (TLM) and Slave T AP Implementation • Section 21.3, TLM and T AP Signal Descriptions • Section 21.4, Slave T est Reset ( STR[...]
-
Página 731
MPC5200B Users Guide, Rev . 1 21-2 F reescale Semiconductor T AP Link Module (TLM) and Slave T AP Implementation Figure 21-1. Generic TLM / T AP Ar chitecture Diag ram STDO [ 0 : n ] TCK TMS TDI ENA TRST - TCK TMS TDI TA P SEL TDO [1] [1] [1] [0] [0] [0] TA P TDI ENA TRST - TCK TMS SEL TDO S E L[0:n] S T D 0[0:n] S E L[0:n] TDI TRST - TCK TMS TDI T[...]
-
Página 732
T AP Link Module (TLM) an d Slave T AP Implementation MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 21-3 Figure 21-2. Gener ic T AP Link Module ( TLM ) Diagram STDO [ 0 : n ] TLMENA ENA [ 0 : n ] Link ShiftDR ClockDR UpdateDR DeviceID BdyScan & & & & Byp ass TLMSEL S E L[0:n] TDO ShiftDR ClockD R UpdateDR IR ShiftDR TDI TM[...]
-
Página 733
MPC5200B Users Guide, Rev . 1 21-4 F reescale Semiconductor TLM and T AP Signal Descriptions Figure 21-3. Generi c Slave T AP 21.3 TLM and T AP Signal Descriptions 21.3.1 T est Reset ( TRST ) JT AG reset, active low . When asserted, a ny on-going JT AG operation is immediately abor ted. All T AP state machi nes, including th e TLM, immediately ente[...]
-
Página 734
Slave T est Reset ( STRST ) MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 21-5 21.3.5 T est Data Out ( TDO ) Serial test data output is routed from the active shift regist er to this pin. T o ensure setup and hold time for TDO when connec ted to TDI (of another device), TDO switches at the TCK falling edge. TDO is driven while the TLM sta[...]
-
Página 735
MPC5200B Users Guide, Rev . 1 21-6 F reescale Semiconductor e300 Core JT A G / COP Serial Interface Figure 21-4. State Dia gram—T AP Controller Instructions are loaded by stepping the state machi ne to the Sh ift-IR state by applyi ng an appropriate sequence of values on TM S at successive rising edges of TCK. Once in the Shift-IR stat e, TMS is [...]
-
Página 736
TLM Link DR Instructions MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 21-7 Figure 21-5. e3 00 Core JT A G / COP Serial Interf ace 21.7 TLM Link DR Instructions — CAUTION — 1. For the following registers, only the inst ruction codes listed should be used. All ot her codes must be co nsidered private and potentially damaging. 2. “Per[...]
-
Página 737
MPC5200B Users Guide, Rev . 1 21-8 F reescale Semiconductor TLM T est Instructions 21.7.1 TLM : T LMENA The TLM:TLMENA pseudo-instructi on selects the 6-bit TLM IR. 21.7.2 TLM : P PCENA The TLM:PPCENA pseudo-instruct ion selects the 8-bit micr oprocessor CPU test IR. 21.8 TLM T est Instructions The TLM IR activates device-level functions, including[...]
-
Página 738
e300 COP / BDM Interface MPC5200B Users Guide, Rev . 1 F reescale Semico nductor 21-9 Preload: T o shift an initial value into the boundary scan register prior to loading the EXTEST or CLAMP instructio n into the Instructio n register . Capture value may be examined or ignored. Update value has no ef fect until EXTEST / CLAMP inst ruction is lo ade[...]
-
Página 739
Debug Support a nd JT A G Inte rface Notes MPC5200B Users Guide, Rev . 1 21-10 F reescale Semiconductor[...]
-
Página 740
A MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-1 Appendix A Acr onyms and T erms This section contains an alphabetical list of terms, phrases, acronyms, and abbreviations used in this book. Some terms and def initions included are reprinted from IEEE S td. 754-1985, IEEE S tandard fo r Binary Floating- Point Arithmetic , copyright ©19[...]
-
Página 741
MPC5200B Users Guide, Rev . 1 A-2 F reescale Semiconductor C BIP . . . . . . . . . . . . . . . . . . . . Bit Int erleaved Parity BIST . . . . . . . . . . . . . . . . . . . Buil t-In Self T est BISYNC . . . . . . . . . . . . . . . . Binary Synchronous communication Blockage . . . . . . . . . . . . . . . . A pipeline stall that occu rs when an instru[...]
-
Página 742
D MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-3 Context synchronization . . . . An operation that ensures: • all instructions in execution complete pa st the point where they can produce an exce ption • all instructions in execution complete in the context in which they be gan execution • all subsequent instructions are fetched [...]
-
Página 743
MPC5200B Users Guide, Rev . 1 A-4 F reescale Semiconductor E E EA . . . . . . . . . . . . . . . . . . . . . Effectiv e Address— The 32- or 64-bit address specified for a load, st ore, or instruction fe tch. This address is then submitted to the MMU for translat ion to either a physical memory address or an I / O ad dress. ED . . . . . . . . . . .[...]
-
Página 744
H MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-5 H Harvard architecture . . . . . . . An architectural model featuring separate caches for instruction and data. HC, Hc . . . . . . . . . . . . . . . . . Host Controller HCD . . . . . . . . . . . . . . . . . . . Host Controller Drive r HDLC . . . . . . . . . . . . . . . . . . Hi gh-level [...]
-
Página 745
MPC5200B Users Guide, Rev . 1 A-6 F reescale Semiconductor J J JA V A™ . . . . . . . . . . . . . . . . . From Sun Microsystems, Inc.—a robust and versatile progr ammi ng language that enables developers to: • W rite software on one plat form and run it on another . • Create programs to run within a web browser . • Develop server -side app[...]
-
Página 746
N MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-7 MAC / PHY . . . . . . . . . . . . . . Multiply-and-AC cumulate / Physical Layer Device Master . . . . . . . . . . . . . . . . . . Name given to a bus device grant ed control, or mastership, of the bus. MBAR . . . . . . . . . . . . . . . . . . Module Base Address Register Mb, Mbit . . . .[...]
-
Página 747
MPC5200B Users Guide, Rev . 1 A-8 F reescale Semiconductor O O OC . . . . . . . . . . . . . . . . . . . . . Output Com pare OE . . . . . . . . . . . . . . . . . . . . . Output Enable signal OEA . . . . . . . . . . . . . . . . . . . Operating Envir on ment Architecture— the level of Powe rPC architectu re that describes memory management model, su[...]
-
Página 748
Q MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-9 P TE . . . . . . . . . . . . . . . . . . . . Page T able Entry P TI . . . . . . . . . . . . . . . . . . . . . Payload T ype Identifier P TP . . . . . . . . . . . . . . . . . . . . Port-T o-Port switching P TR . . . . . . . . . . . . . . . . . . . . Program Trace PVR . . . . . . . . . . .[...]
-
Página 749
MPC5200B Users Guide, Rev . 1 A-10 F reescale Semiconductor S Scalability . . . . . . . . . . . . . . . The capability of an architecture to ge nerate implementations specific for a wide range of purposes, and in particular implementations of signif icantly greater performance and / or functionality than at present, wh ile maintaining co mpatibilit[...]
-
Página 750
T MPC5200B Users Guide, Rev . 1 F reescale Semico nductor A-11 stp . . . . . . . . . . . . . . . . . . . . . stop str . . . . . . . . . . . . . . . . . . . . . start STS . . . . . . . . . . . . . . . . . . . . Special Transfer Start Superscalar machine . . . . . . . A machine that can issue multipl e instructions concurrently fro m a conventional l[...]
-
Página 751
MPC5200B Users Guide, Rev . 1 A-12 F reescale Semiconductor W VBR . . . . . . . . . . . . . . . . . . . V ariable Bit-Rate VC . . . . . . . . . . . . . . . . . . . . . V irtual Channel, Circuit, Call, o r Connection VCC . . . . . . . . . . . . . . . . . . . V irtual Channel Connection VCI . . . . . . . . . . . . . . . . . . . . V irtual Circuit Ide[...]
-
Página 752
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor B-1 Appendix B List of Registers Section 5.5 CDM Registers .......... ...................... ....................... ....................... ...................... ........... ......... ....................5-1 1 5.5.1 CDM JT AG ID Number Register—MBAR + 0x0200 ...... ........................[...]
-
Página 753
MPC5200B Users Guide, Rev . 1 B-2 F reescale Semiconductor 7.3.2.1.13 GPS GPIO Simple Interrupt Int errupt Enable Register —MBAR + 0x0B 30 .......... ............ ........... ..... 8-44 7.3.2.1.14 GPS GPIO Simple Interrupt Interrupt T ypes Register —MBAR + 0x0B34 ..................... ................... 8-45 7.3.2.1.15 GPS GPIO Simple Interrup[...]
-
Página 754
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor B-3 Section 9.7.2 SCLPC Registers—MBAR + 0x3C00 ................ ....................... ...................... ....................... ......... .......... 9-23 9.7.2.1 SC LPC Packet Size Register—MBAR + 0x3C00 ......... ............................ ............ ...................... ...[...]
-
Página 755
MPC5200B Users Guide, Rev . 1 B-4 F reescale Semiconductor 10.3.3.1.6 Tx Last W ord PCITL WR(R) —MBAR + 0x3814....... ............................ ............ ........... ........... ......... 1 0-28 10.3.3.1.7 Tx Bytes Done Counts PCITDCR(R) —MBAR + 0x38 18 ............... ...................... ....................... ... 10-28 10.3.3.1.8 Tx[...]
-
Página 756
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor B-5 Section 1 1.3.3 A T A Drive Registers—MBAR + 0x3A00 .............. ....................... ...................... ....................... ...... ......... 1 1-12 1 1.3.3.1 A T A Drive Device Control Regi ster—MBAR + 0x3A5C ......................... ....................... .............[...]
-
Página 757
MPC5200B Users Guide, Rev . 1 B-6 F reescale Semiconductor 13.15.8 SDMA T ask Control 0 Reg ister—MBAR + 0x121C ..... .................... ...................... ....................... ..... 13- 9 13.15.9 SDMA T ask Control 2 Reg ister—MBAR + 0x1220 ...... ....................... ................... ....................... ... 13-1 0 15.2.10 I[...]
-
Página 758
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor B-7 Section 14.8 FEC Tx FIFO Status Register—MBAR + 0x31A8 .................... ...................... ....................... ................. 14-2 8 14.8.1 FEC Rx FIFO Control Register—MBAR + 0x318C ........ ....................................... ............ .............. 14-29 14.8.[...]
-
Página 759
MPC5200B Users Guide, Rev . 1 B-8 F reescale Semiconductor 15.2.43 Tx FIFO W rite Pointer (0x96)—TFWP TR ............ ......................... ....................... ...................... ... ... 15-43 15.2.44 Tx FIFO Last Read Frame (0x9A)—TFLRFP TR ............. ......................... ....................... ................. 15- 43 15.[...]
-
Página 760
MPC5200B Users Guide, Rev . 1 F reescale Semico nductor B-9 19.5.16 MSCAN T ransm it Error Counter Register (C ANTXERR)-MBAR + 0x091D/0x09 9D .............. ...... 19-17 19.5.17 MSCAN ID Acceptance Registers (CANIDA R0-7)—MBAR + 0x0920 / 0x09A0 ... ........... ............ 19-18 19.5.18 MSCAN ID Mask Register (CANIDMR0-7)— MBAR + 0x0928 / 0x09A[...]
-
Página 761
MPC5200B Users Guide, Rev . 1 B-10 F reescale Semiconductor[...]
-
Página 762
How to Reach Us: Home Page: www .freescale.com E-mail: suppor t@freescale.com USA/Europe or Locations Not Listed: F reescale Semico nductor T echnical Information Center, CH370 1300 N. Alma School Road Chandler , Ar izona 85224 +1-800-521-6274 or +1-480-768-2130 suppor t@freescale.com Europe, Middle East, and Africa: F reescale Ha lbleiter Deutschl[...]