Core 2 duo mobile processor, intel core 2 solo mobile processor and intel core 2 extreme mobile processor on 45-nm process, platforms based on mobile intel 4 series express chipset family (113 pages)
Page 2
Except as permitted by such license, no part of this document may be reproduced, stored in a retrieval system, or transmitted in any form or by any means without the express written consent of Intel Corporation.
Power on Reset and Boot Operation ...2-8 2.10 Power Management...2-8 2.11 Pin List ...2-8 2.12 Memory Map...2-18 2.13 System Architecture Register Summary...2-21 Clocks and Power Manager ...3-1 Clock Manager Introduction...3-1 Power Manager Introduction...3-2 Clock Manager...3-2 Intel® PXA255 Processor Developer’s Manual Contents...
Page 4
Clocks and Power Manager Register Summary...3-41 3.9.1 Clocks Manager Register Locations ...3-41 3.9.2 Power Manager Register Summary...3-41 System Integration Unit ...4-1 General-Purpose I/O...4-1 4.1.1 GPIO Operation ...4-1 4.1.2 GPIO Alternate Functions...4-2 4.1.3 GPIO Register Definitions...4-6 Intel® PXA255 Processor Developer’s Manual...
Page 11
15.4.4 No Data Command and Response Sequence...15-18 15.4.5 Erase ...15-18 15.4.6 Single Data Block Write ...15-18 15.4.7 Single Block Read ...15-19 15.4.8 Multiple Block Write ...15-20 15.4.9 Multiple Block Read ...15-20 15.4.10 Stream Write ...15-21 15.4.11 Stream Read...15-21 Intel® PXA255 Processor Developer’s Manual Contents...
Page 12
16.5.7 SSP Data Register (SSDR) ...16-28 16.6 Network SSP Serial Port Register Summary...16-29 Hardware UART ...17-1 17.1 Overview...17-1 17.2 Features...17-1 17.3 Signal Descriptions ...17-3 17.4 Operation ...17-3 17.4.1 Reset ...17-4 17.4.2 FIFO Operation...17-4 17.4.3 Autoflow Control ...17-7 Intel® PXA255 Processor Developer’s Manual...
Page 13
SDRAM 4-Beat Write / 4-Write Same Bank, Same Row ...6-32 6-12 SMROM Read Timing Diagram Half-Memory Clock Frequency ...6-39 6-13 Burst-of-Eight Synchronous Flash Timing Diagram (non-divide-by-2 mode) ...6-41 6-14 Flash Memory Reset Using State Machine ...6-42 Intel® PXA255 Processor Developer’s Manual Contents xiii...
Page 14
LCD Data-Pin Pixel Ordering...7-22 Texas Instruments’ Synchronous Serial Frame* Format...8-4 Motorola SPI* Frame Format...8-5 National Microwire* Frame Format...8-6 Motorola SPI* Frame Formats for SPO and SPH Programming ...8-13 C Bus Configuration Example...9-2 Start and Stop Conditions...9-5 Intel® PXA255 Processor Developer’s Manual...
Page 15
Motorola SPI* Frame Protocol (single transfers) ...16-7 16-5 Motorola SPI* Frame Protocols for SPO and SPH Programming (multiple transfers)...16-8 16-6 Motorola SPI* Frame Protocols for SPO and SPH Programming (single transfers)...16-9 16-7 National Semiconductor Microwire* Frame Protocol (multiple transfers) ...16-10 Intel® PXA255 Processor Developer’s Manual Contents...
Page 16
PXA255 Processor ID Values...2-4 Effect of Each Type of Reset on Internal Register State ...2-6 Processor Pin Types ...2-8 Pin & Signal Descriptions for the PXA255 Processor...2-9 Pin Description Notes ...2-17 System Architecture Register Address Summary ...2-21 Core PLL Output Frequencies for 3.6864 MHz Crystal ...3-5 95.85 MHz Peripheral PLL Output Frequencies for 3.6864 MHz Crystal ...3-5...
Page 17
OSMR[x] Bit Definitions ...4-36 4-42 OIER Bit Definitions ...4-36 4-43 OWER Bit Definitions...4-37 4-44 OSCR Bit Definitions ...4-37 4-45 OSSR Bit Definitions...4-38 4-46 PWM_CTRLn Bit Definitions...4-41 4-47 PWM_DUTYn Bit Definitions ...4-42 4-48 PWM_PERVALn Bit Definitions...4-43 Intel® PXA255 Processor Developer’s Manual Contents xvii...
Page 18
6-27 MCATT0/1 Bit Definitions ...6-61 6-28 MCIO0/1 Bit Definitions ...6-61 6-29 Card Interface Command Assertion Code Table...6-62 6-30 MECR Bit Definition...6-63 6-31 Common Memory Space Write Commands ...6-65 6-32 Common Memory Space Read Commands...6-65 xviii Intel® PXA255 Processor Developer’s Manual...
Page 19
9-11 ISR Bit Definitions...9-26 9-12 ISAR Bit Definitions ...9-27 10-1 UART Signal Descriptions ...10-3 10-2 UART Register Addresses as Offsets of a Base ...10-6 10-3 RBR Bit Definitions ...10-6 10-4 THR Bit Definitions ...10-7 Intel® PXA255 Processor Developer’s Manual Contents...
Page 20
12-18 UDCCS4/9/14 Bit Definitions...12-33 12-19 UDCCS5/10/15 Bit Definitions...12-34 12-20 UICR0 Bit Definitions...12-37 12-21 UICR1 Bit Definitions...12-38 12-22 USIR0 Bit Definitions ...12-39 12-23 USIR1 Bit Definitions ...12-41 12-24 UFNHR Bit Definitions ...12-43 12-25 UFNLR Bit Definitions...12-44 Intel® PXA255 Processor Developer’s Manual...
Page 21
14-12 Register Memory Map ...14-16 15-1 Command Token Format...15-2 15-2 MMC Data Token Format ...15-2 15-3 SPI Data Token Format ...15-2 15-4 MMC Signal Description ...15-6 15-5 MMC_STRPCL Bit Definitions ...15-23 15-6 MMC_STAT Bit Definitions ...15-23 Intel® PXA255 Processor Developer’s Manual Contents...
Page 22
15-7 MMC_CLK Bit Definitions ...15-25 15-8 MMC_SPI Bit Definitions ...15-25 15-9 MMC_CMDAT Bit Definitions ...15-26 15-10 MMC_RESTO Bit Definitions...15-27 15-11 MMC_RDTO Register ...15-28 15-12 MMC_BLKLEN Bit Definitions ...15-29 15-13 MMC_NOB Bit Definitions ...15-29 15-14 MMC_PRTBUF Bit Definitions...15-30 15-15 MMC_I_MASK Bit Definitions...15-30 15-16 MMC_I_REG Bit Definitions ...15-32 15-17...
Revision History Date March 2003 January 2004 Intel® PXA255 Processor Developer’s Manual Revision -001 Initial release Replaced Table 12-13 Modified SSPFRM behavior Added note to Table 3-1 about supported frequencies -002 Explained RDY_sync signal Correct GPIO numbers in Table 4-35...
Introduction This document applies to the Intel® PXA255 Processor (PXA255 processor). It is an application specific standard product (ASSP) that provides industry-leading MIPS/mW performance for handheld computing applications. The processor is a highly integrated system on a chip and includes a high-performance low-power Intel XScale® microarchitecture with a variety of different system peripherals.
The USB Client Module is based on the Universal Serial Bus Specification, Revision 1.1. It supports up to sixteen endpoints and it provides an internally generated 48-MHz clock. The USB Device Controller provides FIFOs with DMA access to or from memory. Intel® PXA255 Processor Developer’s Manual...
Specification. It operates at half-duplex and has FIFOs with DMA access to memory. The FIR Communication Port uses the STUART’s transmit and receive pins to directly connect to external IrDA LED transceivers. Intel® PXA255 Processor Developer’s Manual S) Controller S CODECs for digital stereo sound. It...
The modem control pins can be implemented via GPIOs. The STUART has FIFOs with DMA access to or from memory. The STUART’s transmit and receive pins are multiplexed with the Fast Infrared Communication Port. C) Bus Interface Unit Intel® PXA255 Processor Developer’s Manual...
1.2.13.4 Hardware UART (HWUART) The PXA255 processor has a UART with hardware flow control. The HWUART provides a partial set of modem control pins: nCTS and nRTS. These modem control pins provide full hardware flow control. Other modem control pins can be implemented via GPIOs. The HWUART baud rate is programmable up to 921.6 Kbps.
System Architecture Overview The PXA255 processor is an integrated system-on-a-chip microprocessor for high performance, low power portable handheld and handset devices. It incorporates the Intel XScale® microarchitecture with on-the-fly frequency scaling and sophisticated power management to provide industry leading MIPs/mW performance. The PXA255 processor is ARM* Architecture Version 5TE instruction set compliant (excluding floating point instructions) and follows the ARM* programmer’s model.
Intel XScale® Microarchitecture Implementation Options The processor incorporates the Intel XScale® microarchitecture which is described in a separate document. This core contains implementation options which an Application Specific Standard Product (ASSP) may elect to implement or omit. This section describes those options.
This register may be read by software to determine the device type and revision. The contents of this register for the Intel® PXA255 Processor is defined in the table below. Combined, this register must read as 0x6905 2X0R where R = 0b0000 for the first stepping and then increments for subsequent steppings, and X is the revision of the Intel XScale®...
Core Revision [9:4] Product Number [3:0] Product Revision Table 2-3. PXA255 Processor ID Values Stepping 2.2.5 Coprocessor 15 Register 1 - P-Bit Bit 1 of this register is defined as the Page Table Memory Attribute bit or P-bit. It is not implemented in the processor and must be written as zero.
Generally, all interrupt bits in a unit are ORed together and present a single value to the interrupt controller. Intel® PXA255 Processor Developer’s Manual ; store to external memory address [r2].
For this reason some peripherals are mapped to multiple GPIOs, as shown in Alternate Functions” on page peripheral - only that the peripheral is connected to the pins in several ways. Intel® PXA255 Processor Developer’s Manual GPIO Reset Watchdog Reset...
When nRESET is asserted, nRESET_OUT is driven active and can be used to reset other devices in the system. For additional information, see the Intel® PXA255 Processor Design Guide. When the system deasserts nRESET and nTRST, the processor deasserts nRESET_OUT a specified time later and the device attempts to boot from physical address location 0x0000_0000.
Analog bidirectional Supply pin (either VCC or VSS) Table 2-6 describes the PXA255 processor pins. Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 1 of 9) Pin Name Type Memory Controller Pins Memory address bus. (output) Signals the address MA[25:0] requested for memory accesses.
Page 40
System Architecture Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 2 of 9) Pin Name Type SDCLK[1] SDRAM Clocks (output) Connect SDCLK[1] and SDCLK[2] to the clock pins of SDRAM in bank pairs 0/1 and 2/3, respectively. They are driven by either the internal memory controller clock, or the internal memory controller clock divided by 2.
Page 41
Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 3 of 9) Pin Name Type nPIOW/ PCMCIA I/O write. (output) Performs write transactions ICOCZ to PCMCIA I/O space. GPIO[51] nPIOR/ PCMCIA I/O read. (output) Performs read transactions ICOCZ from PCMCIA I/O space.
Page 42
System Architecture Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 4 of 9) Pin Name Type LCD display data. (output) Transfers pixel information L_DD[13]/ from the LCD Controller to the external LCD panel. ICOCZ GPIO[71] 3.6864 MHz clock. (output) Output from 3.6864 MHz oscillator.
Page 43
Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 5 of 9) Pin Name Type BTCTS/ ICOCZ Bluetooth UART Clear-to-Send. (input) GPIO[44] BTRTS/ ICOCZ Bluetooth UART Data-Terminal-Ready. (output) GPIO[45] Standard UART and ICP Pins IrDA receive signal. (input) Receive pin for the FIR IRRXD/ function.
Page 44
System Architecture Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 6 of 9) Pin Name Type MMCCLK/ MMC clock. (output) Clock signal for the MMC ICOCZ GP[6] Controller. MMCCS0/ MMC chip select 0. (output) Chip select 0 for the MMC...
Page 45
Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 7 of 9) Pin Name Type AC97 Audio Port data out. (output) Output from the SDATA_OUT/ PXA255 processor to Codecs 0 and 1. ICOCZ GPIO[30] S data out. (output) Output line for the I AC97 Audio Port sync signal.
Page 46
System Architecture Table 2-6. Pin & Signal Descriptions for the PXA255 Processor (Sheet 8 of 9) Pin Name Type 48 MHz clock. (output) Peripheral clock output derived from the PLL. 48MHz/GP[7] ICOCZ NOTE: This clock is only generated when the USB unit clock enable is set.
If selected as an output, the value contained in the Sleep State Register is driven out onto the pin and held there while the PXA255 processor is in Sleep Mode.
The PCMCIA interface is divided into Socket 0 and Socket 1 space. These two sockets are each subdivided into I/O, memory and attribute space. Each socket is allocated 256 MB of memory space. 2-18 Description show the full processor memory map. Intel® PXA255 Processor Developer’s Manual...
0x4000_0130 0x4000_0134 0x4000_0138 0x4000_013C 0x4000_0140 0x4000_0144 0x4000_0148 Intel® PXA255 Processor Developer’s Manual DCSR0 DMA Control / Status Register for Channel 0 DCSR1 DMA Control / Status Register for Channel 1 DCSR2 DMA Control / Status Register for Channel 2 DCSR3...
Page 54
Divisor Latch High Register (DLAB = 1) (read/write) IBMR I2C Bus Monitor Register - IBMR IDBR I2C Data Buffer Register - IDBR I2C Control Register - ICR I2C Status Register - ISR ISAR I2C Slave Address Register - ISAR Intel® PXA255 Processor Developer’s Manual Register Description...
Page 55
0x4050_005C 0x4050_0060 0x4050_0064 through 0x4050_00FC 0x4050_0100 0x4050_0104 0x4050_0108 0x4050_010C 0x4050_0110 Intel® PXA255 Processor Developer’s Manual SACR0 Global Control Register SACR1 Serial Audio I S/MSB-Justified Control Register — Reserved SASR0 Serial Audio I S/MSB-Justified Interface and FIFO Status Register —...
Page 62
Card interface I/O Space Socket 1 Timing Configuration MDMRS MRS value to be written to SDRAM Read-only Boot-Time Register. Contains BOOT_SEL and PKG SEL BOOT_DEF values. MDMRSLP Low Power SDRAM Mode Register Set Configuration Register SA1111CR SA1111 Compatibility Register Intel® PXA255 Processor Developer’s Manual Register Description...
Clocks and Power Manager The Clocks and Power Manager for the PXA255 processor controls the clock frequency to each module and manages transitions between the different power manager (PM) operating modes to optimize both computing performance and power consumption. Clock Manager Introduction The Clocks and Power Manager provides fixed clocks for each peripheral unit.
Figure 3-1. Clocks Manager Block Diagram 32.768 k 32.768 3.6864 RETAINS POWER IN SLEEP 47.923 Intel® PXA255 Processor Developer’s Manual Figure 3-1. This bus is clocked at 1/2 the run mode frequency. For 3.6864 3.6864 32.768 k PWR_MGR...
Section 3.6.3 for more information. No external capacitors are required. Table 3-1, “Core PLL Output Frequencies for Section 3.6.1 for programming information on the L, M, and N factors. Intel® PXA255 Processor Developer’s Manual Section 3.5.2) for the hexadecimal settings.
S). The generated frequency may not exactly match the required frequency due to the choice of crystal and the lack of a perfect Least Common Multiple between the units. The chosen frequencies Intel® PXA255 Processor Developer’s Manual Turbo Mode Frequency (MHz) for Values “N”...
To invoke the Hardware Reset and reset all units in the processor to a known state, assert the nRESET pin. Hardware Reset is only intended to be used for power up and complete resets. Nominal Frequency 14.746 MHz 12.288 MHz 146.76 MHz Intel® PXA255 Processor Developer’s Manual Actual Frequency 14.746 MHz 12.288 MHz 147.46 MHz...
The nRESET_OUT pin is asserted when the nRESET pin is asserted. To enter Hardware Reset, nRESET must be held low for t state to propagate. Refer to the Intel® PXA255 Processor Electrical, Mechanical, and Thermal Specification for details. 3.4.1.2 Behavior During Hardware Reset During Hardware Reset, all internal registers and units are held at their defined reset conditions.
Clocks and Power Manager Refer to Table 2-6, “Pin & Signal Descriptions for the PXA255 Processor” Watchdog and other Resets. 3.4.2.3 Completing a Watchdog Reset Watchdog resets immediately revert to hardware resets when the nRESET pin is asserted. Otherwise, the completion sequence for watchdog reset is: 1.
SDRAM refresh interval. The amount of time spent in GPIO Reset depends on the CPU’s mode before GPIO Reset. See Refer to Table 2-6, “Pin & Signal Descriptions for the PXA255 Processor” PXA255 processor pins during GPIO reset and other resets. 3.4.3.3 Completing GPIO Reset GPIO Reset immediately reverts to Hardware Reset when the nRESET pin is asserted.
CPU clock stops and Idle Mode begins. In Idle Mode, interrupts are recognized as wake-up sources. 3-10 3.6.1). Turbo mode is intended for use during peak processing, when there Intel® PXA255 Processor Developer’s Manual Section 3.7.2). An interrupt...
3.4.7.1 Preparing for a Frequency Change Sequence Software must complete the following steps before it initiates the Frequency Change Sequence: Intel® PXA255 Processor Developer’s Manual for more details. Clocks and Power Manager Section 3.4.9.3,...
Page 74
Frequency Change Sequence exits. This means that the processor does not enter Sleep Mode until the Frequency Change Sequence is complete. 3-12 Section 6, “Memory Controller” (Section 3.6.1, “Core Clock Configuration Register Intel® PXA255 Processor Developer’s Manual for more details. (CCCR)”) to reflect...
Note: This sequence occurs even if the before and after frequencies are the same. 2. The internal PLL clock generator for the processor clock waits for stabilization. Refer to the Intel® PXA250 and PXA210 Application Processors Electrical, Mechanical, and Thermal Specification for details.
Page 76
Enabled interrupts are interrupts that are allowed at the unit level. Masked interrupts are interrupts that are prevented from interrupting the core based on the Interrupt Controller Mask Register (ICMR). 3-14 Section 3.7.2) Intel® PXA255 Processor Developer’s Manual...
PWR_EN goes low. • Higher-voltage outputs connected to VCCQ and VCCN are continuously driven and do not change when the PWR_EN pin is asserted. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager 3-15...
Note: The PCFR[OPDE] bit must be cleared to enable the 3.6864 MHz oscillator during sleep when fast sleep wakeup is selected by setting the PMFW[FWAKE] bit. 3.4.9.3 Entering Sleep Mode Software uses the PWRMODE register to enter sleep mode (See 3-16 Section 6, “Memory Controller” for details. Intel® PXA255 Processor Developer’s Manual Section 3.7.2).
Page 79
Power Manager GPIO Sleep State registers (PGSR0, PGSR1, and PGSR2). To avoid contention on the bus when the processor attempts to wake up, ensure that the chip selects are not set to 0 during sleep mode. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager 3-17...
32.768 kHz clock cycle. The Power Manager takes three 32.768 kHz clock cycles to acknowledge the GPIO edge and begin the wake up sequence. Refer to Table 2-6, “Pin & Signal Descriptions for the PXA255 Processor” on page 2-9 PXA255 processor pin states during sleep mode reset and other resets. 3.4.9.5 Exiting Sleep Mode Sleep Mode exits when Hardware Reset is asserted.
Page 81
5. The PWR_EN pin is deasserted. If PMFW[FWAKE] is cleared, the system must respond by grounding the VCC and PLL_VCC power supplies to minimize power consumption. Intel® PXA255 Processor Developer’s Manual for details on configuring the SDRAM interface. Clocks and Power Manager...
Enable PLL with new frequency Wait for PLL stabilization Wait for internal stabilization Clear CP14 bit 3-20 shows the expected behavior for power supplies in each power mode. Description of Action Description of Action Intel® PXA255 Processor Developer’s Manual Table 3-5 shows the actions...
Page 83
Table 3-5. Power Mode Exit Sequence Table (Sheet 2 of 2) Deassert nRESET_OUT Restart CPU clocks, enable interrupts 1: Fault Sleep Mode starts if IDAE is clear and nBATT_FAULT or nVDD_FAULT is asserted. Intel® PXA255 Processor Developer’s Manual Description of Action Clocks and Power Manager 3-21...
This section describes the 32-bit registers that control the Power Manager. 3-22 Power Mode Turbo Idle Pw Ck Pw Ck Pw Ck Pw Ck Pw Ck Run/ Turbo (R/T) 3.686 MHz Osc 32.768 kHz Osc Dynamic/ Static (D/S) Intel® PXA255 Processor Developer’s Manual Freq Sleep Change Off Off...
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Reset Bits Name [31:1] — IDAE Intel® PXA255 Processor Developer’s Manual (PWRMODE)”). The IDAE bit is cleared in any Reset and when Sleep PMCR Description Reserved. Read undefined and must always be written with zeroes. Imprecise Data Abort Enable.
PGSR register bits. nCS[1], nWE, and nOE are driven high. nOE are affected. appropriate PGSR register bits. Sleep Mode. nPSKTSEL and nPREG are derived from address signals and assume the state of the address bus during Sleep Mode. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager...
Sleep mode Rising-edge Wake up Enable 0 – Wake up due to GPx rising-edge detect disabled. 1 – Wake up due to GPx rising-edge detect enabled. Set to 0x 0003 on hardware, watchdog, and GPIO resets. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager...
Sleep mode Edge Detect Status 0 – Wake up on GPx not detected. 1 – Wake up due to edge on GPx detected. Cleared by hardware, watchdog, and GPIO resets. Cleared by writing a 1. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager...
1 – Chip was placed in sleep mode by setting the sleep mode bit. Cleared by hardware, watchdog, and GPIO resets. Table 3-14, is a holding register that is powered during PSPR Description Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager Clocks and Power Manager...
PSSR[PH]. If a pin is reconfigured from an input to an output, the register’s last contents are driven onto the pin. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Table 3-15, provides a single bit called FWAKE which is used to select...
0 – Pin is driven to a zero during sleep mode 1 – Pin is driven to a one during sleep mode Cleared by hardware, watchdog, and GPIO resets. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager Clocks and Power Manager...
The RCSR status bits for watchdog reset, sleep mode, and GPIO resets have a hardware reset state of zero. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual PGSR2 Description...
1 – Hardware reset has occurred since the last time the CPU cleared this bit. Set by hardware reset. Cleared by setting to a 1. Table 3-20, controls the core clock frequency, from which the core, memory Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager...
00100 – reserved 00101 – Multiplier = 45 (Memory Frequency is 165.89MHz from 3.6864 MHz crystal) 00110 to 11111 – reserved Set to 00001 on hardware and watchdog resets. Intel® PXA255 Processor Developer’s Manual Core Clock Configuration Register (CCCR) reserved...
This bit must be set to allow the 48Mhz clock output on GP7 Alternate Function 1. reserved NSSP Unit Clock Enable 0 – Clock to the unit is disabled 1 – Clock to the unit is enabled. Set by hardware and watchdog resets Intel® PXA255 Processor Developer’s Manual Clocks Manager...
Page 99
CKEN6 CKEN5 CKEN4 CKEN3 CKEN2 CKEN1 CKEN0 Intel® PXA255 Processor Developer’s Manual CKEN Description I2S Unit Clock Enable 0 – Clock to the unit is disabled 1 – Clock to the unit is enabled. Set by hardware and watchdog resets BTUART Unit Clock Enable 0 –...
0 – 32.768 KHz oscillator is disabled or not stable. The 3.6864 MHz oscillator (divided by 112) clocks the RTC and PM. 1 – 32.768 KHz oscillator has been enabled (OON=1) and stabilized. It will clock the RTC and PM. Cleared by hardware reset. Intel® PXA255 Processor Developer’s Manual Clocks and Power Manager...
This can be controlled with an external Power-On-Reset device or another circuit. To ensure that the internal ESD protection devices do not activate during power up, a minimum rise time must be observed. Refer to the Intel® PXA255 Processor Electrical, Mechanical, and Thermal Specification for details. 3.8.2 Power Supply Connectivity The processor requires two or three externally-supplied voltage levels.
Some applications have other clock sources of the same frequency and can reduce overall cost by driving the crystal pins externally. Refer to the Oscillator Electrical Specifications in the Intel® PXA255 Processor Design Guide for more information.
PCFR Power Manager General Configuration register Power Manager GPIO Sleep State register for GP[31-0] Power Manager GPIO Sleep State register for GP[63-32] Power Manager GPIO Sleep State register for GP[84-64] RCSR Reset controller status register Intel® PXA255 Processor Developer’s Manual...
Pulse Width modulator General-Purpose I/O The PXA255 processor enables and controls its 85 GPIO pins through the use of 27 registers which configure the pin direction (input or output), pin function, pin state (outputs only), pin level detection (inputs only), and selection of alternate functions. A portion of the GPIOs can be used to bring the processor out of Sleep mode.
GPIO Pin Level ‘x’ (where x = 0 to 31). This read-only field indicates the current value of each GPIO. <31:0> PL[x] This is read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual GPIO[31:16] GPIO[47:32] GRER0 GRER1...
1 – Pin state is high GPLR2 Description 0 – Pin state is low 1 – Pin state is high Table 4-6, Table 4-7, and Intel® PXA255 Processor Developer’s Manual System Integration Unit System Integration Unit Table 4-8, control whether a pin is...
1 – If pin configured as an output, set pin level high (one). GPSR1 Description 0 – Pin level unaffected. 1 – If pin configured as an output, set pin level high (one). Intel® PXA255 Processor Developer’s Manual System Integration Unit System Integration Unit...
Table 4-17 show the bitmaps of the GRER0, GRER1, and GRER2. show the bitmaps of the GFER, GFER1, and GFER2. Intel® PXA255 Processor Developer’s Manual System Integration Unit Table 4-18...
GPIO Pin ‘x’ Rising Edge Detect Enable (where x = 64 through 84). <20:0> RE[x] Intel® PXA255 Processor Developer’s Manual GRER0 Description 0 – Disable rising-edge detect enable. 1 – Set corresponding GEDR status bit when a rising edge is detected on the GPIO pin...
1 – Set corresponding GEDR status bit when a falling edge is detected on the GPIO pin GFER2 Description 0 – Disable falling-edge detect enable. 1 – Set corresponding GEDR status bit when a falling edge is detected on the GPIO pin Intel® PXA255 Processor Developer’s Manual System Integration Unit System Integration Unit System Integration Unit...
Bits Name GPIO Pin ‘x’ Edge Detect Status (where x= 32 through 63). READ <31:0> ED[x] WRITE Intel® PXA255 Processor Developer’s Manual Table 4-21, Table Section 4.2, for a description of the programming of GPIO interrupts. Table 4-23 show the bitmaps of the GEDR0, GEDR1, and GEDR2.
1 – Edge detect has occurred on pin as specified in GRER and/or GFER. 0 – No effect. 1 – Clear edge detect status field. Table 4-27, Table 4-28, and Table Intel® PXA255 Processor Developer’s Manual System Integration Unit Table 4-24, 4-29, contain select bits that correspond...
01 – The corresponding GPIO pin (GPIO[x]) is used for its alternate function 1. 10 – The corresponding GPIO pin (GPIO[x]) is used for its alternate function 2. 11 – The corresponding GPIO pin (GPIO[x]) is used for its alternate function 3. Intel® PXA255 Processor Developer’s Manual GAFR0_L Description...
10 – The corresponding GPIO pin (GPIO[x]) is used for its alternate function 2. 11 – The corresponding GPIO pin (GPIO[x]) is used for its alternate function 3. 4-18 GAFR1_L Description GAFR1_U Description Intel® PXA255 Processor Developer’s Manual System Integration Unit System Integration Unit...
GAFR00[31:0] will be 0x0000_ 0000 to indicate normal GPIO function. For simplicity, assume that GP[16-31] are inputs configured as normal GPIOs. In this example, • GPIO[0] is configured as a normal GPIO input Intel® PXA255 Processor Developer’s Manual GAFR2_L Description GAFR2_U reserved...
(ICLR) is programmed to send interrupts to the ICIP to generate an IRQ. 4-20 GPIO[12:6], GPIO[13] and GPIO[15] as outputs. This drives – Table 4-29 show the bitmaps of the GPIO Alternate Function registers. – Intel® PXA255 Processor Developer’s Manual identifies all the active interrupts within – contains the interrupts from all...
Power Manager). 1 – Pending interrupt is allowed to become active (interrupts are sent to CPU and Power Manager). Table 4-31, controls whether a pending interrupt generates an FIQ or Intel® PXA255 Processor Developer’s Manual System Integration Unit reserved...
<31:1> — reserved Disable Idle mask. <0> This bit is cleared during all resets. Intel® PXA255 Processor Developer’s Manual ICLR Description 0 – Interrupt routed to IRQ interrupt input. 1 – Interrupt routed to FIQ interrupt input. Table 4-32, contains a single control bit, Disable Idle Mask (DIM). In normal...
1 – IRQ requested by an enabled source. ICFP Description 0 – FIQ NOT requested by any enabled source. 1 – FIQ requested by an enabled source. Intel® PXA255 Processor Developer’s Manual 4-34, contain one bit per interrupt (22 total.) System Integration Unit reserved System Integration Unit...
<24> IS24 MMC Status/Error Detection Interrupt Pending <23> IS23 Intel® PXA255 Processor Developer’s Manual Table 4-35, is a 32-bit read-only register that shows all active interrupts in the ICPR Description 0 – Interrupt NOT pending due to RTC Alarm Match Register.
Page 130
1 – Interrupt pending due to USB service request. 0 – Interrupt NOT pending due to edge detect on one (or more) of GPIO[84:2]. 1 – Interrupt pending due to edge detect on one (or more) of GPIO[84:2]. Intel® PXA255 Processor Developer’s Manual System Integration Unit...
IS<16> Network SSP IS<15> IS<14> AC97 Intel® PXA255 Processor Developer’s Manual ICPR Description 0 – Interrupt NOT pending due to edge detect on GPIO[1]. 1 – Interrupt pending due to edge detect on GPIO[1]. 0 – Interrupt NOT pending due to edge detect on GPIO[0].
RCNR. The value of the counter is unaffected by transitions into and out of Sleep or Idle mode. 4-28 Source Unit # of Level 2 Sources Intel® PXA255 Processor Developer’s Manual Bit Field Description I2S interrupt PMU (Performance Monitor) interrupt USB interrupt “OR”...
31 is used as a Lock Bit. The data in RTTR may be changed only if RTTR[LCK] is cleared. Once, RTTR[LCK] is set to be a one, only a hardware reset can clear the RTTR. Intel® PXA255 Processor Developer’s Manual System Integration Unit Section 4.3.3...
The value compared against the RTC counter. 4-30 RTTR Description 0 – RTTR value is allowed to be altered. 1 – RTTR value is not allowed to be altered. RTAR RTMV Description Intel® PXA255 Processor Developer’s Manual System Integration Unit CK_DIV System Integration Unit...
RCNR through the use of the MMU protection mechanisms (refer to the Intel XScale® Microarchitecture for the Intel® PXA255 Processor User’s Manual for details of MMU operation.)
0 – No RTC alarm has been detected. 1 – An RTC alarm has been detected (RTNR matches RCAR).and ALE bit is set Section 4.1, for details on how to make the clock externally visible. To Intel® PXA255 Processor Developer’s Manual System Integration Unit...
Page 137
Accordingly, program the fractional trim to delete 0.92 cycles per second on average to Intel® PXA255 Processor Developer’s Manual -1 32 kHz clocks to be deleted from the input clock stream once per trim...
OS Timer Match register. All four registers are identical, except for location. A single, generic OS Timer match register is described, but all information is common to all four OS Timer Match Registers. Intel® PXA255 Processor Developer’s Manual for details on reset functionality. System Integration Unit Section 3.4.2, “Watchdog...
1 – A match between OSMR1 and the OS Timer asserts OSSR[M1]. 0 – A match between OSMR0 and the OS Timer will NOT assert OSSR[M0]. 1 – A match between OSMR0 and the OS Timer asserts OSSR[M0]. Intel® PXA255 Processor Developer’s Manual System Integration Unit System Integration Unit...
OIER. The OSSR bits are cleared by writing a one to the proper bit position. Writing zeros to this register has no effect. Write all reserved bits as zeros and ignore all reads. Intel® PXA255 Processor Developer’s Manual Table...
1 – OSMR[1] has matched the OS timer counter. 0 – OSMR[0] has NOT matched the OS timer counter since last being cleared. 1 – OSMR[0] has matched the OS timer counter. Figure Intel® PXA255 Processor Developer’s Manual System Integration Unit 4-3.
PWM_CTRLn[PRESCALE]. This divided PWM module clock drives a 10 bit up-counter. This up- counter feeds 2 separate comparators. The first comparator contains the value of PWM_DUTYn[DCYCLE]. When the values match, the PWM_OUT signal is set high. The other Intel® PXA255 Processor Developer’s Manual System Integration Unit 6-bit down counter...
Note: During abrupt shut down the PWM_OUTn signal may be delayed by up to one PSCLK_PWMn clock period. 4-40 Figure 4-4. 3-36). If the clock is disabled, the unit shuts down in one of two ways: Table 4-46, contains two fields: Intel® PXA255 Processor Developer’s Manual Section 3.6.2, “Clock Enable Section 4.5.2.1.
If FDCYCLE=0x0 and DCYCLE=0x0, PWM_OUTn is set low and does not toggle. Note: If FDCYCLE is 0b1, PWM_OUTn is high for the entire period and is not influenced by the value programmed in the DCYCLE bits. Intel® PXA255 Processor Developer’s Manual PWM Control Registers (PWM_CTRL0, PWM_CTRL1)
0 – PWM clock (PWM_OUTn) duty cycle is determined by DCYCLE field. 1 – PWM_OUTn is set high and does not toggle. Table 4-48, contains a 10 bit field called PV. This field determines or 64 input clocks per output pulse. Intel® PXA255 Processor Developer’s Manual System Integration Unit DCYCLE...
10 (11 clocks) and PWM_DUTYn[DCYCLE] with 6. PWM_CTRLn[PRESCALE] is configured with a value of 0x0 loaded, which results in the PSCLK_PWMn having the same frequency as the 3.6864 MHz input clock. Intel® PXA255 Processor Developer’s Manual PWM Period Control Registers (PWM_PERVAL0, PWM_PERVAL1)
OS timer and the physical addresses used to access them. Table 4-52. OS Timer Register Addresses (Sheet 1 of 2) Address 0x40A0_0000 0x40A0_0004 0x40A0_0008 Intel® PXA255 Processor Developer’s Manual GPIO alternate function select register GAFR1_U GPIO[63:48] GPIO alternate function select register GAFR2_L GPIO[79:64]...
OS timer interrupt enable register Name PWM_CTRL0 PWM0 Control Register PWM_PWDUTY0 PWM0 Duty Cycle Register PWM_PERVAL0 PWM0 Period Control Register PWM_CTRL1 PWM1 Control Register PWM_PWDUTY1 PWM1 Duty Cycle Register PWM_PERVAL1 PWM1 Period Control Register Intel® PXA255 Processor Developer’s Manual Description...
DMA Controller This chapter describes the on-chip DMA controller (DMAC) for the PXA255 processor. The DMAC transfers data to and from main memory in response to requests generated by internal and external peripherals. The peripherals do not directly supply addresses and commands to the memory system.
Internal peripheral DMA request lines. On chip peripherals send requests using the PREQ signals. On-chip The DMAC does not sample the PREQ signals until it peripherals completely finishes the data transfer from peripheral to the memory. Intel® PXA255 Processor Developer’s Manual Definition...
If two or more channels are active and request a DMA, the priority scheme in Request priority does not affect requests that have already started. The DMAC priority scheme is considered when the smaller dimension of the DCMDx[SIZE] or DCMDx[LENGTH] is complete. Intel® PXA255 Processor Developer’s Manual dreq_assert_min dreq_assert_min Table 5-6.
5. The channel waits for the request or starts the data transfer, as determined by the DCMD[FLOW] source and target bits. 6. The channel transmits a number of bytes equal to the smaller of DCMD[SIZE] and DCMD[LENGTH]. Intel® PXA255 Processor Developer’s Manual Table 5-4 for priority scheme examples. DMA Channel Priority 0,1,0,1,0,1,0,1,etc.
Page 157
DDADR register is loaded and the DCSR[RUN] bit is set to a 1. The DMAC priority scheme does not affect DMA descriptor fetches. The next descriptor is fetched immediately after the previous descriptor is serviced. Intel® PXA255 Processor Developer’s Manual Figure 5-4 summarizes this operation.
DCMD[SIZE] is set to a 1, the memory receives the data in the following order: 1. Byte[0] 2. Byte[1] 3. Byte[2] 4. Byte[3] Intel® PXA255 Processor Developer’s Manual Section 5.3.2 for details. show the progression from state to state. Figure 5-5 for details.
The DMA transfers bytes equal to the smaller of DCMD[LENGTH] or DCMD[SIZE]. 5-10 Little Endian DMA Transfers D[0] D[31] DMAC To/From From Word Wide Half-Word Wide Device Device Intel® PXA255 Processor Developer’s Manual from memory From Byte Wide Device...
DTADR, the DCMDx[FLOWTRG] bit must be set to a 1. If DCMDx[IRQEN] is set to a 1, a DMA interrupt is requested at the end of the last cycle associated with the byte that caused DCMDx[LENGTH] to decrement to 0. Intel® PXA255 Processor Developer’s Manual DMA Controller Table 5-5...
Page 162
For a flow-through DMA write to an internal peripheral, use the following settings for the DMAC register bits: • DSADR[SRCADDR] = internal peripheral address • DTADR[TRGADDR] = external memory address • DCMD[INCTRGADDR] = 1 • DCMD[FLOWSRC] = 1 • DCMD[FLOWTRG] = 0 5-12 Intel® PXA255 Processor Developer’s Manual...
Page 165
Note: The process shown for a flow-through DMA write to an external peripheral indicates that the external address increases. Some external peripherals, such as FIFOs, do not require an increment in the external address. Intel® PXA255 Processor Developer’s Manual DMA Controller 5-15...
Write the read value back to the register to clear the interrupt. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Table 5-6, logs the interrupts for each channel.
0 – no interrupt if the channel is in uninitialized or stopped state 1 – enables an interrupt if the channel is in uninitialized or stopped state 0 – no pending request 1 – the channel has a pending request Intel® PXA255 Processor Developer’s Manual DMA Controller reserved Section 5.1.4.2...
Page 169
Only one error incidence per channel is logged. The channel that caused the error is updated at the end of the transfer and is accessible after it logs an error until it is reprogrammed and the corresponding run bit is set. Intel® PXA255 Processor Developer’s Manual DMA Channel Control/Status Register (DCSRx)
1 – Request is mapped to a channel indicated by DRCMRx[3:0] Section 5.1.3 to review the channel priority scheme. Table 5-9) contain the memory address of the next descriptor for a specific Intel® PXA255 Processor Developer’s Manual Table 5-13 DMA Controller CHLNUM...
32-bit aligned, so bits [1:0] are reserved. DSADR cannot contain the address of any other internal DMA, LCD, or MEMC registers. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual DMA Descriptor Address Register (DDADRx)
This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. 5-22 DMA Source Addr Register (DSADRx) SOURCE ADDRESS Uninitialized Description (Table 5-11) is read only in the Descriptor Fetch Mode and is read/write in Intel® PXA255 Processor Developer’s Manual DMA Controller...
These registers contain the channel’s control bits and the length of the current transfer in that channel. On power up, the bits in this register are set to 0. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual DMA Target Addr Register (DTADRx)
0 – no interrupt is generated. 1 – set DCSR[EndIntr] interrupt for the channel when DCMD[LENGTH] is decreased to zero. Indicates that the interrupt is enabled as soon as the data transfer is completed. reserved Intel® PXA255 Processor Developer’s Manual DMA Controller LENGTH...
Page 175
SIZE 15:14 WIDTH — 12:0 LENGTH Intel® PXA255 Processor Developer’s Manual DMA Command Register (DCMDx) Description Device Endian-ness. (read / write). 0 – Byte ordering is little endian 1 – reserved Maximum Burst Size of each data transferred (read / write).
ATM cell), on-the-fly DMA descriptor lists manipulation must be efficient. 1. Write a 0 to DCSR[RUN]. 2. Wait until the channel stops. The channel stop state is reflected in the DCSR:STOPSTATE bit. 5-26 Intel® PXA255 Processor Developer’s Manual...
(nCS[3:0]). Static Bank 4 (16 or 32-bit wide) NOTE: Static Bank 0 must be populated by Static Bank 5 “bootable” memory Intel® PXA255 Processor Developer’s Manual 16-bit PC Card Memory Interface Up to 2-socket support. Requires some external buffering...
Upon enabling an SDRAM partition, a mode register set command (MRS), see sent to the SDRAM devices by writing to the MDMRS register. The PXA255 processor adds support for low-power SDRAM by giving software access to the Extended Mode Register via the MDMRSLP register.
This section provides examples of memory configurations that are possible with the processor. Figure 6-2 shows a system that uses 1M x 16-bit x 4-bank SDRAM devices for a total of 48 Mbytes. Section 6.10.1). Intel® PXA255 Processor Developer’s Manual...
SDRAM. Both SDRAM partitions in a pair (0/1 or 2/3) must be implemented with the same type of SDRAM devices, but the two partition pairs may differ. Section 6.7.7 Table 6-2, is a read/write register and contains control bits for configuring the Intel® PXA255 Processor Developer’s Manual for more information. Section 6.2.1.
Page 192
SDRAM data bus width for partition pair 2/3 DWID2 0 – 32 bits 1 – 16 bits 6-10 MDCNFG reserved Description Figure 6-5 for a description of these timing numbers. Intel® PXA255 Processor Developer’s Manual Memory Controller DTC0 Figure 6-4 Section 6.5.4 Table 6-8.
Page 193
Use SA1111 Addressing Muxing Mode for pair 2/3. Setting this bit will override the addressing bit programmed in MDCNFG:DADDR2. DSA1111_2 For an explanation on how the SA1111 addressing works, see 31:29 — reserved Intel® PXA255 Processor Developer’s Manual MDCNFG reserved Description Figure 6-5 for a description of these timing numbers. Memory Controller...
— reserved 14:7 MDMRS0 MRS value to be written to SDRAM for Partition Pair 0. 6-12 Table 6-3, issues an Mode Register Set (MRS) command to the SDRAM. MDMRS MDCL2 Intel® PXA255 Processor Developer’s Manual Memory Controller MDMRS0 MDCL0 MDBL0...
Page 195
All values in the MDCNFG register must be programmed correctly to ensure proper operation of the SDRAM. The register is used by a low-power SDRAM to control the Partial Array Self- Refresh (PASR) and Temperature Compensated Self-Refresh (TCSR) settings. Intel® PXA255 Processor Developer’s Manual MDMRS MDCL2...
1 – Enable low power MRS for Partition Pair 0/1 LOW POWER MRS VALUE TO BE WRITTEN TO SDRAM FOR PARTITION PAIR 0/1 Table 6-5, is a read/write register and contains control bits that refresh both Intel® PXA255 Processor Developer’s Manual Description...
Section SDRAM Clock Pin 2 (SDCLK2) Divide by 2 Control/Status K2DB2 0 – SDCLK2 is same frequency as MEMCLK 1 – SDCLK2 runs at one-half the MEMCLK frequency Intel® PXA255 Processor Developer’s Manual MDREFR Description 6.7. Memory Controller Memory Controller...
Page 198
0 – SDCLK0 runs at the memory clock frequency. K0DB2 1 – SDCLK0 runs at one-half the memory clock frequency. This bit is automatically set upon hardware or sleep reset. 6-16 MDREFR Description Intel® PXA255 Processor Developer’s Manual Memory Controller...
SDRAM. Program the MDCNFG:DLATCHx and SXCNDF:SXLATCHx fields to a 1 to enable latching using the return clock SDCLK. Intel® PXA255 Processor Developer’s Manual MDREFR Description...
2 x 12 x 9 2 x 12 x 10 2 x 13 x 9 2 x 13 x 10 Table 6-9 for a listing of address mapping options. Intel® PXA255 Processor Developer’s Manual Partition Size (Mbyte/Partition) 16-Bit 32-Bit 2 Mbyte...
Use the information below to connect the processor to the SDRAM devices. Some of the addressing combinations may not apply in SA1111 addressing mode. See listing of supported addressing combinations and how to connect the PXA255 processor to the SA1111.
Table 6-10. Pin Mapping to SDRAM Devices with SA1111 Addressing (Sheet 1 of 3) # Bits Pin mapping to SDRAM devices for SA1111 Addressing Options. MA[24:10] represent the address signals driven from the PXA255 processor. Bank x Row x MA24 MA23 MA22 MA21 MA20 MA19 MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10...
Page 208
Table 6-10. Pin Mapping to SDRAM Devices with SA1111 Addressing (Sheet 2 of 3) # Bits Pin mapping to SDRAM devices for SA1111 Addressing Options. MA[24:10] represent the address signals driven from the PXA255 processor. Bank x Row x MA24 MA23 MA22 MA21 MA20 MA19 MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10...
Table 6-10. Pin Mapping to SDRAM Devices with SA1111 Addressing (Sheet 3 of 3) # Bits Pin mapping to SDRAM devices for SA1111 Addressing Options. MA[24:10] represent the address signals driven from the PXA255 processor. Bank x Row x MA24 MA23 MA22 MA21 MA20 MA19 MA18 MA17 MA16 MA15 MA14 MA13 MA12 MA11 MA10...
Option Value reserved MDMRSx CAS Latency = 2 CAS Latency = 3 Sequential Burst Burst Length = 4 Intel® PXA255 Processor Developer’s Manual MA <24:10> 24:23 22:21 OP code bank bank mask bank bank Figure 6-5 through Figure 6-11.
101 – 6 clocks 110 – 7 clocks 111 – 8 clocks IF SXTP2 = 10 (non-SDRAM timing Fast Flash), this field is not used and must be programmed to 111. Intel® PXA255 Processor Developer’s Manual SXCNFG SXRL2 SXCL2 Description Section 6.5.4.
Page 217
101 – 6 clocks 110 – 7 clocks 111 – 8 clocks IF SXTP0 = 10 (non-SDRAM timing Fast Flash), this field is not used and must be programmed to 111 Intel® PXA255 Processor Developer’s Manual SXCNFG SXRL2 SXCL2 Description...
MRS command. All values in the SXCNFG register must be programmed correctly to ensure proper device operation (refer to the external memory chip product documentation for proper MRS encoding). Information programmed in the SXCNFG[CL] and Intel® PXA255 Processor Developer’s Manual External Address pins at SXMEM CAS Time 22 21...
MRS value to be written to Synchronous Static Memory requiring an MRS command for 14:0 SXMRS0 Bank Pair 0 6.6.3 Synchronous Static Memory Timing Diagrams Figure 6-12 shows a three-beat read cycle for SMROM. 6-38 SXMRS Description Intel® PXA255 Processor Developer’s Manual Memory Controller SXMRS0...
Flash device. The values for this part number are shown as an example. For Intel part number 28F800F3, programming values for this register to ensure proper operation with the processors are shown in Table 6-17.
Value to Program 8 Word Burst Use rising edge of clock Linear burst Order (INTEL BURST ORDER IS NOT SUPPORTED) nWAIT from the Flash device is ignored by the processor. Hold data for one clock 010 -> CAS Latency 3 011 ->...
6.6.4.2 K3 Synchronous StrataFlash Reset The PXA255 processor nRESET_OUT pin must be connected to the K3 #RST pin for Hardware reset, Watchdog reset and sleep mode to work properly. GPIO reset however does not reset the contents of the memory controller configuration register. If GPIO reset operation is required, a...
Page 225
Do not connect MA[1:0] for 32-bit systems. Do not connect MA[0] for 16- bit systems (the PXA255 processor operating in 16-bit mode). For all reads on a 32 bit system DQM[3:0] and MA[1:0] are 0. For all reads on a 16 bit system DQM[1:0] and MA[0] are 0. In the timing diagrams, these byte addresses are shown and referred to as “addr”.
PCI bridge. Normally, when an 8 or 16 bit read is requested, the PXA255 processor asserts all DQM signals and sets the lowest address pins (MA[1:0] for 32 bit external bus and MA[0] for 16 bit external bus) to zero and discards the unwanted portion of data.
Reserved SA1111_5 SA1111_4 SA1111_3 SA1111_2 SA1111_1 SA1111_0 Intel® PXA255 Processor Developer’s Manual MA[1:0] MA[0] SA1111 Name Writes must set this field to zero and Read values should be ignored Enables SA-1111 Compatibility Mode for Static Memory Partition 5. Enables SA-1111 Compatibility Mode for Static Memory Partition 4.
Another exception is non-SDRAM timing Synchronous Flash, which writes asynchronously and requires these programmed values. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. 6-46 Table 6-24, are read/write registers and contain control bits for configuring Intel® PXA255 Processor Developer’s Manual...
RDN1/3/5 Reset Bits Access RBUFFx 14:12 RRRx<2:0> 11:8 RDNx<3:0> Intel® PXA255 Processor Developer’s Manual MSC0 MSC1 MSC2 RDF1/3/5 RT1/3/5 Name Return Data Buffer vs. Streaming behavior. When slower memory devices are being used in the system (e.g. VLIO, slow SRAM/ROM), this bit must be reset to allow the system to not have to remain idle while all data is being read from the device.
Page 230
1 – 16 bits For reset value for RBW0, see This value must be programmed with all memory types including Synchronous Static Memory. This value must not change during normal operation. Intel® PXA255 Processor Developer’s Manual Memory Controller RDN0/2/4 RDF0/2/4 RT0/2/4...
DQM[3:0] are used as byte selects. For all reads, DQM[3:0] are 0b0000. During writes, all 32 data pins are actively driven by the processor regardless of the state of the individual DQM pins. Intel® PXA255 Processor Developer’s Manual RDF+2 RDF+2...
(nPWE = 1) for this write beat to VLIO. This can result in a period when nCS is asserted, but neither nOE nor nPWE is asserted (this happens when there is a write of 1 beat to VLIO, but all byte enables are turned off). Intel® PXA255 Processor Developer’s Manual 5-24. Memory Controller Table 5-12, “DCMDx Bit...
= MD setup to Address changing = 1.5 clk_mems plus board routing delays tDOH = MD hold from Address changing = 0 ns tRDYH = RDY Hold from nOE deasserted = 0 ns Intel® PXA255 Processor Developer’s Manual Figure 6-22 shows the timing for 300ns...
= nCS held asserted after nOE or nPWE deasserted = 1 MEMCLK • tAH = Address hold after nOE or nPWE deasserted = 1 MEMCLK • nOE or nPWE high time between burst beats = (RDN+2) MEMCLKs Intel® PXA255 Processor Developer’s Manual byte addr byte addr byte addr tASWN...
6.7.7.1 FLASH Memory Timing Diagrams and Parameters Non-burst Flash reads have the same timing as non-burst ROMs reads. timing for writes to non-burst asynchronous Flash. 6-58 Figure 6-23 shows the Intel® PXA255 Processor Developer’s Manual...
MCMEMx registers. Also refer to Figure 6-29 Figure 6-30 for a 16-bit PC Card/Compact Flash timing MCMEM0 MCMEM1 MEMx_HOLD Description Intel® PXA255 Processor Developer’s Manual Memory Controller MEMx_ASST MEMx_SET Table 6-29 for a description of this code and its...
11:7 affects on the command assertion. Minimum Number of memory clocks to set up address before command assertion for MCIO MCIOx_SET for socket x is equal to MCIOx_SET + 2. Intel® PXA255 Processor Developer’s Manual MCATT0 MCATT1 ATTx_HOLD Description Table 6-29...
Must be set by software when at least one card is present and must be cleared when all cards are removed. Number-of-Sockets 0 – 1 Socket 1 – 2 Sockets Intel® PXA255 Processor Developer’s Manual x_ASST_HOLD (nPIOW asserted) (nPIOR asserted) # MEMCLKs...
(8 or 16 bits). The PXA255 processor uses nPCE2 to indicate to the expansion device that the upper half of the data bus (MD[15:8]) are used for the transfer, and nPCE1 to indicate that the lower half of the data bus (MD[7:0]) are used.
Table 6-38. 8-Bit I/O Space Read Commands (nIOIS16 = 1) nPCE2 nPCE1 MA<0> nPIOR nPIOW 6.8.4 External Logic for 16-Bit PC Card Implementation The PXA255 processor requires external glue logic to complete the 16-bit PC Card socket interface that allows either 1-socket or 2-socket solutions. Figure 6-27 Figure 6-28 pull-ups shown are included as specified in the PC Card Standard - Volume 2 - Electrical Specification.
GPIO pins. In the data bus transceiver control logic, nPCE1 controls the enable for the low byte lane and nPCE2 controls the enable for the high byte lane.\ Intel® PXA255 Processor Developer’s Manual nPCD0...
4. The Alternate master three-states SDRAM outputs prior to time (t + 2 MEMCLKS). 5. The processor drives SDRAM outputs at time (t + 3 MEMCLKS). 6. The processor asserts SDCKE<1> at time (t + 4 MEMCLKS). 6-72 Intel® PXA255 Processor Developer’s Manual...
Page 255
The memory controller prevents the processor from entering sleep until all outstanding transactions have completed. This includes waiting for the MBREQ signal from the alternate master to deassert. For best sleep performance, the alternate master must immediately give up the bus when MBGNT Intel® PXA255 Processor Developer’s Manual Memory Controller 6-73...
Contains the three inputs pins BOOT_SEL[2:0] for the processor. See BOOT_SEL Time Configurations. Table 6-41. Valid Boot Configurations Based on Processor Type Processor Type (PXA255 processor) Intel® PXA255 Processor Developer’s Manual BOOT_DEF reserved Description Table 6-41 for valid boot configurations. See...
SMROM 16-bit (64 Mbit) (nWORD = ‘0’) MRS value must be 0061h. The number of banks in the device defaults to zero. Intel® PXA255 Processor Developer’s Manual MSC0 7FF0 7FF0 RBW0 = 0 SXCNFG 0004 4531 SXEN0 = 1h, SXCL0 = 4h (CL = 5),...
Software must perform a sequence that involves a subsequent write to SXCNFG to change the RAS latencies. While any SMROM banks are Intel® PXA255 Processor Developer’s Manual PXA255 Processor Reset Value 1 if BOOT_SEL = Synchronous Memory...
Page 262
MRS state and back to NOP. The CAS latency must be the only variable option and is derived from the value programmed in the MDCNFG:MDTC0,2 fields. The burst type is programmed to sequential and the length is set to four. 6-80 Intel® PXA255 Processor Developer’s Manual...
The SDRAM refresh time is chosen by taking the specified refresh time, typically 64 ms, and sub- tracting the GPIO Reset time (found in the Intel® PXA255 Applications Processors Electrical, Me- chanical, and Thermal Specification). For example, the GPIO Reset time is ~360 microseconds, leaving an SDRAM refresh time of (64 ms - 0.360 ms) = 63.64 ms.
Page 264
Register Name MCIO1 Card interface I/O Space Socket 1 Timing Configuration MDMRS MRS value to be written to SDRAM Read-Only Boot-time register. Contains BOOT_SEL and BOOT_DEF PKG_SEL values. Low-Power SDRAM Mode Register Set Configuration MDMRSLP Register Intel® PXA255 Processor Developer’s Manual...
LCD Controller The LCD controller provides an interface from the PXA255 processor to a passive (DSTN) or active (TFT) flat panel display. Monochrome and several color pixel formats are supported. Overview The processor LCD controller supports single- or dual-panel displays. Encoded pixel data created by the core is stored in external memory in a frame buffer in 1, 2, 4, 8, or 16-bit increments.
Programmable wait-state insertion at the beginning and end of each line • Programmable polarity for output enable, frame clock, and line clock • Programmable interrupts for input and output FIFO underrun • Programmable frame and line clock polarity, pulse width, and wait counts Intel® PXA255 Processor Developer’s Manual...
Figure 7-1 illustrates a simplified, top-level block diagram for the processor LCD Controller. Figure 7-1. LCD Controller Block Diagram From Clock Module Raw pixel data Intel® PXA255 Processor Developer’s Manual System Bus LCDClk LCD DMA Controller Control Pixel Data Register Data...
4. Program FDADRx with the memory address of the palette/frame descriptor, as described in Section 7.6.5.2. 5. Enable the LCD controller by writing to LCCR0, as described in Definition for details. Section Intel® PXA255 Processor Developer’s Manual Section 7.3.5. Section 7.6 7.6.1.
DMAC automatically fills the FIFO with a 32-byte burst. Pixel data from the frame buffer remains packed within individual 8-byte entries when it is loaded into the FIFO. If the pixel size is Intel® PXA255 Processor Developer’s Manual LCD Controller...
255 back to 0, as shown in (Table 7-14) and the TMED Control Register (TCR, Time position (frame #) position 1 bit Temporal Modulator Intel® PXA255 Processor Developer’s Manual Table 7-15). Figure 7-2 Pass Filter (Panel) Figure 7-3.
7. If the matrix output is between these boundaries or the original pixel value is 254 or 255, then the data output to the panel is one. In all other cases, it is zero. Intel® PXA255 Processor Developer’s Manual LB=(PixelValue * Frame#) mod 256 + Offset...
LB =FN x CV + Offset Upper Boundary UB =LB + CV force to 1 Pixel Number Adjustor Chapter 4, “System Integration Unit” Intel® PXA255 Processor Developer’s Manual TCR is the TMED Control Register TSR is the TMED Seed Register Generator Data Generator Generator LB >...
The DMAC automatically performs eight word transfers, filling four entries of the input FIFO. Values are fetched from the bottom of the FIFO, one entry at a time, and each 64-bit value is Intel® PXA255 Processor Developer’s Manual LCD Controller...
0 is at the MSB or the LSB of a word boundary. The ordering of RGB values within the 16-bit entry is fixed for little endian. In palette buffer base programmed in register FSADR. 7-10 Figure 7-5, “Base” is the Intel® PXA255 Processor Developer’s Manual...
56 bytes by adding an extra 5 dummy pixels per line (2.5 bytes) to LCCR1[PPL]. If dummy pixels are to be inserted, the panel must ignore the extra pixel clocks at the end of each line that correspond to the dummy pixels. Intel® PXA255 Processor Developer’s Manual Raw Pixel Data<15:0> Red Data<4:0>...
Bus Bandwidth = 614,400 * 60 = 36.9 MB/sec Functional Timing Figure 7-12 through example used is a 320x240 panel. in active display mode.For precise timing relationships, see the Intel® PXA255 Processor Electrical, Mechanical, and Thermal Specification. 7-14 BitsPerPixel Lines ------------------------------------------------------------------------- -...
This field controls the placement of a minimum delay between each LCD DMA request during palette loads to insure enough bus bandwidth is given to other bus masters for accesses. Intel® PXA255 Processor Developer’s Manual PCP = 0 Pixel 1...
DMA request. PDD can be programmed with a 7-18 Section 7.6.5 provides a complete description of how Table 7-3, within all other control registers must be Section 7.6.6 for details. Intel® PXA255 Processor Developer’s Manual...
Page 283
6 bits of green, and 5 bits of blue data; and 5 bits of red, 5 bits of green, and 6 bits of blue data. The RGB format 5:6:5 is normally used, since the human eye can distinguish more shades of green than of red or blue. Intel® PXA255 Processor Developer’s Manual 7-19...
LCD’s frame descriptor has been loaded into the internal DMA registers. When SFM=0, the interrupt is enabled, and whenever the start of frame (SOF) status bit in the LCD 7-20 Chapter 4, “System Integration Unit” 4/8/16 Bits/Pixel Mode, Frame Buffer or Palette Entry Intel® PXA255 Processor Developer’s Manual for GPIO...
Note: In passive color mode, the data pin ordering switches. ordering. Table 7-2. LCD Controller Data Pin Utilization (Sheet 1 of 2) Color/Monochrome Panel Monochrome Monochrome Monochrome Color Intel® PXA255 Processor Developer’s Manual Figure 7-18 Single/ Passive/ Dual Panel Active Panel Single Passive Single...
1 = Quick Disable (QD) status does not generate an interrupt. LCD Disable: 0 = LCD Controller has not been disabled. 1 = LCD Controller has been disabled, or is in the process of disabling. Intel® PXA255 Processor Developer’s Manual Section 7.2.1 LCCR0 Description LCD Controller for more information.
LCD pins. These values must be programmed before enabling the LCD Controller. 7-24 LCCR0 Description interrupt controller). 7-4, contains four bit fields that are used as modulus values for a Intel® PXA255 Processor Developer’s Manual LCD Controller...
Page 289
255. 6 extra “dummy” pixel values must be added to the end of each line in the frame buffer. The display being controlled must ignore the dummy pixel clocks at the end of each line. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual 7-25...
L_LCLK does not toggle during the generation of the EFW line clock periods. 7-26 LCD Controller Control Register 1 Description 7-5, contains four bit fields that are used as values for a collection of down Intel® PXA255 Processor Developer’s Manual LCD Controller...
Page 291
480 pixels. For portrait mode panels, more than 480 pixels can be used as long as total pixels do not exceed 480,000. For example, a 480x640 portrait mode panel can be used. Intel® PXA255 Processor Developer’s Manual LCD Controller...
0b010 = 4-bit pixels 7-28 LCD Controller Control Register 2 Description 7-6, contains bits and bit fields used to control various functions within for details on programming the DMAC to load the palette RAM. BPP Intel® PXA255 Processor Developer’s Manual LCD Controller...
Page 293
When ABC is cleared by the CPU, the down counter is enabled and again decrements each time the AC bias pin is inverted. The number of AC bias pin transitions between each interrupt request ranges from 1 to 15. Setting API to 0x0 disables the API function. Intel® PXA255 Processor Developer’s Manual LCD Controller 7-29...
Page 294
The frequency of the pixel clock for a set PCD value or the required PCD value to yield a target pixel clock frequency can be calculated using the two following equations. If double pixel clock mode (DPC) is enabled, PCD must be set greater than or equal to 1. 7-30 Intel® PXA255 Processor Developer’s Manual...
1 = L_LCLK pin is active low and inactive high. Vertical Sync Polarity: 0 = L_FCLK pin is active high and inactive low. 1 = L_FCLK pin is active low and inactive high. Intel® PXA255 Processor Developer’s Manual LCLK ----------------------------- - 2 PCD –...
DMA frame descriptors. A frame descriptor is a four-word block, aligned on a 16-byte boundary, in main memory: word[0] contains the value for FDADRx 7-32 LCD Controller Control Register 3 Description Section 7.6.5.2, Section 7.6.5.3, Section Intel® PXA255 Processor Developer’s Manual LCD Controller 7.6.5.4, and Section 7.6.5.5 for more...
Frame ID Register can be used to hold the initial frame source address. These read-only registers are loaded indirectly via the frame descriptors, as described in Section 7.6.5.1. Intel® PXA255 Processor Developer’s Manual Table 7-7, correspond to DMA channels 0 and 1 and contain the FDADR0...
Frame ID. — reserved 7-34 FSADR0 FSADR1 Frame Source Address Description 7-9, correspond to DMA channels 0 and 1 and contain an ID field that FIDR0 FIDR1 Frame ID Description Intel® PXA255 Processor Developer’s Manual LCD Controller LCD Controller reserved...
Page 299
These are read-only registers. Ignore reads from reserved bits. Intel® PXA255 Processor Developer’s Manual Table 7-10, correspond to DMA channels 0 and 1 and contain configuration...
The two lowest bits [1:0] are part of the length calculation but must always be zero for 20:0 proper memory alignment. LEN = 0 is illegal. 7-36 LDCMD0 LDCMD1 Description frame (after loading the frame descriptor). last word of this frame. fetching the last word of this frame. Intel® PXA255 Processor Developer’s Manual LCD Controller...
0 = Do not branch after finishing the current frame. 1 = Branch after finishing the current frame. The next descriptor will be fetched from the Intel® PXA255 Processor Developer’s Manual Table 7-11, contain the addresses, aligned on a 4-byte...
FIFOs are filled and emptied at the same time, so that underrun occurs at the same time for both 7-38 7-12, contains bits that signal: Section 4.2, “Interrupt Controller” on page 4-20 Intel® PXA255 Processor Developer’s Manual for more details.
Page 303
(LCCR0[LDM] = 0). LDD remains set until cleared by software. Performing a quick disable by clearing LCCR0[ENB] does not set LDD. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual 7-39...
FIFO. pin has toggled the number of times specified by the LCCR3[API] control-bit field. The counter is reloaded with the value in API but is disabled until the user clears ABC. Intel® PXA255 Processor Developer’s Manual LCD Controller...
Bits Name 31:3 IFRAMEID Interrupt Frame ID — reserved Intel® PXA255 Processor Developer’s Manual LCD Controller Status Register 1 reserved Description 7-13, contains a copy of the Frame ID Register (FIDR) from the descriptor LCD Controller Interrupt ID Register IFRAMEID...
TME Blue Seed value 15:8 TME Green Seed value TME Red Seed Value 7-42 Table 7-14 contains the three (red, green, blue) eight-bit seed values used by the TMED RGB Seed Register 0xAA Description Intel® PXA255 Processor Developer’s Manual LCD Controller 0x55 0x00...
A 1 will select the (recommended) TMED2 matrix, and a 0 will select the older TMED matrix. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual 7-15, selects various options available in the TMED dither algorithm. There LCD Controller Section 7.3.3.
Synchronous Serial Port Controller This chapter describes the Synchronous Serial Port Controller’s (SSPC) signal definitions and operation for the PXA255 processor usage. Overview The SSPC is a full-duplex synchronous serial interface and can connect to a variety of external analog-to-digital (A/D) converters, audio and telecom codecs, and other devices that use serial protocols for transferring data.
SSPSFRM–Depending on the transmission format selected, defines the boundaries of a data frame, or marks the beginning of a data frame. • SSPTXD–Transmit signal for outbound data, from system to peripheral. Chapter 4, “System Chapter 5, “DMA Intel® PXA255 Processor Developer’s Manual...
Page 313
SSPSCLK. The received data is transferred from the serial shifter to the receive FIFO on the first rising edge of SSPSCLK after the last bit has been latched. Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller...
The start and end of a series of back-to-back transfers are similar to those of a single transfer. However, SSPSFRM remains asserted (low) throughout the transfer. The end of a data word on SSPRXD is immediately followed by the start of the next command byte on SSPTXD. Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller Bit<N- Bit<N>...
Logic in the SSPC automatically left-justifies data in the Transmit FIFO so the sample is properly transmitted on SSPTXD in the selected frame format. Bit<0> 1 Clk Bit<N> 4 to 16 Bits Single Transfer Bit<7> Bit<N> Bit<0> Continuous Transfers Intel® PXA255 Processor Developer’s Manual Bit<0> Bit<0> 1 Clk Bit<N> Bit<0>...
7.2 kbps to 1.8432 Mbps. Setting the External Clock Select (ECS) bit to 1 enables an external clock (SSPEXTCLK) to replace the 3.6864 MHz standard internal clock. The external clock is also divided by 2 before it is fed to the programmable divider. Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller Section 8.7.4) to determine how many samples...
SSP is disabled. The reset states for the other control bits are shown in the table, but each reset state must be set to the desired value before the SSPC is enabled. 8-2, contains five bit fields that control SSP data size, frame format, Intel® PXA255 Processor Developer’s Manual...
16 bits, received data is automatically right-justified and the upper bits in the receive FIFO are zero-filled by receive logic. Do not left-justify transmit data before placing it in the Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller...
Page 320
GPIO sleep register. SSPC register settings have no effect on the pins in Sleep mode. 8-10 Chapter 4, “System Integration Unit” Chapter 4, “System Integration Unit”. In Sleep Intel® PXA255 Processor Developer’s Manual...
Microwire Transmit Data Size: MWDS 0 = 8-bit command words are transmitted. 1 = 16-bit command words are transmitted. Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller 8-3, contains bit fields that control SSP functions. SSP Control Register 1 (SSCR1) Description frame.
Page 322
1. Sets threshold level at which Receive FIFO generates an interrupt or DMA request. This level must be set to the desired threshold value minus 1. reserved Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller...
SSPSCLK and SSPSFRM, shifting the SSPSCLK signal one-half phase to the left or right during the SSPSFRM assertion. Figure 8-4. Motorola SPI* Frame Formats for SPO and SPH Programming SSPSCLK SPO=0 SSPSCLK SPO=1 SSPSFRM SSPTXD Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller Bit<N> > Bit<1> Bit<0> Bit<N-1 8-13...
Data word to be written to/read from Transmit/Receive FIFO (Low Word) 31:16 — reserved Intel® PXA255 Processor Developer’s Manual TFT Value RFT Value Min Max Min 8-5, is a single address location that can be accessed by read/write data SSP Data Register (SSDR)
All bits are read-only except ROR, which is read/write. ROR’s reset state is zero. Writes to TNF, RNE, BSY, TFS, and RFS have no effect. Writes to reserved bits are ignored and reads from these bits are undetermined. 8-16 Table 8-6. The SSSR contains bits that signal overrun Intel® PXA255 Processor Developer’s Manual...
FIFO is completely full. This bit can be polled when using programmed I/O to fill the transmit FIFO over its threshold level. This bit does not request an interrupt. Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller SSP Status Register (SSSR)
Page 328
The ROR bit’s setting does not generate any DMA service request. Writing 0b1 to this bit resets ROR status and its interrupt request. Writing a “0” does not affect ROR status. 8.7.4.7 Transmit FIFO Level (TFL) This bit indicates the number of entries currently in the Transmit FIFO. 8-18 Intel® PXA255 Processor Developer’s Manual...
SSP registers associated with the SSP controller and their physical addresses. Table 8-7. SSP Controller Register Summary Address 0x4100_0000 0x4100_0004 0x4100_0008 0x4100_000C 0x4100_0010 Intel® PXA255 Processor Developer’s Manual Synchronous Serial Port Controller Abbreviation SSCR0 SSP Control Register 0 SSCR1 SSP Control Register 1 SSSR SSP Status Register —...
Page 330
Synchronous Serial Port Controller 8-20 Intel® PXA255 Processor Developer’s Manual...
C Bus Interface Unit This chapter describes the Inter-Integrated Circuit (I2C) bus interface unit, including the operation modes and setup for the PXA255 processor. Overview The I C bus was created by the Phillips Corporation and is a serial bus with a two-pin interface.
Page 332
Processor Gate Array C interfaces to the I C bus. Two masters can drive the bus simultaneously, Intel® PXA255 Processor Developer’s Manual C reads data, it is a master- EEPROM Micro - Controller C bus arbitration relies on the wired-AND...
C unit is idle, it defaults to slave-receive mode. This allows the interface to monitor the bus and receive any slave addresses intended for the processor. Intel® PXA255 Processor Developer’s Manual C bus. Polling can be used instead of interrupts. The C bus, an 8-bit buffer for passing data to and Section 9.9.4...
In master-receive mode, the ICR[ACKNAK] must be changed to a negative ACK (see bit, receives the data byte in the IDBR, and sends a STOP condition on the I Intel® PXA255 Processor Developer’s Manual C Slave Section 9.4.8), the interface either C unit remains in Section 9.4.6...
9-2). In master-receive mode, the I ICR[STOP] bit, and the ICR[TB] bit to initiate the last transfer. Software must clear the ICR[STOP] condition after it is transmitted. Intel® PXA255 Processor Developer’s Manual Start Condition Section 9.9.2). The START and the IDBR contents are transmitted on the C bus stays in master-transmit mode for write requests C unit.
C Bus Interface Unit Figure 9-3. START and STOP Conditions No START or STOP Condition ACK/ Data byte START Condition START Target Slave Address R/nW STOP Condition ACK/ Data Byte STOP Intel® PXA255 Processor Developer’s Manual ACK/...
4. After the CPU reads the IDBR, the I bit, allowing the next byte transfer to proceed. Intel® PXA255 Processor Developer’s Manual C Slave Address Register (ISAR) manage data and Section 9.9.2) contains one byte of data or a 7-bit slave address...
C unit reads the first seven bits and C unit reads the eighth bit (R/nW bit) and transmits an ACK pulse. The for actions when a general call address is detected. Figure 9-5). Intel® PXA255 Processor Developer’s Manual C unit transitions to master- C bus...
The I C bus’ multi-master capabilities require I two or more masters generate a START condition in the minimum hold time. Intel® PXA255 Processor Developer’s Manual C Bus C unit sends a negative acknowledge (NAK) to signal the slave- C bus protocol, the ISR[BED] bit is not set for a master-...
9-6). A clock cannot switch from low to high if another master has The master with the longest clock period holds the SCL line low. Figure 9-7 shows the arbitration procedure for two Intel® PXA255 Processor Developer’s Manual C interfaces to the SCL line. Start Counting High Period Wait...
When arbitration is resolved, the winning master sends a restart and begins a valid data transfer. The slave discards the master’s address and use the other data. Intel® PXA255 Processor Developer’s Manual Transmitter 1 Leaves Arbitration Data 1 SDA C bus becomes free.
C unit attempts to resend it when the bus becomes free. • System designer must ensure boundary conditions described in Section 9.4 do not occur. Intel® PXA255 Processor Developer’s Manual C unit transitions from the default C unit enters one of two master modes: describes the I C unit’s...
Page 343
C unit transitions to master-receive mode and waits to receive the read data from the slave device (see Figure example, transitioning from master-receive to master-transmit through a repeated start. Intel® PXA255 Processor Developer’s Manual Mode of Operation • I C master operation data transmit mode.
Byte Byte N Bytes + ACK Repeated Start Data Chaining Slave to Master Data R/nW C unit operates as a slave device. Intel® PXA255 Processor Developer’s Manual Data STOP Byte N Bytes + ACK R/nW Data Data STOP Byte Byte...
Slave-transmit from master- only receiver Figure 9-11 through between master and slave devices. Intel® PXA255 Processor Developer’s Manual Mode of Operation • I C unit monitors all slave address transactions. • ICR[IUE] bit must be set. • I C unit monitors bus for START conditions. When a START is...
N Bytes + ACK Repeated START Data Chaining Slave to Master Figure 9-14 shows a general call address transaction. The least significant bit of Table 9-7 Intel® PXA255 Processor Developer’s Manual Data STOP Byte N Bytes + ACK Data STOP Byte...
When B=1, the sequence is a hardware general call and is not supported by the I the The I C-Bus Specification for information on hardware general calls. C 10-bit addresses and CBUS compatibility are not supported. Intel® PXA255 Processor Developer’s Manual C unit, it must set the ICR[GCD] bit to prevent Second Byte Second Byte...
Read ISR: Slave Address Detected (1), Unit busy (1), R/nW bit (0) 2. Write a 1 to the ISR[SAD] bit to clear the interrupt. 3. Return from interrupt. 4. Set ICR[TB] bit to initiate the transfer. 9-18 C unit. Intel® PXA255 Processor Developer’s Manual C unit...
Read ISR: IDBR Transmit Empty (1), Unit busy (x), R/nW bit (0) 9. Write a 1 to the ISR[ITE] bit to clear the interrupt. 10. Clear ICR[STOP] bit. Intel® PXA255 Processor Developer’s Manual C unit will keep SCL low until C bus and allow next transfer.
Clear ICR[START], set ICR[STOP], set ICR[ALDIE], set ICR[ACKNAK], set ICR[TB] 15. When an IDBR Receive full interrupt occurs (unit is sending stop). Read ISR: IDBR Receive Full (1), Unit Busy (x), R/nW bit (1), ACK/NAK bit (1) 9-20 Intel® PXA255 Processor Developer’s Manual...
C bus is idle when the unit is enabled after reset. When directed to reset, the I unit, except for ISAR, returns to the default reset condition. ISAR is not affected by a reset. Intel® PXA255 Processor Developer’s Manual C unit is not busy before it asserts a reset. Software must also...
C unit to the IDBR and sends it to the serial bus. C bus and the acknowledge cycle is complete. If the C unit inserts wait states until the processor writes the Intel® PXA255 Processor Developer’s Manual C MMRs remain intact. When C bus is hung and C Bus Interface Unit C bus.
1 = Enables the I Slave STOP Detected Interrupt Enable: 0 = Disable interrupt. SSDIE 1 = Enables the I Intel® PXA255 Processor Developer’s Manual C Data Buffer Register reserved C Data Buffer: Buffer for I C bus send/receive data.
Page 354
C clock output for master mode operation. C unit transmits STOP using the STOP ICR bit only. C unit sends STOP without data transmission. C unit when the byte is sent/received. Intel® PXA255 Processor Developer’s Manual C Bus Interface Unit C bus errors: 9.7.
• Arbitration Lost This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual C Control Register C unit sends an ACK pulse after it receives a data byte. C unit sends a negative ACK (NAK) after it receives a data byte.
C unit is using the bus (i.e., unit busy). C bus is busy but the I C unit not busy. C unit is busy. Defined as the time between the first START and STOP. Intel® PXA255 Processor Developer’s Manual C Bus Interface Unit Section 9.4.5.
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Reset 31:7 — reserved mode. Intel® PXA255 Processor Developer’s Manual C Status Register reserved C unit received or sent an ACK on the bus. C unit received or sent a NAK. C unit is in master-transmit or slave-receive mode.
Page 358
C Bus Interface Unit 9-28 Intel® PXA255 Processor Developer’s Manual...
UARTs This chapter describes the universal asynchronous receiver/transmitter (UART) serial ports. The serial ports are controlled via direct memory access (DMA) or programmed I/O. The PXA255 processor has four UARTs: Full Function UART (FFUART), Bluetooth UART (BTUART), Standard UART (STUART) and Hardware UART (HWUART). The HWUART is covered in Chapter 17.
16550’s functions as well as the following features: • DMA requests for transmit and receive data services • Slow infrared asynchronous interface • Non-Return-to-Zero (NRZ) encoding/decoding function 10-2 Section Section 10.1), but does not support Intel® PXA255 Processor Developer’s Manual 10.1) but...
Table 10-1. UART Signal Descriptions (Sheet 1 of 2) Name nCTS nDSR nDCD Intel® PXA255 Processor Developer’s Manual for details on the GPIOs. Type SERIAL INPUT: Serial data input to the receive shift register. In infrared Input mode, it is connected to the infrared receiver input. This signal is present on all three UARTs.
This signal is used by the FFUART and BTUART. Figure 10-1. Data Data Data Data Data <1> <2> <3> <4> <5> Intel® PXA255 Processor Developer’s Manual Description Parit Data Data Stop Stop <6> <7> Bit 1 Bit 2...
UART is 32 bits. The state of the SLCR[DLAB] bit affects the selection of some UART registers. To access the Baud Rate Generator Divisor Latch registers, software must set the SLCR[DLAB] bit high. Intel® PXA255 Processor Developer’s Manual 4-1) then set IER[UUE]. When the UART is UARTs...
Modem Status (read only) Scratch Pad (read/write) Infrared Selection (read/write) Divisor Latch Low (read/write) Divisor Latch High (read/write) Table 10-3, holds the character received by the UART’s Receive Buffer Register reserved Description Intel® PXA255 Processor Developer’s Manual Register Accessed UART...
The divisor’s reset value is 0x0002. For the FFUART and the STUART, the divisor must be set to at least 0x0004 before the UART unit is enabled. These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Table 10-4, holds the data byte that is to be transmitted...
DMA requests are disabled because an error interrupt only occurs when DMA requests are enabled. 10-8 Divisor Latch Low Register reserved Description Divisor Latch High Register reserved Description Table 10-7, enables the five types of interrupts that set a value in the Interrupt Intel® PXA255 Processor Developer’s Manual UART UART...
Interrupt Identification Register (IIR) The UART prioritizes interrupts in four levels (see IIR, shown in Table and identifies the source of the interrupt. Intel® PXA255 Processor Developer’s Manual Interrupt Enable Register reserved Description Table 10-9, stores information that indicates that a prioritized interrupt is pending...
Transmitter requests data. In FIFO mode, the transmit FIFO is at least half empty. In non-FIFO mode, the THR has been transmitted. Modem Status: one or more modem input signal has changed state. Interrupt Identification Register reserved Description Intel® PXA255 Processor Developer’s Manual UART...
10-11, is a write-only register that is located at the same address as the FIFO Control Register reserved Description Intel® PXA255 Processor Developer’s Manual Reading the Receiver FIFO, setting FCR[RESETRF] or a new start bit is received Non-FIFO mode: Reading...
Page 371
The LCR has bits that allow access to the Divisor Latch and bits that can cause a break condition. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual FIFO Control Register reserved...
Word Length Select: Specifies the number of data bits in each transmitted or received character. 00 – 5-bit character WLS[1:0] 01 – 6-bit character 10 – 7-bit character 11 – 8-bit character 10-14 Line Control Register reserved Description Intel® PXA255 Processor Developer’s Manual UART...
0 – There is data in the Transmit Shift Register, the Transmit Holding Register, or the FIFO 1 – All the data in the transmitter has been shifted out Intel® PXA255 Processor Developer’s Manual Table 10-13, provides data transfer status information to the processor.
Page 374
FIFO, not for the most recently received character. 0 – No Framing error 1 – Invalid stop bit has been detected 10-16 Line Status Register reserved Description Intel® PXA255 Processor Developer’s Manual UART...
Page 375
In FIFO mode, DR is cleared if the FIFO is empty (last character has been read from RBR) or the FIFO is reset with FCR[RESETRF]. 0 – No data has been received 1 – Data is available in RBR or the FIFO Intel® PXA255 Processor Developer’s Manual Line Status Register reserved Description...
• DTR = 1 forces DSR to a 1 • RTS = 1 forces CTS to a 1 • OUT1 = 1 forces RI to a 1 • OUT2= 1 forces DCD to a 1 Intel® PXA255 Processor Developer’s Manual UART...
The Interrupt Controller will still trigger interrupts if the pins are in Alternate Function Mode. Note: When bit 0, 1, 2, or 3 is set, a Modem Status interrupt is generated if IER[MIE] is set. This is a read-only. Ignore reads from reserved bits. Intel® PXA255 Processor Developer’s Manual Modem Control Register reserved...
1 – nDSR pin has changed state Delta Clear To Send: DCTS 0 – No change in nCTS pin since last read of MSR 1 – nCTS pin has changed state 10-20 Modem Status Register reserved Description Intel® PXA255 Processor Developer’s Manual UART...
If two stop bits are programmed, the second is included in this interval. • The most recent FIFO read was performed more than four continuous character times ago. Intel® PXA255 Processor Developer’s Manual Table 10-16, has no effect on the UART. It is intended as a scratchpad register...
This prevents the DMAC from attempting to access the FIFOs while software clears the error. When all the errors in the receive FIFO are cleared, receive DMA requests are automatically enabled and can be generated when the trigger level is reached. 10-22 Intel® PXA255 Processor Developer’s Manual...
The IRDA module is managed through the UART to which it is attached. The ISR, shown in Table 10-17, controls IRDA functions. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual UARTs 10-23...
3/16 of a bit wide in the middle of every zero bit and send no pulses for bits that are ones. The pulse for each zero bit must occur, even for consecutive bits with no edge between them. 10-24 Infrared Selection Register reserved Description Intel® PXA255 Processor Developer’s Manual UART...
Note: Note: The SIR TXD output pin is automatically held deasserted when the RCVEIR bit is set. Before setting the RCVEIR bit, check that the TEMT bit is 1. While receiving, any data placed in Intel® PXA255 Processor Developer’s Manual START START shows an asynchronous transmission as it is sent from the UART.
Fast Infrared Communication Port The Fast Infrared Communications Port (FICP) for the PXA255 processor operates at half-duplex and provides direct connection to commercially available Infrared Data Association (IrDA) compliant LED transceivers. The FICP is based on the 4-Mbps IrDA standard and uses four- position pulse modulation (4PPM) and a specialized serial packet protocol developed for IrDA transmission.
If a data field that is not a multiple of eight bits is received, an abort is signalled. Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port Figure...
11-4 x 32 x 26 x 23 x 22 x 16 x 12 Figure 11-2). The chips are synchronized during the reception Intel® PXA255 Processor Developer’s Manual x 11 x 10...
CPU or DMA to fill the FIFO after the FICP is enabled. When the FICP is enabled, the transmit logic issues a service request if its FIFO requires more data. Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port 11-5...
The transmit FIFO is 128 entries deep and 8 bits wide. The receive FIFO is 128 entries deep, 11 bits wide. The receive FIFO uses 3 bits of its entries as status bits. The transmit FIFO and the receive FIFO use two separate, dedicated DMA requests. 11-6 Intel® PXA255 Processor Developer’s Manual...
Each of these hardware-detected events signals an interrupt request to the interrupt controller. The status registers also contain flags for transmitter busy, receiver synchronized, receive FIFO not empty, and transmit FIFO not full (no interrupt generated). Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port 11-7...
Table 11-2, contains eight valid bit fields that control various functions for Fast Infrared Communication Port Control Register 0 (ICCR0) reserved Description address is recognized or address is the broadcast address. Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port...
Page 395
1 = Output of transmit serial shifter is connected to input of receive serial shifter. IrDA transmission. 0 = ICP unit is not enabled. 1 = ICP unit is enabled. Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port Control Register 0 (ICCR0) reserved Description transmit underrun interrupt generation.
The broadcast address 0xFF in the incoming frame always generates a match. 11-10 Table 11-3, contains the 8-bit address match value field that the FICP uses to Fast Infrared Communication Port Control Register 1 (ICCR1) reserved Description Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port...
0b01- receive FIFO service request is generated when the FIFO has 16 bytes or more 0b10- receive FIFO service request is generated when the FIFO has 32 bytes or more 0b11- reserved Intel® PXA255 Processor Developer’s Manual Table 11-4, contains two bit fields that control the polarity of the transmit...
Write - Place data at end of transmit FIFO 11-12 Table 11-5, is a 32-bit register and its lower 8 bits are the top entry of the Fast Infrared Communication Port Data Register (ICDR) reserved Description Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port DATA...
0 = Transmit FIFO has more than 96 entries of data or transmitter disabled. 1 = Transmit FIFO has 96 or less entries of data and transmitter is enabled. DMA service Intel® PXA255 Processor Developer’s Manual Table 11-6, contains bits that signal the transmit FIFO service request,...
Page 400
Status Register 0 (ICSR0) reserved Description pulses or any invalid chips were detected on the receive pin. EOF bit set on last piece of “good” data received before the abort, interrupt requested. Intel® PXA255 Processor Developer’s Manual Fast Infrared Communication Port...
0 = Receiver is in hunt mode or is disabled. 1 = Receiver logic is synchronized with the incoming data (no interrupt generated). Intel® PXA255 Processor Developer’s Manual 11-7, contains flags that indicate that the receiver is synchronized, the Fast Infrared Communication Port...
USB Device Controller This section describes the Universal Serial Bus (USB) protocol and its implementation-specific options for device controllers for the PXA255 processor. These options include endpoint number, type, and function; interrupts to the core; and a transmit/receive FIFO interface. A working knowledge of the USB standard is vital to using this section effectively.
A zero is represented by a transition, and a one is represented by no transition, which produces the data. Each time a zero occurs, the receiver logic synchronizes the baud clock to the Intel® PXA255 Processor Developer’s Manual UDC+/UDC- Pin Levels UDC+ high, UDC- low (same as a 1).
When the UDC detects a packet that is addressed to it, it uses the Endpoint field to determine which of the UDC’s endpoints is being addressed. The Endpoint field contains four bits. Encodings for endpoints 0 (0000b) through 15 (1111b) are allowed. The Endpoint field follows the Address field. 12-4 Intel® PXA255 Processor Developer’s Manual...
CRC5 field (see 1 ms prevents the UDC from entering Suspend mode. Table 12-4. SOF Token Packet Format 8 bits Sync Intel® PXA255 Processor Developer’s Manual +1) called CRC16. For both CRCs, the checker 8 bits 7 bits 4 bits...
8 bits 0–1023 bytes Data Table 12-6 8 bits Table 12-7. Packets sent from the UDC to the host are highlighted in Intel® PXA255 Processor Developer’s Manual Table 12-5). The UDC supports 16 bits CRC16 shows the format of a handshake...
Action UDC successfully received control from host UDC temporarily unable to receive data UDC endpoint needs host intervention UDC detected PID, CRC, or bit stuff error Intel® PXA255 Processor Developer’s Manual USB Device Controller Token Packet Data Packet DATA0/DATA1 None...
Refer to the Universal Serial Bus Specification Revision 1.1 for a full description of host device requests. 12-8 Token Packet Data Packet DATA0 None None DATA0 Packets from UDC to host are boldface Intel® PXA255 Processor Developer’s Manual Figure 12-10 Handshake Packet STALL None...
128 bytes maximum packet Isochronous OUT data, the UDC recognizes the end of the packet, sets UDCCS4[RPC], and an interrupt is generated. Intel® PXA255 Processor Developer’s Manual Name Enables a specific feature such as device remote wake-up or endpoint stalls.
5 V. This solution does not reduce signal bounce, so software must compensate by reading the GPIO repeatedly until it proves to be stable. A third solution is a signal bounce minimization circuit that can tolerate 5 V but produces a 3.3 V signal to the GPIO pin. 12-10 Intel® PXA255 Processor Developer’s Manual...
During sleep, the USB controller is in reset and does not respond to the host PC. When it returns from sleep mode, the peripheral does not respond to its host-assigned address. Intel® PXA255 Processor Developer’s Manual 5 V to 3.3 V 470K 1.5K...
UDCCS0[IPR] to send a zero-length packet without loading data in the FIFO. After it sends the zero-length packet, software sets the internal state machine to EP0_END_XFER. 12-12 until all the data is transmitted or the last data packet is a short packet. Intel® PXA255 Processor Developer’s Manual...
UDCCS0[FTF] bit to clean up any buffer pointers and empty the transmit FIFO. Intel® PXA255 Processor Developer’s Manual until all the data is transmitted or the last data packet is a short packet. are repeated, the host sends a premature STATUS OUT stage, which...
If 12-14 are repeated until all of the data is received. are repeated, the host sends a STATUS IN stage, which indicates that Intel® PXA255 Processor Developer’s Manual...
• Enable the EP1 interrupt to allow the Megacell to directly handle the transaction. 12.5.5.1 Software Enables the DMA If software enables the DMA engine, use the following steps: Intel® PXA255 Processor Developer’s Manual USB Device Controller 12-15...
If the packet size is less than 32 bytes, software uses interrupt mode. 12-16 repeat until all the bulk data is sent to the host PC. repeat until all of the data is sent to the host PC. Intel® PXA255 Processor Developer’s Manual...
Enable the SOF interrupt to handle the transaction on a frame count basis. 12.5.7.1 Software Enables DMA If software enables the DMA engine to handle the transaction: Intel® PXA255 Processor Developer’s Manual repeat until all the data has been read from the host. USB Device Controller 12-17...
12-18 repeat until all the data has been sent to the host. repeat until all of the data is sent to the host PC. repeat until all the data is sent to the host PC. Intel® PXA255 Processor Developer’s Manual...
Page 421
3. If UDCCS4[RNE] is clear and UDCCS4[RSP] is set, the data packet was a zero-length packet. 4. If UDCCS4[RNE] is set, software uses the UDCWC4 count register to read the proper amount of data from the EP4 data FIFO (UDDR4). 5. Software clears the UDCCS4[RPC] bit. Intel® PXA255 Processor Developer’s Manual USB Device Controller 12-19...
UDCCR[REM] bit. 12-20 repeat until all the data has been read from the host. repeat until all the data is sent to the host PC. repeat until all the data is sent to the host PC. Intel® PXA255 Processor Developer’s Manual...
UDC. A status register indicates the state of the interrupt sources. Each of the sixteen endpoints (control, OUT, and IN) have a control or status register. Endpoint 0 (control) has an Intel® PXA255 Processor Developer’s Manual USB Device Controller...
All entries in the transmit and receive FIFO are also reset. 12-22 Table 12-12, contains seven control bits: one to enable the UDC, one to show UDCCR reserved Description Intel® PXA255 Processor Developer’s Manual Read/Write and Read-Only...
Page 425
The UDE bit is cleared to zero, which disables the UDC following a Megacell reset. Writes to reserved bits are ignored and reads return zeros. These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual USB Device Controller 12-23...
(B-step default) 1 = Send NAK response to SET_CONFIGURATION and SET_INTERFACE commands until UDCCFR[AREN] = 1 This bit must be set to 1. 0 = Reserved 1 = Must be configured to 1. Intel® PXA255 Processor Developer’s Manual USB Device Controller...
0 FIFO to be transmitted. The core must not set this bit if a max_packet is to be transmitted. The UDC clears this bit when the packet has been successfully transmitted, the Intel® PXA255 Processor Developer’s Manual Table...
Page 428
IN transmission or the reception of a control OUT, the USIR0[IR0] bit in the UDC interrupt register is set if the endpoint 0 interrupt is enabled via UICR0[IM0]. The Intel XScale® microarchitecture is not able to clear UDCCS0[IPR] and always reads back a zero...
TFS is cleared when two complete packets of data remain in the FIFO. A complete packet of data is signified by loading 64 bytes of data or by setting UDCCSx[TSP]. Intel® PXA255 Processor Developer’s Manual Table 12-15, contains 6 bits that are used to operate endpoint(x), a Bulk...
Page 430
Clear Feature command is sent and the host resumes IN requests, software must clear the transmit FIFO by setting the UDCCSx[FTF] bit. 12.6.4.7 Bit 6 Reserved Bit 6 is reserved for future use. 12-28 Intel® PXA255 Processor Developer’s Manual...
Receive FIFO service (read-only). 0 = Receive FIFO has less than 1 data packet. 1 = Receive FIFO has 1 or more data packets. Intel® PXA255 Processor Developer’s Manual Table 12-16, contains 7 bits that are used to operate endpoint x, a Bulk...
Page 432
UDCCSx[SST] bit is set. To ensure that no data is transmitted after the Clear Feature command is sent and the host resumes IN requests, software must clear the transmit FIFO by setting the UDCCSx[FTF] bit. 12-30 Intel® PXA255 Processor Developer’s Manual...
0 = Transmit FIFO has no room for new data 1 = Transmit FIFO has room for at least 1 complete data packet Intel® PXA255 Processor Developer’s Manual Table 12-17, contains 4 bits that are used to operate endpoint(x), an...
These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. 12.6.7 UDC Endpoint x Control/Status Register (UDCCS4/9/14) UDCCS4/9/14, shown in Isochronous OUT endpoint. 12-32 Table 12-18, contains six bits that are used to operate endpoint(x), an Intel® PXA255 Processor Developer’s Manual...
The receive overflow bit generates an interrupt on IRx in the appropriate UDC status/interrupt register to alert the software that Isochronous data packets are being dropped because neither FIFO buffer has room for them. This bit is cleared by writing a 1 to it. Intel® PXA255 Processor Developer’s Manual UDCCS4 UDCCS9...
Transmit short packet (read/write 1 to set). 1 = Short packet ready for transmission. — reserved 12-34 Table 12-19 contains 6 bits that are used to operate endpoint(x), an UDCCS5 UDCCS5 UDCCS15 reserved Description Intel® PXA255 Processor Developer’s Manual USB Device Controller...
Page 437
The Flush Tx FIFO bit triggers a reset for the endpoint's transmit FIFO. The Flush Tx FIFO bit is set when software writes a 1 to it or when the host performs a SET_CONFIGURATION or SET_INTERFACE. The bit’s read value is zero. Intel® PXA255 Processor Developer’s Manual UDCCS5 UDCCS5...
0 - 7. All of the UICR0 bits are reset to a 1 so interrupts are not generated on initial system reset. 12-36 12-20, contains 8 control bits to enable/disable interrupt service requests Intel® PXA255 Processor Developer’s Manual...
It only blocks future zero to one transitions of the interrupt bit. These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual UICR0 reserved...
It only blocks future zero to one transitions of the interrupt bit. These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. 12-38 12-21, contains 8 control bits to enable/disable interrupt service requests UICR1 reserved Description Intel® PXA255 Processor Developer’s Manual USB Device Controller...
The interrupt request bit is set if the IM1 bit in the UDC interrupt control register is cleared and the IN packet complete (TPC) in UDC endpoint 1 control/status register is set. The IR1 bit is cleared by writing a 1 to it. Intel® PXA255 Processor Developer’s Manual 12-22, and USIR1, shown in Table...
Page 442
OUT packet ready bit (RPC) in the UDC endpoint 7 control/status register is set. The IR7 bit is cleared by writing a 1 to it. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. 12-40 Intel® PXA255 Processor Developer’s Manual...
The interrupt request bit is set if the IM10 bit in the UDC interrupt control register is cleared and the IN packet complete (TPC) or in UDC endpoint 10 control/status register is set. The IR10 bit is cleared by writing a 1 to it. Intel® PXA255 Processor Developer’s Manual USIR1 reserved...
UFNHR, shown in contained in the last received SOF packet, the isochronous OUT endpoint error status, and the SOF interrupt status/interrupt mask bit. 12-42 Table 12-24, holds the three most significant bits of the frame number Intel® PXA255 Processor Developer’s Manual...
SOF interrupt and reads the frame number. This bit is not set if the token packet is corrupted or if the sync or PID fields of the data packet are corrupted. Intel® PXA255 Processor Developer’s Manual UFNHR reserved...
12-44 Table 12-25, is the eight least significant bits of the 11-bit frame number UFNLR reserved Description Table 12-26, maintains the remaining byte count in the active buffer Intel® PXA255 Processor Developer’s Manual USB Device Controller 8-Bit Frame Number LSB...
0 FIFO is after a valid command from the host is received and it requires a transmission in response. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual UBCR2 UBCR4...
UDDR6 UDDR11 reserved Description Table 12-29, is a double-buffered bulk OUT endpoint that is 64 bytes Intel® PXA255 Processor Developer’s Manual USB Device Controller Bottom of Endpoint 0 FIFO (for Reads) Top of Endpoint 0 FIFO (for Writes) USB Device Controller...
OUT packet to Endpoint(x). This NAK condition remains in place until a full packet space is available in the UDC at Endpoint(x). These are read-only registers. Ignore reads from reserved bits. Intel® PXA255 Processor Developer’s Manual UDDR2 UDDR7 UDDR12...
UDDR10 UDDR15 reserved Description Name UDCCR UDC Control Register — reserved for future use UDCCFR UDC Control Function Register — reserved for future use Intel® PXA255 Processor Developer’s Manual USB Device Controller 8-bit Data USB Device Controller 8-bit Data Description...
AC’97 Controller Unit 13.1 Overview The AC’97 Controller Unit (ACUNIT) of the PXA255 processor supports the AC’97 revision 2.0 features listed in Section link is a serial interface for transferring digital audio, modem, mic-in, CODEC register control, and status information.
48 kHz frame indicator and synchronizer. Serial audio output data to CODEC for digital-to-analog conversion. Serial audio input data from Primary CODEC. Serial audio input data from Secondary CODEC. Intel® PXA255 Processor Developer’s Manual Table 13-7 for details on programing the...
One input slot Data is returned on every frame. MDM CDC RSRVD DATA LEFT RIGHT STATUS MDM CDC DATA LEFT RIGHT Data Phase Intel® PXA255 Processor Developer’s Manual RSRVD RSRVD RSRVD RSRVD RSRVD I/O control RSRVD RSRVD RSRVD RSRVD RSRVD I/O Status...
DC biasing, regardless of the implemented DAC’s resolution (16-, 18-, or 20-bit). Note: When the ACUNIT transmits mono audio sample streams, software must ensure that the left and right sample stream time slots are filled with identical data. Intel® PXA255 Processor Developer’s Manual 20.8uS (48 KHz) slot(12) "0"...
Page 458
4. Specify the read/write direction of the access (slot 1, bit 19). 5. Specify the index to the CODEC register (slot 1, bits 18-12) 6. If the access is a write, write the data to the command data port (slot 2, bits 19-4). 13-6 Intel® PXA255 Processor Developer’s Manual...
Slot 3 contains the composite digital audio left playback stream. If the playback stream contains an audio sample with a resolution that is less than 20 bits, the ACUNIT fills all trailing non-valid bit positions with zeroes. Intel® PXA255 Processor Developer’s Manual Description 1 = read, 0 = write...
When the “CODEC is ready” state is sampled, the next 12 sampled bits indicate which of the 12 time slots are assigned to input data streams and whether they contain valid data. Figure 13-5, “AC’97 Input Frame” 13-8 illustrates the time slot-based AC-link protocol. Intel® PXA255 Processor Developer’s Manual...
When the AC-link CODEC Ready indicator bit is a one, the AC-link and AC’97 control and status registers are fully operational. The ACUNIT must probe the CODEC Powerdown Control/Status register to determine which subsections are ready. Intel® PXA255 Processor Developer’s Manual 20.8uS (48 KHz) slot(12) "0"...
Slot 6 contains an optional third PCM system-input channel available for dedicated use by a microphone. This input channel supplements a true stereo output to enable a more precise echo- cancellation algorithm for speakerphone applications. Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit Description...
SDATA_IN to a logic low voltage level. The sequence follows the timing diagram shown in Figure 13-7. Figure 13-7. AC-link Powerdown Timing SYNC BITCLK SDATA_OUT SDATA_IN Note: BITCLK not to scale 13-12 Write to Data slot 12 prev. frame 0x26 slot 12 prev. frame Intel® PXA255 Processor Developer’s Manual...
NOTES: 1. After SDATA_IN goes high, SYNC must be held for a minimum of 1 2. The minimum SDATA_IN wake up pulse width is 1 3. BITCLK not to scale Intel® PXA255 Processor Developer’s Manual Figure Power Down Codec Sleep...
ACUNIT FIFO data: The ACUNIT has two Transmit FIFOs for audio-out and modem-out and three receive FIFOs for audio-in, modem-in, and mic-in. Data enters the transmit FIFOs by writing to either the PCM Data Register (PCDR) or the Modem Data Register (MODR). 13-14 Section 13.8.3. Section 13.8.3.17 Intel® PXA255 Processor Developer’s Manual...
Note: When nACRESET is deasserted, a read to the CODEC Mixer register returns the type of hardware that resides in the CODEC. If the CODEC is not present or if the AC’97 is not supported, the Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit Section 13.3...
Page 468
AC’97 Controller Unit ACUNIT does not set the CODEC-ready bit, GCR[PCRDY] for the Primary CODEC or GCR[SCRDY] for the Secondary CODEC. 13-16 Intel® PXA255 Processor Developer’s Manual...
44.1 kHz. When the CODEC transmits data (ACUNIT-receive mode), it can use the same algorithm to transmit valid frames with some empty ones mixed in between. Intel® PXA255 Processor Developer’s Manual Table 13-8. Software clears this bit by writing a 1 to it.
During receive over-run conditions, data that the CODEC sends is not recorded. 13-18 Figure 13-3. Table 13-11 Table 13-20 Table 13-12, Table 13-16, and Table 13-21 Intel® PXA255 Processor Developer’s Manual for details regarding the status bits. for details regarding the status...
1 = Enables an interrupt to occur when the Primary CODEC sends the CODEC READY bit — reserved 13-20 GCR Register reserved Description address and data to the CODEC. data to the CODEC. CODEC bit on the SDATA_IN_1 pin on the SDATA_IN_0 pin. Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit...
Page 473
1 = If this bit is set, the change in value of a GPI (as indicated by bit 0 of slot 12) causes an 13.8.3.2 Global Status Register (GSR) This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual GCR Register reserved Description...
0 = None of the mic-in channel interrupts occurred. MINT 1 = One of the mic-in channel interrupts occurred. When the specific interrupt is cleared, this bit will be cleared (interruptible). 13-22 GSR Register Description Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit...
0 = No interrupt will occur even if bit 4 in the PISR is set 1 = An interrupt will occur if bit 4 in the PISR is set. — reserved 13-24 POCR Register reserved Description PICR Register reserved Description Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit AC’97 Controller Unit...
1 = A receive FIFO error occurred. This bit is set if a receive FIFO overrun occurs. In this FIFOE Bit is cleared by writing a 1 to this bit position. — reserved Intel® PXA255 Processor Developer’s Manual POSR Register reserved Description this case, the last valid sample is repetitively sent out and the pointers are not incremented.This could happen due to:...
CODEC IO cycle after having read this bit. the currently accessing driver must try again later. (This bit applies to all CODEC IO cycles - GPIO or otherwise). PCDR Register Description Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit AC’97 Controller Unit PCM_LDATA...
1 = An interrupt will occur if bit 4 in the MCSR is set. — reserved 13.8.3.10 Mic-In Status Register (MCSR) This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Write Processor/DMA Processor/DMA PCDR Register RxFIFO...
FIFO and will be lost. This could happen due to DMA controller having excessive bandwidth requirements and hence not being able to flush out the Receive FIFO in time. MCDR Register Description Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit AC’97 Controller Unit MIC_IN_DAT...
1 = An interrupt will occur if bit 4 in the MOSR is set. — reserved 13.8.3.13 Modem-In Control Register (MICR) This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Receive Data RxEntry15 MCDR Register Mic-in Receive FIFO...
No more valid buffer data available for transmits. d. Buffer data available but DMA controller has excessive bandwidth requirements. Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit AC’97 Controller Unit...
MODEM_DAT Modem data A 32-bit sample write to this register updates the data into the Modem Transmit FIFO. A read to this register gets a 32-bit sample from the Modem Receive FIFO. Intel® PXA255 Processor Developer’s Manual MISR Register reserved...
Page 484
In the equations, Shift_Left_Once() shifts the 7-bit CODEC address left by one bit and shifts a 0 to the LSB. The address translations are shown in 13-32 Processor/DMA Processor DMA Write Read MODR Register 0x0000 Table 13-23. Intel® PXA255 Processor Developer’s Manual Receive Data RxEntry15 Modem Receive FIFO RxEntry3 RxEntry2 RxEntry1 RxEntry0...
(0x4050_0300 - 0x4050_03FC) with all in increments of 0x00004 (0x4050_0400 - 0x4050_04FC) with all in increments of 0x0000_0004 (0x4050_0500 - 0x4050_05FC) with all in increments of 0x00004 Intel® PXA255 Processor Developer’s Manual AC’97 Controller Unit Name Description POCR PCM Out Control Register...
Inter-Integrated-Circuit Sound (I Controller S is a protocol for digital stereo audio. The I PXA255 processor controls the I for stereo audio. The I the same time. 14.1 Overview The I2SC consists of buffers, status and control registers, serializers, and counters for transferring...
= SYNC * 64 Left/Right identifier Serial audio output data to CODEC Serial audio input data from CODEC for details regarding the GAFR. Intel® PXA255 Processor Developer’s Manual Description Section 4.1.3.2, “GPIO Pin for details regarding the GPDR. Section 4.1.3.6, Section 14.6.1,...
1. Set the BITCLK direction by programming the SYSUNIT’s GPIO Direction register, the SYSUNIT’s GPIO Alternate Function Select register, and bit 2 of the I2SC’s Serial Audio Controller Global Control Register (SACR0). Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller for details regarding the GAFR.
DREC bit of the SACR1 Register. For more details, see 14-4 S or MSB-Justified modes of operation. This can be done by S/MSB-Justified Control Register (SACR1). Section 14.6.2. Section 14.6.5. Intel® PXA255 Processor Developer’s Manual Section 14.6.3. Section 14.6.1.2, regarding Section 14.6.2.
BITCLK and SYSCLK are configured as output pins, and both are supplied to the CODEC. If BITCLK is supplied by the CODEC, then it is configured as an input pin. In this case, the SYSCLK’s GPIO pin can be used for an alternate function. Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller Section 14.6.3,...
Figure 14-2. MSB-Justified Data Formats (16 bits BITCLK SData_Out SYNC Note: Timing for SData_In is identical to SData_Out. Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller provide timing diagrams that show formats for I cycle0 13 14 15 16...
BITCLK domain. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. 14-8 14-3, controls common I S functions. Intel® PXA255 Processor Developer’s Manual...
Under normal operating conditions, the processor or the DMA controller can only write to the Transmit FIFO and only read the Receive FIFO. Programming these bits allows the processor or the DMA controller to read and write both FIFOs. Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller Serial Audio Controller Global...
• I2SLINK can read the Transmit FIFO but cannot write to the Receive FIFO. Table 14-5 shows the recommended TFTH and RFTH # of FIFO entries TFTH Value S/MSB-Justified Control Register 14-6, specifically controls the I2S and MSB-Justified modes. Intel® PXA255 Processor Developer’s Manual RFTH Value...
S attempted data read from an empty Transmit FIFO S Busy: S is idle or disabled S currently transmitting or receiving a frame 14-8, is used for generating six different BITCLK frequencies and hence Intel® PXA255 Processor Developer’s Manual S Controller S disabled S disabled...
Clear Receive FIFO overrun Interrupt and ROR status bit in SASR0. Clear Transmit FIFO under-run Interrupt and TUR status bit in SASR0. — reserved Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller Serial Audio Clock Divider Register reserved Description 14-9, is the Interrupt Control Register.
Serial Audio Interrupt Mask Register reserved Description Table 14-11, updates the data into the Transmit FIFO. Serial Audio Data Register Description Intel® PXA255 Processor Developer’s Manual Table 14-10, enables the S Controller 5 4 3 reserved 0 0 0 S Controller...
All registers are word addressable (32 bits wide) and hence increment in units of 0x00004. All I2SC registers are mapped in the address range of 0x4040_0000 through 0x4040_0080, as shown Table 14-12. Intel® PXA255 Processor Developer’s Manual Inter-Integrated-Circuit Sound (I2S) Controller Processor/DMA Write...
15.1 Overview The PXA255 processor MultiMediaCard (MMC) controller acts as a link between the software used to access the processor and the MMC stack (a set of memory cards). The MMC controller is designed to support the MMC system, a low-cost data storage and communications system. A detailed description of the MMC system is available through the MMC Association’s web site at...
SPI mode. Block Data Description start bit data CRC7 end bit Description start byte data CRC16 Intel® PXA255 Processor Developer’s Manual Description start bit transmission bit command index argument CRC7 end bit Table 15-2 shows the...
MMCMD signal and the response and read data tokens are received on the MMDAT signal. a data token. Figure 15-5 respectively. Intel® PXA255 Processor Developer’s Manual Figure 15-2 while Figure 15-3 from host to card...
Response data from card to from card to Response Data Block data from host to from card to Data response Data Block Response Data Response Intel® PXA255 Processor Developer’s Manual from card to host Response Busy Next Command Command Busy...
Page 509
8-bit transmit FIFOs that are 32 entries deep. The registers and FIFOs are accessible by the software. The MMC controller also enables minimal data latency by buffering data and generating and checking CRCs. Refer to Section 15.4 for examples. Intel® PXA255 Processor Developer’s Manual 15-5...
Chip Select 0 (used only in SPI mode) Output Chip Select 1 (used only in SPI mode) for a complete description of the GPIO alternate Section 2.6, “Reset” on page Intel® PXA255 Processor Developer’s Manual Description for a description of the process Section 4.1.2, 2-6. All registers...
Page 511
For read transfers, the stop transmission command may occur after the data transmission has occurred. There is no CRC protection for data in this mode. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller Table 15-1).
Interrupts and masking are described in CMDAT[DMA_EN] bit will also mask the MMC_I_MASK[RXFIFO_RD_REQ] and MMC_I_MASK[TXFIFO_WR_REQ] interrupt bits. 15-8 Section 15.5.11 Section 15.5.12. The Intel® PXA255 Processor Developer’s Manual...
Stopping the clock while data is in the transmit or receive FIFOs will cause unpredictable results. If the software stops the clock at any time, it must wait for the MMC_STAT[CLK_EN] status bit to be cleared before proceeding. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller 15-9...
The receive FIFO is readable on byte boundaries and the FIFO read request is only asserted once per FIFO access (once per 32 bytes available). Therefore, 32 bytes must be read for each request, except for the last read which may be less than 32 bytes. 15-10 Intel® PXA255 Processor Developer’s Manual...
Page 515
The transmit FIFO is writable on byte boundaries and the FIFO write request is only asserted once per FIFO access (once per 32 entries available). Therefore, 32 bytes must be written for each request, except for the last write which may be less than 32 bytes. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller 15-11...
The CMDAT[DMA_EN] bit must be set to a 1 to enable communication with the DMA and it must be set to a 0 to enable program I/O. 15.3 Card Communication Protocol This section discusses the software’s responsibilities and the communication protocols used between the MMC and the card. 15-12 Intel® PXA255 Processor Developer’s Manual...
• MMC_NOB After the software writes the registers and starts the clock, the software must read the MMC_RES as described above and read or write the MMC_RXFIFO or MMC_TXFIFO FIFOs. Intel® PXA255 Processor Developer’s Manual Section 15.4. Section 15.3.1. In addition, before starting the...
Page 518
The block length if the block length is different from the previous block data transfer or this is the first time that the parameter is being specified. • The number of blocks to be transferred. 15-14 Intel® PXA255 Processor Developer’s Manual...
Page 519
The software must then stop the clock, write the registers for a stop transmission command, and then start the clock. At this point, the software must wait for the MMC_I_REG[DATA_TRAN_DONE] and MMC_I_REG[PRG_DONE] interrupts. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller × Section 15.3.2.1.
If the software disconnects a card while it is in a busy state, the busy signal will be turned off and the software can connect a different card. The software may not start another command sequence on the same card while the card is busy. 15-16 Section 15.3.2.2. Intel® PXA255 Processor Developer’s Manual...
To communicate with a card in SPI mode, the software must set the MMC_SPI register as follows: 1. MMC_SPI[SPI_EN] must be set to 1. 2. MMC_SPI[SPI_CS_EN] must be set to 1. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller Section 15.3.1.
15.4.4. These registers must be set before the clock is started: • Set MMC_NOB register to 0x0001. • Set MMC_BLKLEN to the number of bytes per block. 15-18 Section 15.4.1. Section 15.4.1. Section 15.4.4 with the following additions: the Intel® PXA255 Processor Developer’s Manual...
MMC_I_REG[PRG_DONE] interrupt. This ensures that the card is not in the busy state. 15.4.7 Single Block Read In a single block read command, the software must stop the clock and set the registers as described Section 15.4.4. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller Section 15.4.4. 15-19...
The multiple block read mode requires a stop transmission command, CMD12, after the data from the card is received. After the MMC_I_REG[DATA_TRAN_DONE] interrupt has occurred, the software must program the controller registers to send a stop data transmission command. 15-20 Section 15.4.4. Intel® PXA255 Processor Developer’s Manual...
In a stream read command, the software must stop the clock and set the registers as described in Section 15.4.4. These registers must be set before the clock is turned on: • Set MMC_NOB register to ffffh. Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller Section 15.4.4. Section 15.4.4.
Reads from this register are unpredictable. This is a write-only register. Write zeros to reserved bits. 15-22 Section 15.4.4. Table 15-23 describe the registers and FIFOs. Table 15-5, allows the software to start and stop the MMC bus Intel® PXA255 Processor Developer’s Manual Section 15.4.4.
Program Done PRG_DONE Data Transmission Done DATA_TRAN_ DONE 10:9 — reserved Intel® PXA255 Processor Developer’s Manual MMC_STRPCL Register reserved Description Table 15-6, is the status register for the MMC controller. The register is MMC_STAT Register Description 0 – Command and response sequence has not completed 1 –...
1 – Card response timed out 0 – Card read data has not timed out 1 – Card read data timed out Table 15-7, specifies the frequency division of the MMC bus clock. The Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller...
Specifies the relative address of the card to activate the SPI CS SPI_CS_ADD RESS SPI Chip Select Enable SPI_CS_EN CRC Generation Enable CRC_ON Intel® PXA255 Processor Developer’s Manual MMC_CLKRT Register reserved Description Table 15-8, is for SPI mode only and is set by the software. MMC_SPI Register...
Name 31:7 — reserved RES_TO Number of MMC clocks before a response time-out Intel® PXA255 Processor Developer’s Manual MMC_CMDAT Register reserved Description 0 – Data transfer of the current command sequence is not in stream mode 1 – Data transfer of the current command sequence is in stream mode 0 –...
Specifies the length of time before a data read time-out 15-28 Table 15-11, determines the length of time that the controller waits after a × MMC_RDTO[READ_TO] 20MHz MMC_RDTO Register Description Intel® PXA255 Processor Developer’s Manual × MMC_RDTO[READ_TO] ----------------------------------------------------------------------------------------- - sec MultiMediaCard Controller READ_TO...
Bits Name 31:16 — reserved 15:0 MMC_NOB Number of blocks for a multiple block transfer Intel® PXA255 Processor Developer’s Manual Table 15-12, specifies the number of bytes in a block of data. MMC_BLKLEN Register reserved Description Table 15-13, specifies the number of blocks.
Buffer is partially full and must be swapped to the other transmit buffer Table 15-15, masks off the various interrupts when set to a 1. MMC_I_MASK Register reserved Description 0 – Not masked 1 – Masked Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller MultiMediaCard Controller...
MMC_CMDAT register. The software is responsible for monitoring these bits in program I/O mode. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual MMC_I_MASK Register reserved Description 0 –...
0 – Card has not finished programming and is busy 1 – Card has finished programming and is no longer busy 0 – Data transfer is not complete 1 – Data transfer has completed or a read data time-out has occurred Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller...
15-21, contains the response after a command. It is 16 bits wide MMC_RES FIFO Entry Description Table 15-22, consists of two dual FIFOs, where each FIFO is eight bits MMC_RXFIFO Entry reserved Description Intel® PXA255 Processor Developer’s Manual MultiMediaCard Controller RESPONSE_DATA MultiMediaCard Controller READ_DATA...
0x4110_0018 0x4110_001c 0x4110_0020 0x4110_0024 0x4110_0028 0x4110_002c 0x4110_0030 0x4110_0034 0x4110_0038 Intel® PXA255 Processor Developer’s Manual Table 15-23, consists of two dual FIFOs, where each FIFO is eight bits MMC_TXFIFO Entry reserved Description Name MMC_STRPCL Control to start and stop MMC clock...
Network SSP Serial Port This chapter describes the signal definitions and operation of the Intel® PXA255 Processor Network Synchronous Serial Protocol (NSSP) serial port. The NSSP is configured differently than the SSPC. 16.1 Overview The NSSP is a synchronous serial interface that connects to a variety of external analog-to-digital (A/D) converters, telecommunication CODECs, and many other devices that use serial protocols for data transfer.
16.4 Operation The SSP controller transfers serial data between the PXA255 processor and an external device through FIFOs. The PXA255 processor CPU initiates the transfers using programmed I/O or DMA bursts to and from memory. Separate transmit and receive FIFOs and serial data paths permit simultaneous transfers in both directions to and from the external device, depending on the protocols chosen.
Note: The time-out interrupt must be enabled by setting SSCR1[TINTE]. 16.4.3 Data Formats Four pins transfer data between the PXA255 processor and external CODECs or modems. Although four serial-data formats exist, each has the same basic structure and in all cases the pins are used as follows: Intel®...
Page 546
Note: The serial clock (SSPSCLK), if driven by the SSP, toggles only while an active data transfer is underway, unless receive-without-transmit mode is enabled by setting SSCR1[RWOT] and the frame format is not Microwire*, in which case the SSPSCLK toggles regardless of whether 16-4 Intel® PXA255 Processor Developer’s Manual...
(a block of transfers is a group of back-to-back continuous transfers). Figure 16-1. Texas Instruments Synchronous Serial Frame* Protocol (multiple transfers) SSPSCLK SSPSFRM SSPTX SSPRX Intel® PXA255 Processor Developer’s Manual Figure 16-1 through shows the TI Synchronous Serial Protocol for a single transmitted frame. Bit[0] Bit[N] Bit[N-1]...
Figure 16-4 protocol for a single transmitted frame. 16-6 Bit[N] Bit[N-1] Bit[1] Undefined Bit[N] Bit[N-1] Bit[1] 4 to 32 Bits shows one of the four possible configurations for the Motorola SPI* frame Intel® PXA255 Processor Developer’s Manual Bit[0] Bit[0] Undefined A9518-02...
SSPSCLK continues to transition for the rest of the frame. It is then held in its inactive state for one-half of an SSPSCLK period before SSPSFRM is de-asserted high at the end of the frame. Intel® PXA255 Processor Developer’s Manual Bit[0]...
(the LSB). If SSCR0[SSE] is cleared, SSPTXD goes low. The state of 16-8 SPO=0 SPO=1 Bit[N] Bit[N-1] Bit[1] Undefined Bit[N] Bit[N-1] Bit[1] 4 to 32 Bits Intel® PXA255 Processor Developer’s Manual Bit[0] End of Transfer Data State Bit[0] Undefined A9652-01...
Figure 16-7 shows the National Semiconductor Microwire* frame protocol with eight-bit command words when back-to-back frames are transmitted. Semiconductor Microwire* frame protocol with eight-bit command words for a single transmitted frame. Intel® PXA255 Processor Developer’s Manual SPO=0 SPO=1 Bit[N] Bit[N-1]...
Page 552
Bit[N] Bit[0] Undefined Frame Protocol (single transfers) Bit[7] or End of Transfer Data Bit[0] Bit[15] 8 or 16-Bit Control Undefined Bit[N] Intel® PXA255 Processor Developer’s Manual Bit[1] Bit[0] Bit[N] Undefined A9653-01 State Undefined Bit[0] Undefined 4 to 32 Bits A9521-02...
(when SCMODE = 2) SSPSCLK (when SCMODE = 3) SSPTXD SSPRXD SSPSFRM (when SFRMP = 1) SSPSFRM (when SFRMP = 0) Intel® PXA255 Processor Developer’s Manual for more information. Undefined Undefined Network SSP Serial Port Transfer Data State End of Transfer Data State...
Serial clock mode (SSPSP[SCMODE]) Serial frame polarity (SSPSP[SFRMP]) Start delay (SSPSP[STRTDLY]) Dummy start (SSPSP[DMYSTRT]) Data size Intel® PXA255 Processor Developer’s Manual End of Transfer Data State Undefined A9522-02 Range Units 0 - Fall, Rise, Low 1 - Rise, Fall, Low —...
SSPSCLK or SSPSFRM is configured as an input. 16.4.4 Hi-Z on SSPTXD The PXA255 processor NSSP supports placing SSPTXD into Hi-Z during idle times instead of driving SSPTXD. SSCR1[TTE] enables Hi-Z on SSPTXD. SSCR1[TTELP] controls when SSPTXD is placed into Hi-Z.
If the SSP is a master to frame, SSPTXD is Hi-Z two clock edges after the clock edge that drives the LSB. This occurs even if the SSP is a master of clock and this clock edge does not appear on the SSPSCLK. Figure 16-16 Intel® PXA255 Processor Developer’s Manual Bit[7] or Bit[0] Bit[15]...
16.4.5.1 Using Programmed I/O Data Transfers The PXA255 processor can perform FIFO filling and emptying in response to an interrupt from the FIFO logic. Each FIFO has a programmable trigger threshold at which an interrupt is triggered. When the number of entries in the receive FIFO exceeds the value in SSCR1[RFT], an interrupt is generated (if enabled).
Before enabling the SSP (via SSE) the desired values for this register must be set. These are read/write registers. Ignore reads from reserved bits. Write zeros to reserved bits. 16-18 16-3, contains bit fields that control various functions within the SSP. Intel® PXA255 Processor Developer’s Manual...
29-bit data 0b1101 30-bit data 0b1110 31-bit data 0b1111 32-bit data 16-4, contains bit fields that control various SSP functions. Before Intel® PXA255 Processor Developer’s Manual Network SSP Serial Port 11 10 9 Description Data Size 0b0000 reserved, undefined 0b0001...
TTELP EBCEI SCFR 27:26 — Intel® PXA255 Processor Developer’s Manual SSCR1 20 19 18 17 16 15 14 13 12 Description TRANSMIT HI-Z LATER PHASE: This bit modifies the behavior of TTE. It causes SSPTXD to become Hi-Z 1/2 phase (or one clock edge) later than normal.
SSSR[BUSY] remains active (set to 1) until software clears the RWOT bit. 0 – Transmit/Receive mode. 1 – Receive With Out Transmit mode. reserved 16-5, contains bit fields used to program the various programmable serial- Intel® PXA255 Processor Developer’s Manual Network SSP Serial Port 11 10 9 Description...
(SSCR1[SFRMDIR] set), this bit indicates the polarity of the incoming frame signal. 0 – SSPSFRM is active low. 1 – SSPSFRM is active high. Intel® PXA255 Processor Developer’s Manual SSPSP 20 19 18 17 16 15 14 13 12 SFRMWDTH...
16-6,specifies the time-out value used to signal a period of SSTO 20 19 18 17 16 15 14 13 12 16-25, contains bit fields used for testing purposes only. Intel® PXA255 Processor Developer’s Manual Network SSP Serial Port 11 10 9 SFRMDLY...
FIFO. The other register is temporary storage for data coming in through the receive FIFO. 16-28 SSSR 20 19 18 17 16 15 14 13 12 16-9, is a single address location that read and write data transfers access. Intel® PXA255 Processor Developer’s Manual Network SSP Serial Port 11 10 9 Description...
Hardware UART This chapter describes the signal definitions and operations of the PXA255 processor hardware UART (HWUART) port. The HWUART interface pins are available via either the PCMCIA general purpose I/O (GPIO) pins or the BTUART pins. Refer to information. When using the HWUART through the PCMCIA pins, they are driven at the same voltage level as the memory interface.
Page 574
— Break, parity, and framing error simulation • Fully prioritized interrupt system controls • Separate DMA requests for transmit and receive data services • Slow infrared asynchronous interface that conforms to the Infrared Data Association (IrDA) standard 17-2 Intel® PXA255 Processor Developer’s Manual –1 to...
17.3 Signal Descriptions Table 17-1 lists and describes each external signal that is connected to the UART module. The pins are connected to the PXA255 processor through GPIOs. Table 17-1. UART Signal Descriptions Name Type SERIAL INPUT – Serial data input to the receive shift register. In infrared mode, it is connected to the infrared Input receiver input.
The UART has a transmit FIFO and a receive FIFO each holding 64 characters of data. There are three separate methods for moving data into and out of the FIFOs: interrupts, polling, and DMA. 17-4 Figure 17-2 Intel® PXA255 Processor Developer’s Manual shows the data byte 0b 0100 1011 in...
Transmit Data Service – The processor checks the transmit data request (LSR[TDRQ]) bit which is set when transmitter needs data. The processor can also check the transmitter empty (LSR[TEMT]) bit, which is set when the transmit FIFO and Transmit Holding register are empty. Intel® PXA255 Processor Developer’s Manual Hardware UART 17-5...
Page 578
If an error occurs when the receive FIFO trigger threshold has been reached, such that a receive DMA request is set, users need to wait for the DMA to finish the transfer before reading out the error bytes through programmed I/O. If not, FIFO underflow could occur. 17-6 Intel® PXA255 Processor Developer’s Manual...
'1'. If a logic '0' is transmitted, the auto-baud circuit counts the zero as part of the start bit, resulting in an incorrect baud rate being programmed into the Divisor Latch Register Low (DLL) and Divisor Latch Register High (DLH) registers. Intel® PXA255 Processor Developer’s Manual Section 17.4.2.1.
The pulse for each zero bit must occur, even for consecutive bits with no edge between them. 17-8 for more information on auto-baud. Intel® PXA255 Processor Developer’s Manual Section 17.5.8). When the formula Section 17.5.3 can be programmed by...
The RCVEIR and XMITIR bits in the Infrared Selection Register (ISR) must not be set at the same time (refer to Intel® PXA255 Processor Developer’s Manual shows an asynchronous transmission as it is sent from the UART. The Figure 17-4).
DMA controller do not service the receive FIFO at the same time. When a character timeout indication interrupt occurs, the processor must handle the data in the receive FIFO through programmed I/O. Intel® PXA255 Processor Developer’s Manual 14.7456 MHz ---------------------------------- 16xDivisor describe the DLL and DLH registers.
Non-FIFO mode: Transmit Holding register empty FIFO mode: transmit FIFO has half or less than half data. Intel® PXA255 Processor Developer’s Manual PXA255 Processor Hardware UART RESET Control — Reading the Line Status register. Non-FIFO mode – Reading the Receiver Buffer register.
RESETTF completes the current transmission. 0 = Writing 0 has no effect 1 = The transmitter FIFO is cleared Intel® PXA255 Processor Developer’s Manual Interrupt SET/RESET Function Source Clear to send, data set ready, ring indicator, received line signal detect.
UART interrupts the processor with the auto-baud lock interrupt (IIR[ABL] – it has written the count value into the ACR. The value is written regardless of the state of the auto- baud UART program bit (ABR[ABUP]). Intel® PXA255 Processor Developer’s Manual Table 17-12, controls the functionality and options for auto-baud-rate Section 17.5.9).
1 = Forces parity bit to be opposite of EPS bit value 17-18 Autobaud Count Register (ACR) Description Table 17-14 specifies the format for the asynchronous data communications Line Control Register (LCR) reserved Description Intel® PXA255 Processor Developer’s Manual PXA255 Processor Hardware UART Count Value PXA255 Processor Hardware UART...
The LSR must be read before the erroneous character is read. LSR[4:1] bits are set until software reads the LSR. Section 17.4.2.3 This is a read-only register. Ignore reads from reserved bits. Intel® PXA255 Processor Developer’s Manual Line Control Register (LCR) reserved Description 00 –...
0 = No break signal has been received 1 = Break signal received 17-20 Line Status Register (LSR) reserved Description empty (FCR[TIL]=1), or the UART is waiting for data (non-FIFO mode) Intel® PXA255 Processor Developer’s Manual PXA255 Processor Hardware UART...
The MCR also controls the loopback mode. Loopback mode must be enabled before the UART is enabled. This is a read/write register. Ignore reads from reserved bits. Write zeros to reserved bits. Intel® PXA255 Processor Developer’s Manual Line Status Register (LSR) reserved...
(nRTS and nDTR) are forced to their inactive state. • RTS = 1 forces CTS to 1 • RTS = 0 forces CTS to a 0 Intel® PXA255 Processor Developer’s Manual PXA255 Processor Hardware UART...
31 30 29 28 27 26 25 24 23 22 21 20 19 18 17 16 15 14 13 12 11 10 9 Reset ? Bits Name 31:5 — reserved Intel® PXA255 Processor Developer’s Manual Modem Control Register (MCR) reserved Description Table 17-17, provides the current state of the control lines from the modem or Modem Status Register (MSR)
Description Table 17-18, has no effect on the UART. It is intended as a scratchpad register Scratchpad Register (SCR) reserved Description Intel® PXA255 Processor Developer’s Manual PXA255 Processor Hardware UART PXA255 Processor Hardware UART Table 17-19, controls IrDA functions...
Need help?
Do you have a question about the PXA255 and is the answer not in the manual?
Questions and answers