Toshiba analog input module user's manual (38 pages)
Summary of Contents for Toshiba TX49 TMPR4937
Page 1
64-Bit TX System RISC TX49 Family TMPR4937 Rev. 2.0...
Page 2
Nevertheless, semiconductor devices in general can malfunction or fail due to their inherent electrical sensitivity and vulnerability to physical stress. It is the responsibility of the buyer, when utilizing TOSHIBA products, to comply with the standards of safety in making a safe design for the entire system, and to avoid situations in which a malfunction or failure of such TOSHIBA products could cause loss of human life, bodily injury or damage to property.
Page 3
TMPR4937 64-bit RISC microprocessor. This databook is written so as to be accessible to engineers who may be designing a TOSHIBA microprocessor into their products for the first time. No prior knowledge of this device is assumed. What we offer here is basic information about the microprocessor, a discussion of the application fields in which the microprocessor is utilized, and an overview of design methods.
Table of Contents Table of Contents Handling precautions TMPR4937 1. Overview and Features ............................1-1 Overview................................ 1-1 Features ................................1-1 1.2.1 Features of the TX49/H3 core......................1-2 1.2.2 Features of TX4937 peripheral functions .................... 1-2 2. Configuration................................2-1 TX4937 block diagram ..........................2-1 3.
Page 6
Table of Contents 6.2.2 Power Reduction for Peripheral Modules.................... 6-5 Power-On Sequence ............................6-6 7. External Bus Controller ............................7-1 Features ................................7-1 Block Diagram ............................... 7-2 Detailed Explanation............................7-3 7.3.1 External Bus Control Register ......................7-3 7.3.2 Global/Boot-up Options........................7-4 7.3.3 Address Mapping..........................
Page 7
Table of Contents 8.4.8 DMA Destination Address Increment Register (DM0DAIRn, DM1DAIRn) ........8-37 8.4.9 DMA Count Register (DM0CNTRn, DM1CNTRn)................8-38 8.4.10 DMA Memory Fiill Data Register (DM0MFDR, DM1MFDR) ............8-39 Timing Diagrams ............................8-40 8.5.1 Single Address Single Transfer from Memory to I/O (32-bit ROM) ..........8-40 8.5.2 Single Address Single Transfer from Memory to I/O (16-bit ROM) ..........
Page 17
It is the responsibility of the buyer, when utilizing TOSHIBA products, to observe standards of safety, and to avoid situations in which a malfunction or failure of a TOSHIBA product could cause loss of human life, bodily injury or damage to property.
Page 19
2 Safety Precautions 2. Safety Precautions This section lists important precautions which users of semiconductor devices (and anyone else) should observe in order to avoid injury and damage to property, and to ensure safe and correct use of devices. Please be sure that you understand the meanings of the labels and the graphic symbol described below before you move on to the detailed descriptions of the precautions.
Page 20
2 Safety Precautions General Precautions regarding Semiconductor Devices Do not use devices under conditions exceeding their absolute maximum ratings (e.g. current, voltage, power dissipation or temperature). This may cause the device to break down, degrade its performance, or cause it to catch fire or explode resulting in injury. Do not insert devices in the wrong orientation.
Page 21
2 Safety Precautions Precautions Specific to Each Product Group 2.2.1 Optical semiconductor devices When a visible semiconductor laser is operating, do not look directly into the laser beam or look through the optical system. This is highly likely to impair vision, and in the worst case may cause blindness. If it is necessary to examine the laser apparatus, for example to inspect its optical characteristics, always wear the appropriate type of laser protective glasses as stipulated by IEC standard IEC825-1.
Page 22
2 Safety Precautions Do not use devices under conditions which exceed their absolute maximum ratings (current, voltage, power dissipation, temperature etc.). This may cause the device to break down, causing a large short-circuit current to flow, which may in turn cause it to catch fire or explode, resulting in fire or injury.
Page 23
3 General Safety Precautions and Usage Considerations 3. General Safety Precautions and Usage Considerations This section is designed to help you gain a better understanding of semiconductor devices, so as to ensure the safety, quality and reliability of the devices which you incorporate into your designs. From Incoming to Shipping 3.1.1 Electrostatic discharge (ESD)
Page 24
3 General Safety Precautions and Usage Considerations (e) Make sure that sections of the tape carrier which come into contact with installation devices or other electrical machinery are made of a low-resistance material. (f) Make sure that jigs and tools used in the assembly process do not touch devices. (g) In processes in which packages may retain an electrostatic charge, use an ionizer to neutralize the ions.
Page 25
3 General Safety Precautions and Usage Considerations • When storing printed circuit boards which have devices mounted on them, use a board container or bag that is protected against static charge. To avoid the occurrence of static charge or discharge due to friction, keep the boards separate from one other and do not stack them directly on top of one another.
Page 26
3 General Safety Precautions and Usage Considerations Storage 3.2.1 General storage • Avoid storage locations where devices will be exposed to moisture or direct sunlight. • Follow the instructions printed on the device cartons regarding transportation and storage. Temperature: • Humidity: The storage area temperature should be kept within a temperature range of 5°C to 35°C, and relative humidity should be maintained at between...
Page 27
3 General Safety Precautions and Usage Considerations • If the 12-month storage period has expired, or if the 30% humidity indicator shown in Figure 1 is pink when the packing is opened, it may be advisable, depending on the device and packing type, to back the devices at high temperature to remove any moisture.
Page 28
This section describes some general precautions which you should observe when designing circuits and when mounting devices on printed circuit boards. For more detailed information about each product family, refer to the relevant individual technical datasheets available from Toshiba. 3.3.1 Absolute maximum ratings Do not use devices under conditions in which their absolute maximum ratings (e.g.
Page 29
3 General Safety Precautions and Usage Considerations CMOS logic IC inputs, for example, have extremely high impedance. If an input pin is left open, it can easily pick up extraneous noise and become unstable. In this case, if the input voltage level reaches an intermediate level, it is possible that both the P-channel and N-channel transistors will be turned on, allowing unwanted supply current to flow.
Page 30
For details of how to interface particular devices, consult the relevant technical datasheets and databooks. If you have any questions or doubts about interfacing, contact your nearest Toshiba office or distributor.
Page 31
3 General Safety Precautions and Usage Considerations 3.3.10 Decoupling Spike currents generated during switching can cause Vcc (Vdd) and GND (Vss) voltage levels to fluctuate, causing ringing in the output waveform or a delay in response speed. (The power supply and GND wiring impedance is normally 50 Ω...
Page 32
3 General Safety Precautions and Usage Considerations 3.3.13 Peripheral circuits In most cases semiconductor devices are used with peripheral circuits and components. The input and output signal voltages and currents in these circuits must be chosen to match the semiconductor device’s specifications. The following factors must be taken into account.
Page 33
3 General Safety Precautions and Usage Considerations 3.4.2 Inspection Sequence Do not insert devices in the wrong orientation. Make sure that the positive and negative electrodes of the power supply are correctly connected. Otherwise, the rated maximum current or maximum power dissipation may be exceeded and the device may break down or undergo performance degradation, causing it to catch fire or explode, resulting in injury to the user.
Page 34
3 General Safety Precautions and Usage Considerations (2) If lead insertion hole intervals on the printed circuit board do not precisely match the lead pitch of the device, do not attempt to forcibly insert devices by pressing on them or by pulling on their leads. (3) For the minimum clearance specification between a device and a printed circuit board, refer to the relevant device’s datasheet and databook.
Page 35
3 General Safety Precautions and Usage Considerations 3.5.3 Soldering temperature profile The soldering temperature and heating time vary from device to device. Therefore, when specifying the mounting conditions, refer to the individual datasheets and databooks for the devices used. (1) Using medium infrared ray reflow •...
Page 36
Electrical contact may also cause a chip to fail. Therefore, when mounting devices, make sure that nothing comes into electrical contact with the reverse side of the chip. If your design requires connecting the reverse side of the chip to the circuit board, please consult Toshiba or a Toshiba distributor beforehand.
Page 37
(2) When handling chips, be careful not to expose them to static electricity. In particular, measures must be taken to prevent static damage during the mounting of chips. With this in mind, Toshiba recommend mounting all peripheral parts first and then mounting chips last (after all other components have been mounted).
Page 38
3 General Safety Precautions and Usage Considerations 3.5.10 Tightening torque (1) Make sure the screws are tightened with fastening torques not exceeding the torque values stipulated in individual datasheets and databooks for the devices used. (2) Do not allow a power screwdriver (electrical or air-driven) to touch devices. 3.5.11 Repeated device mounting and usage Do not remount or re-use devices which fall into the categories listed below;...
Page 39
3 General Safety Precautions and Usage Considerations 3.6.5 Strong electrical and magnetic fields Devices exposed to strong magnetic fields can undergo a polarization phenomenon in their plastic material, or within the chip, which gives rise to abnormal symptoms such as impedance changes or increased leakage current.
Page 40
3 General Safety Precautions and Usage Considerations 3-18...
Page 41
Resonators recommended for use with Toshiba products in microcontroller oscillator applications are listed in Toshiba databooks along with information about oscillation conditions. If you use a resonator not included in this list, please consult Toshiba or the resonator manufacturer concerning the suitability of the device for your application.
Page 45
Conventions in this Manual Conventions in this Manual Value Conventions • Hexadecimal values are expressed as in the following example. (This value is expressed as 42 in the decimal system.) • KB (kilobyte) = 1,024 Bytes, MB (megabyte) = 1,024 × 1,024 = 1,048,576 Bytes, GB (gigabyte) = 1,024 ×...
Page 46
Any function described as a “diagnostic function” is used to facilitate operation evaluations. The operation of such functions is not guaranteed. References 64-bit TX System RISC TX49/H2, TX49/H3, TX49/H4 Core Architecture (http://www.semicon.toshiba.co.jp/eng/index.html) MIPS RISC Architecture, Gerry Kane and Joe Heinrich (ISBN 0-13-590472-2) See MIPS Run, Dominic Sweetman (ISBN 1-55860-410-3) MIPS Publications (http://www.mips.com/publications/) PCI Local Bus Specification Revision 2.2 (http://www.pcisig.com/)
The TMPR4937 (TX4937) is a standard microcontroller that belongs to the 64-bit TX System RISC TX49 family. The TX4937 uses the TX49/H3 core as its CPU. The TX49/H3 core is a 64-bit RISC core that Toshiba developed based on the MIPS III architecture of MIPS Technologies, Inc. (MIPS). For details of the TX49/H3 core such as instruction sets, see “64-bit TX System RISC TX49/H2, TX49/H3, TX49/H4 Core...
Chapter 1 Overview and Features 1.2.1 Features of the TX49/H3 core The TX49/H3 core is a high-performance, low power consumption 64-bit RISC CPU core that Toshiba developed. • 64-bit operation • 32 64-bit integer general-purpose registers • 64 GB physical address space •...
Page 49
Chapter 1 Overview and Features (2) Direct Memory Access Controllers (DMAC) The TX4937 has two DMA Controllers for invoking DMA transfer with memory and I/O devices. Each DMA Controller has 4 built-in DMA Channels. • Can set internal/external DMA requests •...
Page 50
Chapter 1 Overview and Features (5) Serial I/O port (SIO) The TX4937 has an on-chip 2-channel asynchronous serial I/O interface (full duplex UART) • Full duplex UART × 2 channels • On-chip baud rate generator • FIFO Transmission: on-chip 8-bit × 8-stage FIFO Reception: on-chip 13-bit ×...
Page 51
Chapter 1 Overview and Features • Can select either the Edge or Level interrupt detection mode for each external interrupt • Has a built-in 16-bit read/write register as a flag register for interrupt requests. Can request interrupts to an external device or to the TX49/H3 core (IRC interrupt) (10) Extended EJTAGInterface The TX4937's Extended EJTAG (Extended Enhanced Joint Test Action Group) interface provides two functions: IEEE1149.1-compliant JTAG boundary scan testing and real-time...
Chapter 2 Configuration Configuration TX4937 block diagram Figure 2.1.1 is an internal block diagram of the TX4937. TX49/H3 Core I-Cache CPU core D-Cache TRST* DCLK PCST[8:0] TPC[3:1] G-Bus I/F HALTDOZE RESET* TEST[4:0]* CB[7:0] TEST SDCLK[3:0] BYPASSPLL* SDCLKIN CGRESET* RAS* MASTERCLK CAS* SDRAMC DQM[7:0]...
Page 54
Chapter 2 Configuration The TX4937 has the following blocks. (1) TX49/H3 Core: Consists of a CPU, System Control Coprocessor (CP0), Instruction cache, Data cache, Floating-point Unit (FPU), write buffer (WBU), Debugging Support Unit (DSU), and a G-Bus I/F. • FPU: An IEEE754-compliant single-precision or double-precision floating-point unit.
Chapter 3 Signals Signals Pin Signal Description In the following tables, asterisks at the end of signal names indicate active-low signals. In the Type column, PU indicates that the pin is equipped with an internal pull-up resister and PD indicates that the pin is equipped with an internal pull-down resister.
Chapter 3 Signals 3.1.2 SDRAM Interface Signals Table 3.1.2 SDRAM Interface Signals Signal Name Type Description Initial State SDCLK[3:0] Output SDRAM Controller Clock All High Clock signals used by SDRAM. The clock frequency is the same as the G-Bus clock (GBUSCLK) frequency.
Chapter 3 Signals 3.1.3 External Interface Signals Table 3.1.3 External Interface Signals Signal Name Type Description Initial State SYSCLK Output System Clock High Clock for external I/O devices. Outputs a clock in full speed mode (at the same frequency as the G-Bus clock (GBUSCLK) frequency), half speed mode (at one half the GBUSCLK frequency), third speed mode (at one third the GBUSCLK frequency), or quarter speed mode (at one quarter the GBUSCLK frequency).
Chapter 3 Signals 3.1.4 DMA Interface Signals Table 3.1.4 DMA Interface Signals Signal Name Type Description Initial State DMAREQ[3:0] Input DMA Request Input (other than DMA transfer request signals from an external I/O device. DMAREQ[2]) The DMAREQ[2] signal shares the pin with the ACRESET* signal. The boot configuration signal on the ADDR[9] pin selects between DMAREQ[2] and ACRESET* (refer to Section “3.3 Pin multiplex”).
Page 59
Chapter 3 Signals Table 3.1.5 PCI Interface Signals (2/2) Signal Name Type Description Initial State DEVSEL* Input/output Device Select Input The target asserts this signal in response to access from the initiator. REQ[3:2]* Input Request Input Signals used by the master to request bus mastership. The boot configuration signal on the DATA[2] pin determines whether the built-in PCI bus arbiter is used.
Serial, Time Division Multiplexed, AC ‘97 Input Stream Input When this pin is used as SDIN[1], pull down by the resister on the board. (Regarding the value of register, please ask the Engineering Department in Toshiba). SDIN[0] Input Serial, Time Division Multiplexed, AC '97 Input Stream Input SDIN[0] shares the pin with the PIO[3] signal.
Chapter 3 Signals 3.1.11 Extended EJTAG Interface Signals Table 3.1.11 Extended EJTAG Interface Signals Signal Name Type Description Initial State Input JTAG Test Clock Input Input Clock input signal for JTAG. TCK is used to execute JTAG instructions and input/output data. TDI/DINT* Input JTAG Test Data Input/Debug Interrupt...
Test pins. These pins must be left open or fixed to High. TEST[1]* may be used when debugging the system. Toshiba recommends that your board design enable the pin to be driven low after the TX4937 is mounted on the PC board.
Chapter 3 Signals Boot Configuration The ADDR[19:0] and DATA[15:0] signals can also function as configuration signals for initially setting various functions upon booting the system. The states of the configuration signals immediately after the RESET* or CGRESET* signal is deasserted are read as initial values for the TX4937 internal registers. A High signal level sets a value of 1 and a Low signal level sets a value of 0.
Page 65
Chapter 3 Signals Table 3.2.2 Boot Configuration Specified with the ADDR[19:0] Signals (1/2) Corresponding Configuration Signal Description Register Bit Determined at ADDR[19] PCI Controller Mode Select CCFG. PCIMODE RESET* deassert edge Specifies the operating mode of the TX4937 PCI controller. L = Satellite H = Host ADDR[18]...
Page 66
Chapter 3 Signals Table 3.2.2 Boot Configuration Specified with the ADDR[19:0] Signals (2/2) Signal Corresponding Configuration Description Register Bit Determined at ADDR[4] Initial Setting of Boot PCFG[56:54] RESET* deassert edge Select initial setting derivability of SDRAM interface signals L = 8mA H = 16mA DATA[63:0], CB[7:0], DQM[7:0] ADDR[3:0]...
Page 67
Chapter 3 Signals Table 3.2.3 Boot Configuration Specified with the DATA[22:0] Signals Corresponding Configuration Signal Description Register Bit Determined at ⎯ ⎯ DATA[22:16] Reserved DATA[15:8] Boot Configuration CCFG.BCFG RESET* deassert edge Reads the board information and accordingly sets the boot configuration field (BCFG) of the chip configuration register (CCFG).
Chapter 3 Signals Pin multiplex The TX4937 has some multiplexed pins. Each pin is used for different functions depending on the settings of the ADDR[18]/[9] boot configuration signal. Table 3.3.1 shows how to set the function for each pin. Table 3.3.1 Pin multiplex Function on pin-multiplex Signal PIO[15:8]...
Chapter 4 Address Mapping Address Mapping This chapter explains the physical address map of TX4937. Please refer to "64-bit TX System RISC TX49/H2, TX49/H3, TX49/H4 Core Architecture" about the details of mapping to a physical address from the virtual address of TX49/H3 core. TX4937 Physical Address Map TX4937 supports up to 64G (2 ) bytes of physical address.
Chapter 4 Address Mapping Register Map 4.2.1 Addressing TX4937 internal registers are to be accessed through 64 K bytes address space that is based on physical address 0xF_FF1F_0000 or pointed address by RAMP register (refer to 5.2.7). Figure 4.2.1 shows how to generate internal register address. Physical address 1 and physical address 2 shown Figure 4.2.1 access the same register.
Page 71
Chapter 4 Address Mapping 4.2.3 Register Map Please refer to “10.5 PCI Configuration Space Register” about PCI configuration register. Table 4.2.2 Register Map Offset Address Peripheral Controller Detail ⎯ 0x0000 to 0x7FFF Reserved 0x8000 to 0x8FFF SDRAMC Refer to “9.4” 0x9000 to 0x9FFF EBUSC Refer to “7.4”...
Page 72
Chapter 4 Address Mapping Table 4.2.3 Internal Registers (1/9) Offset Address Register Size (bit) Register Symbol Register Name SDRAM Controller (SDRAMC) 0x8000 SDCCR0 SDRAM Channel Control Register 0 0x8008 SDCCR1 SDRAM Channel Control Register 1 0x8010 SDCCR2 SDRAM Channel Control Register 2 0x8018 SDCCR3 SDRAM Channel Control Register 3...
Chapter 5 Configuration Registers Configuration Registers Detailed Description The configuration registers set up and control the basic functionality of the entire TX4937. Refer to Section 5.2 for details of each configuration register. Also refer to sections mentioned in the description about each bit field.
Chapter 5 Configuration Registers 5.2.1 Chip Configuration Register (CCFG) 0xE000 For the bit fields whose initial values are set by boot configuration (refer to Section 3.2), the initial input signal level and the corresponding register value are indicated. Reserved : Type : Initial value Reserved BCFG...
Page 84
Chapter 5 Configuration Registers Mnemonic Field Name Description Initial Value Read/Write PCI 66MHz Used to inform the device connected to the PCI bus that a 66 PCI66 Mode MHz operation is to be performed. This bit is valid only when the PCI controller of the TX4937 is in host mode.
Page 85
Chapter 5 Configuration Registers Mnemonic Field Name Description Initial Value Read/Write 12:10 PCIDIVMODE PCICLK Specifies the frequency division ratio of the PCI bus clock ADDR[11:10] Frequency output (PCICLK[5:0]) frequency to the clock frequency Division Ratio (CPUCLK) of the TX49/H3 core. 001: PCICLK frequency = CPUCLK frequency ÷...
Indicates the minor extra code. Code MJREV Major Revision Indicates the major revision of the product. Code Contact Toshiba technical staff for the latest information. MINREV Minor Revision Indicates the minor revision of the product. Code Contact Toshiba technical staff for the latest information.
Chapter 5 Configuration Registers 5.2.3 Pin Configuration Register (PCFG) 0xE010 For the bit fields whose initial values are set by boot configuration (refer to Section 3.2), the initial input signal level and the corresponding register value are indicated. Reserved DRVCB DRVDQM DRVCKE DRVRAS DRVCAS DRVWE DRVDATA DRVADDR...
Page 88
Chapter 5 Configuration Registers Mnemonic Field Name Description Initial Value Read/Write WE Signal DRVWE Specifies the driving capability of the WE* signal. ADDR[5] Control L : 0 = 8 mA H : 1 = 16 mA SDRAM CS Specifies the driving capability of the SDCS[3:0]* signals. ADDR[5] 48:45 DRVCS[3:0]...
Page 89
Chapter 5 Configuration Registers Mnemonic Field Name Description Initial Value Read/Write Shared-Pin Indicates which function, PIO[15:8] or CB[7:0], the shared pins SEL1 ADDR[18] Status 1 are set to. L: 0 = The shared pins are set to PIO[15:8]. H: 1 = The shared pins are set to CB[7:0]. ⎯...
Chapter 5 Configuration Registers 5.2.4 Timeout Error Access Address Register (TOEA) 0xE018 Reserved : Type : Initial value Reserved TOEA[35:32] : Type : Initial value TOEA[31:16] : Type : Initial value TOEA[15:0] : Type : Initial value Mnemonic Field Name Description Initial Value Read/Write ⎯...
Chapter 5 Configuration Registers 5.2.5 Clock Control Register (CLKCTR) 0xE020 Bit 32 and bits 15-0 are reset bits for the on-chip peripheral modules. To bring on-chip peripheral modules out of the reset state, the corresponding bits must be cleared by software. Before clearing them, wait at least 128 CPU clock cycles after they are set.
Page 92
Chapter 5 Configuration Registers Mnemonic Field Name Description Initial Value Read/Write SIO0 Clock SIO0CKD Controls clock pulses for the SIO0 controller. Disable 0 = Supply clock pulses. 1 = Do not supply clock pulses. SIO1 Clock SIO1CKD Controls clock pulses for the SIO1 controller. Disable 0 = Supply clock pulses.
Chapter 5 Configuration Registers 5.2.6 G-Bus Arbiter Control Register (GARBC) 0xE030 Reserved : Type : Initial value Reserved : Type : Initial value Reserved ARBMD : Type : Initial value PRIORITY Reserved : Type 000_001_010_011_100 : Initial value Mnemonic Field Name Description Initial Value Read/Write ⎯...
Page 94
Chapter 5 Configuration Registers 5.2.7 Register Address Mapping Register (RAMP) 0xE048 Reserved : Type : Initial value Reserved : Type : Initial value Reserved RAMP[35:32] : Type : Initial value RAMP[31:16] : Type 0xFF1F : Initial value Mnemonic Field Name Description Initial Value Read/Write ⎯...
Chapter 6 Clocks Clocks TX4937 Clock Signals Figure 6.1.1 shows the configuration of TX4937 blocks and clock signals. Table 6.1.1 describes each clock signal. Table 6.1.2 shows the relationship among different clock signals when the CPU clock frequency is 266 MHz. Table 6.1.3 shows the relationship among different clock signals when the CPU clock frequency is 300 MHz.
Page 96
Chapter 6 Clocks Table 6.1.1 TX4937 Clock Signals (1/2) Related Related Registers Configuration Signals (Refer to Chapters 5 Clock Input/Output Description (Refer to Section and 10.) 3.2.) ⎯ ⎯ MASTERCLK Input Master input clock for the TX4937. The TX4937 internal clock generator multiplies or divides MASTERCLK to generate internal clock pulses.
Page 97
Chapter 6 Clocks Table 6.1.1 TX4937 Clock Signals (2/2) Related Related Registers Configuration Signals Clock Input/Output Description (Refer to Chapters 5 (Refer to Section and 10.) 3.2.) PCICLK[5:0] Output Clock supplied to devices on the PCI bus. ADDR[11:10] CCFG.PCIDIVMODE PCFG.PCICLKEN[5:0] The PCICLKEN bit of the PCFG register can disable the output of PCICLK.
Chapter 7 External Bus Controller External Bus Controller Features The External Bus Controller is used for accessing ROM, SRAM memory, and I/O peripherals. The features of this bus are described below. (1) 8 independent channels (2) Supports access to ROM (mask ROM, page mode ROM, EPROM, EEPROM), SRAM, flash memory, and I/O peripherals.
Chapter 7 External Bus Controller Detailed Explanation 7.3.1 External Bus Control Register The External Bus Controller (EBUSC) has eight channels. This register contains one Channel Control Register (EBCCRn) for each channel, and all settings can be made independently for each channel. Either Word or Double-word access is possible for a Control Register.
Chapter 7 External Bus Controller 7.3.2 Global/Boot-up Options In addition to the settings made separately for each channel, the Channel Control Registers can also use global options that make settings common to all channels. External Bus Controller Channel 0 can be used as a Boot memory channel. Channel 0 is set by the external pins (Boot pins) during reset.
Chapter 7 External Bus Controller 7.3.3 Address Mapping Each of the eight channels can use the Base Address field (EBCCRn.BA[35:20]) and the Channel Size field (EBCCRn.CS[3:0]) of the External Bus Channel Control Register to map to any physical address. A channel is selected when the following equation becomes True. paddr[35:20] &...
Chapter 7 External Bus Controller 7.3.4 External Address Output The maximum memory space size for each channel is 1 GB (230B). Addresses are output by dividing the 20-bit ADDR[19:0] signal into two parts: the upper address and the lower address. The address bit output to each bit of the ADDR[19:0] signal changes according to the setting of the channel data bus width.
Chapter 7 External Bus Controller 7.3.5 Data Bus Size The External Bus Controller supports devices with a data bus width of 8 bits, 16 bits, and 32 bits. The data bus width is selected using the BSZ field of the Channel Control Register (EBCCRn). The address bits output to each bit of the ADDR[19:0] signal change according to the mode.
Page 108
Chapter 7 External Bus Controller 7.3.5.3 8-bit Bus Width Mode DATA[7:0] becomes valid. Bits [19:0] of the physical address are output to ADDR[19:0]. The internal address bits [27:20], which are the upper address, are multiplexed to external ADDR[19:12]. In other words, the address is shifted up two bits or more relative to the 32-bit bus mode when output.
Chapter 7 External Bus Controller 7.3.6 Access Mode The following four modes are available as controller access modes. These modes can be set separately for each channel. • Normal mode • Page mode • External ACK mode • Ready mode Depending on the combination of modes in each channel, either of two modes in which the ACK*/Ready signal operates differently (ACK*/Ready Dynamic mode, ACK*/Ready Static mode) is selected by the ACK*/Ready Mode bit (CCFG.ARMODE) of the Chip Configuration Register.
Page 110
Chapter 7 External Bus Controller 7.3.6.1 Normal Mode When in this mode, the ACK*/Ready signal becomes an ACK* output when it is in the ACK*/Ready Dynamic mode. The ACK*/Ready signal becomes High-Z when it is in the ACK*/Ready Static mode. Wait cycles are inserted according to the EBCCRn.PWT and EBCCRn.WT value at the access cycle.
Page 111
Chapter 7 External Bus Controller 7.3.6.3 Ready Mode When in this mode, the ACK*/Ready pin becomes Ready input, and the cycle is ended by Ready input from an external device. Ready input is internally synchronized. See Section “7.3.7.5 Ready Input Timing” for more information regarding the operation timing. When the Wait cycle count specified by EBCCREBCCRn.PWT:WT elapses, a check is performed to see whether the Ready signal was asserted.
Page 112
Chapter 7 External Bus Controller 7.3.6.4 Page Mode When in this mode, the ACK*/Ready pin becomes ACK* output when it is in the Dynamic mode. When it is in the ACK*/Ready Static mode, the ACK*/Ready signal becomes HiZ. Wait cycles are inserted into the access cycle according to the values of EBCCRn.PWT and EBCCRn.WT.
Chapter 7 External Bus Controller 7.3.7 Access Timing 7.3.7.1 SHWT Option The SHWT option is selected when the SHWT (Setup/Hold Wait Time) field of the Channel Control Register is a value other than “0.” This option inserts Setup cycles and Hold cycles between signals as follows.
Page 114
Chapter 7 External Bus Controller SYSCLK CE*/BE* ADDR [19:0] SWE*/BWE* DATA [31:0] ACK*/READY (Output) EBCCRn.PWT:WT=0 EBCCRn.SHWT=1 Figure 7.3.6 SHWT 1 Wait (Normal Mode, Single Read/Write Cycle) 7.3.7.2 ACK*/READY Input/Output Switching Timing When in the ACK*/Ready Static mode, the ACK*/Ready signal is always an input signal. When in the ACK*/Ready Dynamic mode, the ACK*/Ready signal is an input signal when in the External ACK mode or the Ready mode, but is an output signal in all other modes.
Page 115
Chapter 7 External Bus Controller 7.3.7.3 ACK* Output Timing (Normal Mode, Page Mode) When in the Normal mode and Page mode of the ACK*/Ready Dynamic mode, the ACK* signal becomes an output signal and is asserted for one clock cycle to send notification to the external device of the data Read and data Write timing.
Page 116
Chapter 7 External Bus Controller 7.3.7.4 ACK* Input Timing (External ACK Mode) The ACK* signal becomes an input signal when in the external ACK mode. During a Read cycle, data is latched two clock cycles after assertion of the ACK* signal is acknowledged (Figure 7.3.9 ACK* Input Timing (Single Read Cycle)).
Page 118
Chapter 7 External Bus Controller 7.3.7.5 Ready Input Timing The ACK*/Ready pin is used as a Ready input when in the Ready mode. The Ready input timing is the same as the ACK* input timing explained in 7.3.7.4 ACK* Input Timing (External ACK Mode) with the two following exceptions.
Chapter 7 External Bus Controller 7.4.1 External Bus Channel Control Register (EBCCRn) 0x9000 (ch. 0), 0x9008 (ch. 1) 0x9010 (ch. 2), 0x9018 (ch. 3) 0x9020 (ch. 4), 0x9028 (ch. 5) 0x9030 (ch. 6), 0x9038 (ch. 7) Channel 0 can be used as Boot memory. Therefore, the default is set by the Boot signal (see 7.3.2 Global/Boot-up Options).
Page 122
Chapter 7 External Bus Controller Mnemonic Field Name Description Read/Write Page Mode 17:16 External Bus Control Page Mode Wait Time (Default: 11 / 00) Wait time Specifies the wait cycle count during Burst access when in the Page mode. 00: 0 wait cycles 10: 2 wait cycles 01: 1 wait cycle 11: 3 wait cycles...
Page 123
Chapter 7 External Bus Controller Mnemonic Field Name Description Read/Write Ready Input External Bus Control Ready Input Mode (Default: 0) Mode Specifies whether to use the Ready mode. 0: Disable the Ready mode. 1: Enable the Ready mode. Note: The Ready mode cannot be used when the Page mode is selected. Bus Speed External Bus Control Bus Speed (Default: ADDR[7:6] / 00) Specifies the External Bus speed.
Chapter 7 External Bus Controller Timing Diagrams Please take the following points into account when referring to the timing diagrams. (1) The clock frequency of the SYSCLK signal can be set to one of the following divisions of the internal bus clock (GBUSCLK): 1/1, 1/2, 1/3, or 1/4.
Chapter 7 External Bus Controller 7.5.9 External ACK Mode Access (32-bit Bus) SYSCLK ADDR[19:0] ACE* OE*/BUSSPRT* SWE* BWE* DATA[31:0] ACK* Note 1: The TX4937 sets the ACK* signal to High Impedance in the S1 State. Note 2: External devices drive the ACK* signal to Low (assert the signal) by the ES1 State. Note 3: External devices drive the ACK* signal to High (deassert the signal) in the ES2 State.
Chapter 7 External Bus Controller Flash ROM, SRAM Usage Example Figure 7.6.1 illustrates example Flash ROM connections, and Figure 7.6.2 illustrates example SRAM connections. Also, Figure 7.6.3 illustrates example connections with the SDRAM and the bus separated. Since connecting multiple memory devices such as SDRAM and ROM onto a single bus increases the load, 100 MHz class high-speed SDRAM access may not be performed normally.
Chapter 8 DMA Controller DMA Controller Features The TX4937 contains two four-channel DMA Controller (DMAC0, DMAC1) that executes DMA (Direct Memory Access) with memory and I/O devices. The DMA Controller has the following characteristics. <DMAC0, DMAC1> • Has four on-chip DMA channels •...
Chapter 8 DMA Controller Detailed Explanation 8.3.1 Transfer Mode The DMA Controller (DMAC0, DMAC1) supports five transfer mode types (refer to Table 8.3.1 below). The setting of the External Request bit (DMCCRn.EXTRQ) of the DMA Channel Control Register selects whether transfer with an I/O device is a DMA transfer. •...
Chapter 8 DMA Controller 8.3.2 On-chip Registers The DMA Controller has two shared registers that are shared by four channels. Section 8.4 explains each register in detail. • Shared Registers DMMCR: DMA Master Control Register DMMFDR: DMA Memory Fill Data Register •...
Page 162
Chapter 8 DMA Controller • When edge detection is set (DMCCRn.EGREQ = 1) Please set up assertion of the DMAREQ[n] signal so the DMAREQ[n] signal is asserted after the DMAACK[n] signal corresponding to a previously asserted DMAREQ[n] signal is deasserted. The DMAREQ[n] signal will not be detected even if it is asserted before DMAACK[n] is deasserted.
Page 163
Chapter 8 DMA Controller 8.3.3.2 Dual Address Transfer If the Single Address bit (DMCCRn.SNGAD) has been cleared, access to external I/O devices and to external memory is each performed continuously. Each access is the same as normal access except when the DMAACK[n] signal is asserted. Please refer to “8.3.8 Dual Address Transfer”...
Chapter 8 DMA Controller When the Chain End bit (CHDN) is cleared, the DMADONE* signal is asserted when the DMAACK[n] signal for the last data transfer in a DMA transfer specified by the current DMA Channel Register is asserted. Namely, if the Link List Command chain is used, there is one assertion at the end of each data transfer specified by each Descriptor.
Chapter 8 DMA Controller 8.3.5 Memory-Memory Copy Mode It is possible to copy memory from any particular address to any other particular address when in the Memory-Memory Copy mode. Set the DMA Channel Control Register (DMCCRn) as follows. • DMCCRn.EXTRQ = 0: Memory Transfer mode •...
Page 166
Chapter 8 DMA Controller 8.3.7.1 Channel Register Settings During Single Address Transfer Table 8.3.2 shows restrictions of the Channel Register settings during Single Address transfer. If these restrictions are not met, then a Configuration Error is detected, the Configuration Error bit (CFERR) of the DMA Channel Status Register (DMCSRn) is set and DMA transfer is not performed.
Page 167
Chapter 8 DMA Controller 8.3.7.2 Burst Transfer During Single Address Transfer According to the SDRAM Controller and External Bus Controller specifications, the DMA Controller cannot perform Burst transfer that spans across 32-double word boundaries. Consequently, if the address that starts DMA transfer is not a multiple of the transfer setting size (DMCCRn.XFSZ) (is not aligned), transfer cannot be performed by any of the transfer sizes that were specified by a Burst transfer.
Chapter 8 DMA Controller 8.3.8 Dual Address Transfer This section explains the register settings for Dual Address transfer (DMCCRn.SNGAD = 0). This applies to the following DMA transfer modes. • External I/O (Dual Address) transfer • Internal I/O DMA transfer •...
Page 169
Chapter 8 DMA Controller Table 8.3.3 Channel Register Setting Restrictions During Dual Address Transfer DMSARn[2:0] DMDARn[2:0] Transfer Setting DMSAIRn DMDAIRn DMCCRn DMSAIRn DMDAIRn Size DMSAIRn DMDAIRn DMCNTRn setting is a setting is a REVBYTE setting is 0 setting is 0 (DMCCRn.XFSZ) negative negative...
Page 170
Chapter 8 DMA Controller Source Address FIFO (8 Double Words) Destination Address Figure 8.3.3 Dual Address Burst Transfer (DMCCRn.USEXFSZ = 1) Figure 8.3.4 shows Dual Address Burst transfer when the Transfer Size Mode bit (DMCCRn.USEXFSZ) is set to “0”, the lower 8 bits of the Transfer Start address for the transfer source are set to 0xA8, the lower 8 bits of the Transfer Start address for the transfer destination are set to (a) 0x28/(b) 0x30, and the Transfer Setting Size (DMCCRn.XFSZ) is set to 8 double words.
Page 171
Chapter 8 DMA Controller When the Destination Burst Inhibit bit (DMCCRn.DBINH) is set, data written from the FIFO to the Destination Address is divided into multiple 8-byte Single Write transfers, then transfer is executed. When the Burst Inhibit bit is set, the TX4937 always performs an 8-byte Single transfer. For accesses to an external I/O device, a Single transfer is divided into multiple accesses, depending on its bus width.
Chapter 8 DMA Controller 8.3.9 DMA Transfer The sequence of DMA transfer that uses only the DMA Channel Register is as follows below. Select DMA request signal When performing external I/O or internal I/O DMA, set the DMA Request Select field (PCFG.DMASEL) of the Pin Configuration Register.
Chapter 8 DMA Controller 8.3.10 Chain DMA Transfer Table 8.3.4 shows the data structure in memory that the DMA Command Descriptor has. When the Simple Chain bit (SMPCHN) of the DMA Channel Control Register (DMCCRn) is set, only the initial four double words are used.
Page 175
Chapter 8 DMA Controller “A” “D” “B” “E” “C” Figure 8.3.5 DMA Command Descriptor Chain The sequence of Chain DMA transfer is as follows below. Select DMA request signal When performing external I/O or internal I/O DMA, set the DMA Request Select field (PCFG.DMASEL) of the Pin Configuration Register.
Chapter 8 DMA Controller Initiate DMA transfer Setting the address of the DMA Command Descriptor at the beginning of the chain list in the DMA Chain Address Register (DMCHARn) automatically initiates DMA transfer. First, the value stored in each field of the DMA Command descriptor at the beginning of the Chain List is read to each corresponding DMA Channel register (Chain transfer), then DMA transfer is performed according to the read value.
Chapter 8 DMA Controller 8.3.12 Interrupts An interrupt number (10 – 13) of the Interrupt Controller is mapped to each channel. In addition, there are completion interrupts for when transfer ends normally and error interrupts for when transfer ends abnormally for each channel. When an interrupt occurs, then the bit that corresponds to either the Normal Interrupt Status field (DIS[3:0]) or the Error Interrupt Status field (EIS[3:0]) of the DMA Master Control Register (DMMCR) is set.
Chapter 8 DMA Controller 8.3.14 Arbitration Among DMA Channels The DMA Controller has an on-chip DMA Channel Arbiter that arbitrates bus ownership among four DMA channels that use the internal bus (G-Bus). There are two methods for determining priority: the round robin method and the fixed priority method.
Chapter 8 DMA Controller 8.4.1 DMA Master Control Register (DM0MCR, DM1MCR) Offset address: DMAC0 0xB150, DMAC1 0xB950 This register controls the entire DMA Controller. Reserved : Type : Initial value Reserved : Type : Initial value EIS[3:0] DIS[3:0] Reserved FIFVC : Type : Initial value 0000...
Page 182
Chapter 8 DMA Controller Mnemonic Field Name Description Read/Write FIFO Use Enable [3:0] (Default: 0x0) FIFUM[3:0] FIFO Use Enable [3:0] Each channel specifies whether to use 8-double word FIFO in Dual Address transfer. FIFUM[n] corresponds to channel n. Refer to “8.3.8.2 Burst Transfer During Dual Address Transfer” for more information.
Page 184
Chapter 8 DMA Controller Mnemonic Field Name Description Read/Write Destination Burst Inhibit (Default: 0) DBINH Destination Burst Inhibit During Dual Address transfer, this bit sets whether to perform Burst transfer or Single transfer on a Write cycle to the address set from FIFO to DMDARn when Burst transfer is set by DMCCRn.XFSZ.
Page 185
Chapter 8 DMA Controller Mnemonic Field Name Description Read/Write EXTRQ External Request External Request (Default: 0) Sets the Request Transfer mode. 1: I/O DMA transfer mode This bit is used by the External I/O DMA Transfer mode and the Internal I/O DMA Transfer mode.
Page 186
Chapter 8 DMA Controller Mnemonic Field Name Description Read/Write CHNEN Chain Enable Chain Enable (Default: 0) This bit indicates whether Chain operation is being performed. Read Only. This bit is cleared when either the Master Enable bit (DMMCR.MSTEN) is cleared or the Channel Reset bit (DMCCRn.CHRST) is set. This bit is set if a value other than “0”...
Page 188
Chapter 8 DMA Controller Mnemonic Field Name Description Read/Write XFACT Transfer Active Transfer Active (Default: 0) This value is a copy of the Transfer Active bit (XFACT) of the DMA Channel Control Register (DMCCRn). ABCHC Error Complete Error Completion (Default: 0) This bit indicates whether an error occurred during DMA transfer.
Chapter 8 DMA Controller 8.4.10 DMA Memory Fiill Data Register (DM0MFDR, DM1MFDR) Offset Address: DMAC0 0xB148, DMAC1 0xB948 : Type ⎯ : Initial value : Type ⎯ : Initial value : Type ⎯ : Initial value : Type ⎯ : Initial value Mnemonic Field Name Description...
Chapter 8 DMA Controller Timing Diagrams This section contains timing diagrams for the external I/O DMA transfer mode. The DMAREQ[n] signals and DMAACK[n] signals in the timing diagrams are set to Low Active. 8.5.1 Single Address Single Transfer from Memory to I/O (32-bit ROM) SYSCLK ADDR [19:0] 1c040...
Chapter 8 DMA Controller 8.5.2 Single Address Single Transfer from Memory to I/O (16-bit ROM) Figure 8.5.2 Single Address Single Transfer from Memory to I/O (Single Read of 32-bit Data from 16-bit ROM) 8-41...
Chapter 8 DMA Controller 8.5.3 Single Address Single Transfer from I/O to Memory (32-bit SRAM) SYSCLK ADDR [19:0] 1c040 00140 ACE* OE*/BUSSPRT* SWE* BWE* DATA [31:0] 00000100 ACK* DMAREQ[n] DMAACK DMADONE* Figure 8.5.3 Single Address Single Transfer from I/O to Memory (Single Write of 32-bit Data to 32-bit SRAM) 8-42...
Chapter 8 DMA Controller 8.5.4 Single Address Burst Transfer from Memory to I/O (32-bit ROM) Figure 8.5.4 Single Address Burst Transfer from Memory to I/O (Burst Read of 4-word Data from 32-bit ROM) 8-43...
Chapter 8 DMA Controller 8.5.5 Single Address Burst Transfer from I/O to Memory (32-bit SRAM) Figure 8.5.5 Single Address Burst Transfer from I/O to Memory (Burst Write of 4-word Data from 32-bit SRAM) 8-44...
Page 201
Chapter 8 DMA Controller Figure 8.5.6 Single Address Burst Transfer from I/O to Memory (Burst Write of 8-word Data to 32-bit SRAM) 8-45...
Chapter 8 DMA Controller 8.5.6 Single Address Single Transfer from Memory to I/O (16-bit ROM) SYSCLK ADDR [19:0] 38080 00080 ACE* OE*/BUSSPRT* SWE* BWE* DATA [15:0] 0000 ACK* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.7 Single Address Single Transfer from Memory to I/O (Single Read from 16-bit ROM to 16-bit Data) 8-46...
Chapter 8 DMA Controller 8.5.7 Single Address Single Transfer from I/O to Memory (16-bit SRAM) Figure 8.5.8 Single Address Single Transfer from I/O to Memory (Single Write of 16-bit Data to 16-bit SRAM) 8-47...
Chapter 8 DMA Controller 8.5.8 Single Address Single Transfer from Memory to I/O (32-bit Half Speed ROM) Figure 8.5.9 Single Address Single Transfer from Memory to I/O (Single Read of 32-bit Data from 32-bit Half Speed ROM) 8-48...
Chapter 8 DMA Controller 8.5.9 Single Address Single Transfer from I/O to Memory (32-bit Half Speed SRAM) Figure 8.5.10 Single Address Single Transfer from I/O to Memory (Single Write of 32-bit Data to 32-bit Half Speed SRAM) 8-49...
Chapter 8 DMA Controller 8.5.10 Single Address Single Transfer from Memory to I/O (64-bit SRAM) SDCLK ADDR [19:5] 0000 0040 RAS* CAS* CKE* DQM [7:0] DATA [63:0] ACK* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.11 Single Address Single Transfer from Memory to I/O (Single Read of 64-bit Data from 64-bit SDRAM) 8-50...
Chapter 8 DMA Controller 8.5.11 Single Address Single Transfer from I/O to Memory (64-bit SDRAM) SDCLK ADDR [19:5] 0001 0040 RAS* CAS* CKE* DQM [7:0] DATA [63:0] ACK* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.12 Single Address Single Transfer from I/O to Memory (Single Write of 64-bit Data to 64-bit SDRAM) 8-51...
Chapter 8 DMA Controller 8.5.12 Single Address Single Transfer from Memory to I/O of Last Cycle when DMADONE* Signal is Set to Output SDCLK ADDR [19:5] 0000 0041 RAS* CAS* CKE* OE*/BUSSPRT* DQM [7:0] DATA [63:0] ACK* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.13 Single Address Single Transfer from Memory to I/O (Single Read of 64-bit Data from 64-bit SDRAM) 8-52...
Chapter 8 DMA Controller 8.5.13 Single Address Single Transfer from Memory to I/O (32-bit SDRAM) Figure 8.5.14 Single Address Single Transfer from Memory to I/O (Single Read of 32-bit Data from 32-bit SDRAM) 8-53...
Chapter 8 DMA Controller 8.5.14 Single Address Single Transfer from I/O to Memory (32-bit SDRAM) SDCLK ADDR [19:5] 0002 0080 0081 RAS* CAS* CKE* DQM [7:0] DATA [31:0] 00000100 ACK* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.15 Single Address Single Transfer from I/O to Memory (Single Write of 32-bit Data to 32-bit SDRAM) 8-54...
Chapter 8 DMA Controller 8.5.17 External I/O Device (Non-burst) – SDRAM Dual Address Transfer SDCLK/SYSCLK ADDR[19:0] RAS* CAS* OE*/ BUSSPRT* DQM[7:0] DATA[31:0] Valid V V V ACK* ACE* SWE* BWE* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.20 Dual Address Transfer from External I/O Device (Non-Burst) to SDRAM (4-word Burst Transfer to 32-bit SDRAM: Set DMCCRn.SBINH to “1”) 8-59...
Page 216
Chapter 8 DMA Controller SDCLK/SYSCLK ADDR[19:0] RAS* CAS* OE*/BUSSPRT* DQM[7:0] DATA[31:0] V V V V Valid Valid Valid Valid ACK* ACE* SWE* BWE* DMAREQ[n] DMAACK[n] DMADONE* Figure 8.5.21 Dual Address Transfer from SDRAM to External I/O Device (4-word Burst Transfer from 32-bit SDRAM: Set DMCCRn.DBINH to “1”) 8-60...
Chapter 9 SDRAM Controller SDRAM Controller Characteristics The SDRAM Controller (SDRAMC) generates the control signals required to interface with the SDRAM. There are a total of four channels, which can each be operated independently. The SDRAM Controller supports various bus configurations and a memory size of up to 2 GB. The SDRAM has the following characteristics.
Chapter 9 SDRAM Controller Detailed Explanation 9.3.1 Supported SDRAM configurations This controller supports the SDRAM configurations listed below in Table 9.3.1. The MW field of the SDRAM Channel Control Register (SDCCRn) can be used to separately set the data bus width for each channel to either 64 bits or 32 bits. DATA[31:0] and DQM[3:0] are used when using a 32-bit data bus.
Chapter 9 SDRAM Controller 9.3.2 Address Mapping 9.3.2.1 Physical Address Mapping It is possible to map each of the four channels to an arbitrary physical address using the Base Address field (SDCCRn.BA[35:21]) of the SDRAM Channel Control Register and the Address Mask Field (SDCCRn.AM[35:21]).
Page 221
Chapter 9 SDRAM Controller 9.3.2.2 Address Signal Mapping (64-bit Data Bus) Table 9.3.2 shows the address signal mapping when using a 64-bit data bus. B0 is used in the bank selection in memory with a two-bank configuration. [B1:B0] are used in the bank selection in memory with a four-bank configuration.
Page 223
Chapter 9 SDRAM Controller 9.3.2.3 Address Signal Mapping (32-bit Data Bus) Table 9.3.3 shows the address signal mapping when using a 32-bit data bus. B0 is used in the bank selection in memory with a two-bank configuration. [B1:B0] are used in the bank selection in memory with a four-bank configuration.
Chapter 9 SDRAM Controller 9.3.3 Initialization of SDRAM The TX4937 Command Register has functions for generating the cycles required for initializing SDRAM. Using software to set each register makes it possible to execute initial settings at a particular timing. Set the SDRAM Channel Control Register (SDCCRn). Set the SDRAM Timing Register (SDCTR).
Chapter 9 SDRAM Controller 9.3.4 Initialization of Memory Data, ECC/Parity The SDRAMC has functions for simultaneously performing Memory Writes to multiple memory channels. These functions are effective when quickly initializing data memory or ECC/parity memory. Channels for which both the Channel Enable bit (SDCCRn.CE) and the Master Enable bit (SDCCRn.ME) of the SDRAM Channel Control Register are set become the Master channel.
Chapter 9 SDRAM Controller 9.3.5 Low Power Consumption Function 9.3.5.1 Power Down Mode, Self-Refresh Mode SDRAM has two low power consumption modes called the Power Down mode and the Self- Refresh mode. Memory data is lost in the case of the Power Down mode since Memory Refresh is not performed, but the amount of power consumed is reduced the most.
Chapter 9 SDRAM Controller 9.3.6 Bus Errors The SDRAMC detects bus errors in the following situations: • Bus time-out occurs during Read or Write operation to the SDRAMC • ECC 2-bit fault error or Parity error occurs during SDRAM Read operation If a bus error occurs when accessing the SDRAMC, then the SDRAMC will immediately assert the current operation.
Chapter 9 SDRAM Controller 9.3.10 9.3.10.1 ECC/Parity Mode Table 9.3.5 shows the supported ECC/Parity functions. The ECC/Parity mode can be set separately for each channel using the ECC/Parity Mode field (SDCCRn.ECC) of the SDRAM Channel Control Register. The ECC enable bit (ECCCR.ECCE) of the ECC Control Register must be set in order to use the ECC function.
Page 230
Chapter 9 SDRAM Controller 9.3.10.2 ECC Error Notification When either an ECC error or a parity error occurs, error data is written into one of the following fields, then error notification is performed as described below: • Error Address Field (ERRAD) in the ECC Status Register (ECCSR) •...
Page 231
Chapter 9 SDRAM Controller 9.3.10.3 Adding Read Latency for Each ECC/Parity Mode When using the ECC/parity function, memory access latency is added according to which ECC/parity mode is selected, whether errors will be generated or not, the error type to be generated, and whether or not to generate bus errors.
Page 232
Chapter 9 SDRAM Controller 9.3.10.4 ECC Memory Access 8-bit check code is used whether the data bus width is 64 bits or 32 bits. For 32-bit data bus width, check code is generated for and the error check is performed on 64-bit data that consists of two 32-bit data at the double word boundary.
Chapter 9 SDRAM Controller 9.4.1 SDRAM Channel Control Register (SDCCRn) 0x8000 (ch. 0) 0x8008 (ch. 1) 0x8010 (ch. 2) 0x8018 (ch. 3) When the SDCCRn is programmed using a sequence of 32-bit store instructions, the base address and the address mask in the high-order 32-bit portion of the register must be written first, followed by the Channel Enable bit in the low-order 32-bit portion.
Page 235
Chapter 9 SDRAM Controller Mnemonic Field Name Description Read/Write Registered DIMM Registered DIMM (Default: 0) Specifies whether the SDRAM connected to the channel is Registered memory. 0: Disable Registered memory 1: Enable Registered memory ⎯ 14:13 — — Reserved Master Enable Master Enable (Default: 0) Specifies during ECC initialization whether a channel will be made the Master channel.
Chapter 9 SDRAM Controller 9.4.2 SDRAM Timing Register (SDCTR) 0x8040 Reserved :Type :Initial value Reserved :Type :Initial value PDAE CASL R/W :Type :Initial value Reserved :Type 0x30C :Initial value Mnemonic Field Name Description Read/Write ⎯ 63:34 — — Reserved 33:32 Write Active Data In to Active(t ) (Default: 11)
Page 237
Chapter 9 SDRAM Controller Mnemonic Field Name Description Read/Write Advanced CKE Advanced CKE enable (Default: 0) Enabling this function makes the timing at which CKE changes one cycle earlier. 0: Disable 1: Enable Power Down PDAE Power Down Auto Entry Enable (Default: 0) Auto Entry Enabling this function makes CKE become “L”...
Chapter 9 SDRAM Controller 9.4.3 SDRAM Command Register (SDCCMD) 0x8058 Reserved :Type :Initial value Reserved :Type :Initial value MDLNO VERNO :Type 0x30 0x10 :Initial value Reserved :Type :Initial value Mnemonic Field Name Description Read/Write ⎯ 63:32 — — Reserved 31:24 MDLNO Model Number Model Number (Default: 0x30)
Chapter 9 SDRAM Controller 9.4.4 ECC Control Register (ECCCR) 0xA000 MDLNO VERNO 0x10 0x10 :Type :Initial value Reserved :Type :Initial value DECC Reserved R/W :Type :Initial value Reserved Reserved ECCE R/W :Type :Initial value Mnemonic Field Name Description Read/Write 63:56 MDLNO Model Number Model Number (Default: 0x10)
Page 240
Chapter 9 SDRAM Controller Mnemonic Field Name Description Read/Write Single-Bit Error Single-Bit Error Interrupt Enable (Default: 0) Interrupt Enable Specifies whether to generate an interrupt during a single-bit error. 0: Disable 1: Enable ⎯ — — Reserved ECCE ECC Enable ECC Enable (Default: 0) Specifies whether to enable the ECC/Parity function.
Chapter 9 SDRAM Controller Timing Diagrams Please note the following when referring to the timing diagrams in this section: the shaded area each diagram expresses values that have yet to be determined. 9.5.1 Single Read (64-bit Bus) SDCLK SDCS* ADDR 7fff 0000 [19:5]...
Page 243
Chapter 9 SDRAM Controller SDCLK SDCS* ADDR [19:5] 7fff 0000 RAS* CAS* DQM [7:0] DATA [63:0] CB [7:0] ACK*/READY* = 3, t = 3, t = 1, 64-bit Bus) Figure 9.5.2 Single Read (t CASL 9-27...
Chapter 10 PCI Controller 10. PCI Controller 10.1 Features The TX4937 PCI Controller functions as a bus bridge between the TX4937 External PCI and the internal bus (G-Bus). 10.1.1 Overall • Compliant to “PCI Local Bus Specification Revision 2.2” • PCI Bus: 32-bit data bus;...
Chapter 10 PCI Controller 10.1.3 Target Function • Single and Burst transfer from the PCI Bus to the Internal Bus • Supports memory, I/O, and configuration cycles • Supports high-speed back-to-back transactions on the PCI Bus • Address mapping between the PCI Bus and the Internal bus can be modified •...
Chapter 10 PCI Controller 10.3 Detailed Explanation 10.3.1 Terminology Explanation The following terms are used in this chapter. • Initiator Means the bus Master of the PCI Bus. The TX4937 operates as the initiator when it obtains the PCI Bus and issues PCI access. •...
Page 263
Chapter 10 PCI Controller Registers in the PCI Controller Control Register that include an offset address in the range from 0xD000 to 0xD07F can only be accessed when in the Host mode and cannot be accessed when in the Satellite mode. These registers correspond to PCI Configuration Space Registers that an external PCI Host device accesses when in the Satellite mode.
Chapter 10 PCI Controller 10.3.3 Supported PCI Bus Commands Table 10.3.1 shows the PCI Bus commands that the PCI Controller supports. Table 10.3.1 Supported PCI Bus Commands C/BE Value PCI Command As Initiator As Target ⎯ 0000 Interrupt Acknowledge † ⎯...
Page 265
Chapter 10 PCI Controller The Memory Read command is issued if these conditions are not met, namely, if “0” is set to the Cache Line Size field (PCICFG1.CLS) of the PCI Configuration 1 Register. In the case of the target, a normal G-Bus cycle is issued to the address mapped from the PCI Bus to the G-Bus. •...
Chapter 10 PCI Controller Configuration cycles will be accepted as the target only when in the Satellite mode. After reset, Retry response to PCI Configuration access will continue until the software sets the Target Configuration Access Ready Bit (PCICFG.TCAR) of the PCI Controller Configuration Register. Please use the software to set this bit after the software initialization process ends and the software is ready to accept PCI configuration.
Page 267
Chapter 10 PCI Controller When expressed as a formula, conversion of a G-Bus address (GBusAddr[35:0]) into a PCI Bus Address (PCIAddr[39:0]) is as follows below. GBASE[35:8], PBASE[39:8], and AM[35:8] each represent the setting register of the corresponding access window indicated below in Table 10.3.2. The “&”...
Chapter 10 PCI Controller Table 10.3.3 Initiator Access Space Properties Register Enable Word Swap Memory Space 0 BusMasterEnable & PCICCFG.G2PM0EN G2PM0GBASE.BSWAP Memory Space 1 BusMasterEnable & PCICCFG.G2PM1EN G2PM1GBASE.BSWAP Memory Space 2 BusMasterEnable & PCICCFG.G2PM2EN G2PM2GBASE.BSWAP I/O Space BusMasterEnable & PCICCFG.G2PIOEN G2PIOGBASE.BSWAP BusMasterEnable: Host mode:...
Page 269
Chapter 10 PCI Controller When expressed as a formula, conversion of a PCI Bus Address (PCIAddr[39:0]) into a G-Bus address (GBusAddr[35:0]) is as follows below. GBASE[35:8], and PBASE[39:8] each represent the setting register of the corresponding access window indicated below in Table 10.3.4. The “&” symbol indicates a logical AND for each bit, and “|”...
Chapter 10 PCI Controller It is possible to set each space to valid/invalid, pre-fetch Read to valid/invalid, or to perform Word Swap (see10.3.7). Table 10.3.5 shows the settings registers for these properties. When pre-fetch Reads are set to valid, data transfer is performed on the G-Bus according to the size set by the Target Pre-fetch Read Burst Length Field (P2GCFG.TPRBL) of the P2G Configuration Register during a PCI target Read transaction.
Chapter 10 PCI Controller Initial state operation matches the correspondence between the address and byte data regardless of the endian mode (operation is address consistent). For example, if WORD (16-bit) data is written to address 0 of the PCI Bus when the TX4937 is in the Big Endian mode, the upper byte (address 0 in Big Endian) is written to PCI Bus address 0 and the lower byte (address 1 in Big Endian) is written to address 1 of the PCI Bus.
Chapter 10 PCI Controller PCI Reset is detected by either using the PCI Bus Reset Signal as the TX4937 overall reset signal or using the PCI Bus Reset Signal assertion detection device that the system provides. Then, the software reset the PCI Controller. The software uses a hardware reset (PCICCFG.HRST) of the PCI Controller Configuration Register to reset the PCI Controller.
Chapter 10 PCI Controller 10.3.9.2 PME* Signal (Satellite Mode) The following PMEs (Power Management Events) are reported when in the Satellite mode. • The PCI Host device sets the PME_En bit of the PMCSR Register in the TX4937 Configuration space. This makes it possible for the TX4937 to assert the PME* signal. Then, the PME_En Set bit (P2GSTATUS.PMEES) of the P2G Status Register is set.
Page 274
Chapter 10 PCI Controller PDMAC Status Register (PDMSTATUS) Clearing Clears any remaining status from a previous DMA transfer. PDMAC Configuration register (PDMCFG) Setting Clears the Channel Reset bit (CHRST), and makes settings such as the data transfer direction (XFRDIRC), and the data transfer unit size (XFRSIZE). DMA Transfer Initiation Setting the Transfer Active bit (XFRACT) of the PDMAC Configuration Register initiates DMA transfer.
Page 275
Chapter 10 PCI Controller The DMA transfer procedure is as follows when in the Chain DMA mode. Count Register Setting Sets “0” to the PDMAC Count Register (PMDCTR). DMA Command Descriptor Chain Construction Constructs the DMA Command Descriptor Chain in memory. PDMAC Status Register (PDMSTATUS) Clearing Clears any remaining status from a previous DMA transfer.
Chapter 10 PCI Controller 10.3.10.3 Dynamic Chain Operation It is possible to dynamically add other DMA Command Descriptor Chains to a DMA Command Descriptor Chain that is currently being processed when executing DMA data transfer. This is done according to the following procedure. DMA Command Descriptor Chain Construction Constructs a DMA Command Descriptor Chain in memory.
Page 277
Chapter 10 PCI Controller 10.3.11.2 PDMAC Interrupts Name Status Bit Interrupt Enable Bit Normal Chain Termination NCCMP NCCMPIE Normal Data Transfer Termination NTCMP NTCMPIE STLTRF Inter-Transfer Stall Time Reached PDMSTATUS PDMCFG Configuration Error CFGERR ERRIE PCI Fatal Error PCIERR CHNERR G-Bus Chain Error G-Bus Data Error DATAERR...
Chapter 10 PCI Controller 10.3.12 PCI Bus Arbiter Configuration settings (DATA[2] signal) during boot up select whether to use the on-chip PCI Bus arbiter (Internal PCI Bus Arbiter mode) or to use the External PCI Bus arbiter (External PCI Bus Arbiter mode).
Page 279
Chapter 10 PCI Controller The Bus Master priority is determined based on the Level 1 round-robin sequence. However, when Level 2 is used inside Level 1, the Level 2 Bus Master priority is determined based on the Level 2 round-robin sequence. All 8 Bus Masters cannot be used on the TX4937.
Chapter 10 PCI Controller 10.3.12.5 Special Programming There may be some devices among PCI bus masters that operate differently from typical PCI devices. PCI devices with the following characteristics can be made usable by changing the programming of the PCI bus arbiter. Bus masters that can not re-assert REQ unless GNT is once deasserted after deasserting REQ •...
Chapter 10 PCI Controller 10.3.14 Set Configuration Space In Table 10.5.1, the values for the registers inside the PCI Configuration Space Register that have a gray background can be rewritten using one of the two following methods. 10.3.14.1 Set the Configuration Space Using EEPROM Load values during Reset by connecting standard 93C46/93C48 EEPROM to a dedicated port.
Chapter 10 PCI Controller 10.4 PCI Controller Control Register Table 10.4.1 lists the registers contained in the PCI Controller Control Register. Parentheses in the register names indicate the corresponding PCI Configuration Space Register. Table 10.4.1 PCI Controller Control Register (1/2) Section Address Size...
Page 283
Chapter 10 PCI Controller Table 10.4.1 PCI Controller Control Register (2/2) Section Address Size Mnemonic Register Name 10.4.41 0xD160 G2PM2PBASE G2P Memory Space 2 PCI Base Address Register 10.4.42 0xD168 G2PIOPBASE G2P I/O Space PCI Base Address Register 10.4.43 0xD170 PCICCFG PCI Controller Configuration Register 10.4.44...
Chapter 10 PCI Controller 10.4.1 ID Register (PCIID) 0xD000[HH5] The Device ID field corresponds to the Device ID Register in the PCI Configuration Space, and the Vendor ID field corresponds to the Vendor ID register of the PCI Configuration Space. This register cannot be access when in the Satellite mode.
Chapter 10 PCI Controller 10.4.2 PCI Status, Command Register (PCISTATUS) 0xD004 The upper 16 bits correspond to the Status Register in the PCI Configuration Space, and the lower 16 bits correspond to the Command Register in the PCI Configuration Space. This register cannot be accessed when in the Satellite mode.
Page 286
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write Master Data MDPE Master Data Parity Error (Default: 0) R/W1C Parity Error Indicates the a parity error occurred when the PCI Controller is the PCI initiator. This bit is not set when the PCI Controller is the target. This bit is set when all of the three following conditions are met.
Page 287
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write MEMSP Memory Space Memory Space (Default: 0) 1: Respond to PCI memory access. 0: Do not respond to PCI memory access. IOSP I/O Space I/O Space (Default: 0) 1: Respond to PCI I/O access. 0: Do not respond to PCI I/O access.
Chapter 10 PCI Controller 10.4.3 Class Code, Revision ID Register (PCICCREV) 0xD008 The Class Code field corresponds to the Class Code Register of the PCI Configuration Space, and the Revision ID field corresponds to the Revision ID Register of the PCI Configuration Space. This register cannot be accessed when in the Satellite mode.
Chapter 10 PCI Controller 10.4.4 PCI Configuration 1 Register (PCICFG1) 0xD00C The following fields correspond to the following registers. BIST field → BIST Register of the PCI Configuration Space Header Type field → Header Type Register in the PCI Configuration Space Latency Timer field →...
Chapter 10 PCI Controller 10.4.5 P2G Memory Space 0 PCI Lower Base Address Register (P2GM0PLBASE) 0xD010 This register corresponds to the Memory Space 0 Lower Base Address Register at offset address 0x10 of the PCI Configuration Space. This register cannot be accessed when the PCI Controller is in the Satellite mode. BA[31:29] Reserved : Type...
Chapter 10 PCI Controller 10.4.6 P2G Memory Space 0 PCI Upper Base Address Register (P2GM0PUBASE) 0xD014 This register is unused since the PCI Controller does not support the target dual-address cycle. It is forbidden to write to this register. 10.4.7 P2G Memory Space 1 PCI Lower Base Address Register (P2GM1PLBASE) 0xD018 This register corresponds to the Memory Space 1 Lower Base Address Register at offset address 0x18 of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.8 P2G Memory Space 1 PCI Upper Base Address Register (P2GM1PUBASE) 0xD01C This register is unused since the PCI Controller does not support the target dual-address cycle. It is forbidden to write to this register. 10.4.9 P2G Memory Space 2 PCI Base Address Register (P2GM2PBASE) 0xD020 This register corresponds to the Memory Space 2 Base Address Register at offset address 0x20 of the...
Chapter 10 PCI Controller 10.4.10 P2G I/O Space PCI Base Address Register (P2GIOPBASE) 0xD024 This register corresponds to the I/O Space Base Address at offset address 0x24 of the PCI Configuration Space. This register cannot be accessed when the PCI Controller is in the Satellite mode. BA[31:16] : Type 0x0000...
Chapter 10 PCI Controller 10.4.11 Subsystem ID Register (PCISID) 0xD02C The Subsystem ID field corresponds to the Subsystem ID Register of the PCI Configuration Space, and the Subsystem Vendor ID field corresponds to the Subsystem Vendor ID Register of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.12 Capabilities Pointer Register (PCICAPPTR) 0xD034 The Capabilities Pointer field corresponds to the Capabilities Pointer Register of the PCI Configuration Space. This register cannot be accessed when the PCI Controller is in the Satellite mode. Reserved : Type : Initial value Reserved...
Chapter 10 PCI Controller 10.4.13 PCI Configuration 2 Register (PCICFG2) 0xD03C The following fields correspond to the following registers: Max. Latency field → Max_Lat Register of the PCI Configuration Space Min. Grant field → Min_Gnt Register of the PCI Configuration Space Interrupt Pin field →...
Chapter 10 PCI Controller 10.4.14 G2P Timeout Count Register (G2PTOCNT) 0xD040 The Retry Timeout field corresponds to the Retry Timeout Value Register of the PCI Configuration Space, and the TRDY Timeout field corresponds to the TRDY Timeout Value Register of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.15 G2P Status Register (G2PSTATUS) 0xD080 Reserved : Type : Initial value Reserved IDTTOE IDRTOE : Type R/W1C R/W1C 0x0 : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:2 Reserved IDTTOE TRDY Timeout Initiator Detected TRDY Time Out Error (Default: 0x0) R/W1C Error This bit is set when the initiator detects a TRDY timeout.
Chapter 10 PCI Controller 10.4.16 G2P Interrupt Mask Register (G2PMASK) 0xD084 Reserved : Type : Initial value Reserved IDTTOEIE IDRTOEIE R/W : Type 0x0 : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:2 Reserved IDTTOEIE TRDY Timeout Initiator Detected TRDY Time Out Interrupt Enable (Default: 0x0) Error Interrupt The initiator generates an interrupt when it detects a TRDY timeout.
Chapter 10 PCI Controller 10.4.17 Satellite Mode PCI Status Register (PCISSTATUS) 0xD088 The PCI Status, Command Register (PCISTATUS) or the PMCSR Register of the Configuration Space cannot be accessed when the PCI Controller is in the Satellite mode. It is possible however to read values from either of these registers.
Chapter 10 PCI Controller 10.4.19 P2G Configuration Register (P2GCFG) 0xD090 Reserved TPRBL Reserved R/W1S : Type : Initial value FTRD TOBFR TIBFR Reserved Reserved MEM0PD MEM1PD MEM2PD : Type : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:23 Reserved PME (Default: 0x0) R/W1S When the PCI Controller is in the Satellite mode, writing “1”...
Page 303
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write MEM1PD Memory 1 Memory 1 Window Prefetch Disable (Default: 0x0) Window Prefetch Prefetching during a G-Bus Burst Read transfer cycle to the Memory 1 Disable Space is disabled when this bit is set to “1”. PCI Burst Read transactions are not supported when prefetching is disabled.
Chapter 10 PCI Controller 10.4.21 P2G Interrupt Mask Register (P2GMASK) 0xD098 Reserved Reserved PMSCIE PMEESIE M66ENIE PMECLRIE : Type : Initial value Reserved : Type : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:25 Reserved Power PMSCIE Power Management State Change Interrupt Enable (Default: 0x0) Management Generates an interrupt when the PowerState field of the Power State Change...
Chapter 10 PCI Controller 10.4.22 P2G Current Command Register (P2GCCMD) 0xD09C Reserved : Type : Initial value Reserved TCCMD : Type : Initial value Bits Mnemonic Field Name Description Read/Write ⎯ 31:4 Reserved Target Current TCCMD Target Current Command (Default: 0x0) Command Indicates the PCI command within the target access process that is Register...
Chapter 10 PCI Controller 10.4.23 PCI Bus Arbiter Request Port Register (PBAREQPORT) 0xD100 This register sets the correlation between each PCI Bus request source (PCI Controller and REQ[3:0]) and each Internal PCI Bus Arbiter Request port (Master A - D, W - Z) (see Figure 10.3.8). When changing the settings of this register, unused ports must be programmed to a reserved value.
Page 308
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write ⎯ Reserved 18:16 ReqDP Request D Port Request D Port (Default: 100) Sets the PCI Bus Master that connects to the Internal PCI Bus Arbiter Request D Port (Master D). 111: Makes the PCI Controller Master D. 110: Reserved 101: Reserved 100: Reserved...
Chapter 10 PCI Controller 10.4.24 PCI Bus Arbiter Configuration Register (PBACFG) 0xD104 This register is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved FIXPA RPBA PBAEN BMCEN R/W : Type : Initial value Mnemonic Field Name Description...
Page 310
Chapter 10 PCI Controller 10.4.25 PCI Bus Arbiter Status Register (PBASTATUS) 0xD108 This register is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved R/W1C : Type : Initial value Mnemonic Field Name Description Read/Write ⎯...
Chapter 10 PCI Controller 10.4.26 PCI Bus Arbiter Interrupt Mask Register (PBAMASK) 0xD10C This register is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved BMIE R/W : Type : Initial value Mnemonic Field Name Description Read/Write...
Chapter 10 PCI Controller 10.4.27 PCI Bus Arbiter Broken Master Register (PBABM) 0xD110 This register indicates the acknowledged Broken Master. This register sets the bit that corresponds to the PCI Master device that was acknowledged as the Broken Master when the Broken Master Check Enable bit (BMCEN) in the PCI Bus Arbiter Configuration Register (PBACFG) is set.
Page 313
Chapter 10 PCI Controller 10.4.28 PCI Bus Arbiter Current Request Register (PBACREQ) 0xD114 This register is a diagnostic register that is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved CPCIBRS : Type 0x00 : Initial value Bits...
Chapter 10 PCI Controller 10.4.29 PCI Bus Arbiter Current Grant Register (PBACGNT) 0xD118 This is a diagnostic register that is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved CPCIBGS : Type 0x80 : Initial value Bits Mnemonic...
Chapter 10 PCI Controller 10.4.30 PCI Bus Arbiter Current State Register (PBACSTATE) 0xD11C This is a diagnostic register that is only valid when using the on-chip PCI Bus Arbiter. Reserved : Type : Initial value Reserved Reserved CPAS : Type 0x00 : Initial value Mnemonic...
Page 316
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write Current PCI Bus CPAS Current PCI Bus Arbiter State (Default: 0x00) Arbiter State Displays the State Machine that was selected by the FSM bit. Please refer to Figures 12.5.3 and 12.11.1 for an explanation of Agent/Grant A - W and Level 2.
Chapter 10 PCI Controller 10.4.31 G2P Memory Space 0 G-Bus Base Address Register (G2PM0GBASE) 0xD120 Reserved : Type : Initial value Reserved EXFER BA[35:32] BSWAP : Type : Initial value 0x0/0x1 0x1/0x0 BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00...
Chapter 10 PCI Controller 10.4.32 G2P Memory Space 1 G-Bus Base Address Register (G2PM1GBASE) 0xD128 Reserved : Type : Initial value Reserved EXFER BA[35:32] BSWAP : Type : Initial value 0x0/0x1 0x1/0x0 BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00...
Chapter 10 PCI Controller 10.4.33 G2P Memory Space 2 G-Bus Base Address Register (G2PM2GBASE) 0xD130 Reserved : Type : Initial value Reserved EXFER BA[35:32] BSWAP : Type : Initial value 0x0/0x1 0x1/0x0 BA[31:16] : Type 0x0000/0x1FC0 : Initial value BA[15:8] Reserved : Type 0x00...
Chapter 10 PCI Controller 10.4.34 G2P I/O Space G-Bus Base Address Register (G2PIOGBASE) 0xD138 Reserved : Type : Initial value Reserved EXFER BA[35:32] BSWAP : Type : Initial value 0x0/0x1 0x1/0x0 BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00 0x00...
Chapter 10 PCI Controller 10.4.35 G2P Memory Space 0 Address Mask Register (G2PM0MASK) 0xD140 AM[35:20] : Type 0x0000 : Initial value AM[19:8] Reserved : Type 0x000 : Initial value Mnemonic Field Name Description Read/Write 31:4 AM[35:8] Address Mask G-Bus to PCI-Bus Address Mask (Default: 0x0_0000_00) Sets the bits to be subject to address comparison.
Chapter 10 PCI Controller 10.4.36 G2P Memory Space 1 Address Mask Register (G2PM1MASK) 0xD144 AM[35:20] : Type 0x0000 : Initial value AM[19:8] Reserved : Type 0x000 : Initial value Mnemonic Field Name Description Read/Write 31:4 AM[35:8] Address Mask G-Bus to PCI-Bus Address Mask (Default: 0x0_0000_00) Sets the bits to be subject to address comparison.
Chapter 10 PCI Controller 10.4.38 G2P I/O Space Address Mask Register (G2PIOMASK) 0xD14C AM[35:20] : Type 0x0000 : Initial value AM[19:8] Reserved : Type 0x000 : Initial value Bits Mnemonic Field Name Description Read/Write 31:4 AM[35:8] Address Mask G-Bus to PCI-Bus Address Mask (Default: 0x0_0000_00) Sets the bits to be subject to address comparison.
Chapter 10 PCI Controller 10.4.39 G2P Memory Space 0 PCI Base Address Register (G2PM0PBASE) 0xD150 Reserved : Type : Initial value Reserved BA[39:32] : Type 0x00 : Initial value BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00 0x00 : Initial value...
Chapter 10 PCI Controller 10.4.40 G2P Memory Space 1 PCI Base Address Register (G2PM1PBASE) 0xD158 Reserved : Type : Initial value Reserved BA[39:32] : Type 0x00 : Initial value BA[31:16] : Type 0x0000/0xBFC0 : Initial value BA[15:8] Reserved : Type 0x00 0x00 : Initial value...
Chapter 10 PCI Controller 10.4.41 G2P Memory Space 2 PCI Base Address Register (G2PM2PBASE) 0xD160 Reserved : Type : Initial value Reserved BA[39:32] : Type 0x00 : Initial value BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00 0x00 : Initial value...
Chapter 10 PCI Controller 10.4.42 G2P I/O Space PCI Base Address Register (G2PIOPBASE) 0xD168 Reserved : Type : Initial value Reserved BA[39:32] : Type 0x00 : Initial value BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00 0x00 : Initial value Bits...
Chapter 10 PCI Controller 10.4.43 PCI Controller Configuration Register (PCICCFG) 0xD170 Reserved GBWC : Type 0xfff : Initial value Reserved HRST SRST IRBER TCAR ICAEN LCFG Reserved G2PIOEN G2PM0EN G2PM1EN G2PM2EN : Type : Initial value Mnemonic Field Name Description Read/Write ⎯...
Page 330
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write SRST Software Reset Soft Reset (Default: 0x0) Performs PCI Controller software reset control. Data is also reloaded to the Configuration Space Register from EEPROM or from the Configuration Data Register. Please set this bit after the EEPROM Load End bit (PCICSTATUS.E2PDONE) is set.
Page 331
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write Target TCAR Target Configuration Access Ready (Default: 0x0/0x1) Configuration Specifies whether to accept PCI access as a target. Access Ready PCI controller receives a target access, when this bit is 1 and PCISTATUS.E2PDONE bit is 1.
Chapter 10 PCI Controller 10.4.44 PCI Controller Status Register (PCICSTATUS) 0xD174 Reserved : Type : Initial value Reserved PERR SERR Reserved Reserved E2PDONE R/W1C R/W1C R/W1C R/W1C R/W1C R/W1C R/W1C : Type ⎯ : Initial value Mnemonic Field Name Description Read/Write ⎯...
Page 333
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write ⎯ Reserved Initiator Write Initiator Write Busy (Busy: 0x0) Busy Indicates that a Write cycle was in progress when a Write cycle to the PCI Bus was executed. While a Write cycle is in progress, no error status to that Write cycle is reflected.
Chapter 10 PCI Controller 10.4.49 P2G I/O Space G-Bus Base Address Register (P2GIOGBASE) 0xD198 Reserved : Type : Initial value Reserved EXFER BA[35:32] BSWAP P2GIOEN : Type : Initial value 0x0/0x1 0x1/0x0 BA[31:16] : Type 0x0000 : Initial value BA[15:8] Reserved : Type 0x00...
Chapter 10 PCI Controller 10.4.50 G2P Configuration Address Register(G2PCFGADRS) 0xD1A0 The operation of any access to this register is undefined when the PCI Controller is in the Satellite mode. Reserved BUSNUM : Type 0x00 : Initial value DEVNUM FNNUM REGNUM TYPE : Type 0x00...
Chapter 10 PCI Controller 10.4.51 G2P Configuration Data Register (G2PCFGDATA) 0xD1A4 This is the only register that supports Byte access and 16-bit Word access. The upper address bit of the PCI Configuration Space is specified by the G2P Configuration Address Register (G2PCFGADRS). The lower two bits of the address are specified by the lower two bits of the offset address in this register as shown in Figure 10.4.2.
Chapter 10 PCI Controller 10.4.52 G2P Interrupt Acknowledge Data Register (G2PINTACK) 0xD1C8 IIACKD : Type ⎯ : Initial value IIACKD : Type ⎯ : Initial value Bits Mnemonic Field Name Description Read/Write 31:0 IIACKD Initiator Interrupt Initiator Interrupt Acknowledge Address Port (Default--) Acknowledge An Interrupt Acknowledge cycle is generated on the PCI Bus when this Address Port...
Chapter 10 PCI Controller 10.4.53 G2P Special Cycle Data Register (G2PSPC) 0xD1CC ISCD : Type ⎯ : Initial value ISCD : Type ⎯ : Initial value Bits Mnemonic Field Name Description Read/Write 31:0 ISCD Initiator Special Initiator Special Cycle Data Port (Default--) Cycle Data Port When this register is written to, Special Cycles are generated on the PCI Bus depending on the data that is written.
Chapter 10 PCI Controller 10.4.54 Configuration Data 0 Register (PCICDATA0) 0xD1D0 : Type 0x0000 : Initial value : Type 0x0000 : Initial value Bits Mnemonic Field Name Description Read/Write 31:16 Device ID Device ID (Default: 0x0000) This is the data loaded in the Device ID Register of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.55 Configuration Data 1 Register (PCICDATA1) 0xD1D4 : Type 0x0000 : Initial value : Type 0x00 0x00 : Initial value Mnemonic Field Name Description Read/Write 31:8 Class Code Class Code (Default: 0x000000) This is the data loaded in the Class Code Register of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.56 Configuration Data 2 Register (PCICDATA2) 0xD1D8 SSID : Type 0x0000 : Initial value SSVID : Type 0x0000 : Initial value Bits Mnemonic Field Name Description Read/Write 31:16 SSID Sub System ID Subsystem ID (Default: 0x0000) This is the data loaded in the Sub System ID Register of the PCI Configuration space.
Chapter 10 PCI Controller 10.4.57 Configuration Data 3 Register (PCICDATA3) 0xD1DC : Type 0x00 0x00 : Initial value : Type 0x00 0x00 : Initial value Bits Mnemonic Field Name Description Read/Write 31:24 Maximum Max_Lat (Maximum Latency) (Default: 0x00) Latency This is the data loaded in the Max_Lat Register of the PCI Configuration Space.
Chapter 10 PCI Controller 10.4.58 PDMAC Chain Address Register (PDMCA) 0xD200 Reserved : Type : Initial value Reserved PDMCA[35:32] : Type undefined : Initial value PDMCA[31:16] : Type Undefined : Initial value PDMCA[15:3] Reserved : Type Undefined : Initial value Bits Mnemonic Field Name...
Chapter 10 PCI Controller 10.4.59 PDMAC G-Bus Address Register (PDMGA) 0xD208 Reserved : Type : Initial value Reserved PDMGA[35:32] : Type Undefined : Initial value PDMGA[31:16] : Type Undefined : Initial value PDMGA[15:2] Reserved : Type Undefined : Initial value Bits Mnemonic Field Name...
Chapter 10 PCI Controller 10.4.60 PDMAC PCI Bus Address Register (PDMPA) 0xD210 Reserved : Type : Initial value Reserved PDMPA[39:32] : Type Undefined : Initial value PDMPA[31:16] : Type Undefined : Initial value PDMPA[15:2] Reserved : Type Undefined : Initial value Bits Mnemonic Field Name...
Chapter 10 PCI Controller 10.4.61 PDMAC Count Register (PDMCTR) 0xD218 Reserved : Type : Initial value Reserved : Type : Initial value Reserved PDMCTR[23:16] : Type Undefined : Initial value PDMCTR[15:2] Reserved : Type Undefined : Initial value Bits Mnemonic Field Name Description Read/Write...
Chapter 10 PCI Controller 10.4.62 PDMAC Configuration Register (PDMCFG) 0xD220 Reserved : Type : Initial value Reserved : Type : Initial value Reserved EXFER Reserved RSTFIFO : Type : Initial value Reserved REQDLY ERRIE XFRSIZE CHRST CHNEN BSWAP XFRACT Reserved NCCMPIE NTCMPIE XFRDIRC...
Page 352
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write Interrupt Enable on Transfer Done (Default: 0x0) Normal Data NTCMPIE 1: PDMAC generates an interrupt when the current data transfer is Transfer Complete complete. Interrupt Enable 0: PDMAC does not generate an interrupt when the current data transfer is complete.
Chapter 10 PCI Controller 10.4.63 PDMAC Status Register (PDMSTATUS) 0xD228 Reserved : Type : Initial value Reserved : Type : Initial value Reserved REQCNT FIFOCNT FIFOWP FIFORP : Type 0x00 : Initial value Reserved ERRINT CHNEN ACCMP NCCMP NTCMP PCIERR DONEINT XFRACT CFGERR...
Page 354
Chapter 10 PCI Controller Mnemonic Field Name Description Read/Write XFRACT Transfer Active Transfer Active (Default: 0x0) This bit is a copy of the Transfer Active bit in the PDMAC Configuration Register. Abnormal Chain ACCMP Abnormal Chain Complete (Default: 0x0) Completion 1: Indicates that the Chain transfer ended in an error state.
Chapter 10 PCI Controller 10.5 PCI Configuration Space Register The PCI Configuration Space Register is accessed using PCI Configuration cycles by way of an external PCI host device only when in the Satellite mode. Table 10.5.1 lists registers contained within the PCI Configuration Space Register.
Chapter 10 PCI Controller 10.5.1 Capability ID Register (Cap_ID) 0xDC Reserved : Type 0x01 : Initial value Bits Mnemonic Field Name Description Read/Write ⎯ 15:8 Reserved Capability ID Capability ID (Default: 0x01) Indicates that a list is the link list of the Power Management Register. Figure 10.5.1 Capability ID Register 10-99...
Chapter 10 PCI Controller 10.5.2 Next Item Pointer Register (Next_Item_Ptr) 0xDD Reserved : Type 0x00 : Initial value Bits Mnemonic Field Name Description Read/Write ⎯ 15:8 Reserved Next Item Pointer (Default: 0x0) Next Item Pointer This is the Next Item pointer. Indicates the end of a list. Figure 10.5.2 Next Item Pointer Register 10-100...
Chapter 10 PCI Controller 10.5.3 Power Management Capability Register (PMC) 0xDE PMESPT D2SPT D1SPT Reserved PMVER Reserved PMECLK : Type 0x19 : Initial value Mnemonic Field Name Description Read/Write PME Output 15:11 PMESPT PME_ Support (Fixed Value: 0x09) Support Indicates that the PME* signal can be output from the state where the bit is set to “1”.
Chapter 10 PCI Controller 10.5.4 Power Management Control/Status Register (PMCSR) 0xE0 Reserved Reserved PMEEN PMESTA R/W1C : Type : Initial value Mnemonic Field Name Description Read/Write PMESTA PME Status PME_Status (Default: 0x0) R/W1C Indicates the existence of a PME (Power Management Event) . 1: There is a PME.
Chapter 11 Serial I/O Port 11. Serial I/O Port 11.1 Features The TX4937 asynchronous Serial I/O (SIO) interface has two full duplex UART channels (SIO0 and SIO1). SIO has the following features. (1) Full duplex transmission (simultaneous transmission and reception) (2) On-chip baud rate generator (3) Modem flow control (CTS/RTS) (4) FIFO...
Chapter 11 Serial I/O Port 11.2 Block Diagram SCLK SIOCLK Baud Rate IMBUSCLK Baud Rate Control Register IM Bus Receiver RTS* Receive Data Receive Data Register FIFO Read Receiver Shift Buffer Register DMA/INT Control Register Interrupt I/F DMA/INT FIFO Control Status Register Register Read...
Chapter 11 Serial I/O Port 11.3 Detailed Explanation 11.3.1 Overview During reception, serial data that are input as an RXD signal from an external source are converted into parallel data, then are stored in the Receive FIFO buffer. Parallel data stored in the FIFO buffer are fetched by either CPU or DMA transfer.
Page 364
Chapter 11 Serial I/O Port 8-bit Data Transfer Direction stop bit2, parity Start bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 Parity stop stop stop bit1, parity Start bit0 bit1 bit2 bit3 bit4 bit5 bit6 bit7 Parity stop stop bit2 Start bit0 bit1...
Chapter 11 Serial I/O Port 11.3.3 Serial Clock Generator Generates the Serial Clock (SIOCLK). SIOCLK determines the serial transfer rate and has a frequency that is 16× the baud rate. One of the following can be selected as the source for the Serial Clock (SIOCLK).
Page 366
Chapter 11 Serial I/O Port Table 11.3.1 Example Divide Value Settings (and error [%] from target baud rate value) Prescalar Value (SIBGR.BLCK) and Divide Value (SIBGR.BRD) fc[MHz] kbps IMBUSCLK 0.11 0.15 215 -0.07% 0.30 0.39% 0.60 215 -0.07% 54 -0.54% 1.20 0.39% 27 -0.54%...
Chapter 11 Serial I/O Port 11.3.4 Data Reception When the Serial Data Reception Disable bit (RSDE) of the Flow Control Register (SIFLCRn) is set to “0”, reception operation starts after the RXD signal start bit is detected. Start bits are detected when the RXD signal transitions from the High state to the Low state.
Chapter 11 Serial I/O Port Transfer Size 1 Byte DMCCRn.XFSZ = 000b Transfer Address Mode Dual DMCCRn.SNGAD = 0 In the case of transmission channels, the address of the Transmit FIFO Register (SITFIFOn) is set in the DMAC Destination Address Register (DMDARn). In the case of reception channels, the address of the Receive FIFO Register (SIRFIFOn) is set in the DMAC Source Address Register (DMSARn).
Chapter 11 Serial I/O Port The Reception Error Interrupt bit (SIDISR.ERI) of the DMA/Interrupt Status Register (SIDISRn) is set when one of the following errors is detected: an overrun error, a parity error, or a framing error. An interrupt is signaled if the Reception Error Interrupt Enable bit of the DMA/Interrupt Control Register (SIDICRn) is set.
Chapter 11 Serial I/O Port 11.3.11 Error Detection/Interrupt Signaling An interrupt is signaled if an error or an interrupt cause is detected, the corresponding status bit is set and the corresponding Interrupt Enable bit is set. The following figure shows the relationship between the status bit for each interrupt cause and each interrupt enable bit.
Chapter 11 Serial I/O Port 11.3.12 Multi-Controller System The Multi-Controller System consists of one Master Controller, and multiple Slave Controllers as shown below in Figure 11.3.4. In the case of the Multi-Controller System, the Master Controller transmits an address (ID) frame to all Slave Controllers, then transmits and receives data with the selected Slave Controller.
Chapter 11 Serial I/O Port 11.4 Registers With the exception of DMA access to the Transmit FIFO Register or the Receive FIFO Register, please use Word access when accessing register in the Serial I/O Port. Table 11.4.1 SIO Registers Offset Address Mnemonic Register Name SIO0 (Channel 0)
Chapter 11 Serial I/O Port 11.4.1 Line Control Register 0 (SILCR0) 0xF300 (Ch. 0) Line Control Register 1 (SILCR1) 0xF400 (Ch. 1) These registers specify the format of asynchronous transmission/reception data. Reserved : Type : Initial value R/WUB TWUB UODE Reserved UEPS UPEN USBL UMODE...
Page 374
Chapter 11 Serial I/O Port Mnemonic Field Name Description Read/Write USBL Stop Bit Length UART Stop Bit Length (Default: 0) This field specifies the stop bit length. 0: 1 bit 1: 2 bit UMODE Mode UART Mode (Default: 00) This field sets the data frame mode. 00: 8-bit data length 01: 7-bit data length 10: Multi-Controller 8-bit data length...
Chapter 11 Serial I/O Port 11.4.2 DMA/Interrupt Control Register 0 (SIDICR0) 0xF304 (Ch. 0) DMA/Interrupt Control Register 1 (SIDICR1) 0xF404 (Ch. 1) These registers use either DMA or interrupts to execute the Host Interface. Reserved : Type : Initial value SPIE CTSAC Reserved...
Page 376
Chapter 11 Serial I/O Port Mnemonic Field Name Description Read/Write Status Change STIE Status Change Interrupt Enable (Default: 0x00) Interrupt Enable This field sets the set conditions of the Status Change bit (STIS) of the DMA/Interrupt Status Register (SIDISR). The condition is selected depending on which bit of the Status Change Interrupt Status Register (SISCISR) is set.
Chapter 11 Serial I/O Port 11.4.3 DMA/Interrupt Status Register 0 (SIDISR0) 0xF308 (Ch. 0) DMA/Interrupt Status Register 1 (SIDISR1) 0xF408 (Ch. 1) These registers indicate the DMA or interrupt status information. Reserved : Type : Initial value UBRK UFER UPER UOER TOUT TDIS RDIS STIS...
Page 378
Chapter 11 Serial I/O Port Mnemonic Field Name Description Read/Write RDIS Reception Data Receive DMA/Interrupt Status (Default: 0) R/W0C Full This bit is set when valid data of the amount set by the Receive FIFO Request Trigger Level (RDIL) of the FIFO Control register (SIFCR) is stored in the Receive FIFO.
Chapter 11 Serial I/O Port 11.4.4 Status Change Interrupt Status Register 0 (SISCISR0) 0xF30C (Ch. 0) Status Change Interrupt Status Register 1 (SISCISR1) 0xF40C (Ch. 1) Reserved : Type : Initial value Reserved OERS CTSS TRDY TXALS RBRKD UBRKD R/W0C R/W0C : Type : Initial value Mnemonic...
Chapter 11 Serial I/O Port 11.4.5 FIFO Control Register 0 (SIFCR0) 0xF310 (Ch. 0) FIFO Control Register 1 (SIFCR1) 0xF410 (Ch. 1) These registers set control of the Transmit/Receive FIFO buffer. Reserved : Type : Initial value Reserved RDIL Reserved TDIL SWRST TFRST RFRST FRSTE...
Chapter 11 Serial I/O Port 11.4.7 Baud Rate Control Register 0 (SIBGR0) 0xF318 (Ch. 0) Baud Rate Control Register 1 (SIBGR1) 0xF418 (Ch. 1) These registers select the clock that is provided to the baud rate generator and set the divide value. Reserved : Type : Initial value...
Chapter 11 Serial I/O Port 11.4.8 Transmit FIFO Register 0 (SITFIFO0) 0xF31C (Ch. 0) Transmit FIFO Register 1 (SITFIFO1) 0xF41C (Ch. 1) When using the DMA Controller to perform DMA transmission, set the following addresses in the Destination Address Register (DMDARn) of the DMA Controller according to the Endian Mode bit (DMCCRn.LE) setting of the DMA Controller.
Chapter 11 Serial I/O Port 11.4.9 Receive FIFO Register 0 (SIRFIFO0) 0xF320 (Ch. 0) Receive FIFO Register 1 (SIRFIFO1) 0xF420 (Ch. 1) When using the DMA Controller to perform DMA transmission, set the following addresses in the Destination Address Register (DMDARn) of the DMA Controller according to the Endian Mode bit (DMCCRn.LE) setting of the DMA Controller.
Chapter 12 Timer/Counter 12.3 Detailed Explanation 12.3.1 Overview The TX4937 has an on-chip 3-channel 32-bit timer/counter. Each channel supports the following modes. (1) Interval Timer Mode (Timer 0, 1, 2) This mode periodically generates interrupts. (2) Pulse Generator Mode (Timer 0, 1) This is the pulse signal output mode.
Chapter 12 Timer/Counter Table 12.3.2 Divide Value and Count (IMBUSCLK = 66 MHz) Divide TMCCDRn. Counter Clock Max. Set Time TMCPRAn Value Resolution (ns) Rate Frequency (Hz) (sec.) for 1 sec. 33.0 M 30.30 130.15 33000000 16.5 M 60.61 260.30 16500000 8.3 M 121.21...
Chapter 12 Timer/Counter 12.3.5 Pulse Generator Mode When in the Pulse Generator mode, use Compare Register A (TMCPRAn) and Compare Register B (TMCPRBn) to output a particular period and particular duty square wave to the TIMER[n] signal. Setting the Timer Mode field (TMTCRn.TMODE) of the Timer Control Register to “01” sets the timer to the Pulse Generator mode.
Chapter 12 Timer/Counter 12.3.6 Watchdog Timer Mode The Watchdog Timer mode is used to monitor system anomalies. The software periodically clears the counter and judges an anomaly to exist if the counter is not cleared within a specified period of time. Then, either the TX4937 is internally reset or an NMI is signaled to the TX49/H3 core.
Page 392
Chapter 12 Timer/Counter In Watchdog Timer mode, the TIMER[1:0] outputs remain at logic high. Count Value TMCPRA2 Compare Value 0x000000 Time TCE = 1 TCE = 0 TCE = 1 TWC = 1 TWC = 1 TWC = 1 TWIE = 0 TWIE = 0 TWIE = 1 TWIE = 1 TWIS = 1...
Chapter 12 Timer/Counter 12.4 Registers Table 12.4.1 Timer Register List Offset Address Register Symbol Register Name Time 0 (TMR0) 0xF000 TMTCR0 Timer Control Register 0 0xF004 TMTISR0 Timer Interrupt Status Register 0 0xF008 TMCPRA0 Compare Register A 0 0xF00C TMCPRB0 Compare Register B 0 0xF010 TMITMR0...
Page 394
Chapter 12 Timer/Counter 12.4.1 Timer Control Register n (TMTCRn) TMTCR0 0xF000 TMTCR1 0xF100 TMTCR2 0xF200 Reserved : Type : Initial value Reserved CCDE ECES TMODE Reserved : Type : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:8 Reserved Timer Counter Timer Count Enable (Default: 0) Enable This field controls whether the counter runs or stops.
Chapter 12 Timer/Counter 12.4.3 Compare Register An (TMCPRAn) TMCPRA0 0xF008 TMCPRA1 0xF108 TMCPRA2 0xF208 TCVA : Type 0xFFFF : Initial value TCVA : Type : Initial value 0xFFFF Bits Mnemonic Field Name Description Read/Write 31:0 TCVA Timer Compare Timer Compare Value A (Default: 0xFFFFFFFF) Register A Sets the timer compare value as a 32-bit value.
Chapter 12 Timer/Counter 12.4.4 Compare Register Bn (TMCPRBn) TMCPRB0 0xF00C TMCPRB1 0xF10C TCVB : Type 0xFFFF : Initial value TCVB : Type : Initial value 0xFFFF Bits Mnemonic Field Name Description Read/Write 31:0 TCVB Timer Compare Timer Compare Value B (Default: 0xFFFFFFFF) Value B Sets the timer compare value as a 32-bit value.
Chapter 12 Timer/Counter 12.4.5 Interval Timer Mode Register n (TMITMRn) TMITMR0 0xF010 TMITMR1 0xF110 TMITMR2 0xF210 Reserved : Type : Initial value TIIE Reserved TZCE R/W : Type : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:16 Reserved TIIE Interval Timer Timer Interval Interrupt Enable (Default: 0) Interrupt Enable...
Page 399
Chapter 12 Timer/Counter 12.4.6 Divide Register n (TMCCDRn) TMCCDR0 0xF020 TMCCDR1 0xF120 TMCCDR2 0xF220 Reserved : Type : Initial value Reserved : Type : Initial value Bits Mnemonic Field Name Description Read/Write ⎯ 31:3 Reserved Counter Clock Counter Clock Divide (Default: 000) Divide Value These bits specify the divide value when using the internal clock (IMBUSCLK) as the counter input clock source.
Chapter 12 Timer/Counter 12.4.7 Pulse Generator Mode Register n (TMPGMRn) TMPGMR0 0xF000 TMPGMR1 0xF130 Reserved : Type : Initial value TPIBE TPIAE Reserved R/W : Type : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:16 Reserved TPIBE TMCPRB Timer Pulse Generator Interrupt by TMCPRB Enable (Default: 0) Interrupt Enable When in the Pulse Generator mode, this bit sets Interrupt Enable/Disable for when TMCPRB and the counter value match.
Chapter 12 Timer/Counter 12.4.8 Watchdog Timer Mode Register n (TMWTMRn) TMWTMR2 0xF240 Reserved : Type : Initial value TWIE Reserved WDIS R/W1C : Type RW1S : Initial value Mnemonic Field Name Description Read/Write ⎯ 31:16 Reserved TWIE Watchdog Timer Timer Watchdog Enable (Default: 0) Signaling Enable This bit sets NMI signaling enable/disable either when in the Watchdog Timer mode or during a reset.
Chapter 12 Timer/Counter 12.4.9 Timer Read Register n (TMTRRn) 0xF0F0 TMTRR0 0xF0F0 TMTRR1 0xF1F0 TMTRR2 0xF2F0 TCNT : Type 0x0000 : Initial value TCNT : Type : Initial value 0x0000 Bits Mnemonic Field Name Description Read/Write 31:0 TCNT Timer Counter Timer Counter (Default: 0x00000000) This Read Only register is a 32-bit counter.
Chapter 13 Parallel I/O Port 13. Parallel I/O Port 13.1 Characteristics The TX4937 on-chip Parallel I/O port (PIO) is a 16-bit general-purpose parallel port. The input/output direction and the port type during output (totem pole output/open drain output) can be set for each bit. 13.2 Block Diagram CB[7:0]/PIO[15:8] SDRAMC...
Chapter 13 Parallel I/O Port 13.3 Detailed Description 13.3.1 Selecting PIO Pins Of the 16-bit PIO signals, signals PIO[15:8] can be used in combination with 8-bit ECC check bit signals. The configuration signal (ADDR[18]) at boot up determines which function will be used. See 3.3 Configuration Signals for more information.
Chapter 13 Parallel I/O Port 13.4.1 PIO Output Data Register (PIODO) 0xF500 Reserved :Type :Initial value :Type 0x0000 :Initial value Mnemonic Field Name Description Read/Write ⎯ 31:16 Reserved 15 :0 PDO [15:0] Data Out Port Data Output [15:0] (Initial value:0x0000) Data that is output to the PIO pin (PIO [15:0]).
Chapter 13 Parallel I/O Port 13.4.3 PIO Direction Control Register (PIODIR) 0xF508 Reserved :Type :Initial value PDIR :Type 0x0000 :Initial value Mnemonic Field Name Description Read/Write ⎯ 31:16 Reserved 15 :0 PDIR [15:0] Direction Control Port Direction Control [15:0] (Initial value: 0x0000) Sets the I/O direction of the PIO pin (PIO [15:0]).
Chapter 14 AC-link Controller 14. AC-link Controller 14.1 Features ACLC, AC-link controller module can be connected to audio and/or modem CODECs described in the “Audio CODEC ’97 Revision 2.1” (AC’97) defined by Intel and can operate them. Refer to the following Web site for more information regarding the AC’97 specification.
Chapter 14 AC-link Controller 14.3 Functional Description ACLC provides four mechanisms to operate AC’97-compliant CODEC(s): • AC-link status control (start-up and low-power mode) • CODEC register access • Sample-data transmission and reception • GPIO operation This section first describes the CODEC connection, chip configuration, and overall usage-flow. Then AC- link start-up sequence and the other mechanisms will be described.
Chapter 14 AC-link Controller 14.3.1.2 5.1 Channel Audio Connection This sample assumes one CODEC with four DACs mapped to stereo front (3&4) and stereo rear (7&8) slots, and another CODEC with two DACs mapped to center (6) and LFE (9) slots. ACLC 4Channel Audio CODEC (CODEC ID=’0’) SYNC...
Chapter 14 AC-link Controller 14.3.3 Usage Flow This section outlines a process flow when using the AC’97 connected to ACLC. Refer to the subsequent sections for the details of each operation performed in this process flow. The diagrams below describe the audio playback and recording processes. The modem transmission and reception can be done in a similar way.
Page 412
Chapter 14 AC-link Controller System Software ACLC and DMAC AC’97 Enable ENLINK Deassert ACRESET* Start BITCLK Set CODEC Ready CODECRDY Interrupt Check AC’97 status Start recording audio ADC Ready response Start up AC-link Register setting such as gain (*) Set gain, etc. Clear DMA buffer Configure DMAC Start DMA Channel and...
Chapter 14 AC-link Controller 14.3.4 AC-link Start Up Figure 14.3.5 shows the conceptual sequence of AC-link start-up. The ACLC Control Enable Register’s Enable AC-link bit is used to deassert/assert the ACRESET* signal to the link side (including AC-link). This bit defaults to ‘0’, so the CPU asserts the ACRESET* signal when it boots up.
Chapter 14 AC-link Controller 14.3.5 CODEC Register Access By accessing registers in the CODEC, the system software is able to detect or control the CODEC state. This section describes how to read and write CODEC registers via ACLC. For details about AC’97 register set and proper sequence to operate CODEC, refer to the AC’97 specification and target CODEC datasheet.
Chapter 14 AC-link Controller 14.3.6 Sample-data Transmission and Reception This section describes the mechanism for transmission and reception of PCM audio and modem wave-data. An overview is described first. The DMA (Direct Memory Access) operation, error detection and recovery procedure follow. A special case using slot activation control is described last. 14.3.6.1 Overview Figure 14.3.6 and Figure 14.3.7 show conceptual views of the sample-data transmission and reception mechanisms.
Page 416
Chapter 14 AC-link Controller 14.3.6.2 DMA Channel Mapping ACLC uses four DMA request channels. These DMA channels are allocated to four out of seven data-streams, or slots, on the AC-link frame, according to ACLC DMA Channel Selection Register (ACDMASEL) setting as shown in Table 14.3.1. The pin configuration register allocates these DMA channels of ACLC to the DMAC (DMA controller) channels according to Pin Configuration Register (PCFG)’s DMA Request Selection (DMASEL[7:0]) bits as described in section 8.3.1.
Page 417
Chapter 14 AC-link Controller Figures below show the format of DMA buffer for each type of DMA channel. #0, #1, … means the sample’s sequential number for the AC-link slot. Subscript ‘L’ means lower 8-bit of each sample and subscript ‘ ’...
Page 418
Chapter 14 AC-link Controller 14.3.6.4 DMA Operation When ACLC’s REQ latch (refer to Figure 14.3.6 and Figure 14.3.7) needs to read or write sample-data, it issues a DMA request. When DMAC acknowledges the request by performing write- or read-access to the ACLC sample-data register, ACLC deasserts the request. Therefore, the software must properly set up DMAC so that the source or destination points to the corresponding sample-data register for the DMA channel.
Page 419
Chapter 14 AC-link Controller 14.3.6.5 Sample-data FIFO For a transmission stream, as long as ACLC Control Enable Register (ACCTLEN) allows that transmission and the FIFO has any room to fill data in, the FIFO issues a request via the REQ latch.
Chapter 14 AC-link Controller 14.3.6.7 Slot Activation Control In case ACLC is required to begin transmission or reception of multiple streams at the same time, slot activation control will be useful. To use this feature, the software must deactivate the relevant streams first, enable ACLC Control Enable Register (ACCTLEN), make sure the transmission FIFO becomes full by checking ACLC FIFO Status Register (ACFIFOSTS)’s Full (xxxxFULL) bit, and finally enable ACLC Slot Enable Register (ACSLTEN).
Chapter 14 AC-link Controller 14.3.8 Interrupt ACLC generate two kinds of interrupt to the interrupt controller as below. • ACLC Interrupt Logical OR of all the valid bits of ACLC Interrupt Masked Status Register (ACINTMSTS) is connected. Refer to the section 14.4.5. •...
Chapter 14 AC-link Controller 14.4 Registers The base address for the ACLC registers is described in section 4.2. Only word (32-bit) accesses are allowed. These registers return to their initial values when the module gets reset by power-on or configuration-register operation. The ‘Disable AC-link’ operation initializes the ACREGACC, ACGPIDAT, ACGPODAT, and ACSLTEN registers while keeping the other registers.
Chapter 14 AC-link Controller 14.4.1 ACLC Control Enable Register 0xF700 This register is used to check the setting of various ACLC features and to enable them. MODIE MODOE AUDIE LFEEH CENTE SURRE AUDO Reserved Reserved EHLT : Type R/W1S R/W1S R/W1S R/W1S R/W1S R/W1S R/W1S : Initial value MODID...
Page 424
Chapter 14 AC-link Controller Mnemonic Field Name Description Read/Write Enable Audio SURREHLT SURREHLT: Enable Audio Surround L&R Transmit-data DMA Error Halt. R/W1S Surround L&R 0: Indicates that SURRDMA error halt is disabled. Transmit-data 1: Indicates that SURRDMA error halt is enabled. DMA Error Halt 0: No effect 1: Enables SURRDMA error halt.
Page 425
Chapter 14 AC-link Controller Mnemonic Field Name Description Read/Write ⎯ ⎯ Reserved Clear CODEC RDYCLR RDYCLR: Clear CODEC Ready Bit Ready Bit 0: No effect 1: Clear CODEC[1:0] ready bits [Note: This bit should only be written to reevaluate the CODEC ready status after power-down command is sent to CODEC.] MIC Selection MICSEL: MIC Selection.
Chapter 14 AC-link Controller 14.4.2 ACLC Control Disable Register 0xF704 This register is used to disable various ACLC features. MODIE MODO AUDIE LFEEH CENTE SURRE AUDO Reserved EHLT EHLT Reserved W1C : Type : Initial value MODID MODO AUDID LFED CENTD SURR AUDO...
Chapter 14 AC-link Controller 14.4.3 ACLC CODEC Register Access Register 0xF708 CODEC registers can be accessed through this register. CODE Reserved CODECID REGADR Reserved : Type : Initial value REGDAT : Type : Initial value Mnemonic Field Name Description Read/Write CODECRD AC’97 register CODECRD: AC’97 register read access...
Chapter 14 AC-link Controller 14.4.4 ACLC Interrupt Status Register 0xF710 This register shows various kinds of AC-link and ACLC status. Reserved : Type : Initial value MODIE MODOE AUDIE CENTE SURRE AUDOE REGAC CODEC CODEC Reserved Reserved Reserved LFEERR GPIOINT CRDY 1RDY 0RDY...
Page 430
Chapter 14 AC-link Controller Mnemonic Field Name Description Read/Write REGACCRDY ACREGACC REGACCRDY: ACREGACC Ready R/W1C Ready 1: Indicates that the ACREGACC register is ready to get the value (in case the previous operation was a read access) and to initiate another R/W access to an AC’97 register. The result of reading or writing to the ACREGACC register before the completion notification is undefined.
Chapter 14 AC-link Controller 14.4.5 ACLC Interrupt Masked Status Register 0xF714 Every bit in this register is configured as follows: ACINTMSTS = ACINTSTS & ACINTEN Bit placement is the same as for the ACINTSTS register. The logical OR of all bits in this register is used as ACLC interrupt request to the interrupt controller.
Chapter 14 AC-link Controller 14.4.8 ACLC Semaphore Register 0xF720 This register is used for mutual exclusion control for resource. SEMAPH RS/WC : Type : Initial value SEMAPH RS/WC : Type : Initial value Mnemonic Field Name Description Read/Write 31:0 SEMAPH Semaphore flag SEMAPH: Semaphore flag.
Chapter 14 AC-link Controller 14.4.12 ACLC Slot Disable Register 0xF74C This register disables independently the AC-link slot data streams. Reserved : Type : Initial value MODI MODO AUDI CENT SURR AUDO Reserved GPISLT GPOSLT Reserved LFESLT W1C : Type : Initial value Mnemonic Field Name Description...
Chapter 14 AC-link Controller 14.4.13 ACLC FIFO Status Register 0xF750 This register indicates the AC-link slot data FIFO status. Reserved : Type : Initial value MODO CENT SURR AUDO MODI MODO AUDI CENT SURR AUDO Reserved Reserved Reserved LFEFILL FULL FULL FULL FULL...
Page 439
Chapter 14 AC-link Controller Mnemonic Field Name Description Read/Write Audio Center CENTFILL CENTFILL: Audio Center Transmit-data Filled. Transmit-data 0: Indicates audio Center transmit-data FIFO is empty. Filled 1: Indicates audio Center transmit-data FIFO is not empty. SURRFILL Audio Surround SURRFILL: Audio Surround L&R Transmit-data Filled. L&R 0: Indicates audio Surround L&R transmit-data FIFO is empty.
Page 440
Chapter 14 AC-link Controller 14.4.14 ACLC DMA Request Status Register 0xF780 This register indicates the AC-link slot data DMA request status. Reserved : Type : Initial value MODI MODO AUDI CENT SURR AUDO Reserved Reserved LFEREQ : Type : Initial value Mnemonic Field Name Description...
Chapter 14 AC-link Controller 14.4.15 ACLC DMA Channel Selection Register 0xF784 This register is used to select and check the channel allocation for AC-link slot data DMA. Reserved : Type : Initial value Reserved ACDMASEL : Type : Initial value Mnemonic Field Name Description...
Chapter 14 AC-link Controller 14.4.16 ACLC Audio PCM Output Data Register 0xF7A0 ACLC Surround Data Register 0xF7A4 These registers are used to write audio PCM and surround L&R output data. DAT1: Sample Right (Little-endian mode) / DAT0: Sample Left (Big-endian mode) : Type : Initial value DAT0: Sample Left (Little-endian mode) / DAT1: Sample Right (Big-endian mode)
Chapter 14 AC-link Controller 14.4.17 ACLC Center Data Register 0xF7A8 ACLC LFE Data Register 0xF7AC ACLC Modem Output Data Register 0xF7B8 This registers are used to write audio center, LFE, and modem output data. DAT1: Sample data 1 (Little-endian mode) / DAT0: Sample data 0 (Big-endian mode) : Type : Initial value DAT0: Sample data 0 (Little-endian mode) / DAT1: Sample data 1 (Big-endian mode)
Chapter 14 AC-link Controller 14.4.18 ACLC Audio PCM Input Data Register 0xF7B0 This register is used to read audio PCM input data. DAT1: Sample Right or ‘0’ (Little-endian mode) / DAT0: Sample Left or MIC (Big-endian mode) : Type : Initial value Undefined DAT0: Sample Left or MIC (Little-endian mode) / DAT1: Sample Right or ‘0’...
Chapter 14 AC-link Controller 14.4.19 ACLC Modem Input Data Register 0xF7BC This register is used to read modem input data. DAT1: Sample data 1 (Little-endian mode) / DAT0: Sample data 0 (Big-endian mode) : Type : Initial value Undefined DAT0: Sample data 0 (Little-endian mode) / DAT1: Sample data 1 (Big-endian mode) : Type : Initial value Undefined...
⎯ ⎯ 31:16 Reserved ⎯ ⎯ 15:8 Major Revision Contact Toshiba technical staff for an explanation of the revision value. ⎯ ⎯ Minor Revision Contact Toshiba technical staff for an explanation of the revision value. Figure 14.4.17 ACREVID Register This read-only register shows the revision of ACLC module. Note that this number is not related to the AC’97 specification revision.
Chapter 15 Interrupt Controller 15. Interrupt Controller 15.1 Characteristics The TX4937 on-chip Interrupt Controller (IRC) receives interrupt requests from the TX4937 on-chip peripheral circuitry as well as external interrupt requests then generates interrupt requests to the TX49/H3 processor core. Also, the Interrupt Controller has a 16-bit flag register that generates interrupt requests to either external devices or to the TX49/H3 core.
Chapter 15 Interrupt Controller 15.3 Detailed Explanation 15.3.1 Interrupt sources The TX4937 has as interrupt sources interrupts from 18 types of on-chip peripheral circuits and 6 external interrupt signals. Table 15.3.1 lists the interrupt sources. Signals with the lower interrupt number have the higher priority.
Chapter 15 Interrupt Controller In addition to the above, the TX49/H3 core has a TX49/H3 core internal timer interrupt and two software interrupts, but these interrupts are directly reported to the TX49/H3 core independently of this Interrupt Controller. Please refer to the “64-bit TX System RISC TX49/H2, TX49/H3, TX49/H4 Core Architecture”...
Chapter 15 Interrupt Controller 15.3.4 Interrupt priority assigning When multiple interrupt requests exist, the Interrupt Controller selects the interrupt with the highest priority according to the priority level and interrupt number. Interrupt factors with an interrupt level equal to or lower than the interrupt level specified by the Interrupt Mask Level Register (IRMSK) will be excluded (masked).
Chapter 15 Interrupt Controller 15.3.5 Interrupt notification When the interrupt with the highest priority is selected, then the interrupt factor is reported to the Interrupt Current Status Register (IRCS) and an interrupt is reported to the TX49/H3 core. The TX49/H3 core distinguishes interrupt factors using the IP field (IP[7:2]) of the Cause Register. The interrupt notification from the Interrupt Controller is reflected in the IP[2] bit.
Chapter 15 Interrupt Controller 15.3.7 Interrupt requests It is possible to make interrupt requests to external devices and interrupt requests (IRC interrupts) to the TX49/H3 core by using a 16-bit interrupt request flag register. REQ[1]* signals are used as interrupt output signals.
Page 455
Chapter 15 Interrupt Controller There are two flag registers: Flag Register 0 (IRFLAG0), and Flag Register 1 (IRFLAG1). These registers have two different Write methods. Accordingly, Writes to one register are reflects in the other. Either “0” or “1” can be written to Flag Register 0 In the case of Flag Register 1 however, “1”...
Chapter 15 Interrupt Controller 15.4.2 Interrupt Detection Mode Register 0 (IRDM0) 0xF604 IC23 IC22 IC21 Reserved IC19 IC18 IC17 IC16 : Type : Default : Type : Default Bits Mnemonic Field Name Explanation Read/Write 31:30 IC23 Interrupt Source Interrupt Source Control 23 (Default: 00) Control 23 These bits specify the active state of PCIPMC interrupts.
Page 459
Chapter 15 Interrupt Controller Bits Mnemonic Field Name Explanation Read/Write Interrupt Source 17:16 IC16 Interrupt Source Control 16 (Default: 00) Control 16 These bits specify the active state of PCIC interrupts. 00: Low level active 01: Disable 10: Disable 11: Disable 15:14 Interrupt Source Interrupt Source Control 7 (Default: 00)
Chapter 15 Interrupt Controller 15.4.3 Interrupt Detection Mode Register 1 (IRDM1) 0xF608 IC31 IC30 IC29 IC28 IC27 IC26 IC25 IC24 : Type : Default IC15 IC14 IC13 IC12 IC11 IC10 : Type : Default Mnemonic Field Name Explanation Read/Write 31:30 IC31 Interrupt Source Interrupt Source Control 31 (Default: 00, R/W)
Page 461
Chapter 15 Interrupt Controller Mnemonic Field Name Explanation Read/Write Interrupt Source 19:18 IC25 Interrupt Source Control 25 (Default: 00, R/W) Control 25 These bits specify the active state of ACLCPME interrupts. 00: Low level active 01: Disable 10: Disable 11: Disable 17:16 IC24 Interrupt Source...
Page 462
Chapter 15 Interrupt Controller Mnemonic Field Name Explanation Read/Write Interrupt Source Interrupt Source Control 9 (Default: 00) Control 9 These bits specify the active state of SIO[1] interrupts. 00: Low level active 01: Disable 10: Disable 11: Disable Interrupt Source Interrupt Source Control 8 (Default: 00) Control 8 These bits specify the active state of SIO[0] interrupts.
Chapter 15 Interrupt Controller 15.4.12 Interrupt Mask Level Register (IRMSK) 0xF640 Reserved : Type : Default Reserved : Type : Default Mnemonic Field Name Explanation Read/Write ⎯ ⎯ ⎯ 31:3 Reserved Interrupt Mask Interrupt Mask Level (Default: 000) Level These bits specify the interrupt mask level. Masks interrupts with a mask level equal to or lower than the set mask level.
Chapter 15 Interrupt Controller 15.4.14 Interrupt Pending Register (IRPND) 0xF680 Indicates the status of each interrupt request regardless of the IRLVL 7-0 and IRMSK value. IS31 IS30 IS29 IS28 IS25 IS24 IS23 IS22 IS21 IS19 IS18 IS17 IS16 IS27 IS26 Reserved : Type : Default...
Page 481
Chapter 15 Interrupt Controller Mnemonic Field Name Explanation Read/Write IS22 Interrupt Status 22 IRINTREQ [22] status This bit indicates the PCIERR error status. 1: Interrupt requests 0: No interrupt requests IS21 Interrupt Status 21 IRINTREQ [21] status This bit indicates the NDFMC interrupt status. 1: Interrupt requests 0: No interrupt requests ⎯...
Page 482
Chapter 15 Interrupt Controller Mnemonic Field Name Explanation Read/Write Interrupt Status 9 IRINTREQ [9] status This bit indicates the status of SIO [1] interrupts. 1: Interrupt requests 0: No interrupt requests Interrupt Status 8 IRINTREQ [8] status This bit indicates the status of SIO [0] interrupts. 1: Interrupt requests 0: No interrupt requests Interrupt Status 7...
Chapter 15 Interrupt Controller 15.4.15 Interrupt Current Status Register (IRCS) 0xF6A0 Reserved : Type : Default Reserved Reserved CAUSE : Type 11111 : Default Mnemonic Field Name Explanation Read/Write ⎯ ⎯ 31:17 ⎯ Reserved Interrupt Flag Interrupt Flag (Default: 1) This bit indicates the interrupt generation status.
Page 484
Chapter 15 Interrupt Controller Mnemonic Field Name Explanation Read/Write CAUSE Interrupt Cause Interrupt Cause (Default: 0x1F) These bits specify the interrupt cause that was reported to the TX49/H3 core. This field becomes undefined if no interrupt request is pending (i.e., the IF bit is set).
Page 485
Chapter 15 Interrupt Controller 15.4.16 Interrupt Request Flag Register 0 (IRFLAG0) 0xF510 Reserved : Type : Default [15] [14] [13] [12] [11] [10] : Type 0x0000 : Default Mnemonic Field Name Explanation Read/Write ⎯ ⎯ ⎯ 31:16 Reserved 15:0 PF0 [15:0] Flag 0 Interrupt Request Flag 0 [15:0] (Default: 0x0000) Changes made to this register are reflected in Flag Register 1 also since...
Chapter 15 Interrupt Controller 15.4.17 Interrupt Request Flag Register 1 (IRFLAG1) 0xF514 Reserved : Type : Default [15] [14] [13] [12] [11] [10] : Type 0x0000 : Default Mnemonic Field Name Explanation Read/Write ⎯ ⎯ ⎯ 31:16 Reserved 15:0 PF1 [15:0] Flag 1 Interrupt Request Flag 1 [15:0] (Default: 0x0000) Changes made to this register are reflected in Flag Register 0 also since...
Chapter 15 Interrupt Controller 15.4.19 Interrupt Request Control Register (IRRCNT) 0xF51C Reserved : Type : Default Reserved INTPOL EXTPOL R/W : Type : Default Mnemonic Field Name Explanation Read/Write ⎯ ⎯ ⎯ 31:3 Reserved External Interrupt External Interrupt Open Drain Control (Default: 0) OD Control This bit specifies whether to make the external interrupt signal (IRC[2]*) an open drain pin or not.
Chapter 15 Interrupt Controller 15.4.20 Interrupt Request Internal Interrupt Mask Register (IRMASKINT) 0xF520 Reserved : Type : Default MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT MINT [15] [14] [13] [12] [11] [10] : Type 0x0000 : Default...
Execution control (run, break, step, register/memory access) • Real-time PC tracing Please contact your local Toshiba Sales representative for more information regarding how to connect the emulation probe. The two functions of the Extended EJTAG Interface operate in one of two modes.
This section explains only those portions that are unique to the TX4937. Please refer to the “64-bit TX System RISC TX49/H2, TX49/H3, TX49/H4 Core Architecture” for all other portion not covered here. Please contact your local Toshiba Sales representative for more information regarding the required BSDL files when performing the JTAG Boundary Scan Test.
Chapter 20 Extended EJTAG Interface 20.2.2 Instruction Register The JTAG Instruction Register consists of an 8-bit shift register. This register is used for selecting either one or both of the test to be performed and the Test Data Register to be accessed. The Data Register is selected according to the instruction code in Table 20.2.1.
Page 502
Chapter 20 Extended EJTAG Interface Table 20.2.2 TX4937 Processor JTAG Scan Sequence (1/2) JTAG Scan JTAG Scan JTAG Scan Signal Name Signal Name Signal Name Sequence Sequence Sequence EEPROM_CS PCIAD[20] PIO[2] PCST[3] PCIAD[19] PIO[1] PCST[2] PCIAD[26] BYPASSPLL * PCST[1] PCIAD[31] SD[1] PCST[0] PCIAD[29]...
Page 503
Chapter 20 Extended EJTAG Interface Table 20.2.2 TX4937 Processor JTAG Scan Sequence (2/2) JTAG Scan JTAG Scan JTAG Scan Signal Name Signal Name Signal Name Sequence Sequence Sequence DATA[55] ADDR[8] DATA[38] DATA[54] ADDR[7] DATA[36] DATA[22] ADDR[6] DATA[5] DATA[53] ADDR[5] DATA[34] DATA[23] ADDR[4] DATA[3]...
Chapter 20 Extended EJTAG Interface 20.2.4 Device ID Register The Device ID Register is a 32-bit shift register. This register is used for reading the ID code that expresses the IC manufacturer, part number, and version from the IC and sending it to a serial device. The following figure shows the configuration of the Device ID Register.
Chapter 20 Extended EJTAG Interface 20.3 Initializing the Extended EJTAG Interface The Extended EJTAG Interface is not reset by asserting the RESET* signal. Operation of the TX49/H3 core is not guaranteed if the Extended EJTAG Interface is not reset. This interface is initialized by either of the following methods.
°C (Package Temperature) (*3) A recommended operating condition is a usage condition that Toshiba recommends for a product to function properly and maintain a uniform level of quality. Using a product such that even one item is not under the recommended operating conditions may cause a malfunction to occur. When designing application devices, be sure that these recommended operating conditions ranges are never exceeded.
Chapter 21 Electrical Characteristics 21.3 DC characteristics 21.3.1 DC characteristics of pins other than PCI Interface pins = 3.3V ± 0.2V, V = 1.5V ± 0.1V, V (Tc = 0 - 70°C, V = 0V) ddIO CCInt Item Symbol Condition Min.
Chapter 21 Electrical Characteristics 21.3.2 DC characteristics of PCI Interface pins = 3.3 V ± 0.2 V, V = 1.5 V ± 0.1 V, V (Tc = 0 – 70°C, V = 0 V) ddIO ddIN Item Symbol Conditions Min. Max.
Chapter 21 Electrical Characteristics 21.4 PLL power 21.4.1 PLL power connection example Place C1, C2, C3, R, and L as close to the TX4937 as possible. TX4937 VddInt VddInt VddPLL2_A VddPLL1_A VssPLL1_A VssPLL2_A Item Symbol Recommended Value Unit Ω Resistance µ...
Chapter 21 Electrical Characteristics 21.5.4 External Bus Interface AC characteristics = 3.3 V ± 0.2 V, V = 1.5 V ± 0.1 V, V (Tc = 0 – 70°C, V = 0 V) CCIO CCInt Item Symbol Condition Min. Max. Unit ⎯...
Chapter 21 Electrical Characteristics 21.5.7 PCI EEPROM Interface AC characteristics = 3.3 V ± 0.2 V, V = 1.5 V ± 0.1 V, V (Tc = 0 ~ 70°C, V = 0 V) CCIO CCInt Item Symbol Conditions Min. Max. Unit ⎯...
Chapter 21 Electrical Characteristics Notes: (1) DMAREQ[n] Edge Detection: Set the pulse width to 1.1× the GBUSCLK cycle or higher. Level Detection: There is no AC characteristic definition. Continue asserting DMAREQ[3:0] until DMAACK[3:0] is received. (2) DMAACK[n] The DMAACK[n] signal is synchronous to SDCLK. (It is driven by GUBSCLK inside the chip. See Chapter 6 for more information.) The DMAACK[n] signal is asserted by SYSCLK or SDCLK for 3 cycles or more.
Chapter 21 Electrical Characteristics 21.5.10 SIO Interface AC characteristics = 3.3 V ± 0.2 V, V = 1.5 V ± 0.1 V, V (Tc = 0 – 70°C, V = 0 V) CCIO CCInt Item Symbol Conditions Min. Max. Unit 4 ×...
Chapter 21 Electrical Characteristics 21.5.12 PIO Interface AC characteristics = 3.3 V ± 0.2 V, V = 1.5 V ± 0.1 V, V (Tc = 0 – 70°C, V = 0 V) CCIO CCInt Item Symbol Conditions Min. Max. Unit IMBUSCLK reference (C ⎯...
Chapter 22 Pinout and Package Information 22. Pinout and Package Information 22.1 Pinout Diagram Figure 22.1.1 shows the TX4937 pinout. Table 22.1.1 provides a pin cross reference by pin number. provides a pin cross reference by pin name. Table 22.1.3 provides a pin cross reference for thermal balls. 22-1...
Page 524
Chapter 22 Pinout and Package Information Table 22.1.1 Pin Cross Reference by Pin Number (1/2) Num- Num- Num- Num- Num- Pin Name Pin Name Pin Name Pin Name Pin Name PIO[1] PCIAD[0] CE[0]* PCIAD[22] GNT[0]* PIO[0] PCIAD[3] VddIN PCIAD[21] PCICLK[1] SWE* PCIAD[6] PCIAD[20]...
Page 525
Chapter 22 Pinout and Package Information Table 22.1.1 Pin Cross Reference by Pin Number (2/2) Num- Num- Num- Num- Num- Pin Name Pin Name Pin Name Pin Name Pin Name DATA[2] VddIO AC21 AE11 ADDR[9] VddIO DQM[0] AC22 DATA[48] AE12 VSS DATA[33] DATA[7] VddIO...
Page 526
Chapter 22 Pinout and Package Information Table 22.1.2 Pin Cross Reference by Pin Name (1/2) Num- Num- Num- Num- Num- Pin Name Pin Name Pin Name Pin Name Pin Name ACE* CE[5]* DATA[30] DMAREQ[1] PCIAD[7] ACK* CE[6]* DATA[31] DMAREQ[2] PCIAD[8] ADDR[0] CE[7]* DATA[32]...
Page 527
Chapter 22 Pinout and Package Information Table 22.1.2 Pin Cross Reference by Pin Name (2/2) Num- Num- Num- Num- Num- Pin Name Pin Name Pin Name Pin Name Pin Name PIO[0] TEST[1]* AE14 VSS VddIO PIO[1] TEST[2]* AE18 VSS VddIO PIO[2] TEST[3]* AE23 VSS...
Page 528
Chapter 22 Pinout and Package Information Table 22.1.3 Pin Cross Reference for Thermal Balls Num- Num- Num- Num- Num- Pin Name Pin Name Pin Name Pin Name Pin Name 22-8...
Chapter 23 Notes on Use of TMPR4937 23. Notes on Use of TMPR4937 23.1 Notes on TX49/H3 Core • Restriction on detect of the Bus errors when a data cycle generated by load instruction. [Restriction] Error notification to the TX49/H3 Core using Bus errors is not enabled or Executing a SYNC instruction immediately after the preceding load instruction.
Page 532
Chapter 23 Notes on Use of TMPR4937 Bus errors occur the following three conditions. (1) When CCFG.TOE of the Chip Configuration Register is set to “1” (Default: 0), G-Bus timeout error detection is enabled, and the following situation results: • A Bus timeout occurs when a G-Bus Bus Master (TX49/H3 Core, DMAC, or PCIC) is reading the G-Bus •...
Chapter 23 Notes on Use of TMPR4937 23.2 Notes on External Bus Controller • Output delay of DATA[63:0] depends on the external bus speed set with EBCCRn.SP. For details on it, see 21.5.4 External Bus Interface AC Characteristics. 23.3 Notes on DMA Controller •...
Page 534
Chapter 23 Notes on Use of TMPR4937 In the case only one channel is used, restarting DMS transfer without a reset of FIFO results in a malfunction when the conditions (1) to (3) are satisfied. When two channels are used in a system, the following table shows settings to cause malfunctions. Transfer restarted Ch.
Page 535
Chapter 23 Notes on Use of TMPR4937 – Only one channel performs single transfer (1) Single transfer performed with only one channel Perform either (a) or (b) to prevent a malfunction. (2) Single transfer performed with one channel and burst transfer Perform (b) to prevent a malfunction.
Chapter 23 Notes on Use of TMPR4937 23.4 Note on PCI Controller • Set four target spaces, that are MEM0, MEM1, MEM2 and IO contained in PCI controller, so that address windows are not duplicated. See 10.3.5 Target Access. • We recommend to set 0 to G2PTOCNT.
Page 537
Chapter 23 Notes on Use of TMPR4937 <Conditions> This problem occurs when the following conditions are satisfied. (1) The broken master detection function is enabled (BMCEN=1). The broken master detection function is enabled or disabled with the BMCEN bit of the PCI bus arbiter configuration register (PBACFG).
Page 538
Chapter 23 Notes on Use of TMPR4937 • Note on use of the PCI boot function [Restriction] Don’t perform PCI boot in default setting. [Violation] When performing PCI boot in the default setting, 64 Mbyte memory space that is 0x0_1C00_0000 to 0x0_1FFF_FFFF (physical address, the area a and b in the figure shown below) is assigned to the PCI bus, and not 4 Mbyte memory space that is 0x0_1FC0_0000 to 0x0_1FFF_FFFF (physical address, the area a).
Page 539
Chapter 23 Notes on Use of TMPR4937 • Restriction when Initiator Write by PDMAC and Target Read conflict. [Restriction] Don’t perform Target Read from a register on the G-Bus when the condition is the following <Conditions>. [Violation] When an Initiator Write transaction using PDMAC (PCI Dedicated DMA Controller) mounted in the PCI Controller of the target product and a Target Read transaction to the target product by the a device on the PCI Bus conflict, there are cases when the Target Read data is corrupted.
Chapter 23 Notes on Use of TMPR4937 23.5 Notes on Serial I/O Port • Restrictions on use of the break function in SIO [Restriction] To transmit breaks to TX4937, synchronize breaks to the start bit. Set consecutively the transmit data to Low immediately after the start bit.
Chapter 24 Parts Number when Ordering 24. Parts Number when Ordering Maximum Operating Parts Number Package Frequency TMPR4937XBG-300 484-pin PBGA 300 MHz TX4937 TMPR4937XBG-333 484-pin PBGA 333 MHz 24-1...
Page 542
Chapter 24 Parts Number when Ordering 24-2...
PRId Register values of the TX4937 TX49/H3 Core are as follows. Processor Revision Identifier Register: 0x0000 2D30 FPU Implementation/Revision Register (FCR0): 0x0000 2D30 These values may be changed at a later date. Please contact the Toshiba Engineering Department for the most recent information. Interrupts Interrupt signalling of the on-chip interrupt controller is reflected in bit IP[2] of the Cause Register in the TX49/H3 Core.
Page 545
When this pin is used as SDIN[1], pull down by the resister on the board. (Regarding the value of register, please ask the Engineering Department in Toshiba). Table 3.1.9 AC-link Interface Signals Added the following text to the description of the SDIN[0]...
Page 546
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Figure 5.2.1 Chip Configuration Register (1/3) WDRST WDRST WDREXEN WDREXEN RW1C R/W1C Figure 5.2.1 Chip Configuration Register (1/3) BEOW BEOW RW1C : Type R/W1C : Type : Initial value : Initial value Figure 5.2.1 Chip Configuration Register (1/3) Read/write attribute of the WDRST (Watchdog Reset...
Page 547
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Figure 5.2.6 G-Bus Arbiter Control Register ⎯ Reserved PRIORITY ARBMD Reserved 5-13 000_001_010_011_100 Reserved PRIORITY PRIORITY 00_01_10 000_001_010_011_100 Figure 6.3.1 Power-On Sequence At least 100 ms (T.B.D) (T.B.D) PLL settling time (T.B.D) PLL settling time...
Page 548
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Figure 7.3.13 Ready Input Timing (Read Cycle) 7-18 2 clock 2 clocks Latch D Acknowledge Ready Acknowledge Ready Figure 7.3.13 Ready Input Timing (Read Cycle) 7-18 Start Ready Acknowledge Re Start Ready Acknowledge Re...
Page 549
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Table 8.3.3 Channel Register Setting Restrictions During Dual Address Transfer 8-13 <DMSAIRn> 8/0/-8 8/0/-8 Table 8.3.3 Channel Register Setting Restrictions During Dual Address Transfer Added the following note. 8-13 : When DMSAIRn is set to 0, read access from source device is performed only one time per transmission...
Page 550
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Figure 11.4.7 Baud Rate Control Register Modified the description of the BCLK (Baud Rate Generator Clock) field. 11-22 00: Select prescalar output T0 (IMBUSCLK/2) 00: Select prescalar output T0 (fc/2) 01: Select prescalar output T2 (IMBUSCLK/8) 01: Select prescalar output T2 (fc/8) 10: Select prescalar output T4 (IMBUSCLK/32)
Page 551
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 Modified line 8 of Section 20.3, Initializing the Extended EJTAG Interface The above methods must be performed while the The above methods must be performed while the 20-7 MASTERCLK signal is being input.
Page 552
TMPR4937 Revision History Page Rev 1.1 Manual Changes and Additions to Rev 1.1 23. Notes on Use of TMPR4938 23.1 Notes on External Bus Controller 23.1 Notes on TX49/H3 Core 23.2 Notes on DMA Controller 23.2 Notes on External Bus Controller 23-1 23.3 Note on PCI Controller 23.3...