ST SPEAr1340 User Manual

SPEAr1340

Dual-core Cortex A9 HMI embedded MPU

Features

โ– CPU subsystem:

โ€“2x ARM Cortex A9 cores, up to 600 MHz

โ€“32+32 KB L1 caches per core, with parity check

โ€“Shared 512 KB L2 cache

โ€“Accelerator coherence port (ACP)

โ– Network-on-chip bus matrix, up to 166 MHz

โ– 32 KB Boot ROM, 32+4 KB Static RAMs

โ– Memory interfaces:

โ€“DDR controller (DDR3-1066, DDR2-1066 @533MHz), 16-/32-bit, up to 2 GB address space

โ€“Serial NOR Flash controller

โ€“Parallel NAND Flash/NOR Flash/SRAM controller

โ– Connectivity:

โ€“2 x USB 2.0 Host ports (integrated PHY)

โ€“1 x USB 2.0 OTG port (integrated PHY)

โ€“1 x Giga/Fast Ethernet port (external GMII/ RGMII/MII/RMII PHY)

โ€“1 x PCIe 2.0 RC/EP port (integrated PHY)

โ€“1 x 3Gb/s Serial ATA Host port (integrated PHY)

โ€“1 x memory card interface: SD/SDIO/MMC, CF/CF+, xD

โ€“2 x UART ports, with IrDA option

โ€“2 x I2C bus controllers, master/slave

โ€“1 x synchronous serial port, SPI/Microwire/TI protocols, master/slave

โ€“2 x consumer electronic control (HDMI CEC) ports

โ€“10-bit ADC: 8 ch. 1 Msps, with autoscan

โ€“Programmable bidirectional GPIO signals with interrupt capability

โ– HMI support:

โ€“LCD display controller, incl.support for Full HD, 1920 x 1080, 60 Hz, 24 bpp

Datasheet โˆ’ preliminary data

PBGA (23 x 23 mm)

โ€“High-perf. 2D/3D GPU, up to 1080p

โ€“Hardware video decoder: multistandard up to 1080p, JPEG

โ€“Hardware video encoder: H.264 up to 1080p, JPEG

โ€“Video input parallel port, with alternate configuration for 4 x camera interfaces

โ€“Digital audio ports: up to 7.1 multichannel surround, I2S (8 in, 8 out) and S/PDIF

โ€“6 x 6 keyboard controller

โ€“Resistive touchscreen interface

โ– Security:

โ€“Cryptographic co-processor: DES, 3DES, AES, HMAC, PKA, RNG

โ€“Secure boot support

โ€“JTAG disable option

โ– Miscellaneous functions:

โ€“Energy saving: power islands, clock gating, dynamic frequency scaling

โ€“2 x DMA controllers (total 16 channels)

โ€“11 x general purpose timers, 2 x watchdogs,

1 x real-time clock

โ€“4 x PWM generators

โ€“Embedded sensor for junction temperature monitoring

โ€“OTP (one-time programmable) bits

โ€“Debug and trace interfaces: JTAG/PTM

Table 1.

Device summary

ย 

Order code

ย 

Temp.

Package

Packing

ย 

range, ยฐC

ย 

ย 

ย 

ย 

ย 

ย 

ย 

ย 

ย 

ย 

ย 

ย 

PBGA

ย 

SPEAr1340-2

-40 to 85

(23x23mm,

Tray

ย 

ย 

ย 

pitch 0.8mm)

ย 

ย 

ย 

ย 

ย 

ย 

August 2012

Doc ID 023063 Rev 2

1/194

www.st.com

Contents

SPEAr1340

ย 

ย 

Contents

1

Description .

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

. 6

2

Device functions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

ย 

2.1

CPU subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

7

ย 

2.2

Multilayer interconnect matrix (BUSMATRIX) . . . . . . . . . . . . . . . . . . . . . . .

8

ย 

2.3

Internal memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8

ย 

ย 

2.3.1

BootROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8

ย 

ย 

2.3.2

Static RAMs (SRAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

8

ย 

2.4

Multiport DDR controller (MPMC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

ย 

2.5

Serial NOR Flash controller (SMI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

9

ย 

2.6

Flexible static memory controller (FSMC) . . . . . . . . . . . . . . . . . . . . . . . .

10

ย 

2.7

USB 2.0 Host controllers (UHC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11

ย 

2.8

USB 2.0 OTG port (UOC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

11

ย 

2.9

Giga/Fast Ethernet port (GMAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

12

ย 

2.10

PCI Express controller (PCIe) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

15

ย 

2.11

Serial ATA controller (SATA) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

16

ย 

2.12

SATA/PCIe physical interface (MiPHY) . . . . . . . . . . . . . . . . . . . . . . . . . . .

17

ย 

2.13

Memory card interfaces (MCIF) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

18

ย 

2.14

UART ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

19

ย 

2.15

I2C bus controllers (I2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21

ย 

2.16

Synchronous serial port (SSP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

21

ย 

2.17

A/D converter (ADC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

22

ย 

2.18

HDMI CEC interfaces (CEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

22

ย 

2.19

General purpose I/O (GPIO/XGPIO) . . . . . . . . . . . . . . . . . . . . . . . . . . . .

23

ย 

2.20

LCD display controller (CLCD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

24

ย 

2.21

Graphics processing unit (GPU) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

25

ย 

2.22

Video decoder (VDEC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

26

ย 

2.23

Video encoder (VENC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

28

ย 

2.24

Camera input interfaces (CAM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

ย 

2.25

Video input parallel port (VIP) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

29

ย 

2.26

I2S digital audio ports (I2S) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

30

2/194

Doc ID 023063 Rev 2

SPEAr1340

Contents

ย 

ย 

2.27 S/PDIF digital audio port . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2.28 Keyboard controller (KBD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 2.29 Cryptographic co-processor (C3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 2.30 Real-time clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 2.31 DMA controllers (DMAC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 2.32 General purpose timers (GPT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 2.33 PWM generators (PWM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 2.34 Clock and reset system . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 2.35 Reset and clock generator (RCG) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 2.36 Power control module (PCM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.37 Temperature sensor (THSENS) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37 2.38 One-time programmable antifuse (OTP) . . . . . . . . . . . . . . . . . . . . . . . . . 38

3

Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

39

ย 

3.1

Pin map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

41

ย 

3.2

Ball characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

45

ย 

3.3

Power supply signals description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

87

ย 

3.4

Multiplexed signals description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

91

3.4.1 MAC Ethernet port multiplexing scheme . . . . . . . . . . . . . . . . . . . . . . . . 91 3.4.2 KBD multiplexing scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 3.4.3 MCIF multiplexing scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92 3.4.4 FSMC multiplexing scheme . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94

3.5 Signals description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96

3.5.1 CPU subsystem . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 96 3.5.2 Memories . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97 3.5.3 Clocks and resets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 3.5.4 Debug interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 102 3.5.5 Connectivity . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103 3.5.6 Audio . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111 3.5.7 Video . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112 3.5.8 Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117 3.5.9 Miscellaneous . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117

3.6 Strapping options . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127

4

Electrical characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

129

Doc ID 023063 Rev 2

3/194

Contents SPEAr1340

4.1

Absolute maximum ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

129

4.2

Recommended operating conditions . . . . . . . . . . . . . . . . . . . . . . . . . . .

130

4.3

Clocking parameters . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

131

ย 

4.3.1

Master clock (MCLK) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

131

ย 

4.3.2

Real-time clock (RTC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

133

4.4

I/O AC/DC characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

135

4.4.1 3V3/2V5/1V8 I/O buffers (IOTYPE1/IOTYPE2/IOTYPE3) . . . . . . . . . . 135 4.4.2 IOTYPE4 I/O buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 139 4.4.3 DDR2 and DDR3 mode I/O buffers . . . . . . . . . . . . . . . . . . . . . . . . . . . 141

4.5 Voltage regulator characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 4.6 MiPHY characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143 4.7 Required external components . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144 4.8 Power-up sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 4.9 Power-down sequence . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 145 4.10 Reset release . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 146

5

Timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

147

ย 

5.1

Reset timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

147

ย 

5.2

ADC timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

148

ย 

5.3

ARM trace/JTAG timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . .

148

5.3.1 JTAG timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 148 5.3.2 ARM trace timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 149

5.4 CAM timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 150 5.5 CLCD timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 152 5.6 FSMC timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 153

5.6.1 NAND Flash configuration timing characteristics . . . . . . . . . . . . . . . . . 153 5.6.2 NOR Flash configuration timing characteristics . . . . . . . . . . . . . . . . . . 155 5.6.3 SRAM configuration timing characteristics . . . . . . . . . . . . . . . . . . . . . 158

5.7 GMAC timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 160

5.7.1 GMII transmit timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 160 5.7.2 GMII receive timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 5.7.3 MII transmit timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 161 5.7.4 MII receive timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 162

5.7.5MAC Ethernet asynchronous signals timing characteristics (MAC_CRS and MAC_COL) 163

4/194

Doc ID 023063 Rev 2

SPEAr1340

Contents

ย 

ย 

5.7.6MAC serial management channel timing characteristics (MDIO/MDC) 163

5.8 GPIO/XGPIO timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 5.9 I2C timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 164 5.10 I2S timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 166 5.11 MCIF timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 168

5.11.1 Synchronous mode (SD/SDIO/MMC) . . . . . . . . . . . . . . . . . . . . . . . . . 168 5.11.2 CompactFlash true IDE PIO mode/UDMA mode . . . . . . . . . . . . . . . . . 170

5.12 MPMC timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 171 5.13 PWM timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 5.14 SMI timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 176 5.15 SSP timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 177

5.15.1 SPI master mode timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 178 5.15.2 SPI slave mode timings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181

5.16 UART timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 181 5.17 VIP timing characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 182

6

Package information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

183

Appendix A

Acronyms . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

186

Appendix B

Copyright statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

189

7

Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

190

Doc ID 023063 Rev 2

5/194

ST SPEAr1340 User Manual

Description

SPEAr1340

ย 

ย 

1 Description

The SPEAr1340 device is a system-on-chip belonging to the SPEArยฎ (Structured Processor Enhanced Architecture) family of embedded microprocessors. The product is suitable for consumer and professional applications where an advanced human machine interface (HMI) combined with high performance are required, such as low-cost tablets, thin clients, media phones and industrial/printer smart panels.

The device is hardware-compliant to the support of both real-time (RTOS) and high-level (HLOS) operating systems, such as Android, Linux and Windows Embedded Compact 7.

The architecture of SPEAr1340 is based on several internal components, communicating through a multilayer interconnection matrix (BUSMATRIX). This switching structure enables different data flows to be carried out concurrently, improving the overall platform efficiency.

In particular, high-performance master agents are directly interconnected with the DDR memory controller in order to reduce access latency. The overall memory bandwidth assigned to each master port can be programmed and optimized through an internal weighted round-robin (WRR) arbitration scheme.

Figure 1. SPEAr1340 architectural block diagram

JTAG Trace

Boot ROM

SRAMs

ย 

ย 

ย 

ย 

ย 

Reset & clock Generator

THSENS

OTP

ย 

Power Control

ย 

ย 

ย 

ย 

ย 

ย 

Configuration

DMA Ctrl (2x)

Timers

Security

registers

ย 

ย 

Co processor

ย 

ย 

ย 

ย 

Opt.

Battery

6/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2 Device functions

2.1CPU subsystem

The CPU subsystem is based on the ARM Cortex A9 processor, and has a dual-core configuration.

Main features:

Each core has the following features:

โ—ARM v7 CPU at 600 MHz

โ—32 KB of L1 instruction CACHE with parity check

โ—32 KB of L1 data CACHE with parity check

โ—Embedded FPU for single and double data precision scalar floating-point operations

โ—Memory management unit (MMU)

โ—ARM, Thumb2 and Thumb2-EE instruction set support

โ—Program Trace Macrocell (PTM) and CoreSightยฉ component for software debug

โ—32-bit timer with 8-bit prescaler

โ—Internal watchdog (working also as timer)

The dual core configuration is completed by a common set of components:

โ—Snoop control unit (SCU) to manage inter-process communication, cache-to-cache and system memory transfer, cache coherency

โ—Generic interrupt control (GIC) unit configured to support 128 independent interrupt sources with software configurable priority and routing between the two cores

โ—64-bit global timer with 8-bit prescaler

โ—Accelerator coherence port (ACP)

โ—Parity support to detect runtime failures for other internal memories

โ—512 KB of unified 8-way set associative L2 cache with support for ECC

โ—L2 Cache controller based on PL310 IP released by ARM

โ—Dual asynchronous 64-bit AMBA 3 AXI interface with possible filtering on the second one to use a single port for DDR memory access

โ—JTAG interface and Trace port: debug and trace can be inhibited through OTP

Doc ID 023063 Rev 2

7/194

Device functions

SPEAr1340

ย 

ย 

2.2Multilayer interconnect matrix (BUSMATRIX)

The multilayer interconnect matrix is the connectivity infrastructure that enables data exchange between the various blocks of the device. The BUSMATRIX supports parallel communications between master and slave components, and ensures the maximum level of system throughput.

Main features:

โ—Hierarchical structure to meet the requirements of different system blocks and peripherals:

โ€“high performance low latency

โ€“high performance medium latency

โ€“medium performance medium/long latency

โ€“slow peripherals and configurations

โ—Power awareness through the power down request/acknowledgement of the power management module

โ—Single interrupt for outband signaling

2.3Internal memories

SPEAr1340 integrates two embedded memories:

โ—32 KB Boot ROM (BootROM)

โ—Static RAM areas (SRAM)

2.3.1BootROM

BootROM refers to the on-chip 32 KB ROM as well as the booting firmware pre-stored in such memory. The supported booting devices are:

โ—Serial NOR Flash

โ—Parallel NOR Flash

โ—NAND Flash

โ—USB OTG

โ—UART

โ—SD/MMC

The BootROM firmware selects the booting device after reset by reading the status of the STRAP[3:0] pins.

2.3.2Static RAMs (SRAM)

A part of these memory areas is used during the bootstrap phase by BootROM firmware. After booting, all SRAM areas are fully available for general purpose applications.

Main features:

โ—32 KB of system RAM (SYSRAM0, single port)

When all power islands are switched off, SYSRAM0 loses its data content.

โ—4 KB of Always-on RAM (SYSRAM1, single port)

When all power islands are switched off, SYSRAM1 maintains its data content.

8/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.4Multiport DDR controller (MPMC)

MPMC is a high-performance multichannel memory controller able to support DDR2 and DDR3 memory devices. The multiport architecture ensures that memory is shared efficiently among different high-bandwidth client modules.

Main features:

โ—Supports both DDR3 and DDR2 devices; wide range of memory device cuts supported up to 2 GB (Note: 1)

โ—Two chip selects supported

โ—Programmable memory data path size of full memory 32-bit data width or half memory 16-bit data width

โ—Clock frequencies from 100 MHz to 533 MHz supported

โ—6 AXI interfaces with a data interface width of 64 bits. Each port is configured with a thread ID of 4 bits

โ—Exclusive and locked accesses support

โ—Weighted round-robin arbitration scheme support to ensure high memory bandwidth utilization

โ—DRAM command processing

โ—Register port with an AHB interface with a data interface width of 32 bits

โ—A programmable register interface to control memory device parameters and protocols including auto pre-charge

โ—Full initialization of memory on memory controller reset

โ—Automatically maps user addresses to the DRAM memory in a contiguous block addressing starts at user address 0 and ends at the highest available address according to the size and number of DRAM devices present

โ—Fully pipelined command, read and write data interfaces to the memory controller

โ—Advanced bank look-ahead features for high memory throughput

Note: 1 When the 2GB address space is enabled, the ACP function is not available.

2.5Serial NOR Flash controller (SMI)

The serial NOR Flash controller integrated in SPEAr1340 acts as an AHB slave interface (32-, 16or 8-bit) to SPI-compatible off-chip memories. SMI allows the CPU to use these serial memories either as data storage or for code execution.

Main features:

โ—Supports a group of SPI-compatible Flash and EEPROM devices

โ—Acts always as an SPI master and up to 2 SPI slave memory devices are supported (through as many chip select signals), with up to 16 MB address space each.

โ—The SMI clock signal (smi_clk_o) is generated by SMI (and inputs to all slaves) using a clock provided by the AHB bus

โ—smi_clk_o can be controlled by a programmable 7-bit prescaler allowing 127 different clock frequencies.

Doc ID 023063 Rev 2

9/194

Device functions

SPEAr1340

ย 

ย 

2.6Flexible static memory controller (FSMC)

The flexible static memory controller enables to interface external parallel Flash memories as well as static RAMs.

Main features:

โ—Support for parallel NAND Flash:

โ€“8-bit or 16-bit data bus

โ€“2 chip select signals

โ€“no limitation on NAND capacity (number of pages)

โ€“hardware ECC (error correction code) support, correcting up to 8 errors per page (512 bytes wide)

โ€“support for SLC (single-level cell) and MLC (multi-level cell) Flash devices, as far as compatible with available ECC features

โ—Support for parallel NOR Flash:

โ€“8-bit or 16-bit data bus

โ€“26-bit address bus

โ€“2 chip select (CS) signals

โ€“Maximum capacity is 64 MB for each CS, hence up to 128 MB with 2 external Flash devices

โ—Support for asynchronous static RAMs (SRAMs):

โ€“8-bit or 16-bit data bus

โ€“26-bit address bus

โ€“2 chip select (CS) signals

โ€“Maximum capacity is 64 MB for each CS, hence up to 128 MB with 2 external SRAM devices

โ—Support for multiplexed NOR and SRAM

โ—Write FIFO: 16 words depth, each word is 32 bits wide

โ—Independent read/write timings and protocol, allowing matching the widest variety of memories and timings

โ—Wait signal for timings handshake

10/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.7USB 2.0 Host controllers (UHC)

The SPEAr1340 device integrates 2 USB Host interfaces. Each interface provides a highspeed Host controller (EHCI standard) and a full-speed/low-speed controller (OHCI standard). The UHC has 2 physical ports (2 separate instances) that are fully compliant with the Universal Serial Bus specification (version 2.0), and provides an interface to the industry-standard AHB bus.

Main features:

โ—A PHY interface implementing a USB 2.0 transceiver macro-cell interface plus (UTMI+) fully compliant with UTMI+ specification (revision 1.0), to execute serialization and deserialization of transmissions over the USB line

โ—Either 30 MHz clock for 16-bit interface or 60 MHz for 8-bit interface supported by the UTMI + PHY interface

โ—A USB 2.0 host controller (UHC) connected to the AHB bus that generates the commands for the UTMI+PHY

โ—Complies with both the enhanced host controller interface (EHCI) specification (version 1.0) and the open host controller interface (OHCI) specification (version 1.0a)

โ—The UHC supports the 480 Mbps high-speed (HS) for USB 2.0 through an embedded EHCI Host Controller, as well as the 12 Mbps full-speed (FS) and the 1.5 Mbps lowspeed (LS) for USB 1.1 through one integrated OHCI Host controller

โ—All clock synchronization is handled within the UHC

โ—An AHB slave for each controller (1 EHCI and 1 OHCI), acting as programming interface to access to control and status registers

โ—An AHB master for each controller (1 EHCI and 1 OHCI) for data transfer to system memory, supporting 8-, 16-, and 32-bit wide data transactions on the AHB bus

โ—32-bit AHB bus addressing

2.8USB 2.0 OTG port (UOC)

Main features:

โ—Complies with the On-The-Go supplement to the USB 2.0 specification (revision 1.3)

โ—Supports the Session Request Protocol (SRP)

โ—Supports the Host Negotiation Protocol (HNP)

โ—A PHY interface implementing the USB 2.0 transceiver macrocell interface (UTMI+ specification, revision 1.0 (Level 3)) to execute serialization and de-serialization of transmissions over the USB line

โ—Unidirectional and bidirectional 16-bit UTMI data bus interfaces

โ—Support for the following speeds:

โ€“High speed (HS): 480 Mbps

โ€“Full speed (FS): 12 Mbps

โ€“Low speed (LS): 1.5 Mbps (only in Host mode)

โ—Both of the DMA and slave-only modes are supported

Doc ID 023063 Rev 2

11/194

Device functions

SPEAr1340

ย 

ย 

2.9Giga/Fast Ethernet port (GMAC)

The GMAC IP provides the capability to transmit and receive data over Ethernet.

Main features:

โ—Supports 10/100/1000 Mbps data transfer rates with the following PHY interfaces:

โ€“IEEE 802.3-compliant GMII/MII interface (default) to communicate with an external Gigabit/Fast Ethernet PHY

โ€“RGMII interface to communicate with an external gigabit PHY

โ€“RMII interface (specification version 1.2 from RMII consortium) to communicate with an external Fast Ethernet PHY (for 10/100 Mbps operations only)

โ—Full-duplex operation:

โ€“IEEE 802.3x flow control automatic transmission of zero-quanta pause frame on flow control input de-assertion

โ€“Optional forwarding of received pause control frames to the user application

โ—Half-duplex operation:

โ€“CSMA/CD Protocol support

โ€“Flow control using back-pressure support

โ€“Frame bursting and frame extension in 1000 Mbps half-duplex operation

โ—Automatic CRC and pad generation controllable on a per-frame basis

โ—Provides options for automatic pad/CRC stripping on receive frames

โ—Supports a variety of flexible address filtering modes, such as:

โ€“Up to 31 48-bit SA address comparison check with masks for each byte

โ€“64-bit hash filter for multicast and unicast (DA) addresses

โ€“Option to pass all multicast addressed frames

โ€“Promiscuous mode support to pass all frames without any filtering for network monitoring

โ€“Passes all incoming packets (per filter) with a status report

โ—Programmable frame length to support standard or jumbo Ethernet frames with up to 16 KB of size

โ—Programmable interframe gap (IFG) (40-96 bit times in steps of 8)

โ—Separate 32-bit status for transmit and receive packets

โ—IEEE 802.1Q VLAN tag detection for reception frames

โ—Self-managed DMA transfers with an internal DMA block

โ—Separate transmission, reception, and control interfaces to the application

โ€“The host CPU uses a 32-bit AHB (AMBA 2.0) slave interface to access the GMAC subsystem control and status registers (CSRs)

โ€“The GMAC transfers data to system memory through a 32-bit AXI (AMBA 3.0) master interface

โ—Support for network statistics with RMON/MIB counters (RFC2819/RFC2665)

โ—A module for detection of LAN remote wake-up frames and AMD magic packet frames: power management module (PMT)

โ—A receive module for checksum off-load for received IPv4 and TCP packets encapsulated by the Ethernet frame (Type 1)

โ—An enhanced receive module for checking IPv4 header checksum and TCP, UDP, or ICMP checksum encapsulated in IPv4 or IPv6 datagrams (Type 2)

12/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

โ—An enhanced module to calculate and insert IPv4 header checksum and TCP, UDP, or ICMP checksum in frames transmitted in store-and-forward mode.

โ—A module to support Ethernet frame time stamping as described in IEEE 15882002 and IEEE 1588-2008 (standard for precision networked clock synchronization). Sixty- four-bit time stamps are given in the transmit or receive status of each frame.

โ—MDIO master interface for PHY device configuration and management: station management agent (SMA), MDIO module

โ—Supports the standard IEEE P802.3az, version D2.0 for energy efficient Ethernet; allows physical layers to operate in the low-power idle (LPI) mode

The MAC transaction level (MTL) block consists of two sets of FIFOs: a transmit FIFO with programmable threshold capability, and a receive FIFO with a programmable threshold (default of 64 bytes). The MTL block has the following features:

โ—32-bit transaction layer block that provides a bridge between the application and the GMAC

โ—Single-channel transmit and receive engines

โ—Synchronization for all clocks in the design (transmit, receive, and system clocks)

โ—Optimization for packet-oriented transfers with frame delimiters

โ—Four separate ports for system-side and GMAC side transmission and reception

โ—FIFO instantiation outside the top-level module to facilitate memory testing/instantiation

โ—4 KB receive FIFO size on reception

โ—Supports receive status vectors insertion into the receive FIFO after the EOF transfer. This enables multiple-frame storage in the receive FIFO without requiring another FIFO to store those frames

โ—Configurable receive FIFO threshold (default fixed at 64 bytes) in cut-through or threshold mode

โ—Provides an option to filter all error frames on reception and not forward them to the application in store-and-forward mode.

โ—Provides an option to forward under-sized good frames

โ—Supports statistics by generating pulses for frames dropped or corrupted (due to overflow) in the receive FIFO

โ—2 KB FIFO size on transmission

โ—Store and forward mechanism for transmission to the GMAC

โ—Threshold control for transmit buffer management

โ—Automatic retransmission of collision frames for transmission

โ—Discards frames on late collision, excessive collisions, excessive deferral, and underrun conditions

โ—Software control to flush TX FIFO

The DMA block exchanges data between the MTL block and host memory. The host can use a set of registers (DMA CSR) to control the DMA operations. The DMA block supports the following features:

โ—32-bit data transfers

โ—Single-channel transmit and receive engines

โ—Fully synchronous design operating on a single system clock (except for CSR module, when a separate CSR clock is configured)

โ—Optimization for packet-oriented DMA transfers with frame delimiters

Doc ID 023063 Rev 2

13/194

Device functions

SPEAr1340

ย 

ย 

โ—Byte-aligned addressing for data buffer support

โ—Dual-buffer (ring) or linked-list (chained) descriptor chaining

โ—Descriptor architecture that allows large blocks of data transfer with minimum CPU intervention

โ—Comprehensive status reporting for normal operation and transfers with errors

โ—Individual programmable burst size for transmit and receive DMA engines for optimal host bus utilization

โ—Programmable interrupt options for different operational conditions

โ—Complete per-frame transmit/receive interrupt control

โ—Round-robin or fixed-priority arbitration between receive and transmit engines

โ—Start/stop modes

โ—Separate ports for host CSR access and host data interface

The GMAC audio video (AV) enables transmission of time-sensitive traffic over bridged local area networks (LANs). The GMAC AV has the following features:

โ—Compliant to IEEE 802.1-AS standard, version D6.0: specifies the protocol and procedures used to ensure that the synchronization requirements are met for timesensitive applications

โ—Compliant to IEEE 802.1-Qav standard, version D6.0: allows the bridges to provide time-sensitive and loss-sensitive real-time audio video data transmission (AV traffic). It specifies the priority regeneration and controlled bandwidth queue draining algorithms that are used in bridges and AV traffic sources

โ—Supports one additional channel (channel 1) on the transmit and receive paths for AV traffic in 100 Mbps and 1000 Mbps modes. The channel 0 is available by default and carries the legacy best-effort Ethernet traffic on the transmit side.

โ—Supports IEEE 802.1-Qav specified credit-based shaper (CBS) algorithm for the additional transmit channels

โ—Provides separate DMA, TxFIFO, and RxFIFO MTL for the additional channel (to avoid โ€œhead of line blockingโ€ issues); the system-side interface remains the same.

The GMAC has the following additional features for monitoring, testing, and debugging:

โ—Supports internal loopback on the GMII/MII for debugging

โ—Provides DMA states (Tx and Rx) as status bits

โ—Provides debug status register that gives status of FSMs in transmit and receive datapaths and FIFO fill-levels

โ—Application abort status bits

โ—MMC (RMON) module in the GMAC core

โ—Current Tx/Rx buffer pointer as status registers

โ—Current Tx/Rx descriptor pointer as status registers

โ—Statistical counters that help in calculating the bandwidth served by each transmit channel when AV support is enabled

14/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.10PCI Express controller (PCIe)

The PCI Express core incorporates a dual-mode (DM) core which can implement a PCIe interface for a PCIe Root Complex (RC) or Endpoint (EP). The dual-mode core can operate in EP or RC port modes, depending on value written in a register during PCIe configuration.

PCIe is compliant with the PCI Express Base 2.0 specification, but it is also compliant with the PCIe 1.1 specification.

The core features a proprietary user-configurable and high-performance application interface for generating and receiving PCIe traffic. It is available with standard AMBA 3 AXI interfaces.

ย 

Typical applications for a PCI Express device built with the DM core include:

ย 

โ— Motherboard components for desktop and mobile computers

ย 

โ—

Graphics devices

ย 

โ— Add-in cards for desktop and mobile computers

ย 

โ— Components and add-in cards in server applications

ย 

โ—

Embedded applications

ย 

โ—

Data communications equipment

ย 

โ—

Telecommunications equipment

ย 

โ—

Storage devices

ย 

โ—

Wireless devices

ย 

โ—

Other applications

ย 

The DM core in EP mode supports PCI Express Legacy Endpoint devices. However, the

ย 

application must ensure that the device obeys the Legacy Endpoint device rules defined in

ย 

the PCI Express Base 2.0 specification.

Note:

The core is not intended for use in a root complex integrated endpoint.

Main features (common to both EP and RC mode of the DM cores):

โ—Support for all non-optional features and some optional features defined in the PCI Express Base 2.0 specification.

โ—Ultra low transmit and receive latency

โ—Support a max payload size of 256 bytes

โ—4 KB maximum request size

โ—Very high accessible bandwidth

โ—Support for both Gen1 (at 125 MHz) and Gen2 (at 250 MHz) operation

โ—2.5 Gbps (Gen1) or 5.0 Gbps (gen2) Lane (x1)

โ—Automatic lane reversal as specified in the PCI Express 2.0 specification (transmit and receive)

โ—Polarity inversion on receive

โ—Multiple virtual channels (VCs) (maximum of 2)

โ—Multiple traffic classes (TCs)

โ—ECRC generation and checking

โ—PCI Express beacon and wake-up mechanism

Doc ID 023063 Rev 2

15/194

Device functions

SPEAr1340

ย 

ย 

โ—PCI power management

โ—PCI Express active state power management (ASPM)

โ—PCI Express advanced error reporting

โ—Vital product data (VPD)

โ—PCIe messages for both transmit and receive.

โ—External priority arbitration (in addition to the internally implemented transmit arbitration)

โ—Expansion ROM support

Additional features specific to RC mode

โ—Type 1 configuration space

โ—Application-initiated Lane reversal for situations where the core does not detect Lane 0 (for example, an x4 core connected to an x8 device that has its Lanes reversed)

Additional features specific to EP mode

โ—Completion time-out ranges

โ—Type 0 configuration space

โ—MSI interrupt capability

2.11Serial ATA controller (SATA)

The SATA AHCI Core implements the serial advanced technology attachment (SATA) storage interface for physical storage devices.

Main features:

โ—SATA 3.0 Gb/s Gen II

โ—eSATA (external analog logic also needs to support eSATA)

โ—Compliant with the following specifications:

โ€“Serial ATA 3.0 (except FIS-based switching)

โ€“AHCI Revision 1.3 (except FIS-based switching)

โ€“AMBA 3 AXI interfaces

โ—User-defined PHY status and control ports

โ—RX data buffer for recovered clock systems

โ—Data alignment circuitry when RX data buffer is also included

โ—OOB signaling detection and generation

โ—8b/10b encoding/decoding

โ—Asynchronous signal recovery, including retry polling

โ—Digital support of device hot-plugging

โ—Power management features including automatic partial-to-slumber transition

โ—BIST loopback modes

โ—Single SATA device

โ—Internal DMA engine per port

โ—Hardware-assisted native command queuing for up to 32 entries

16/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

โ—Port Multiplier with command-based switching

โ—Disabling RX and TX Data clocks during power down modes

โ—Integrated SATA link layer and transport layer logic

โ—Supports PIO, first party and legacy DMA modes

โ—Supports legacy command queuing

โ—Supports ATA and ATAPI master-only emulation mode (for instance, register and command compatible with these standards)

โ—Power-down mode

โ—Data scrambling

โ—CRC computation

โ—Automatic data flow control

โ—Far end loop-back re-timed

2.12SATA/PCIe physical interface (MiPHY)

The MiPHY macrocell implements the lower (physical) layer protocols providing data transmission and reception over a dual differential pair cable. The TX (transmit) and RX (receive) serial channels operate plesiochronously (NRZ). The macrocell can be used in Host or Device applications.

Main features:

โ—Serial transceiver (PHYsical layer) serializer and deserializer

โ—Direct support for 1.5/ 3.0 and 1.25/ 2.5/ 5.0 Gbit/s bit rates

โ—20-bit parallel interface

โ—Comma detect to provide word alignment of incoming serial stream

โ—SSC modulation

โ—Integrated impedance adaptation to transmission line characteristics

โ—Out-of-band (OOB) signaling

โ—Supported 1.2 V and 2.5 V power supply

โ—High-performance PLL (input reference 100 MHz for PCIe and 100 or 25 MHz for SATA)

โ—Programmable TX buffer pre-emphasis, slew-rate and amplitude

โ—Dedicated TX buffer regulator for:

โ€“Transmit buffer noise immunity

โ€“Buffer level stability

Doc ID 023063 Rev 2

17/194

Device functions

SPEAr1340

ย 

ย 

2.13Memory card interfaces (MCIF)

MCIF is a hardware IP that interfaces with the most common memory cards on the market:

โ—SD/SDIO 2.0

โ—SDHC

โ—CF/CF+ Rev 4.1

โ—MMC 4.2/4.3

โ—xD

The device interface multiplexes different memory cards on the same IOs; only one memory card is accessible at a given time. At the board level, discrete elements are required to handle host-swap management.

Main features:

SD/SDIO/MMC controller

โ—Compliant with:

โ€“SD Host controller standard specification version 2.0

โ€“SDIO card specification version 2.0

โ€“SD memory card specification draft version 2.0

โ€“SD memory card security specification version 1.01

โ€“MMC specification version 3.31, 4.2 and 4.3

โ€“AMBA specification AHB (version 2.0)

โ—Data transfer with the system core through:

โ€“PIO mode on the Host AHB slave interface

โ€“DMA mode on the Host AHB master interface

โ—Host clock rate variable from 0 to 50 MHz

โ—Maximum data rate achievable:

โ€“200 Mbps (sd4 bit mode)

โ€“400 Mbps (mmc8 bit mode)

โ—Data transfer:

โ€“SD mode: 1 bit, 4 bit, and SPI mode

โ€“MMC mode: 1 bit, 4 bit, 8 bit, and SPI mode

โ—Cyclic redundancy check for commands (CRC7) and for data integrity (CRC16)

โ—Variable length data transfer

โ—Read wait control and suspend/resume operations supported

โ—Works with IO cards, read-only cards and read/write cards

โ—Supports MMC Plus and MMC Mobile

โ—Error correction code support for MMC 4.3 cards

โ—Card detection (insertion/removal)

โ—Card password protection

โ—Two 4K FIFO to aid data transfer between the CPU and the controller

โ—FIFO overrun and underrun handled by stopping the SD clock

18/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

CF/CF+ Host controller

โ—CF Specification Revision 4.1 compliance (True IDE Mode only)

โ—Multiword DMA to transfer data between the host and the CF/+ device

โ—Ultra DMA mode for accessing the CF/+ card using the 16-bit data path

โ—PIO timing mode0 through mode6

โ—Multiword DMA timing mode0 through mode4

โ—Ultra DMA timing mode0 through mode6

โ—Data transfers up to 256 (512 byte) blocks

โ—Variable-length data transfer in multiword DMA and Ultra DMA modes

โ—Interrupt-driven data transfers in PIO mode

xD Host controller (Xtreme Digital)

โ—Comfortable erase mechanism

โ—Programmable access timing

โ—Read, write, erase, read device ID, status and reset commands

โ—ECC generation and checking

โ—Multiblock programming and multiblock erase

โ—1 Gbit, 2 Gbit support

2.14UART ports

The SPEAr1340 device integrates 2 instances of an asynchronous serial port (UART) digital block, identified as UART0 and UART1.

Asynchronous serial ports are responsible for performing the main tasks in serial communications with computers. The device converts incoming parallel information into serial data and incoming serial information into parallel data that can be sent on a communication line connected to an external peripheral device.

The SPEAr1340 embedded MPU provides two independent UART controllers. One of the typical uses of UART is connecting the SPEAr-based platforms to debugging consoles, the communication with modems and the interfacing of Bluetooth, DECT or ZigBee chipsets. The UART features inside SPEAr1340 offer similar functionality to the industry-standard 16C650 UART device.

UART ports usually do not directly generate or receive the external signals used between different items of equipment. External interface devices are used to convert the logic level signals of the UART to and from the external signaling levels. External signals may be of many different forms, such as RS-232, infrared and wireless radio. In particular, the UART interfaces inside SPEAr1340 directly support (by software selection) the IrDA-compliant Serial InfraRed (SIR) protocol.

The UART supports standard asynchronous communication bits (start, stop, and parity), which are added prior to transmission and removed on reception.

Doc ID 023063 Rev 2

19/194

Device functions

SPEAr1340

ย 

ย 

Main features:

UART0 and UART1:

โ—Support baud rate up to UARTCLK/16

โ—Programmable baud rate generation (integer and fractional parts)

โ—Support three options on the UARTCLK clock frequency:

โ€“48 MHz: maximum baud rate of 3 Mbps (48/16)

โ€“24 MHz: maximum baud rate of 1.5 Mbps (24/16)

โ€“Programmable by software: up to 125 MHz with a maximum baud rate of 7.81 Mbps (125/16).

โ—Separate 16x8 transmit and 16x12 receive first-in, first-out memory buffers (FIFOs)

โ—Programmable FIFO disabling for 1-byte depth

โ—FIFO trigger levels selectable between 1/8, 1/4, 1/2, 3/4 and 7/8

โ—Independent masking of transmit FIFO, receive FIFO, receive time-out, and error condition interrupts

โ—Support for direct memory access (DMA)

โ—False start bit detection

โ—Line break generation and detection

โ—Programmable usage of IrDA SIR encoder/decoder: IrDA SIR ENDEC block provides:

โ€“Support of IrDA SIR ENDEC functions for data rates up to 115.2 Kbits/second half-duplex

โ€“Support of normal 3/16 and low-power bit durations

โ€“Programmable internal clock generator enabling division of reference clock by 1 to 256 for low-power mode bit duration

โ—Fully-programmable serial interface characteristics:

โ€“data can be 5, 6, 7, or 8 bits

โ€“even, odd, stick, or no-parity bit generation and detection

โ€“1 or 2 stop bit generation

UART0 only:

โ—Programmable hardware flow control which uses the CTS input and the RTS output to automatically control the serial data flow

โ—Support modem status which uses:

โ€“Input signals: Clear To Send (CTS), Data Carrier Detect (DCD), Data Set Ready (DSR), and Ring Indicator (RI)

โ€“Output modem control lines: Request To Send (RTS), and Data Terminal Ready (DTR)

โ—Independent masking of modem status

20/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.15I2C bus controllers (I2C)

The SPEAr1340 device integrates 2 instances of an I2C controller, identified as I2C0 and I2C1, which can be used to connect to the I2C bus peripheral.

Main features:

โ—Compliant to the I2C-bus specification from Philips

โ—Three different operating modes:

โ€“Standard-speed mode (data rates up to 100 Kb/s)

โ€“Fast-speed mode (data rates up to 400 Kb/s)

โ€“High-speed mode

โ—Clock synchronization

โ—Master or slave I2C operation mode

โ—Multimaster operation mode (bus arbitration)

โ—Support for direct memory access (DMA)

โ—7-bit or 10-bit addressing

โ—7-bit or 10-bit combined format transfers

โ—Slave bulk transfer mode

โ—Ignores CBUS addresses (an older ancestor of I2C that used to share the I2C bus)

โ—Buffer transmission and reception

โ—Interrupt or polled-mode operation

โ—Handles bit and byte waiting at all bus speeds

โ—Digital filter for the received SDA and SCL lines

2.16Synchronous serial port (SSP)

The synchronous serial port block includes a master or slave interface to enable synchronous serial communication with slave or master peripherals.

Main features:

โ—Master or slave operation

โ—Programmable clock bit rate and prescaler

โ—Separate transmit and receive first-in, first-out memory buffers, 16-bit wide, 8 locations deep

โ—Programmable choice of interface operation, SPI, Microwire, or TI synchronous serial

โ—Programmable data frame size from 4 to 16 bits

โ—Independent masking of transmit FIFO, receive FIFO, and receive overrun interrupts

โ—Internal loopback test mode available

โ—Support for direct memory access (DMA)

Doc ID 023063 Rev 2

21/194

Device functions

SPEAr1340

ย 

ย 

2.17A/D converter (ADC)

SPEAr1340 integrates an analog-to-digital converter.

Main features:

โ—Successive approximation A/D conversion

โ—10-bit resolution for the analog cell which can be extended up to 12 bits with embedded oversampling techniques performed by the controller

โ—1 MSPS

โ—8 analog input channels (0 โ€“ 2.5 V)

โ—INL ยฑ 1 LSB

โ—DNL ยฑ 1 LSB

โ—Programmable conversion speed โ€“ minimum conversion time 1 ยตs

โ—Support for resistive touchscreen

2.18HDMI CEC interfaces (CEC)

The SPEAr1340 device integrates 2 instances of a Consumer Electronics Control (CEC) digital block, identified as CEC0 and CEC1.

CEC is an asynchronous transfer mode adaptation layer (AAL) protocol that provides highlevel control functions among the various audiovisual products in a userโ€™s environment. CEC operates at low speeds, with minimal processing and memory overhead.

Main features:

โ—AMBA 2.0 compatible

โ—One touch play: Play a device and make it the active source with the press of a button

โ—System standby: Set all devices to standby with the press of a button

โ—Preset transfer: Auto-configures device presets to match those of the TV

โ—One-touch record: Enables one-button recording

โ—Timer programming: Any device can program a recording deviceโ€™s timer

โ—System information: Devices can auto-configure their language and country settings

โ—Deck control: A device can control and interrogate a playback device

โ—Tuner control: A device can control the tuner of another device

โ—Vendor specific commands: Enables the use of vendor-defined commands

โ—On-screen display (OSD): A device can display text on the TV screen

โ—Device menu control: A device can control the menu of another device

โ—Routing control: Enables CEC switch control, to stream a new source device

โ—Remote control pass through: Enables the passing on of remote control commands to other devices

โ—Device OSD name transfer: System devices can request the preferred object-based storage device (OSD) name of other system devices

22/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.19General purpose I/O (GPIO/XGPIO)

SPEAr1340 handles generic input/outputs in 3 ways. First, the device integrates 2 instances of a general purpose I/O (GPIO) digital block, identified as GPIOA and GPIOB. Second, an extended GPIO (XGPIO) feature is provided. Finally, it is possible to use the KBD controller in GPIO mode (this feature is documented in Section 2.28: Keyboard controller (KBD)).

The GPIO block provides 16 programmable inputs or outputs (8 for GPIOA and 8 for GPIOB). Each input/output can be controlled by software.

GPIO main features:

โ—16 individually programmable input/output pins (by default input at reset)

โ—An APB slave acting as control interface in software mode

โ—Programmable interrupt generation capability on any number of pins

โ—Bit masking in both read and writes operation through address lines

The XGPIOs are individually programmable input/output pins (by default output) that can be controlled through an AHB slave interface.

XGPIO main features:

โ—234 individually programmable input/output pins: XGPIO0 to XGPIO7, and XGPIO24 to XGPIO249 (by default output). There is just an exception for the bit XGPIO169 which is always an output.

โ—Programmable interrupt (rise or fall edge sensitive) generation on any number of pins

โ—An AHB slave interface as control

Doc ID 023063 Rev 2

23/194

Device functions

SPEAr1340

ย 

ย 

2.20LCD display controller (CLCD)

The TFT LCD controller provides all the necessary control signals to interface directly to a variety of TFT LCD panels.

Main features:

โ—Wide range of programmable LCD panel resolutions

โ—Support for 1 port TFT LCD panel interfaces:

โ€“18-bit digital (6-bit/color)

โ€“24-bit digital (8-bit/color) CMOS

โ—Support for 2 Port TFT LCD panel interfaces (2nd port available by programmable signals)

โ—Support for up to 2 overlay windows.

โ—Programmable frame buffer bits-per-pixel (bpp) color depths:

โ€“1, 2, 4, 8 bpp mapped through the color palette to 18-bit LCD pixel

โ€“up to 18 bpp directly drive 18-bit LCD pixel

โ€“24 bpp directly drive 24-bit LCD pixel

โ—Color Palette RAM to reduce Frame Buffer memory storage requirements bandwidth

โ—Programmable output format support:

โ€“RGB 6:6:6 or 5:6:5 or 5:5:5 on 18-bit digital interface

โ€“RGB 8:8:8 on 24-bit digital interface

โ—Programmable horizontal timing parameters:

โ€“horizontal front porch, back porch, sync width, pixels-per-line

โ€“horizontal sync polarity

โ—Programmable vertical timing parameters:

โ€“vertical front porch, back porch, sync width, lines-per-panel

โ€“vertical sync polarity

โ—Programmable pixel clock frequency up to 148MHz (1080p resolution)

โ—Programmable data enable timing signal:

โ€“derived from horizontal and vertical timing parameters

โ€“display enable polarity

โ—Power up and down sequencing support

โ—Programmable endianness

โ—Pulse width modulation for LCD panel LED backlight brightness control

24/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.21Graphics processing unit (GPU)

The Mali GPU is a hardware accelerator for 2D and 3D graphics systems that forms the basis of a high performance graphics processing solution. When implemented as part of a system-on-chip (SoC) device, the GPU forms an integral part of the graphics solution. The GPU comprises the following:

โ—an ARMยฎ Maliโ„ข200 pixel processor

โ—a MaliGP2 geometry processor

โ—a memory management unit (MMU)

โ—associated software (programmed using OpenVG or OpenGL base layers)

Main features (pixel processor):

โ—Programmable fragment shader

โ—Access to framebuffer from fragment shaders

โ—Alpha blending

โ—Arbitrary memory reads and writes

โ—Complete non-power-of-2 texture support

โ—Cube mapping

โ—Dynamic recursion

โ—Fast dynamic branching

โ—Fast trigonometric functions, including arctangent

โ—Full floating-point arithmetic

โ—Framebuffer blend with destination Alpha

โ—High dynamic range (HDR) textures and framebuffers

โ—Indexable texture samplers

โ—Line, quad, triangle, and point sprites

โ—Multiple render targets

โ—No limit on program length

โ—Perspective anisotropic filtering (AF)

โ—Perspective correct texturing

โ—Point sampling, bilinear, and trilinear filtering

โ—Programmable mipmap level-of-detail biasing and replacement

โ—Register indirect jumps

โ—Stencil buffering, 8-bit

โ—Two-sided stencil

โ—Unlimited dependent texture reads

โ—Virtualized texture samplers

โ—4-level hierarchical Z and stencil operations

โ—4 times and 16 times full scene anti-aliasing (FSAA)

โ—4-bit per texel texture compression.

Geometry processor

โ—Programmable vertex shader

โ—Autonomous operation tile list generation

โ—Flexible input and output formats

โ—Indexed and non-indexed geometry input

โ—Primitive constructions with points, lines, triangles and quads.

Doc ID 023063 Rev 2

25/194

Device functions

SPEAr1340

ย 

ย 

Software

โ—Compatibility with the following graphics standards:

โ€“OpenGL ES 2.0

โ€“OpenGL ES 1.1

โ€“OpenVG 1.0

The geometry processor must be programmed using OpenVG or Open GL base layers.

2.22Video decoder (VDEC)

Main features:

โ—All algorithms in hardware - minimal CPU load

โ—Minimal power consumption - functional level clock gating and synthesis time clock gating (> 90% of registers under gating)

Supported video codecs:

โ—H.264 profile and level

โ€“Baseline, main and high profiles

โ€“Decoding up to 1080p/30fps(1)

โ€“Scalable video coding (SVC):

โ€“Baseline and high profiles (base layer only)

โ—MPEG-4 visual profile and level

โ€“Simple and advanced simple profiles, levels 0 โ€“5(2)

โ—H.263 profile and level

โ€“Profile 0, levels 10 โ€“70 (image size up to 720x576)

โ—Sorenson Spark

โ—WMV9 / VC-1

โ€“Simple, main and advanced profiles, levels 0 -3

โ—MPEG-1&2 main profile

โ€“Low, medium and high levels

โ—RealVideo8/9/10

โ—DivXยฎ3/4/5/6 support

โ€“Home theater profile qualification

โ—VP6, VP7 versions 0-3

โ—VP8 version 2 (WebM)

โ—AVS Jizhun Profile

โ—JPEG, all common sampling formats

โ€“Baseline interleaved

1.Achievable resolution and frame rate depending on specific stream content and system load.

2.Global motion compensation (GMC) is not supported.

26/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

Supported post-processing features:

โ—Input image source

โ€“Internal source (combined mode): G1decoder

โ€“External source (standalone mode): for example, a software decoder or camera interface

โ—Input image size

โ€“Combined mode: 48 x 48 to 8176 x 8176 (66.8 Mpixels)

โ€“Standalone mode: width from 48 to 8176, height from 48 to 8176 (maximum size limited to 16.7 Mpixels)

โ—Output image size

โ€“16 x 16 to 1920 x 1088

โ—Image scaling

โ€“Bicubic polynomial interpolation for upscaling

โ€“Proprietary averaging filter for downscaling

โ€“Arbitrary, non-integer scaling ratio separately for both dimensions

โ—YCbCr to RGB color conversion

โ€“BT.601-5 compliant

โ€“BT.709 compliant

โ€“User definable conversion coefficient

โ—Dithering

โ€“2x2 ordered spatial dithering for 4-, 5- and 6-bit RGB channel precision

โ—Alpha blending

โ€“Output image can be alpha blended with two rectangular areas

โ—Deinterlacing

โ€“Conditional spatial deinterlace filtering; supports only YCbCr 4:2:0 input format

โ—linear RGB image contrast, brightness and color saturation adjustment

โ—Deblocking filter for MPEG-4 simple profile /H.263 / Sorenson

โ€“Using a modified H.264 in-loop filter as a postprocessing filter; filtering has to be performed in combined mode.

โ—Image cropping / digital zoom

โ€“User definable start position, height and width

โ€“Usable only for JPEG or stand-alone mode

โ—Output image masking

โ—Image rotation

โ€“Rotation 90, 180 or 270 degrees

โ€“Horizontal/vertical flip

Doc ID 023063 Rev 2

27/194

Device functions

SPEAr1340

ย 

ย 

2.23Video encoder (VENC)

A multiformat video encoder is integrated in SPEAr1340 with 64-bit AXI master and 32-bit AHB slave interfaces. It supports H.264 high profile video resolution up to 1080p and JPEG still picture up to 64 Mpixel.

Main features:

โ—H.264 profile and level

โ€“Baseline, main and high profiles, levels 1- 4.0

โ—JPEG profile and level

โ€“Baseline (DCT sequential)

โ—Video stabilization

โ—I and P slices support

โ—CAVLC baseline and CABAC main profile

โ—Error resilience

โ€“Constrained intra prediction

โ€“Slices, multiple of macro blocks rows

โ—Maximum motion vector length

โ€“Vertical ยฑ14 pixels

โ€“Horizontal ยฑ30pixels

โ—12 intra prediction modes

โ—Motion vector pixel accuracy

โ€“720p resolution ยผ pixels

โ€“1080p resolution ยฝ pixels

โ—Macroblock and sub-macroblock partitions: 16x16, 8x16, 16x8, 8x8, 4x8, 8x4,4x4

โ—Transforms 4x4 baseline, main and high profiles

โ—1 reference frame support

โ—Maximum 1 slice group support

โ—Input data formats

โ€“Planar YCbCr 4:2:0, semiplanar YCbCr 4:2:0, interleaved YCbCr 4:2:2

โ—Output data formats

โ€“H.264 (Byte and NAL unit stream)

โ€“JPEG( JFIF file format 1.02 and non progressive JPEG)

โ—Supported image size

โ€“H.264: 96x96 to1920x1020

โ€“JPEG: 96x96 to 8192x8192

โ€“Step size 4 pixels

โ—Pre-processing features

โ€“YCbCr 4:2:2 to YCbCr 4:2:0 color space conversion for all YCbCr input formats

โ€“Cropping from 8192 x 8192 to any supported encoding size

โ€“Rotation of 90 or 270 degrees

28/194

Doc ID 023063 Rev 2

SPEAr1340

Device functions

ย 

ย 

2.24Camera input interfaces (CAM)

The SPEAr1340 device integrates 4 instances of a camera input (CAM) digital block, identified as CAM1, CAM2, CAM3, CAM4.

Each CAM interface enables SPEAr1340 to interface with an external image sensor. An incoming image is stored in CAMIF memory per a programmed mode, and then transferred to external memory using system direct memory access.

Main features:

โ—AMBA 2.0 compatible

โ—Slave interface with connection to external system DMA

โ—8-bit parallel data interface

โ—YCbCr4:2:2, RGB888 packed, RGB888 un-packed, RGB565, JPEG mode

โ—Video mode with all running frame

โ—Compliant with ITU-R BT.601 (External synchronization) as well as ITU-R BT.656 (embedded synchronization)

โ—Image cropping

โ—Programmable polarity of pixel clock and external synchronization signals (HSYNCH, VSYNCH)

Note:

For 1080p 30 Hz video maximum pixel clock frequency for CAM required is

ย 

(2x2200x1125x30)=148.5 MHz.

2.25Video input parallel port (VIP)

The video input parallel port is used to interface with some external image sensors. Incoming images are stored inside its internal FIFO as per some programmed mode and then transferred to the external memory through the master interface.

Main features:

โ—Supports HDMI, DVI, DP and CVBS

โ—Supports output format RGB along with HSYNC, VSYNC and pixel clock

โ—Clock polarity configuration provided (Positive edge/Negative edge)

โ—HSYNC and VSYNC polarity configurable

โ—Handling of data enable signal

โ—Dual-port display in DVI mode for 16 bpp and 24 bpp supported

โ—Input bit width 16 bpp, 24 bpp and 32 bpp supported

โ—Only unpacked data format supported

Doc ID 023063 Rev 2

29/194

Device functions

SPEAr1340

ย 

ย 

2.26I2S digital audio ports (I2S)

The I2S controller is a highly configurable IP for use in audio applications. It provides a simple interface to standard audio components.

Main features:

โ—Compliant to Philips I2S serial bus specifications

โ—I2S master for output operations and I2S slave for input operations

โ—Configurable number of stereo channels (up to 4) for both transmitter and receiver

โ—Supports up to 7.1 audio Tx and Rx

โ—Supports 12-/16-/20-/24-/32-bit audio data interface

โ—Fully synchronous design with serial clock and system clock

โ—Interrupt support for reporting FIFO and other conditions

โ—Programmable FIFO thresholds

โ—Supports data exchange to the system memory through DMA interface

โ—Software controlled block resets and enables

โ—Software controlled FIFO flush

2.27S/PDIF digital audio port

The S/PDIF audio interface detects bi-phase encoded S/PDIF signals, and plays PCM audio data or audio encoded bit streams stored in memory in the S/PDIF format.

Main features:

Input

โ—Fully compliant with IEC-60958 for audio data

โ—Supports typical audio sampling frequencies, such as 32, 44.1, 48, 96, and 192 kHz.

โ—Programmable DMA trigger threshold

โ—VUCP storage can optionally be disabled

โ—Audio data can be stored in bit lengths of 16 to 24 bits

Output

โ—Compliant with IEC-60958 for audio data and IEC-61937 for compressed audio data

โ—Supports typical audio sampling frequencies such as 32, 44.1, 48, 96, and 192 kHz

โ—Supports one-bit audio mode (HDMI)

โ—Supports DTS-HD mode

โ—Programmable system DMA trigger limit

โ—Programmable VUCP insertion

โ—Supports 16/0 or 16/16 audio data format in memory

2.28Keyboard controller (KBD)

The GPIO keyboard controller integrated in SPEAr1340 offers a 3-mode input and output port. It provides an12-bit GPIO, or 6x6 keyboard, or 2x2 keyboard plus 8-bit GPIO, and offers an interface to the industry standard APB bus.

30/194

Doc ID 023063 Rev 2

Loading...
+ 164 hidden pages