Spear 320 S
Spear 320 S
Features
■ ARM926EJ-S CPU core, up to 333 MHz
■ Multilayer bus matrix, up to 166 MHz
■ Internal memories: 32 KB ROM, 8 KB SRAM
■ Memory interfaces: LFBGA289 (15 x 15 x 1.7 mm)
– DDR controller (DDR2-666, LPDDR-333),
8-/16-bit ■ Miscellaneous functions:
– Serial NOR Flash controller – System controller, vectored interrupt
controller, watchdog, real-time clock
– Parallel NAND Flash controller, 8-/16-bit
data bus – Dynamic power-saving features
– Parallel NOR Flash/FPGA interface, – 8-channel DMA controller
8-/16-bit data bus – 6 x 16-bit general purpose timers with
prescaler and 4 capture inputs
■ Connectivity:
– 4 x PWM generators
– 2 x USB 2.0 Host ports (integrated PHY)
– Debug and trace interfaces: JTAG/ETM
– 1 x USB 2.0 Device port (integrated PHY)
– 2 x Fast Ethernet ports (external MII/RMII
PHY) Applications
– 1 x MMC-SD card/SDIO controller The SPEAr320S embedded MPU is configurable
– 2 x CAN 2.0 ports for a range of industrial and consumer
– 7 x UART ports applications such as:
– 3 x I2C ports: master/slave ■ Human machine interface (HMI) terminals
– 3 x synchronous serial ports, ■ Factory automation / PLCs
SPI/Microwire/TI protocols, master/slave
■ Medical equipment
– 1 x RS485 interface
■ Smart energy meters and gateways
– 1 x fast IrDA interface
– 1 x legacy parallel port (IEEE 1284), slave ■ VoIP phones
mode ■ Small printers
– 10-bit ADC, 8 channels, 1 Msps
The device is hardware-compliant to the support
– Up to 102 GPIOs with interrupt capability of both real-time (RTOS) and high-level (HLOS)
■ HMI support: operating systems, such as Linux and Windows
– LCD display controller, up to XGA Embedded Compact 7.
(1024 x 768, 24 bpp)
– Resistive touchscreen interface Table 1. Device summary
– JPEG codec accelerator Temp
Order code Package Packing
range, °C
– 1 x I2S digital audio port
LFBGA289
■ Security
SPEAR320S-2 -40 to 85 (15x15 mm, Tray
– Cryptographic co-processor pitch 0.8 mm)
Contents
1 Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
2 Device functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.1 CPU subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.2 Internal memories (BootROM/SRAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
2.3 Multiport DDR controller (MPMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.4 Serial NOR Flash controller (SMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
2.5 Parallel NAND Flash controller (FSMC) . . . . . . . . . . . . . . . . . . . . . . . . . . 14
2.6 External memory interface (EMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.7 USB 2.0 Host ports (UHC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
2.8 USB 2.0 Device port (UDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.9 Fast Ethernet ports (MII/RMII) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.9.1 MII0 Ethernet controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
2.9.2 RMII0 and MII1/RMII1 Ethernet controllers . . . . . . . . . . . . . . . . . . . . . . 17
2.10 MMC-SD card/SDIO controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
2.11 CAN 2.0 ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
2.12 Asynchronous serial ports (UART) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
2.13 I2C bus ports (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.14 Synchronous serial ports (SSP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
2.15 RS485 port (RS485) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.16 Fast infrared port (IrDA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.17 Legacy IEEE 1284 parallel port (SPP) . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
2.18 A/D converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.19 General purpose I/Os (GPIO/XGPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
2.20 LCD display controller (CLCD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
2.21 Touchscreen interface (TOUCHSCREEN) . . . . . . . . . . . . . . . . . . . . . . . . 23
2.22 JPEG codec accelerator (JPGC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.23 Digital audio port (I2S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.24 Cryptographic co-processor (C3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
2.25 System controller (SYSCTR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
2.25.1 Reset and clock generator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
3 Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
3.1 Pin/ball map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30
3.2 Required external components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3 Dedicated pins description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3.1 Clock, reset and 3V3 comparator pins . . . . . . . . . . . . . . . . . . . . . . . . . . 31
3.3.2 Power supply pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
3.3.3 Debug pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.3.4 Non-multiplexed pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33
3.4 Shared IO pins (PL_GPIOs) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.4.1 PL_GPIO / PL_CLK pins description . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
3.4.2 Extended mode: RMII automation networking mode . . . . . . . . . . . . . . . 37
3.4.3 Alternate functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.4.4 Legacy configuration modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
3.4.5 Boot pins . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.4.6 GPIOs . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
3.4.7 Multiplexing scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 42
3.4.8 Multiplexed signals description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 49
3.5 PL_GPIO and PL_CLK pin sharing for debug and test modes . . . . . . . . 66
4 Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.1 Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.2 Maximum power consumption . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
4.3 Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
4.4 Overshoot and undershoot . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
4.5 3.3V I/O characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 69
4.6 Clocking parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
4.6.1 Master clock (MCLK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
4.6.2 Real-time clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
5 Timing requirements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5.1 External interrupt timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5.2 Reset timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
5.3 CAN timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79
5.4 CLCD timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 80
5.5 DDR2/LPDDR timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
5.5.1 DDR2/LPDDR read cycle timing characteristics . . . . . . . . . . . . . . . . . . 81
5.5.2 DDR2/LPDDR write cycle timing characteristics . . . . . . . . . . . . . . . . . . 82
5.5.3 DDR2/LPDDR command timing characteristics . . . . . . . . . . . . . . . . . . 82
5.6 EMI timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
5.7 Ethernet MII timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
5.7.1 MII transmit timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
5.7.2 MII receive timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5.7.3 MDC/MDIO timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
5.8 Ethernet RMII timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.8.1 RMII transmit timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.8.2 RMII receive timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 87
5.9 FSMC timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
5.10 GPIO/XGPIO timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 91
5.11 I2C timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
5.12 I2S timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
5.13 PWM timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
5.14 SD timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96
5.15 SMI timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
5.16 SSP timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
5.16.1 SPI master mode timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 98
5.16.2 SPI slave mode timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
5.17 SPP timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
List of tables
List of figures
1 Description
SPEAr320S is a member of the SPEAr family of embedded MPUs and is optimized for
industrial automation and consumer markets. The device is based on the ARM926EJ-S
processor (up to 333 MHz), widely used in applications where the processing performance
is required to be higher than the one achievable with microcontrollers.
SPEAr320S provides an integrated MMU (memory management unit) which enables to
support high-level operating systems (HLOS), such as Linux and Windows Embedded
Compact 7. In addition, a rich set of integrated peripherals (memory interfaces, connectivity,
HMI, cryptography) allows the device to be used in a wide range of embedded applications.
The SPEAr320S architecture is based on multiple functional blocks interacting through a
multilayer interconnection bus matrix. The switch matrix structure allows different subsystem
data flows to be executed in parallel improving the core platform efficiency. High
performance master agents are directly interconnected with the memory controller reducing
the memory access latency. The overall memory bandwidth assigned to each master port
can be programmed and optimized through an internal efficient weighted round-robin
arbitration mechanism.
The SPEAr320S device is fully backward-compatible with the previous SPEAr320 product at
both hardware and software programming levels. The extended functionality is achieved by
enhanced I/O multiplexing, preserving the same pinout and ball map, as well as by a new
software-definable configuration mode.
Memoryinterfaces Lowspeedconnectivity
DDR2/LPDDR CPU
32KB CAN(2x)
Ctrl Subsystem
BootROM DebugI/F ETMI/F
ExternalMemory
SSP (3x)
I/F
16KB 16KB
ICache DCache RS485
HMIfeatures
JPEGCodec SPP
I2SAudioI/F ADC
Config Regs
(MISC)
VectoredInterrupt
Touchscreen I/F Controller GPIO
System
Controller
Highspeedconnectivity Watchdog XGPIO
Reset&clock
USB 2 0 Host (2x)
USB2.0Host(2x) Generator PWM(4x)
Timers(6x)
USB2.0Device
Cryptographic
DMACtrl
Coprocessor
FastEthernet
(2x)
Opt.
SDIO/MMC BUSMATRIXInterconnect RTC Battery
2 Device functions
The BootROM firmware selects the boot mode from the boot pin settings (see Section 3.4.5:
Boot pins). A setting is also available to allow the BootROM execution to be bypassed.
The first three modes support alternate ways of locating and starting the selected operating
system or target custom software. Such modes require a second-level boot firmware to be
stored in external Flash memory. A reference code for such boot loader (called “XLoader”) is
provided by STMicroelectronics in source and binary formats for the SPEAr320S evaluation
boards. Such code must be adapted according to the specific DDR memory components
found on target customer systems.
The fourth mode can be used for installing and updating the software on external Flash
memories through a PC-based software utility provided by STMicroelectronics exploiting a
USB link between a PC and a target SPEAr320S board.
The sixth mode used the MII0 port and is based on two standard protocols: DHCP (to get an
IP address over the network) and TFTP (for receiving xloader and u-boot binary images).
The bootstrap requires that the external serial Flash is located at bank 0 (enabled after
power-on reset). During the boot phase, a sequence of instructions is automatically sent to
bank 0. Refer to the SPEAr320S reference manuals for more details.
The BootROM firmware has been tested with the following external serial memory
components:
● Micron M25P and M45P families (SPI Flash)
● STMicroelectronics M95 family (SPI EEPROM), except for M95040, M95020 and
M95010
● ATMEL AT25F family (SPI Flash)
● YMC Y25F family (SPI Flash)
● Microchip/SST SST25LF family (SPI Flash)
Main features:
● Programmable baud rate generator
● Transmit FIFO queue (8-bit data, 16 entries) and receive FIFO queue (12-bit
data/status, 16 entries) with disabling option (1-byte buffer depth)
● Supports for DMA operation
● Hardware flow control (RTS,CTS) for some ports and configurations
● Modem control signals (DCD, DSR, DTS, RI) for some ports and configurations
● Fully programmable serial interface with following parameters:
– data bits: 5, 6, 7 or 8
– parity: even, odd, stick or none (generation and detection)
– stop bits: 1 or 2
– line break handling (generation and detection)
● Flexible interrupt handing and masking
Table 4. Pixel widths and formats available for different display types
Display 1 bpp 2 bpp 4 bpp 8 bpp 16 bpp 24 bpp
Main features:
● Supported cryptographic algorithms:
– Advanced encryption standard (AES) cipher in ECB, CBC, CTR modes
– Data encryption standard (DES) cipher in ECB and CBC modes
– SHA-1, HMAC-SHA-1, MD5, HMAC-MD5 digests
● Hardware chaining of cryptographic stages for optimized data flow when multiple
algorithms are required to process the same set of data (for example, encryption and
hashing on the fly)
transient interrupt occurs, the priority logic of the VIC is not set, and lower priority interrupts
can interrupt the transient interrupt service routine, assuming interrupt nesting is permitted.
There are 32 interrupt lines. The VIC uses a bit position for each different interrupt source.
The software can control each request line to generate software interrupts. There are 16
vectored interrupts. These interrupts can only generate an IRQ interrupt. The vectored and
non-vectored IRQ interrupts provide an address for an interrupt service routine (ISR). The
FIQ interrupt has the highest priority, followed by interrupt vector 0 to interrupt vector 15.
Non-vectored IRQ interrupts have the lowest priority.
The specific interrupt map for the SPEAr320S device is documented in the companion
reference manuals.
3 Pin description
This chapter provides a full description of the ball characteristics and the signal multiplexing
of SPEAr320S device.
Section 3.1 shows the pin/ball map of SPEAr320S.
Section 3.2 lists the required external components to connect.
Section 3.3 describes some dedicated pins, such as:
● Clock, reset and 3V3 comparator pins
● Power supply pins
● Debug pins
● Non-multiplexed pins
Section 3.4 provides a complete description of the shared IO pins (PL_GPIOs) and their
configuration modes, as well as detailed information on all multiplexed signals, grouped by
IP.
Section 3.5 explains the available debug modes.
The following table defines the table headers and abbreviations used in this chapter.
Table 5. Headers/abbreviations
Header Description Abbreviations
SPEAr320S
Figure 2. SPEAr320S pin/ball map
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
A PL_GPIO_13 PL_GPIO_14 PL_GPIO_19 PL_GPIO_23 PL_GPIO_26 PL_GPIO_28 PL_GPIO_29 PL_GPIO_38 PL_GPIO_39 PL_GPIO_44 PL_GPIO_46 PL_GPIO_50 PL_GPIO_55 PL_GPIO_60 PL_GPIO_62 PL_GPIO_69 PL_GPIO_73
B PL_GPIO_6 PL_GPIO_9 PL_GPIO_15 PL_GPIO_20 PL_GPIO_24 PL_GPIO_27 PL_GPIO_30 PL_GPIO_37 PL_GPIO_40 PL_GPIO_45 PL_GPIO_48 PL_GPIO_52 PL_GPIO_59 PL_GPIO_65 PL_GPIO_68 PL_GPIO_72 PL_GPIO_77
C PL_GPIO_4 PL_GPIO_8 PL_GPIO_10 PL_GPIO_17 PL_GPIO_21 PL_GPIO_25 PL_GPIO_31 PL_GPIO_36 PL_GPIO_41 PL_GPIO_47 PL_GPIO_49 PL_GPIO_56 PL_GPIO_63 PL_GPIO_67 PL_GPIO_70 PL_GPIO_74 PL_GPIO_81
D PL_GPIO_3 PL_GPIO_5 PL_GPIO_7 PL_GPIO_12 PL_GPIO_18 PL_GPIO_22 PL_GPIO_32 PL_GPIO_35 PL_GPIO_42 PL_GPIO_51 PL_GPIO_53 PL_GPIO_58 PL_GPIO_64 PL_GPIO_71 PL_GPIO_78 PL_GPIO_80 PL_GPIO_84
E RTC_XO RTC_XI PL_GPIO_1 PL_GPIO_2 PL_GPIO_11 PL_GPIO_16 PL_GPIO_33 PL_GPIO_34 PL_GPIO_43 PL_GPIO_54 PL_GPIO_57 PL_GPIO_61 PL_GPIO_66 PL_GPIO_75 PL_GPIO_82 PL_GPIO_83 PL_GPIO_86
Doc ID 022508 Rev 2
F RTC_vdd1v5 RTC_gnd PL_GPIO_0 DIGITAL_ digital_vdde digital_vdde digital_vdde vdd vdd digital_vdde digital_vdde digital_vdde PL_GPIO_76 PL_GPIO_79 PL_GPIO_85 PL_GPIO_88 PL_GPIO_89
GNDBG 3v3 3v3 3v3 3v3 3v3 3v3
COMP
G DITH_pll_vss_ DITH_pll_vdd_ USB_DEVICE_ DIGITAL_ digital_vdde gnd gnd gnd gnd gnd gnd vdd PL_GPIO_87 PL_GPIO_90 PL_GPIO_91 PL_GPIO_92 PL_GPIO_93
ana ana VBUS REXT 3v3
H USB_HOST1_ USB_HOST1_ USB_HOST1_ USB_HOST0_ vdd gnd gnd gnd gnd gnd gnd vdd PL_GPIO_94 PL_GPIO_95 PL_GPIO_96 PL_GPIO_97 PL_CLK4
DP DM VBUS OVERCUR
J USB_HOST1_ gnd USB_HOST0_ USB_HOST1_ vdd gnd gnd gnd gnd gnd gnd digital_vdde DDR2_EN BOOT_SEL TEST_4 PL_CLK3 PL_CLK2
vdd3v3 VBUS OVERCUR 3v3
K USB_HOST0_ USB_HOST0_ USB_HOST1_ USB_HOST0_ USB_TXR gnd gnd gnd gnd gnd gnd digital_vdde TEST_3 TEST_2 TEST_1 TEST_0 PL_CLK1
DP DM vdd2v5 vdd3v3 TUNE 3v3
L gnd USB_HOST0_ gnd USB_ANALOG gnd gnd gnd gnd gnd gnd vdd digital_vdde TMS TDI TDO nTRST TCK
vdd2v5 TEST 3v3
USB_HOST1_
HOST0_
M USB_DEVICE_ USB_DEVICE_ DEVICE_ dith_vdd2v5 DDR_vdde1v8 vdd vdd gnd gnd gnd vdd digital_vdde SMI_DATAIN SMI_DATAOUT SMI_CS_0 SMI_CS_1 MRESET
DP DM Dvdd1v2 3v3
N USB_DEVICE gnd USB_DEVICE dith_vss2v5 DDR_vdde1v8 DDR_vdde1v8 DDR_vdde1v8 DDR_vdde1v8 DDR_vdde1v8 DDR_vdde1v8 DDR_vdde1v8 ADC_agnd ADC_avdd ADC_VREFN AIN_1 AIN_0 SMI_CLK
_vdd2v5 _vdd3v3
DDR_MEM_
P MCLK_XI MCLK_XO MCLK_GND
COMP2V5_
DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ ADC_VREFP AIN_4 AIN_3 AIN_2
ADDR_9 ADDR_10 BA_0 BA_1 CS_0 VREF DQ_0 DQ_6 DQ_7
REXT
Pin description
MCLK_ DDR_MEM_ DDR_MEM_ DDR_MEM_
R MCLK_VDD MCLK_
GNDSUB COMP2V5_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_
GATE_OPEN
DDR_MEM_ DDR_MEM_ DDR_MEM_ GATE_OPEN AIN_7 AIN_6 AIN_5
VDD2V5 GNDBGCOMP ADDR_8 ADDR_11 ADDR_14 BA_2 CS_1 DQ_1 DQ_5 DQ_15 _1
_0
T DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ nDDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ nDDR_MEM_ DDR_MEM_ DDR_MEM_
ADDR_1 ADDR_0 ODT_0 ODT_1 ADDR_7 ADDR_12 WE CAS CLKP DQS_0 DQ_2 DQ_4 DQ_14 DM_1 DQS_1 DQ_9 DQ_8
30/113
U DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_ DDR_MEM_
ADDR_2 ADDR_3 ADDR_4 ADDR_5 ADDR_6 ADDR_13 CLKEN RAS CLKN DQS_0 DQ_3 DM_0 DQ_13 DQ_12 DQS_1 DQ_11 DQ_10
SPEAr320S Pin description
G6 G7 G8 G9 G10 G11 H6 H7
H8 H9 H10 H11 J6 J7 J8 J9 J10
GND
Digital ground 0V J11 K6 K7 K8 K9 K10 K11 L6 L7
L8 L9 L10 M8 M9 M10
USB_HOST1_HOST0_DEVICE_DVSS L5
RTC_GND F2
DITH_PLL_VSS_ANA G1
USB_HOST1_VSSA J2
USB_HOST0_VSSA L1
USB_COMMON_VSSAC L3
Analog ground 0V
USB_DEVICE_VSSA N2
DITH_VSS2V5 N4
MCLK_GND P3
MCLK_GNDSUB R3
ADC_AGND N12
F5 F6 F7 F10 F11 F12 G5 J12
IO DIGITAL_VDDE3V3 3.3 V
K12 L12 M12
F8 F9 G12 H5 H12 J5 L11 M6
Core VDD 1.2 V
M7 M11
USB_HOST0_VDD2V5 2.5 V L2
USB Host0 PHY
USB_HOST0_VDD3V3 3.3 V K4
USB_HOST1_VDD2V5 2.5 V K3
USB Host1 PHY
USB_HOST1_VDD3V3 3.3 V J1
USB_DEVICE_VDD2V5 2.5 V N1
USB Device PHY USB_DEVICE_VDD3V3 3.3 V N3
USB_HOST1_HOST0_DEVICE_DVDD1V2 1.2 V M3
MCLK_VDD 1.2 V R1
OSCI (MCLK)
MCLK_VDD2V5 2.5 V R2
PLL1 DITH_PLL_VDD_ANA 2.5 V G2
PLL2 DITH_VDD_2V5 2.5 V M4
DDR IO DDR_VDDE1V8 1.8 V M5 N5 N6 N7 N8 N9 N10 N11
ADC ADC_AVDD 2.5 V N13
OSCI (RTC) RTC_VDD1V5 1.5 V F1
Note: All the VDD 2V5 power supplies are analog VDD.
TEST_0 K16
TEST_1 K15
Debug mode configuration ports. See
TEST_2 also Section Table 32.: Ball sharing K14
during debug. I TTL input buffer, 3.3 V tolerant, PD
TEST_3 K13
TEST_4 J15
BOOT_SEL Reserved, to be fixed at high level J14
TTL Schmitt trigger input buffer, 3.3 V
nTRST Test reset input I L16
tolerant, PU
TDO Test data output O TTL output buffer, 3.3 V capable 4 mA L15
TCK Test clock I L17
TTL Schmitt trigger input buffer, 3.3 V
TDI Test data input I L14
tolerant, PU
TMS Test mode select I L13
SMI_DATAIN Serial Flash input data I TTL Input Buffer 3.3 V tolerant, PU M13
SMI_DATAOUT Serial Flash output data O M14
SMI_CLK Serial Flash clock IO N17
TTL output buffer 3.3 V capable 4 mA
SMI_CS_0 M15
Serial Flash chip select O
SMI_CS_1 M16
AIN_0 N16
AIN_1 N15
AIN_2 P17
AIN_3 P16
ADC analog input channel
AIN_4 P15
I Analog buffer 2.5 V tolerant
AIN_5 R17
AIN_6 R16
AIN_7 R15
ADC_VREFN ADC negative voltage reference N14
ADC_VREFP ADC positive voltage reference P14
DDR_MEM_ADD_0 T2
DDR_MEM_ADD_1 T1
DDR_MEM_ADD_2 U1
DDR_MEM_ADD_3 U2
DDR_MEM_ADD_4 U3
DDR_MEM_ADD_5 U4
DDR_MEM_ADD_6 U5
DDR_MEM_ADD_7 Address Line O T5
DDR_MEM_ADD_8 R5
DDR_MEM_ADD_9 P5
DDR_MEM_ADD_10 P6
SSTL_2/SSTL_18
DDR_MEM_ADD_11 R6
DDR_MEM_ADD_12 T6
DDR_MEM_ADD_13 U6
DDR_MEM_ADD_14 R7
DDR_MEM_BA_0 P7
DDR_MEM_BA_1 Bank select O P8
DDR_MEM_BA_2 R8
DDR_MEM_RAS Row address strobe O U8
DDR_MEM_CAS Column address strobe O T8
DDR_MEM_WE Write enable O T7
DDR_MEM_CLKEN Clock enable O U7
DDR_MEM_CLKP Differential SSTL_2/ T9
Differential clock O
DDR_MEM_CLKN SSTL_18 U9
DDR_MEM_CS_0 P9
Chip select O
DDR_MEM_CS_1 R9
SSTL_2/ SSTL_18
DDR_MEM_ODT_0 On-die termination enable T3
IO
DDR_MEM_ODT_1 lines T4
DDR_MEM_DQ_0 P11
DDR_MEM_DQ_1 R11
DDR_MEM_DQ_2 T11
DDR_MEM_DQ_3 Data lines U11
IO SSTL_2/ SSTL_18
DDR_MEM_DQ_4 (lower byte) T12
DDR_MEM_DQ_5 R12
DDR_MEM_DQ_6 P12
DDR_MEM_DQ_7 P13
DDR_MEM_DQS_0 Differential SSTL_2/ U10
Lower data strobe O
nDDR_MEM_DQS_0 SSTL_18 T10
DDR_MEM_DM_0 Lower data mask O U12
DDR_MEM_GATE_OPEN_0 Lower gate open IO R10
DDR_MEM_DQ_8 T17
DDR_MEM_DQ_9 T16
DDR_MEM_DQ_10 U17
SSTL_2/ SSTL_18
DDR_MEM_DQ_11 Data lines U16
IO
DDR_MEM_DQ_12 (upper byte) U14
DDR_MEM_DQ_13 U13
DDR_MEM_DQ_14 T13
DDR_MEM_DQ_15 R13
DDR_MEM_DQS_1 Differential SSTL_2/ U15
Upper data strobe IO
nDDR_MEM_DQS_1 SSTL_18 T15
DDR_MEM_DM_1 Upper data mask T14
IO SSTL_2/ SSTL_18
DDR_MEM_GATE_OPEN_1 Upper gate open R14
DDR_MEM_VREF Reference voltage I Analog P10
Return for external
DDR_MEM_COMP2V5_GNDBGCOMP Power Power R4
resistors
DDR_MEM_COMP2V5_REXT External resistor Power Analog P4
TTL Input Buffer 3.3 V
DDR2_EN Configuration I J13
Tolerant, PU
General purpose IO or
PL_GPIO_97... (See the
multiplexed pins (see
PL_GPIO_0 (See introduction of
PL_GPIOs IO Table 15)
Table 15) Section 3.4 here
PL_CLK1... Programmable logic above)
PL_CLK4 external clocks
Note: The I/O direction depends on the currently configured multiplexing option and can be
different from the I/O direction at reset. Refer to Table 15: PL_GPIO/PL_CLK multiplexing
scheme and reset states.
3.4.6 GPIOs
The PL_GPIO pins can be used as software-controlled general purpose I/Os if they are not
used by the interfaces of embedded IPs mapped on same pins.
Mode 4: Printer
Pin description
Table 15. PL_GPIO/PL_CLK multiplexing scheme and reset states
Function in GPIO
Legacy configuration mode (SW defined)
alternate mode
Extended
Reset state
Boot pins
Alternate
mode
PL_GPIO_# / function Mode 1
primary Full debug mode
ball number (SW (Default
function (SW Mode 2 Mode 3 Mode 4
defined) configuration
defined)
after reset)
SPEAr320S
PL_GPIO_77/B17 UART_RS485_OE ARM_TRACE_PKTA[7] OL GPIO_77 CLD20 0 EMI_A20 SPP_STRBn
SPEAr320S
Function in GPIO
Legacy configuration mode (SW defined)
alternate mode
Extended
Reset state
Boot pins
Alternate
mode
PL_GPIO_# / function Mode 1
primary Full debug mode
ball number (SW (Default
function (SW Mode 2 Mode 3 Mode 4
defined) configuration
defined)
after reset)
PL_GPIO_56/C12 IPU H1 GPIO_56 FSMC_RDY /BSY FSMC_RDY/ BSY FSMC_RDY/BSY FSMC_RDY/ BSY
EMI_CE0/
PL_GPIO_55/A13 IPU H0 GPIO_55 FSMC_CS0 FSMC_CS0 FSMC_CS0
Pin description
FSMC_CS0
EMI_CE1/
PL_GPIO_54/E10 IPU B3 GPIO_54 FSMC_CS1 FSMC_CS1 FSMC_CS1
FSMC_CS1
EMI_CE2/
PL_GPIO_53/D11 UART3_TX IPU B2 GPIO_53 FSMC_CS2 FSMC_CS2 FSMC_CS2
44/113
FSMC_CS2
Table 15. PL_GPIO/PL_CLK multiplexing scheme and reset states (continued)
45/113
Pin description
Function in GPIO
Legacy configuration mode (SW defined)
alternate mode
Extended
Reset state
Boot pins
Alternate
mode
PL_GPIO_# / function Mode 1
primary Full debug mode
ball number (SW (Default
function (SW Mode 2 Mode 3 Mode 4
defined) configuration
defined)
after reset)
EMI_CE_3/
PL_GPIO_52/B12 UART3_RX IPU B1 GPIO_52 FSMC_CS3 FSMC_CS3 FSMC_CS3
FSMC_CS3
PL_GPIO_49/C11 SSP1_SS0 TMR_CPTR3 IPU GPIO_49 SD_DAT6 SD_DAT6 EMI_D12/ FSMC_D12 SD_DAT6
PL_GPIO_48/B11 SSP1_MISO TMR_CPTR2 IPU GPIO_48 SD_DAT5 SD_DAT5 EMI_D13/ FSMC_D13 SD_DAT5
PL_GPIO_47/C10 SSP2_MOSI TMR_CPTR1 IPU GPIO_47 SD_DAT4 SD_DAT4 EMI_D14/ FSMC_D14 SD_DAT4
Doc ID 022508 Rev 2
PL_GPIO_41/C9 PWM2 UART0_RI Functional mode IPD GPIO_41 I2S_TX I2S_TX UART3_RX 0
audio_over_samp_ audio_over_samp_
PL_GPIO_35/D8 SSP2_MOSI SSP0_CS3 OH GPIO_35 UART1_DTR UART1_DTR
clk clk
PL_GPIO_34/E8 SSP2_CLK SSP0_CS2 OH GPIO_34 SD_LED / PWM2 SD_LED / PWM2 UART1_RI UART1_RI
SPEAr320S
PL_GPIO_32/D7 SSP2_MISO basGPIO4 IPU GPIO_32 CAN0_RX CAN0_RX CAN0_RX UART1_DSR
SPEAr320S
Function in GPIO
Legacy configuration mode (SW defined)
alternate mode
Extended
Reset state
Boot pins
Alternate
mode
PL_GPIO_# / function Mode 1
primary Full debug mode
ball number (SW (Default
function (SW Mode 2 Mode 3 Mode 4
defined) configuration
defined)
after reset)
Pin description
PL_GPIO_9/B2 I2C1_SDA SSP0_MOSI IPU GPIO_9 0 UART3_TX PWM0 0
Pin description
Function in GPIO
Legacy configuration mode (SW defined)
alternate mode
Extended
Reset state
Boot pins
Alternate
mode
PL_GPIO_# / function Mode 1
primary Full debug mode
ball number (SW (Default
function (SW Mode 2 Mode 3 Mode 4
defined) configuration
defined)
after reset)
Note: 1 Table 15 cells filled with ‘0’ or ‘1’ are unused and unless otherwise configured as Alternate function or GPIO, the corresponding pin
is held at low or high level respectively by the internal logic.
2 Pins shared by EMI and FSMC: Depending on the AHB address to be accessed the pins are used for EMI or FSMC transfers.
3 Reset state definition: the state of each pin during reset and after reset release. Device is in configuration mode 1 (default state) :
OH= Output high level, OL output low level, IPU = input pull up, IPD = input pull down.
4 Full debug mode: refer to Table 32: Ball sharing during debug for details on debug mode selection.
5 Functional mode definition: in functional mode the I/O works as configured by the application (depending on settings for
Configuration mode 1- 4/Extended mode/Alternate function).
6 Refer to Table 16: Table shading reference for Table 15 multiplexing scheme for colors and shading used in Table 15 cells to
identify pin groups
SPEAr320S
SPEAr320S
Table 16. Table shading reference for Table 15 multiplexing scheme
Shading Pin group
Pin description
48/113
SPEAr320S Pin description
UART0
UART0_CTS UART0 clear to send modem status input I PL_GPIO_38/A8 Alternate function
UART0 data carrier detect modem status
UART0_DCD I PL_GPIO_39/A9 Alternate function
input
UART0_DSR UART0 data set ready modem status input I PL_GPIO_40/B9 Alternate function
UART0 data terminal ready modem status
UART0_DTR O PL_GPIO_42/D9 Alternate function
output
UART0_RI UART0 ring indicator modem status input I PL_GPIO_41/C9 Alternate function
UART0 request to send modem status
UART0_RTS O PL_GPIO_37/B8 Alternate function
output
UART0_RX UART0 received serial data input I PL_GPIO_3/D1 Alternate function
UART0_TX UART0 transmitted serial data output O PL_GPIO_2/E4 Alternate function
UART1
PL_GPIO_36/C8 3, 4, Extended
UART1_CTS UART1 clear to send modem status input I PL_GPIO_85/F15
Extended mode
PL_GPIO_7/D3
PL_GPIO_45/B10 3, Extended
PL_GPIO_43/E9 3, Extended
PL_GPIO_14/A2
2, Extended
PL_GPIO_7/D3
PL_GPIO_40/B9 3, Extended
UART4_TX UART4 transmitted serial data output O
PL_GPIO_93/G17 4, Extended
PL_GPIO_72/B16
Extended mode
PL_CLK3/J16
UART5
PL_GPIO_4/C1 2, Extended
PL_GPIO_37/B8 3, Extended
UART5_RX UART5 received serial data input I
PL_GPIO_90/G14 4, Extended
PL_GPIO_69/A16 Extended mode
PL_GPIO_5/D2 2, Extended
PL_GPIO_38/A8 3, Extended
UART5_TX UART5 transmitted serial data output O
PL_GPIO_91/G15 4, Extended
PL_GPIO_70/C15 Extended mode
UART6
PL_GPIO_2/E4 2, Extended
UART6_RX UART6 received serial data input I
PL_GPIO_88/F16 4, Extended
PL_GPIO_3/D1 2, Extended
UART6_TX UART6 transmitted serial data output O
PL_GPIO_89/F17 4, Extended
UART/RS485
UART_RS485_TX UART/RS485 transmitted serial data output O PL_GPIO_79/F14 Extended mode
UART_RS485_RX UART/RS485 received serial data output I PL_GPIO_78/D15 Extended mode
UART_RS485_OE UART/RS485 data output enable O PL_GPIO_77/B17 Extended mode
CAN0
CAN1
PL_GPIO_38/A8 1, 2, Extended
PL_GPIO_15/B3 3, 4, Extended
PL_GPIO_9/B2 3, Extended
PWM0 PWM0 output channel O PL_GPIO_89/F17
PL_GPIO_60/A14
Extended mode
PL_GPIO_43/E9
PL_GPIO_31/C7
PL_GPIO_37/B8 1, 2, Extended
PL_GPIO_14/A2 3, 4, Extended
PL_GPIO_8/C2 3, Extended
PWM1 PWM1 output channel O PL_GPIO_88/F16
PL_GPIO_59/B13
Extended mode
PL_GPIO_42/D9
PL_GPIO_30/B7
PL_GPIO_34/E8 1, 2, Extended
PL_GPIO_13/A1 3, 4, Extended
PL_GPIO_7/D3 3, Extended
PWM2 PWM2 output channel O PL_GPIO_87/G13
PL_GPIO_58/D12
Extended mode
PL_GPIO_41/C9
PL_GPIO_29/A7
PL_GPIO_12/D4 1, 3, 4, Extended
PL_GPIO_6/B1 3, Extended
PL_GPIO_86/E17
PWM3 PWM3 output channel O
PL_GPIO_57/E11
Extended mode
PL_GPIO_40/B9
PL_GPIO_28/A6
SSP0
Slave select (used only in master
SSP0_CS2 O PL_GPIO_34/E8 Alternate function
mode)
Slave select (used only in master
SSP0_CS3 O PL_GPIO_35/D8 Alternate function
mode)
Slave select (used only in master
SSP0_CS4 O PL_GPIO_36/C8 Alternate function
mode)
SSP clock. It is used as output in
SSP0_CLK IO PL_GPIO_8/C2 Alternate function
master mode as input in slave mode.
SSP0_MISO Master input slave output IO PL_GPIO_6/B1 Alternate function
SSP0_MOSI Master output slave input IO PL_GPIO_9/B2 Alternate function
SSP frame output (master mode),
SSP0_SS0 IO PL_GPIO_7/D3 Alternate function
input (slave mode)
SSP1
PL_GPIO_19/A3 1, 4, Extended
PL_GPIO_96/H15
SSP clock. It is used as output in
SSP1_CLK IO PL_GPIO_67/C14
master mode as input in slave mode. Extended mode
PL_GPIO_50/A12
PL_GPIO_38/A8
PL_GPIO_17/C4 1, 4, Extended
PL_GPIO_94/H13
SSP1_MISO Master input slave output IO PL_GPIO_65/B14
Extended mode
PL_GPIO_48/B11
PL_GPIO_36/C8
PL_GPIO_20/B4 1, 4, Extended
PL_GPIO_97/H16
SSP1_MOSI Master output slave input IO PL_GPIO_68/B15
Extended mode
PL_GPIO_51/D10
PL_GPIO_39/A9
PL_GPIO_18/D5 1, 4, Extended
PL_GPIO_95/H14
SSP frame output (master mode),
SSP1_SS0 IO PL_GPIO_66/E13
input (slave mode) Extended mode
PL_GPIO_49/C11
PL_GPIO_37/B8
SSP2
PL_GPIO_15/B3 1, Extended
PL_GPIO_92/G16
SSP clock. It is used as output in
SSP2_CLK IO PL_GPIO_63/C13
master mode as input in slave mode. Extended mode
PL_GPIO_46/A11
PL_GPIO_34/E8
PL_GPIO_13/A1 1, Extended
PL_GPIO_90/G14
SSP2_MISO Master input slave output IO PL_GPIO_61/E12
Extended mode
PL_GPIO_44/A10
PL_GPIO_32/D7
PL_GPIO_16/E6 1, Extended
PL_GPIO_47/C10
PL_GPIO_35/D8
SSP2_MOSI Master output slave input IO
PL_GPIO_16/E6 Extended mode
PL_GPIO_93/G17
PL_GPIO_64/D13
PL_GPIO_14/A2 1, Extended
PL_GPIO_91/G15
SSP frame output (master mode),
SSP2_SS0 IO PL_GPIO_62/A15
input (slave mode) Extended mode
PL_GPIO_45/B10
PL_GPIO_33/E7
I2C0
I2C0_SCL I2C0 input/output clock IO PL_GPIO_4/C1 Alternate function
I2C0_SDA I2C0 input/output data IO PL_GPIO_5/D2 Alternate function
I2C1
PL_CLK2/J17 3, Extended
I2C1_SCL I2C1 input/output clock IO
PL_GPIO_8/C2 Extended mode
PL_CLK1/K17 3, Extended
I2C1_SDA I2C1 input/output data IO
PL_GPIO_9/B2 Extended mode
I2C2
PL_GPIO_2/E4 1, Extended
PL_GPIO_19/A3 2, Extended
I2C2_SCL I2C2 input/output clock IO PL_GPIO_96/H15 4, Extended
PL_GPIO_75/E14
Extended mode
PL_GPIO_0/F3
PL_GPIO_3/D1 1, Extended
PL_GPIO_20/B4 2, Extended
I2C2_SDA I2C2 input/output data IO PL_GPIO_97/H16 4, Extended
PL_GPIO_76/F13
Extended mode
PL_GPIO_1/E3
MII0
PHY collision
This signal is asserted by the PHY when
a collision is detected on the medium.
MII0_COL I PL_GPIO_13/A1 Alternate function
This signal is not synchronous to any
clock.
(Active high)
PHY CRS
This signal is asserted by the PHY when
either the transmit or receive medium is
MII0_CRS not idle. The PHY deasserts this signal I PL_GPIO_12/D4 Alternate function
when both transmit and receive medium
are idle. This signal is not synchronous to
any clock. (Active high)
Management data clock
The MAC provides timing reference for
the MAC_MDIO signal through this
MII0_MDC aperiodic clock. The maximum frequency O PL_GPIO_11/E5 Alternate function
of this clock is 2.5 MHz.This clock is
generated from the application clock
(HCLK) via a clock divider.
MII0_MDIO Management data input/output IO PL_GPIO_10/C3 Alternate function
Reception clock
This is the reception clock (25/2.5 MHz in
100M/10Mbps) provided by the external
MII0_RXCLK I PL_GPIO_20/B4 Alternate function
PHY for MII interfaces. The MII0_RXDn
signals that the Ethernet controller
receives are synchronous to this clock.
MII0_RXD0 PL_GPIO_17/C4 Alternate function
PHY receive data
MII0_RXD1 These bits provide the MII receive data PL_GPIO_16/E6 Alternate function
I
MII0_RXD2 nibble. The validity of the data is qualified PL_GPIO_15/B3 Alternate function
with MII0_RXDV and MII0_RXER.
MII0_RXD3 PL_GPIO_14/A2 Alternate function
PHY receive data valid
When high, indicates that the data on the
MII0_RXDn bus is valid. It remains
MII0_RXDV I PL_GPIO_19/A3 Alternate function
asserted continuously from the first
recovered byte/nibble of the frame
through the final recovered byte/nibble.
PHY receive error
When high, indicates an error or carrier
MII0_RXER I PL_GPIO_18/D5 Alternate function
extension in the received frame on the
MII0_RXDn bus.
Transmission clock
This is the transmission clock (25/2.5
MHz in 100 M/10 Mbps) provided by the
MII0_TXCLK I PL_GPIO_27/B6 Alternate function
external PHY for the MII interface. All the
MII0_TXDn signals generated by the
MAC are synchronous to this clock.
MII0_TXD0 PHY transmit data. PL_GPIO_26/A5 Alternate function
MII0_TXD1 These bits provide the MII transmit data PL_GPIO_25/C6 Alternate function
nibble. The validity of the data is qualified O
MII0_TXD2 with MII0_TXEN and MII0_TXER. PL_GPIO_24/B5 Alternate function
MII0_TXD3 PL_GPIO_23/A4 Alternate function
PHY transmit data enable
MII0_TXEN When high, it indicates that valid data is O PL_GPIO_22/D6 Alternate function
being transmitted on the MII0_TXDn bus.
PHY transmit error
MII0_TXER When high, indicates a transmit error or O PL_GPIO_21/C5 Alternate function
carrier extension on the MII0_TXDn bus.
MII1
PHY collision
This signal is asserted by the PHY when
MII1_COL a collision is detected on the medium. I PL_GPIO_83/E16 2, Extended
This signal is not synchronous to any
clock. (Active high)
PHY CRS
This signal is asserted by the PHY when
either the transmit or receive medium is
MII1_CRS not idle. The PHY deasserts this signal I PL_GPIO_82/E15 2, Extended
when both transmit and receive medium
are idle. This signal is not synchronous to
any clock. (Active high)
Management data clock
The MAC provides timing reference for
the MII1_MDIO signal through this
aperiodic clock. The maximum frequency
MII1_MDC O PL_GPIO_80/D16 2, Extended
of this clock is 2.5 MHz.This clock is
generated inside the Ethernet controller
from the application clock (HCLK) via a
clock divider.
MII1_MDIO Management data input/output IO PL_GPIO_81/C17 2, Extended
This is the reception clock (25/2.5 MHz in
100M/10Mbps) provided by the external
MII1_RXCLK PHY for MII interfaces. All MII1_RXDn I PL_GPIO_90/G14 2, Extended
signals that the Ethernet controller
receives are synchronous to this clock.
3.5 PL_GPIO and PL_CLK pin sharing for debug and test modes
In some cases the PL_GPIO and PL_CLK pins may be used in different ways for debugging
purposes. There are four different cases (see also Table 32):
1. Case 0 - All the PL_GPIO and PL_CLK get values from Boundary scan registers during
Ex-test instruction of JTAG . Typically, this configuration is used to verify the
correctness of the soldering process during the production flow. The pad (PL_GPIO or
PL_CLK) is driven by the Boundary Scan Register, and disconnected from the I/O
function used in functional mode.
2. Case 1 - All the PL_GPIO and PL_CLK maintain their original meaning and the JTAG
Interface is disconnected from the processor.
3. Case 2 - All the PL_GPIO and PL_CLKmaintain their original meaning but the JTAG
Interface is connected to the processor. This configuration is useful during the
development phase, but offers only “static” debug.
4. Case 3 - Some PL_GPIOs, as shown in Table 32 below, are used to connect the ETM9
lines to an external box. This configuration is typically used only during the
development phase. It offers a very powerful debug capability. When the processor
reaches a breakpoint it is possible, by analyzing the trace buffer, to understand the
reason why the processor has reached the break.
TEST_0 0 0 1 0
TEST_1 0 0 0 1
TEST_2 0 1 1 1
TEST_3 0 1 1 1
TEST_4 1 0 0 0
nTRST nTRST_bscan nc nTRST_ARM nTRST_ARM
TCK TCK_bscan nc TCK_ARM TCK_ARM
TMS TSM_bscan nc TMS_ARM TMS_ARM
TDI TDI_bscan nc TDI_ARM TDI_ARM
TDO TDO_bscan nc TDO_ARM TDO_ARM
PL_GPIO97-
PL_GPIO73 used for
PL_GPIOxxx/ debug, Refer to
Used for boundary Table 15:
PL_CLKx Functional mode Functional mode
scan PL_GPIO/PL_CLK
(all pins) multiplexing scheme
and reset states on
page 43
4 Electrical characteristics
IDD(1.2Vsupply) Current consumption of VDD 1.2 supply voltage for the core 400 mA
Current consumption of VDD 1.8 supply voltage for the
IDD(1.8Vsupply) 150 mA
DRAM interface (1)
IDD(RTC) Current consumption of RTC supply voltage 8 µA
Current consumption of 2.5V supply voltage for the analog
IDD(2.5Vsupply) 30 mA
blocks
IDD(3.3Vsupply) Current consumption of 3.3V supply voltage for the I/Os(2) 12 mA
(3)
PD Maximum power consumption 870 mW
1. Peak current with Linux memory test (50% write and 50% read) plus DMA reading memory.
2. With 30 logic channels connected to the device and simultaneously switching at 10 MHz.
3. Based on bench measurements for worst case silicon under worst case operating conditions. Devices
tested with operating system running, CPU and DDR2 running at 333 MHz, DDR2 driven by PLL2,
SDRAM and all on-chip peripherals and internal modules enabled.
1.2 V current and power are primarily dependent on the applications running and the use of internal chip
functions (DMA, USB, Ethernet, and so on).
3.3 V current and power are primarily dependent on the capacitive loading, frequency, and utilization of the
external buses.
VDD 1.2 Supply voltage for the core 1.14 1.2 1.3 V
VDD 3.3 Supply voltage for the I/Os 3 3.3 3.6 V
VDD 2.5 PLL supply voltage(1) 2.25 2.5 2.75 V
VDD 2.5 Oscillator supply voltage 2.25 2.5 2.75 V
VDD 1.8 Supply voltage for DRAM interface 1.70 1.8 1.9 V
VDD RTC RTC supply voltage 1.3 1.5 1.8 V
TA Ambient temperature(2) -40 – 85 °C
TJ Junction temperature -40 – 125 °C
1. For power supply filtering it is required to add an external ferrite inductor.
2. TA to be considered under JESD51 conditions or equivalent ones.
Table 37. Low voltage TTL DC input specification (3 V< VDD <3.6 V)
Symbol Parameter Min Max Unit
Table 38. Low voltage TTL DC output specification (3 V< VDD <3.6 V)
Symbol Parameter Test condition Min Max Unit
MCLK_XI MCLK_XO
24 MHz
(1) (1)
CL1 CL2 VDD2 V 5
Where CL1 and CL2 are the load capacitors and CS is the circuit stray capacitance.
In our application:
CL1 = CL2 = Cext
This implies:
Cext = (CL-CS)*2
Example:
For this example, a Rakon XTAL003342 24 MHz oscillator has been used.
For the Rakon XTAL003342 crystal, CL = 12 pF
With CS = ~3 pF, we have: Cext = CL1 = CL2 = 18 pF
External clock
fMCLK_XI No limitation 24(1) 33 MHz
source frequency
MCLK_XI input pin MCLK_VDD2V5 -
VMCLK_XIH MCLK_VDD2V5 V
high level voltage 0.3
MCLK_XI input pin
VMCLK_XIL MCLK_GNDSUB 0.3 V
low level voltage
DuCy(MCLK_XI) Duty cycle(2) 40 60 %
tr(MCLK_XI) MCLK_XI input rise -5% of the clock +5% of the clock
%
tf(MCLK_XI) and fall time period period
MCLK_XI input
CIN(MCLK_XI) 7 pF
capacitance
MCLK_XI input MCLK_GNDSUB ≤ VIN
IL(MCLK_XI) ±1 µA
leakage current ≤ MCLK_VDD2V5
1. A frequency of 24 MHz is mandatory to obtain the required operating frequency for all clocks generated by the USB PLL
(PLL3).
2. An initial delay of 1 µs + 2048 fMCLK_XI cycles occurs for duty cycle detection and internal clock availability.
RTC_XI RTC_XO
32.768 kHz
(1)
CL1(1) CL2
GND
Where CL1 and CL2 are the load capacitors and CS is the circuit stray capacitance.
In our application:
CL1 = CL2 = Cext
This implies:
Cext = (CL-CS)*2
Example:
For this example, a Fox Electronics, NC26LF-327 32.768 kHz oscillator has been used.
For the Fox Electronics, NC26LF-327 crystal, CL = 12.5 pF
With CS = ~0.1 pF, we have: Cext = CL1 = CL2 = 24.8 pF=22 pF
RO Output impedance 45 Ω
VREFIN Voltage applied to core/pad 0.49 * VDDE 0.500 * VDDE 0.51 * VDDE V
Power-up sequence
VDD 1.2
VDD1.8
t
VDD 2.5
t
VDD 3.3
VDD 1V2
VDD1V8
VDD 2V5
VDD 3V3
tRP(cold)= 2 ms
MRESET
tRP(warm)= 1 µs
MRESET
Note: See also: Section 5.2: Reset timing characteristics on page 78.
5 Timing requirements
This chapter provides the timing requirements for the synchronous and asynchronous IPs
present in SPEAr320S.
The signal transition levels used for timing measurements are: 0.2*VDD and 0.8*VDD.
Note: Warm reset can be triggered by software by writing any value to the system controller
SYSSTAT register.
tCK
CLCP
tD
CLD[23:0], CLAC,
CLLE, CLLP, CLFP,
CLPOWER
DDR_MEM_CLKP/
DDR_MEM_CLKN
tCK
DDR_MEM_DQS_#
DDR_MEM_DQ_#
tQH tQH
DDR_MEM_CLKP/
DDR_MEM_CLKN
t DQSS
DDR_MEM_DQS_#
DDR_MEM_DQ_#
CLK
Address and
commands
tIS tIH
EMI_A# Address
EMI_D# Data
EMI_CEn# tDCS
tSCS
EMI_OE tENr
tSE
tWAIT
EMI_WAIT
tCS->Wait
Note: The values of tSE, tENr, tDCS, tSCS are programmable via the EMI registers.
Table 56. EMI timing requirements for read cycle with acknowledgement on WAIT
Symbol Min
tCS->Wait tHCLK
tWAIT 4*tHCLK
Note: Values in Table 56 refer to the common internal source clock which has a period of
tHCLK = 6 ns.
EMI_D# Data
EMI_CEn# tDCS
tSCS
EMI_WE tENw
tSE
tWAIT
EMI_WAIT
tCS->tWAIT
Note: The values of tSE, tENw, tDCS, tSCS are programmable via the EMI registers.
Table 57. EMI timing requirements for write cycle with acknowledgement on WAIT
Symbol Min
tCS->Wait tHCLK
tWAIT 4*tHCLK
Note: Values in Table 57 refer to the common internal source clock which has a period of
tHCLK = 6 ns.
EMI_A# Address
EMI_D# Data
tENr tDCS
EMI_CEn# tSCS
EMI_OE tSE
Note: The values of tSE, tENr, tDCS, tSCS are programmable via the EMI registers.
EMI_D# Data
tENw tDCS
EMI_CEn# tSCS
EMI_WE
tSE
Note: The values of tSE, tENw, tDCS, tSCS are programmable via the EMI registers.
tck
MII#_TXCLK
MII#_TXD0-MII#_TXD3,
MII#_TXEN, MII#_TXER
tD
Note: To calculate the tSETUP value for the PHY, you have to consider the next tCK rising edge, so
you have to apply the following formula: tSETUP = tCK - tmax
MII#_RXCLK tCK
MII#_RXD0-MII#_RXD3
MII#_RXER, MII#_RXDV
tS
tH
MDC
tCK
TD
MDIO (OUTPUT)
MDIO(INPUT)
tS
tH
Note: When MDIO is used as output the data are launched on the falling edge of the clock as
shown in Figure 19.
TCKhigh
Tf Tr
RMII_REF_CLK
TCKlow
TD
RMIIn_TXD0, RMIIn_TXD1
RMIIn_TX_EN
TCKhigh
Tf Tr
RMII_REF_CLK
TCKlow
RMIIn_RXD0, RMIIn_RXD1
RMIIn_CRS_DV
Ts Th
FSMC_CS#
tCLE
FSMC_CMD_LE
tWE
FSMC_WE
tIO
FSMC_D# Command
FSMC_CS#
tALE
FSMC_ADDR_LE
tWE
FSMC_WE
tIO
FSMC_D# Address
FSMC_CS#
tWE
FSMC_WE
tIO
FSMC_D# (out) Data Out
tRE tREAD
FSMC_RE
tRE -> IO tNFIO -> FFs
FSMC_D# (in)
Note: Values in Table 64 refer to the common internal source clock which has a period of tHCLK = 6
ns.
The timings of the high and low level of SCL (tSCLHigh and tSCLLow) are programmable.
The clock-to-output data delay is:
● MIN (T(clk+data)min) = 5.9
● MAX (T(clk+data)max) = 15
The timings shown in Figure 25 depend on the programmed value of tSCLHigh and tSCLLow.
The values listed in Table 66 to Table 68 have been calculated using the minimum
programmable values of :
● High-speed mode: IC_HS_SCL_HCNT= 19 and IC_HS_SCL_LCNT= 53 registers
● Fast-speed mode: IC_FS_SCL_HCNT= 99 and IC_FS_SCL_LCNT= 215 registers
● Standard-speed mode: IC_SS_SCL_HCNT= 664 and IC_SS_SCL_LCNT=
780 registers
These minimum values depend on the AHB clock frequency, which is 166 MHz.
Note: 1 A device may internally require a hold time of at least 300 ns for the SDA signal (referred to
the VIHmin of the SCL signal) to bridge the undefined region of the falling edge of SCL
(Please refer to the I2C Bus Specification v3-0 Jun 2007). However, the SDA data hold time
in the I2C controller of SPEAr320S is one-clock cycle based (6 ns with the HCLK clock at
166 MHz). This time may be insufficient for some slave devices. A few slave devices may not
receive the valid address due to the lack of SDA hold time and will not acknowledge even if
the address is valid. If the SDA data hold time is insufficient, an error may occur.
2 Workaround: If a device needs more SDA data hold time than one clock cycle, an RC delay
circuit is needed on the SDA line as illustrated in Figure 26.
tSU-STA 140
tHD-STA 325
tSU-DAT 300
ns
tHD-DAT 1
tSU-STO 620
tHD-STO 4745
tSU-STA 620
tHD-STA 602
tSU-DAT 1270
ns
tHD-DAT 1
tSU-STO 620
tHD-STO 4745
tSU-STA 4718
tHD-STA 3992
tSU-DAT 4660
ns
tHD-DAT 1
tSU-STO 4010
tHD-STO 4745
TCKhigh
Tf Tr
I2S_CLK
TCKlow
I2S_TX, I2S_LR
Ts
Th
PCLK
2 x PCLK 3 x PCLK
PWMx
(Config. 1)
4 x PCLK 6 x PCLK
PWMx
(Config. 2)
td
tCK
SD_CLK tD
SD_DAT#
SD_WP
SD_CMD
SD_LED
SD_CD
SD_DAT#
(input)
tS
tH
Note: In full-speed mode, the frequency is 24 MHZ (41.6 ns). The data is launched at the falling
edge of the 24 MHZ clock and captured on the clock’s rising edge (the effective available
time is always 20.8 ns)
SMI_CLK
tCK
SMI_DATAIN
tS
tH
SMI_DATAOUT
tD
SMI_CS_0,1
tCSf tCSr
TCLK
TCLKhigh
SSP_SCK
(SPO=0) T CLKlow
SSP_SCK
(SPO=1)
The clock polarity parameter (SPO) indicates the state of the clock signal when it is idle.
This can be programmed in the SSPCR0 register.
SPO= 0 The clock idle state is low.
SPO= 1 The clock idle state is high.
Figure 32. SPI master mode external timing waveform (SPH= 0, SPO =0 )
SSP_SS#n TD3
TD1
SSP_SCK
(SPO=0)
TSU TH
SSP0 7.8
Setup time, MISO (input) valid before SSP_SCK
TSU SSP1 16
(output) rising edge
SSP2 15.55
ns
SSP0 -2.7
Hold time, MISO (input) valid after SSP_SCK
TH SSP1 -4
(output) rising edge
SSP2 -4.6
SSP0 TSSP_SCK-10 TSSP_SCK-3
Delay time, SSP_SS#n (output) falling edge to first
TD1 SSP1 TSSP_SCK-6.4 TSSP_SCK-0.9 ns
SSP_SCK (output) rising edge
SSP2 TSSP_SCK-5.87 TSSP_SCK-0.03
SSP0 2.7 9.5
Delay time, SSP_SCK (output) falling edge to
TD2 SSP1 0.57 5.34
MOSI (output) transition
SSP2 0.2 5.53
ns
SSP0 (TSSP_SCK /2)+ 3 (TSSP_SCK/2) +8
Delay time, SSP_SCK (output) falling edge to
TD3 SSP1 (TSSP_SCK /2)+ 0.9 (TSSP_SCK/2) +6.4
SSP_SS#n (output) rising edge
SSP2 (TSSP_SCK /2)-0.03 (TSSP_SCK/2) +5.87
Figure 33. SPI master mode external timing waveform (SPH= 0, SPO =1 )
SSP_SS#n TD3
TD1
SSP_SCK
(SPO=1)
TSU TH
SSP0 7.8
Setup time, MISO (input) valid before SSP_SCK
TSU SSP1 16
(output) falling edge
SSP2 15.55
ns
SSP0 -2.7
Hold time, MISO (input) valid after SSP_SCK
TH SSP1 -4
(output) falling edge
SSP2 -4.6
SSP0 TSSP_SCK-10 TSSP_SCK-3
Delay time, SSP_SS#n (output) falling edge to first
TD1 SSP1 TSSP_SCK-6.4 TSSP_SCK-0.9 ns
SSP_SCK (output) falling edge
SSP2 TSSP_SCK-5.87 TSSP_SCK-0.03
SSP0 2.7 9.5
Delay time, SSP_SCK (output) rising edge to
TD2 SSP1 0.57 5.34
MOSI (output) transition
SSP2 0.2 5.53
ns
SSP0 (TSSP_SCK /2)+ 3 (TSSP_SCK/2) +8
Delay time, SSP_SCK (output) rising edge to
TD3 SSP1 (TSSP_SCK /2)+ 0.9 (TSSP_SCK/2) +6.4
SSP_SS#n (output) rising edge
SSP2 (TSSP_SCK /2)-0.03 (TSSP_SCK/2) +5.87
Figure 34. SPI master mode external timing waveform (SPH = 1, SPO = 0)
TD3
SSP_SS#n
TD1
SSP_SCK
(SPO=0) TSU TH
SSP0 7.8
Setup time, MISO (input) valid before SSP_SCK
TSU SSP1 16
(output) falling edge
SSP2 15.55
ns
SSP0 -2.7
Hold time, MISO (input) valid after SSP_SCK
TH SSP1 -4
(output) falling edge
SSP2 -4.6
SSP0 (TSSP_SCK/2)-10 (TSSP_SCK/2)-3
Delay time, SSP_SS#n (output) falling edge to first
TD1 SSP1 (TSSP_SCK/2)-6.4 (TSSP_SCK/2)-0.9 ns
SSP_SCK (output) falling edge
SSP2 (TSSP_SCK/2)-5.87 (TSSP_SCK/2)-0.03
SSP0 2.7 9.5
Delay time, SSP_SCK (output) rising edge to
TD2 SSP1 0.57 5.34
MOSI (output) transition
SSP2 0.2 5.53
ns
SSP0 TSSP_SCK + 3 (TSSP_SCK +10
Delay time, SSP_SCK (output) rising edge to
TD3 SSP1 TSSP_SCK + 0.9 (TSSP_SCK +6.4
SSP_SS#n (output) rising edge
SSP2 TSSP_SCK -0.03 TSSP_SCK +5.87
Figure 35. SPI master mode external timing waveform (SPH = 1, SPO = 1)
TD3
SSP_SS#n
TD1
SSP_SCK
(SPO=1)
TSU TH
SSP0 7.8
Setup time, MISO (input) valid before SSP_SCK
TSU SSP1 16
(output) rising edge
SSP2 15.55
ns
SSP0 -2.7
Hold time, MISO (input) valid after SSP_SCK
TH SSP1 -4
(output) rising edge
SSP2 -4.6
SSP0 (TSSP_SCK/2)-10 (TSSP_SCK/2)-3
Delay time, SSP_SS#n (output) falling edge to first
TD1 SSP1 (TSSP_SCK/2)-6.4 (TSSP_SCK/2)-0.9 ns
SSP_SCK (output) rising edge
SSP2 (TSSP_SCK/2)-5.87 (TSSP_SCK/2)-0.03
SSP0 2.7 9.5
Delay time, SSP_SCK (output) falling edge to
TD2 SSP1 0.57 5.34
MOSI (output) transition
SSP2 0.2 5.53
ns
SSP0 TSSP_SCK + 3 (TSSP_SCK +10
Delay time, SSP_SCK (output) rising edge to
TD3 SSP1 TSSP_SCK + 0.9 (TSSP_SCK +6.4
SSP_SS#n (output) rising edge
SSP2 TSSP_SCK -0.03 TSSP_SCK +5.87
tDS
tDV
SPP_DATAx Valid data
SPP_AUTOFDn
Auto Line Feed
(can be used as 9th
data/parity bit)
tSELIN
SPP_SELINn
tSELIN
tSTRB
SPP_STRBn
tINIT
SPP_INITn
tSA tACK
SPP_ACKn
Data read by CPU
SPP_BUSY tSB
The above min. and max. values allow a deviation of ±1 baud cycle in a single bit time. The
accumulated deviation of a UART character frame must not exceed 3/(16*fbaudrate).
For information related to baud rate generation refer to:
● Section 2.12: Asynchronous serial ports (UART)
● RM0321, Reference manual, SPEAr320S address map and registers
Start Stop
UARTRXD bit B Pbit
bit
Note: 1 The time value depends upon the CPU frequency to write and read registers.
2 It also depends on the UART clock frequency used to set its flag register bit to indicate the
end of transmission.
For example:
For tD2, the above values are with respect to 83 MHz PCLK and UARTCLK 83 MHz.
6 Package information
A 1.700 0.0669
A1 0.270 0.0106
A2 0.985 0.0387
A3 0.200 0.0078
A4 0.800 0.0315
b 0.450 0.500 0.550 0.0177 0.0197 0.0217
D 14.850 15.000 15.150 0.5846 0.5906 0.5965
D1 12.800 0.5039
E 14.850 15.000 15.150 0.5846 0.5906 0.5965
E1 12.800 0.5039
e 0.800 0.0315
F 1.100 0.0433
ddd 0.200 0.0078
eee 0.150 0.0059
fff 0.080 0.0031
Appendix A Acronyms
Revision history
Information in this document is provided solely in connection with ST products. STMicroelectronics NV and its subsidiaries (“ST”) reserve the
right to make changes, corrections, modifications or improvements, to this document, and the products and services described herein at any
time, without notice.
All ST products are sold pursuant to ST’s terms and conditions of sale.
Purchasers are solely responsible for the choice, selection and use of the ST products and services described herein, and ST assumes no
liability whatsoever relating to the choice, selection or use of the ST products and services described herein.
No license, express or implied, by estoppel or otherwise, to any intellectual property rights is granted under this document. If any part of this
document refers to any third party products or services it shall not be deemed a license grant by ST for the use of such third party products
or services, or any intellectual property contained therein or considered as a warranty covering the use in any manner whatsoever of such
third party products or services or any intellectual property contained therein.
UNLESS OTHERWISE SET FORTH IN ST’S TERMS AND CONDITIONS OF SALE ST DISCLAIMS ANY EXPRESS OR IMPLIED
WARRANTY WITH RESPECT TO THE USE AND/OR SALE OF ST PRODUCTS INCLUDING WITHOUT LIMITATION IMPLIED
WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE (AND THEIR EQUIVALENTS UNDER THE LAWS
OF ANY JURISDICTION), OR INFRINGEMENT OF ANY PATENT, COPYRIGHT OR OTHER INTELLECTUAL PROPERTY RIGHT.
UNLESS EXPRESSLY APPROVED IN WRITING BY TWO AUTHORIZED ST REPRESENTATIVES, ST PRODUCTS ARE NOT
RECOMMENDED, AUTHORIZED OR WARRANTED FOR USE IN MILITARY, AIR CRAFT, SPACE, LIFE SAVING, OR LIFE SUSTAINING
APPLICATIONS, NOR IN PRODUCTS OR SYSTEMS WHERE FAILURE OR MALFUNCTION MAY RESULT IN PERSONAL INJURY,
DEATH, OR SEVERE PROPERTY OR ENVIRONMENTAL DAMAGE. ST PRODUCTS WHICH ARE NOT SPECIFIED AS "AUTOMOTIVE
GRADE" MAY ONLY BE USED IN AUTOMOTIVE APPLICATIONS AT USER’S OWN RISK.
Resale of ST products with provisions different from the statements and/or technical features set forth in this document shall immediately void
any warranty granted by ST for the ST product or service described herein and shall not create or extend in any manner whatsoever, any
liability of ST.
Information in this document supersedes and replaces all information previously supplied.
The ST logo is a registered trademark of STMicroelectronics. All other names are the property of their respective owners.