Rainbow-electronics AT91CAP9S250A Manual de usuario Pagina 1

Busca en linea o descarga Manual de usuario para Sensores Rainbow-electronics AT91CAP9S250A. Rainbow Electronics AT91CAP9S250A User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 100
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
Features
Incorporates the ARM926EJ-S
ARM
®
Thumb
®
Processor
DSP Instruction Extensions, ARM Jazelle
®
Technology for Java
®
Acceleration
16 Kbyte Data Cache, 16 Kbyte Instruction Cache, Write Buffer
220 MIPS at 200 MHz
Memory Management Unit
EmbeddedICE
In-circuit Emulation, Debug Communication Channel Support
Additional Embedded Memories
One 32 Kbyte Internal ROM, Single-cycle Access at Maximum Matrix Speed
One 32 Kbyte Internal SRAM, Single-cycle Access at Maximum Matrix Speed
External Bus Interface (EBI)
EBI Supports Mobile DDR, SDRAM, Low Power SDRAM, Static Memory,
Synchronous CellularRAM, ECC-enabled NAND Flash and CompactFlash
Metal Programmable (MP) Block
500,000 Gates/250,000 Gates Metal Programmable Logic (through 5 Metal Layers)
for AT91CAP9S500A/AT91CAP9S250A Respectively
Ten 512 x 36-bit Dual Port RAMs
Eight 512 x 72-bit Single Port RAMs
High Connectivity for Up to Three AHB Masters and Four AHB Slaves
Up to Seven AIC Interrupt Inputs
Up to Four DMA Hardware Handshake Interfaces
Delay Lines for Double Data Rate Interface
UTMI+ Full Connection
Up to 77 Dedicated I/Os
LCD Controller
Supports Passive or Active Displays
Up to 24 Bits per Pixel in TFT Mode, Up to 16 Bits per Pixel in STN Color Mode
Up to 16M Colors in TFT Mode, Resolution Up to 2048x2048, Supports Wider
Screen Buffers
Image Sensor Interface
ITU-R BT. 601/656 External Interface, Programmable Frame Capture Rate
12-bit Data Interface for Support of High Sensibility Sensors
SAV and EAV Synchronization, Preview Path with Scaler, YCbCr Format
USB 2.0 Full Speed (12 Mbits per second) OHCI Host Double Port
Dual On-chip Transceivers
Integrated FIFOs and Dedicated DMA Channels
USB 2.0 High Speed (480 Mbits per second) Device Port
On-chip Transceiver, 4 Kbyte Configurable Integrated DPRAM
Integrated FIFOs and Dedicated DMA Channels
Integrated UTMI+ Physical Interface
Ethernet MAC 10/100 Base T
Media Independent Interface (MII) or Reduced Media Independent Interface (RMII)
28-byte FIFOs and Dedicated DMA Channels for Receive and Transmit
Multi-Layer Bus Matrix
Twelve 32-bit-layer Matrix, Allowing a Maximum of 38.4 Gbps of On-chip Bus
Bandwidth at Maximum 100 MHz System Clock Speed
Boot Mode Select Option, Remap Command
Fully-featured System Controller, Including
Reset Controller, Shutdown Controller
6264A–CAP–21-May-07
Customizable
Microcontroller
Processor
AT91CAP9S500A
AT91CAP9S250A
Preliminary
Vista de pagina 0
1 2 3 4 5 6 ... 99 100

Indice de contenidos

Pagina 1 - Features

Features• Incorporates the ARM926EJ-S™ ARM® Thumb® Processor– DSP Instruction Extensions, ARM Jazelle® Technology for Java® Acceleration– 16 Kbyte Dat

Pagina 2

106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A4. Package and PinoutThe AT91CAP9S500A/AT91CAP9S250A is available in a 400-ball RoHS-compliant BGA pac

Pagina 3

1006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe Real-time Timer value (CRTV) can be read at any time in the register RTT_VR (Real-timeValue Regis

Pagina 4

iv6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A19.5 Functional Description ...1

Pagina 5

v6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4 Functional Description ...21

Pagina 6

vi6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.4 USB Clock Controller ...3

Pagina 7

vii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7 Serial Peripheral Interface (SPI) User Interface ...47034 Two-wi

Pagina 8

viii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.6 Functional Description ...

Pagina 9

ix6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10 MultiMedia Card Interface (MCI) User Interface ...77442 10/100 Ethe

Pagina 10 - AT91CAP9S500A/AT91CAP9S250A

x6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.3 Power Consumption ...960

Pagina 11

xi6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 12

Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise,

Pagina 13

1016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A16.4 Real-time Timer (RTT) User InterfaceTable 16-1. Real-time Timer Register MappingOffset Register

Pagina 14

1026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A16.4.1 Real-time Timer Mode RegisterRegister Name: RTT_MRAccess Type: Read/Write• RTPRES: Real-time

Pagina 15

1036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A16.4.2 Real-time Timer Alarm RegisterRegister Name: RTT_ARAccess Type: Read/Write• ALMV: Alarm Valu

Pagina 16

1046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A16.4.4 Real-time Timer Status RegisterRegister Name: RTT_SRAccess Type: Read-only• ALMS: Real-time

Pagina 17

1056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17. Periodic Interval Timer (PIT)17.1 OverviewThe Periodic Interval Timer (PIT) provides the operatin

Pagina 18

1066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17.3 Functional DescriptionThe Periodic Interval Timer aims at providing periodic interrupts for use

Pagina 19

1076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 17-2. Enabling/Disabling PIT with PITEN MCK Prescaler PIVPIV - 10PITEN10015CPIV1restarts MCK P

Pagina 20

1086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17.4 Periodic Interval Timer (PIT) User InterfaceTable 17-1. Periodic Interval Timer (PIT) Register M

Pagina 21

1096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17.4.1 Periodic Interval Timer Mode RegisterRegister Name: PIT_MRAccess Type: Read/Write• PIV: Perio

Pagina 22

116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A4.2 400-ball BGA Package Pinout Table 4-1. AT91CAP9S500A/AT91CAP9S250A Pinout for 400-ball BGA Package

Pagina 23

1106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17.4.2 Periodic Interval Timer Status RegisterRegister Name: PIT_SRAccess Type: Read-only• PITS: Pe

Pagina 24

1116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A17.4.4 Periodic Interval Timer Image RegisterRegister Name: PIT_PIIRAccess Type: Read-only • CPIV:

Pagina 25

1126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 26

1136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18. Watchdog Timer (WDT)18.1 DescriptionThe Watchdog Timer can be used to prevent system lock-up if t

Pagina 27

1146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18.3 Functional DescriptionThe Watchdog Timer can be used to prevent system lock-up if the software b

Pagina 28

1156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 18-2. Watchdog Behavior 0WDVWDDWDT_CR = WDRSTTWatchdog FaultNormal behavior Watchdog Error Wa

Pagina 29

1166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18.4 Watchdog Timer (WDT) User Interface Table 18-1. Watchdog Timer RegistersOffset Register Name Ac

Pagina 30

1176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18.4.1 Watchdog Timer Control RegisterRegister Name: WDT_CRAccess Type: Write-only • WDRSTT: Watch

Pagina 31

1186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18.4.2 Watchdog Timer Mode RegisterRegister Name: WDT_MRAccess Type: Read/Write Once• WDV: Watch

Pagina 32

1196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A18.4.3 Watchdog Timer Status RegisterRegister Name: WDT_SRAccess Type: Read-only• WDUNF: Watchdog U

Pagina 33

126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AB18 GNDIO G18 GNDCORE M18 MPIOB27 U18 MPIOA28B19 VDDUTMII G19 TST M19 MPIOB25 U19 MPIOB6B20 GNDUTMII G

Pagina 34

1206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 35

1216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A19. Shutdown Controller (SHDWC)19.1 DescriptionThe Shutdown Controller controls the power supplies VD

Pagina 36

1226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA typical application connects the pin SHDN to the shutdown input of the DC/DC Converter pro-viding t

Pagina 37

1236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A19.6 Shutdown Controller (SHDWC) User Interface19.6.1 Register Mapping19.6.2 Shutdown Control Registe

Pagina 38

1246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A19.6.3 Shutdown Mode RegisterRegister Name: SHDW_MRAccess Type: Read/Write • WKMODE0: Wake-up Mode

Pagina 39

1256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A19.6.4 Shutdown Status RegisterRegister Name: SHDW_SRAccess Type: Read-only • WAKEUP0: Wake-up 0 St

Pagina 40

1266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 41

1276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 42

1286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 43

1296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20. Bus Matrix20.1 DescriptionThe Bus Matrix implements a multi-layer AHB, based on AHB-Lite protocol

Pagina 44

136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A5. Power Considerations5.1 Power SuppliesThe AT91CAP9S500A/AT91CAP9S250A has several types of power su

Pagina 45

1306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe 2-bit DEFMSTR_TYPE field selects the default master type (no default, last access mas-ter, fixed

Pagina 46

1316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A4. Sixteen beat bursts: predicted end of burst is generated at the end of each sixteen beat boundary

Pagina 47

1326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.4.3 Fixed Priority ArbitrationThis algorithm allows the Bus Matrix arbiters to dispatch the reques

Pagina 48

1336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.5 Bus Matrix User Interface Table 20-1. Register Mapping Offset Register Name Access Reset Value0x

Pagina 49

1346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0x00AC Priority Register B for Slave 5 MATRIX_PRBS5 Read/Write 0x000000000x00B0 Priority Register A f

Pagina 50

1356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.5.1 Bus Matrix Master Configuration RegistersRegister Name: MATRIX_MCFG0...MATRIX_MCFG11Access Typ

Pagina 51

1366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.5.2 Bus Matrix Slave Configuration RegistersRegister Name: MATRIX_SCFG0...MATRIX_SCFG9Access Type:

Pagina 52

1376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.5.3 Bus Matrix Priority Registers A For SlavesRegister Name: MATRIX_PRAS0...MATRIX_PRAS9Access Typ

Pagina 53

1386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.5.5 Bus Matrix Master Remap Control RegisterRegister Name: MATRIX_MRCRAccess Type: Read/WriteReset

Pagina 54

1396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.6 Chip Configuration User Interface20.6.1 MPBlock Slave 0 Special Function RegisterRegister Name:

Pagina 55

146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• VDDIOMPA pins: Power the MP Block I/O A lines; voltage ranges from 1.65V to 3.6V, 1.8V, 2.5V, 3V or

Pagina 56

1406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• MPBS0_SFR: MPBlock Slave 1 Special Function RegisterThe value of the register is directy connected

Pagina 57

1416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.6.4 MPBlock Slave 2 Special Function RegisterRegister Name: MPBS2_SFRAccess Type: Read/WriteReset:

Pagina 58

1426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A20.6.6 APB Bridge Special Function RegisterRegister Name: APB_SFRAccess Type: Read/WriteReset: 0x0000

Pagina 59

1436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21. External Bus Interface (EBI)21.1 DescriptionThe External Bus Interface (EBI) is designed to ensur

Pagina 60

1446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 21-1. Organization of the External Bus InterfaceExternal Bus InterfaceD[15:0]A[15:2], A[22:18]

Pagina 61

1456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.2 I/O Lines DescriptionTable 21-1. EBI I/O Lines DescriptionName Function Type Active LevelEBID0 -

Pagina 62

1466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ABCCK Burst CellularRAM Clock OutputBCCRE Burst CellularRAM Clock Enable Output HighBCCS Burst Cellula

Pagina 63

1476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.3 Application Example21.3.1 Hardware InterfaceTable 21-2 on page 147 details the connections to be

Pagina 64

1486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable 21-3. EBI Pins and External Devices ConnectionsSignalsPins of the Interfaced DeviceSDRAM Mobile

Pagina 65

1496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANote: 1. Not directly connected to the CompactFlash slot. Permits the control of the bidirectional bu

Pagina 66

156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A6. I/O Line Considerations6.1 JTAG Port PinsTMS, TDI and TCK are Schmitt trigger inputs and have no pu

Pagina 67

1506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.5.1 Bus MultiplexingThe EBI offers a complete set of control signals that share the 32-bit data li

Pagina 68

1516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.5.8.1 I/O Mode, Common Memory Mode, Attribute Memory Mode and True IDE ModeWithin the NCS4 and/or

Pagina 69

1526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe CFCE1 and CFCE2 waveforms are identical to the corresponding NCSx waveform. Fordetails on these w

Pagina 70

1536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 21-3. CompactFlash Read/Write Control Signals21.5.8.4 Multiplexing of CompactFlash Signals on

Pagina 71

1546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.5.8.5 Application ExampleFigure 21-4 on page 154 illustrates an example of a CompactFlash applicat

Pagina 72

1556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.5.9 NAND Flash SupportExternal Bus Interface integrates circuitry that interfaces to NAND Flash de

Pagina 73

1566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 21-6. NAND Flash Application ExampleD[7:0]ALENANDWENANDOENOENWEA[22:21]CLEAD[7:0]PIOR/BEBICENA

Pagina 74

1576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6 Implementation Examples21.6.1 16-bit SDRAM21.6.1.1 Hardware Configuration21.6.1.2 Software Confi

Pagina 75

1586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.2 32-bit SDRAM21.6.2.1 Hardware Configuration21.6.2.2 Software ConfigurationThe following config

Pagina 76

1596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.3 16-bit Mobile DDR21.6.3.1 Hardware Configuration21.6.3.2 Software ConfigurationThe following c

Pagina 77

166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A7. Processor and Architecture7.1 ARM926EJ-S Processor• RISC Processor based on ARM v5TEJ Architecture

Pagina 78

1606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.4 16-bit BCRAM21.6.4.1 Hardware Configuration21.6.4.2 Software ConfigurationThe following config

Pagina 79

1616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.5 8-bit NAND Flash21.6.5.1 Hardware Configuration21.6.5.2 Software ConfigurationThe following co

Pagina 80

1626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.6 16-bit NAND Flash21.6.6.1 Hardware Configuration21.6.6.2 Software ConfigurationThe software co

Pagina 81

1636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.7 NOR Flash on NCS021.6.7.1 Hardware Configuration21.6.7.2 Software ConfigurationThe default con

Pagina 82

1646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.8 Compact Flash21.6.8.1 Hardware ConfigurationD15D14D13D12D10D11D9D8D7D6D5D4D2D1D0D3A10A9A8A7A3A

Pagina 83

1656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.8.2 Software ConfigurationThe following configuration has to be performed:• Assign the EBI CS4 a

Pagina 84

1666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.9 Compact Flash True IDE21.6.9.1 Hardware ConfigurationD15D14D13D12D10D11D9D8D7D6D5D4D2D1D0D3A10

Pagina 85

1676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A21.6.9.2 Software ConfigurationThe following configuration has to be performed:• Assign the EBI CS4 a

Pagina 86

1686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 87

1696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22. Static Memory Controller (SMC)22.1 DescriptionThe Static Memory Controller (SMC) generates the si

Pagina 88

176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Round-Robin Arbitration, either with no default master, last accessed default master or fixed defaul

Pagina 89

1706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.4 Application Example22.4.1 Hardware InterfaceFigure 22-1. SMC Connections to Static Memory Device

Pagina 90

1716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.6 External Memory MappingThe SMC provides up to 26 address lines, A[25:0]. This allows each chip s

Pagina 91

1726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-3. Memory Connection for an 8-bit Data Bus Figure 22-4. Memory Connection for a 16-bit Da

Pagina 92

1736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.7.2.1 Byte Write Access Byte write access supports one byte write signal per byte of the data bus

Pagina 93

1746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-6. Connection of 2 x 8-bit Devices on a 16-bit Bus: Byte Write Option22.7.2.3 Signal Multi

Pagina 94

1756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-7. Connection of 2x16-bit Data Bus on a 32-bit Data Bus (Byte Select Option) 22.8 Standard

Pagina 95

1766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.1 Read WaveformsThe read cycle is shown on Figure 22-8.The read cycle starts with the address se

Pagina 96

1776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.1.2 NCS WaveformSimilarly, the NCS signal can be divided into a setup time, pulse length and hol

Pagina 97

1786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-9. No Setup, No Hold On NRD and NCS Read Signals22.8.1.5 Null PulseProgramming null pulse i

Pagina 98

1796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-10. READ_MODE = 1: Data is sampled by SMC before the rising edge of NRD22.8.2.2 Read is Con

Pagina 99

186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe LCD Controller, the DMA Controller, the USB Host and the USB OTG have a user interfacemapped as a

Pagina 100

1806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.3 Write WaveformsThe write protocol is similar to the read protocol. It is depicted in Figure 22

Pagina 101

1816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.3.3 Write CycleThe write_cycle time is defined as the total duration of the write cycle, that is

Pagina 102

1826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.4 Write ModeThe WRITE_MODE parameter in the SMC_MODE register of the corresponding chip select i

Pagina 103

1836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-15. WRITE_MODE = 0. The write operation is controlled by NCS22.8.5 Coding Timing Parameters

Pagina 104

1846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.8.6 Reset Values of Timing ParametersTable 22-5 gives the default value of timing parameters at re

Pagina 105

1856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-16. Chip Select Wait State between a Read Access on NCS0 and a Write Access on NCS2 22.9.2

Pagina 106

1866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-17. Early Read Wait State: Write with No Hold Followed by Read with No SetupFigure 22-18. E

Pagina 107

1876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-19. Early Read Wait State: NWE-controlled Write with No Hold Followed by a Read with one Se

Pagina 108

1886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.9.4 Read to Write Wait StateDue to an internal mechanism, a wait cycle is always inserted between

Pagina 109

1896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.10 Data Float Wait StatesSome memory devices are slow to release the external bus. For such device

Pagina 110

196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A Note: 1. DDR Port 2 or Port 3 is selectable for each master through the Matrix Remap Control Register

Pagina 111

1906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-20. TDF Period in NRD Controlled Read Access (TDF = 2)Figure 22-21. TDF Period in NCS Contr

Pagina 112

1916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.10.2 TDF Optimization Enabled (TDF_MODE = 1)When the TDF_MODE of the SMC_MODE register is set to 1

Pagina 113

1926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-23. TDF Optimization Disabled (TDF Mode = 0). TDF wait states between 2 read accesses on di

Pagina 114

1936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-25. TDF Mode = 0: TDF wait states between read and write accesses on the same chip select22

Pagina 115

1946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.11.2 Frozen ModeWhen the external device asserts the NWAIT signal (active low), and after internal

Pagina 116

1956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-27. Read Access with NWAIT Assertion in Frozen Mode (EXNW_MODE = 10)EXNW_MODE = 10 (Frozen)

Pagina 117

1966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.11.3 Ready ModeIn Ready mode (EXNW_MODE = 11), the SMC behaves differently. Normally, the SMC begi

Pagina 118

1976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-29. NWAIT Assertion in Read Access: Ready Mode (EXNW_MODE = 11)EXNW_MODE = 11(Ready mode)RE

Pagina 119

1986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.11.4 NWAIT Latency and Read/write TimingsThere may be a latency between the assertion of the read/

Pagina 120

1996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.12 Slow Clock ModeThe SMC is able to automatically apply a set of “slow clock mode” read/write wav

Pagina 121

26264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Four 32-bit Battery Backup Registers for a Total of 16 Bytes– Clock Generator and Power Management Co

Pagina 122

206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A7.6 Peripheral DMA Controller• Acting as one Matrix Master • Allows data transfers from/to peripheral

Pagina 123

2006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.12.2 Switching from (to) Slow Clock Mode to (from) Normal ModeWhen switching from slow clock mode

Pagina 124

2016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-33. Recommended Procedure to Switch from Slow Clock Mode to Normal Mode or from Normal Mode

Pagina 125

2026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.13 Asynchronous Page ModeThe SMC supports asynchronous burst reads in page mode, providing that th

Pagina 126

2036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANCS_RD_PULSE field of the SMC_PULSE register. The pulse length of subsequent accesseswithin the page

Pagina 127

2046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 22-35. Access to Non-sequential Data within the Same Page A[25:3]A[2], A1, A0NCSMCKNRDPage ad

Pagina 128

2056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.14 Static Memory Controller (SMC) User InterfaceThe SMC is programmed using the registers listed i

Pagina 129

2066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.14.1 SMC Setup RegisterRegister Name: SMC_SETUP[0 ..5]Access Type: Read/Write• NWE_SETUP: NWE Setu

Pagina 130

2076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.14.2 SMC Pulse RegisterRegister Name: SMC_PULSE[0..5]Access Type: Read/Write• NWE_PULSE: NWE Pulse

Pagina 131

2086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.14.3 SMC Cycle RegisterRegister Name: SMC_CYCLE[0..5]Access Type: Read/Write • NWE_CYCLE: Total Wr

Pagina 132

2096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A22.14.4 SMC MODE RegisterRegister Name: SMC_MODE[0..5]Access Type: Read/Write• READ_MODE:1: The read

Pagina 133

216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Embeds 4 unidirectional channels with programmable priority• Address Generation– Source / destinatio

Pagina 134

2106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• BAT: Byte Access TypeThis field is used only if DBW defines a 16- or 32-bit data bus.• 1: Byte wri

Pagina 135

2116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23. DDR/SDR SDRAM Controller (DDRSDRC)23.1 DescriptionThe DDR/SDR SDRAM Controller (DDRSDRC) is a mul

Pagina 136

2126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.2 DDRSDRC Module DiagramFigure 23-1. DDRSDRC Module Diagram DDRSDRC is partitioned in two blocks

Pagina 137

2136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.3 Product DependenciesThe addresses given are for example purposes only. The real address depends

Pagina 138

2146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Atimer count register must to be set with (15.625 /100 MHz) = 1562 i.e. 0x061A or (7.81 /100 MHz) = 78

Pagina 139

2156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A11. A Mode Register set (MRS) cycle is issued to program the parameters of the DDR-SDRAM devices, in

Pagina 140

2166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8. A Mode Register set (MRS) cycle is issued to program the parameters of the DDR-SDRAM devices, in p

Pagina 141

2176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFor a definition of timing parameters, refer to Section 23.6.4 ”DDRSDRC Timing 0 ParameterRegister” o

Pagina 142

2186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 23-3. Single Write Access, Row Closed, SDR-SDRAM DeviceFigure 23-4. Burst Write Access, Row Cl

Pagina 143

2196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 23-5. Burst Write Access, Row Closed, SDR-SDRAM DevicesRow a Col aNOP PRCHG NOP ACT NOP WRITEN

Pagina 144

226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8. MemoriesFigure 8-1. AT91CAP9S500A/AT91CAP9S250A Memory MappingDMAMPB SLAVE1SRAMMPB SLAVE0ROMMPB SLA

Pagina 145

2206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA write command can be followed by a read command. To avoid breaking the current writeburst, Twtr/twr

Pagina 146

2216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4.2 SDRAM Controller Read CycleThe DDRSDRC allows burst access or single access in normal mode (mo

Pagina 147

2226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aaccount this feature of the SDRAM device. In the case of DDR-SDRAM devices, transfers startat address

Pagina 148

2236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 23-10. Burst Read Access, Latency =2, DDR-SDRAM DevicesFigure 23-11. Burst Read Access, Latenc

Pagina 149

2246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4.3 Refresh (Auto-refresh Command)An auto-refresh command is used to refresh the DDRSDRC. Refresh

Pagina 150

2256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 23-12. Self Refresh Mode Entry, Timeout =0Figure 23-13. Self Refresh Mode Entry, Timeout =1 or

Pagina 151

2266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4.4.2 Power-down ModeThis mode is activated by setting the low-power command bits [LPCB] to ‘10’.P

Pagina 152

2276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4.4.3 Deep Power-down ModeThe deep power-down mode is a new feature of the Mobile SDRAM. When this

Pagina 153

2286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.4.4.4 Multi-port Functionality The SDRAM protocol imposes a check of timings prior to performing a

Pagina 154

2296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1. Idle cycles: When no master is connected to the SDRAM device.2. Single cycles: When a slave is cur

Pagina 155

236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA first level of address decoding is performed by the Bus Matrix, i.e., the implementation of theAdvan

Pagina 156

2306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.5 Software Interface / SDRAM Organization, Address MappingThe SDRAM address space is organized int

Pagina 157

2316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANote: 1. SDR-SDRAM devices with eight columns in 16-bit mode are not supported. 23.5.2 SDR-SDRAM Addr

Pagina 158

2326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6 DDR-SDRAMC User InterfaceThe User Interface is connected to the APB bus. The DDRSDRC is programm

Pagina 159

2336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.1 DDRSDRC Mode RegisterRegister Name: DDRSDRC_MRAccess Type: Read/WriteReset Value: See Table 23

Pagina 160

2346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.2 DDRSDRC Refresh Timer RegisterRegister Name: DDRSDRC_TRAccess Type: Read/WriteReset Value: See

Pagina 161

2356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.3 DDRSDRC Configuration RegisterRegister Name: DDRSDRC_CRAccess Type: Read/WriteReset Value: See

Pagina 162

2366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• DLL: Reset DLLReset value is 0.This field defines the value of Reset DLL. 0: Disable DLL reset 1: E

Pagina 163

2376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.4 DDRSDRC Timing 0 Parameter RegisterRegister Name: DDRSDRC_T0PRAccess Type: Read/WriteReset Val

Pagina 164

2386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• TWTR: Internal write to read delayReset value is 0.This field defines the internal write to read co

Pagina 165

2396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.5 DDRSDRC Timing 1 Parameter RegisterRegister Name: DDRSDRC_T1PRAccess Type: Read/WriteReset Val

Pagina 166

246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8.1.1.1 Internal 32 Kbyte Fast SRAMThe AT91CAP9S500A/AT91CAP9S250A integrates a 32 Kbyte SRAM, mapped

Pagina 167

2406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.6 DDRSDRC Low-power RegisterRegister Name: DDRSDRC_LPRAccess Type: Read/WriteReset Value: See Ta

Pagina 168

2416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis field is unique to Mobile SDRAM. It is used to program the refresh interval during self refresh

Pagina 169

2426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.7 DDRSDRC Memory Device RegisterRegister Name: DDRSDRC_MDAccess Type: Read/WriteReset Value: See

Pagina 170

2436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A23.6.8 DDRSDRC DLL InformationRegister Name: DDRSDRC_DLLAccess Type: ReadReset Value: See Table 23-8T

Pagina 171

2446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1: The DLL has not succeeded in computing the Slave delay correction.•MDVAL: DLL Master Delay ValueVa

Pagina 172

2456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24. Burst Cellular RAM Controller (BCRAMC)24.1 DescriptionThe Burst Cellular RAM Controller (BCRAMC)

Pagina 173

2466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.2 BCRAMC Block DiagramFigure 24-1. BCRAMC Block Diagram Memory Controller Signal ManagementAddrAPB

Pagina 174

2476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.3 Product Dependencies24.3.1 Cellular Ram InitializationThe Cellular Ram devices are initialized

Pagina 175

2486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.4 Functional Description24.4.1 BCRAMC OverviewThe BCRAMC is a synchronous cellular RAM controller,

Pagina 176

2496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aparameters, additional clock cycles are inserted to check programmed latency. A single accessowait si

Pagina 177

256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8.2.1 External Bus InterfaceThe AT91CAP9S500A/AT91CAP9S250A features one External Bus Interface to off

Pagina 178

2506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 24-4. Single Write Access with Refresh Collision Figure 24-5. Burst Write Access with No Refre

Pagina 179

2516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 24-6. Four Beat Wrapping Burst With Address Starting at 0x0C Figure 24-7. Write Command Follow

Pagina 180

2526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Alatency. The BCRAMC supports latency value which is a function of the Cellular Ram version.The owait

Pagina 181

2536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 24-8. Single Read Access with Refresh CollisionFigure 24-9. Single Read Access with No Refresh

Pagina 182

2546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 24-10. Burst Read Access with No Refresh CollisionFigure 24-11. Four Beat Wrapping Burst with

Pagina 183

2556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.4.4 Power Management24.4.4.1 Standby ModeThis mode is activated by programming low power command b

Pagina 184

2566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.4.4.3 Temperature Compensated Refresh (TCR) or Temperature Compensated Self-refresh (TCSR)This fea

Pagina 185

2576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5 BCRAMC User InterfaceThe User interface is connected to the APB bus. The BCRAMC is programmed us

Pagina 186

2586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5.1 BCRAMC Configuration RegisterRegister Name: BCRAMC_CRAccess Type: Read/Write• CRAM_EN: BCRAMC

Pagina 187

2596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis field manages the row boundaries. Some Cellular Ram providers do not provide the number of word

Pagina 188

266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– SDRAM with 16- or 32-bit Data Path– Mobile DDR with four Internal Banks– Mobile DDR with 16-bit Data

Pagina 189

2606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5.2 BCRAMC Timing RegisterRegister Name: BCRAMC_TRAccess Type: Read/Write• TCW: Chip Enable to End

Pagina 190

2616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 191

2626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5.3 BCRAMC Low Power RegisterRegister Name: BCRAMC_LPRAccess Type: Read/Write• PAR: Partial Array

Pagina 192

2636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A11: reserved24.5.4 BCRAMC Memory Device RegisterRegister Name: BCRAMC_MDAccess Type: Read/Write• MD

Pagina 193

2646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5.6 BCRAMC Name1 RegisterRegister Name: BCRAMC_IPNAME1Access Type: Read-only •IPNAMEReserved. Val

Pagina 194

2656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A24.5.8 BCRAMC Features RegisterRegister Name: BCRAMC_FEATURESAccess Type: Read-onlyReserved.31 30 29

Pagina 195

2666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 196 - Write cycle

2676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A25. Error Corrected Code (ECC) Controller25.1 Description NAND Flash/SmartMedia devices contain by de

Pagina 197 - Read cycle

2686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe only configuration required for ECC is the NAND Flash or the SmartMedia page size(528/1056/2112/4

Pagina 198

2696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 25-2. Parity Generation for 512/1024/2048/4096 8-bit Words1 To calculate P8’ to PX’ and P8 to

Pagina 199

276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8.2.5 Error Corrected Code Controller• Tracking the accesses to a NAND Flash device by trigging on the

Pagina 200

2706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 25-3. Parity Generation for 512/1024/2048/4096 16-bit Words 1st word2nd word3rd word4th word(P

Pagina 201

2716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATo calculate P8’ to PX’ and P8 to PX, apply the algorithm that follows.Page size = 2n for i =0 to n

Pagina 202

2726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A25.4 Error Corrected Code (ECC) Controller User Interface Table 25-1. ECC Register MappingOffset Regi

Pagina 203

2736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A25.4.1 ECC Control RegisterName: ECC_CRAccess Type: Write-only• RST: RESET ParityProvides reset to cu

Pagina 204

2746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A25.4.3 ECC Status RegisterRegister Name: ECC_SRAccess Type: Read-only• RECERR: Recoverable Error0 = N

Pagina 205

2756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A25.4.4 ECC Parity RegisterRegister Name: ECC_PRAccess Type: Read-onlyOnce the entire main area of a p

Pagina 206

2766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 207

2776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26. DMA Controller (DMAC)26.1 DescriptionThe DMA Controller (DMAC) is an AHB-central DMA controller c

Pagina 208

2786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.2 Block DiagramFigure 26-1. DMA Controller (DMAC) Block DiagramDMA DestinationDMA Channel 0DMA Des

Pagina 209

2796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-2. DMA Controller (DMAC) Block DiagramDMA DestinationDMA Channel 0DMA DestinationControl St

Pagina 210

286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.1 System Controller Block DiagramFigure 9-1. AT91CAP9S500A/AT91CAP9S250A System Controller Block Dia

Pagina 211

2806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.3 Functional Description26.3.1 Basic DefinitionsSource peripheral: Device on an AMBA layer from wh

Pagina 212

2816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-3. DMAC Transfer Hierarchy for Non-Memory PeripheralFigure 26-4. DMAC Transfer Hierarchy fo

Pagina 213

2826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aan interrupt to signal the completion of the DMAC transfer. You can then re-program the channelfor a

Pagina 214

2836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ABus locking: Software can program a channel to maintain control of the AMBA bus by assertinghmastlock

Pagina 215

2846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.3.3.3 Single TransactionsWriting a 1 to the DMAC_SREQ[2x] register starts a source single transact

Pagina 216

2856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.3.4 DMAC Transfer TypesA DMAC transfer may consist of single or multi-buffers transfers. On succes

Pagina 217 - 6264A–CAP–21-May-07

2866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-6. Multi Buffer Transfer Using Linked List System MemorySADDRx= DSCRx(0) + 0x0DADDRx= DSCRx

Pagina 218

2876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.3.4.3 Programming DMAC for Multiple Buffer Transfers Notes: 1. USR means that the register field i

Pagina 219

2886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Abuffers is a function of DMAC_CTRLAx.SRC_DSCR, DMAC_CFGx.SRC_REP,DMAC_CTRLAx.DST_DSCR and DMAC_CFGx.D

Pagina 220 - Data masked

2896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.3.5 Programming a ChannelFour registers, the DMAC_DSCRx, the DMAC_CTRLAx, the DMAC_CTRLBx andDMAC_

Pagina 221

296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.2 Reset Controller• Based on two Power-on-Reset cells– One on VDDBU and one on VDDCORE• Status of th

Pagina 222

2906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– ii. If the hardware handshaking interface is activated for the source or destination peripheral, as

Pagina 223

2916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ALLI.DMAC_CTRLBx register of the last Linked List Item must be set as described in Row 1 of Table 26-1

Pagina 224

2926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-7. Multi-buffer with Linked List Address for Source and DestinationIf the user needs to exe

Pagina 225

2936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-8. Multi-buffer with Linked Address for Source and Destination Buffers are ContiguousThe DM

Pagina 226

2946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-9. DMAC Transfer Flow for Source and Destination Linked List Address26.3.5.4 Multi-buffer T

Pagina 227

2956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aa. Write the starting source address in the DMAC_SADDRx register for channel x.b. Write the starting

Pagina 228

2966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AChannel Enable in the Channel Status Register (DMAC_CHSR.ENABLE[n]) until it is disabled, to detect w

Pagina 229

2976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-11. DMAC Transfer Flow for Source and Destination Address Auto-reloaded26.3.5.5 Multi-buffe

Pagina 230

2986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A3. Write the starting source address in the DMAC_SADDRx register for channel x.Note: The values in th

Pagina 231

2996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Atransfer. Only DMAC_CTRLAx register is written out, because only the DMAC_CTRLAx.BTSIZE and DMAC_CTRL

Pagina 232

36264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• One AC97 Controller (AC97C)– 6-channel Single AC97 Analog Front End Interface, Slot Assigner• Three U

Pagina 233

306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.5 Power Management Controller•Provides:– the Processor Clock PCK– the Master Clock MCK, in particula

Pagina 234

3006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-13. DMAC Transfer Flow for Replay Mode at Source and Linked List Destination Address26.3.5.

Pagina 235

3016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– ii. Set up the transfer characteristics, such as:– Transfer width for the source in the SRC_WIDTH f

Pagina 236

3026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aautomatic transfer mode bit should remain enabled to keep the DMAC in Row 11 as shown in Table 26-1 o

Pagina 237

3036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-15. DMAC Transfer Replay Mode is Enabled for the Source and Contiguous Destination Address2

Pagina 238

3046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– v. Incrementing/decrementing or fixed address for source in SRC_INCR field.– vi. Incrementing/decre

Pagina 239

3056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Athe linked list item fetched prior to the start of the buffer transfer. Only DMAC_CTRLAx register is

Pagina 240

3066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 26-17. DMAC Transfer Flow for Linked List Source Address and Contiguous Destination Address26.

Pagina 241

3076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1. If software wishes to disable a channel n prior to the DMAC transfer completion, then it can set t

Pagina 242

3086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• When destination peripheral is defined as the flow controller, if the destination width is smaller

Pagina 243

3096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5 DMA Controller (DMAC) User InterfaceTable 26-2. DMAC Register MappingOffset Register Name Access

Pagina 244

316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.7 Watchdog Timer• 16-bit key-protected only-once-Programmable Counter• Windowed, prevents the proces

Pagina 245

3106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0x07CDMAC Channel 1 Source Picture in Picture Configuration RegisterDMAC_SPIP1 Read/Write 0x00x080DMA

Pagina 246

3116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0x0F8DMAC Channel 4 Destination Picture in Picture Configuration RegisterDMAC_DPIP4 Read/Write 0x00x0

Pagina 247

3126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0x174 Reserved – – –0x178 Reserved – – –0x03C - 0x060 Reserved – – –0x064 - 0x088 Reserved – – –0x08C

Pagina 248

3136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.1 DMAC Global Configuration RegisterName: DMAC_GCFGAccess: Read/WriteReset Value: 0x00000010• IF

Pagina 249

3146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.2 DMAC Enable RegisterName: DMAC_ENAccess: Read/WriteReset Value: 0x00000000• ENABLE0: DMA Contr

Pagina 250

3156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.4 DMAC Software Chunk Transfer Request RegisterName: DMAC_CREQAccess: Read/WriteReset Value: 0x0

Pagina 251

3166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.6 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Enable RegisterName: DMAC_EB

Pagina 252

3176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.7 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Disable RegisterName: DMAC_E

Pagina 253

3186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.8 DMAC Error, Buffer Transfer and Chained Buffer Transfer Interrupt Mask RegisterName: DMAC_EBCI

Pagina 254

3196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.9 DMAC Error, Buffer Transfer and Chained Buffer Transfer Status RegisterName: DMAC_EBCISRAccess

Pagina 255

326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A•Two-pin UART– Implemented features are 100% compatible with the standard Atmel USART– Independent rec

Pagina 256

3206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.10 DMAC Channel Handler Enable RegisterName: DMAC_CHERAccess: Write-onlyReset Value: 0x00000000•

Pagina 257

3216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.11 DMAC Channel Handler Disable RegisterName: DMAC_CHDRAccess: Write-onlyReset Value: 0x00000000

Pagina 258

3226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.12 DMAC Channel Handler Status RegisterName: DMAC_CHSRAccess: Read-onlyReset Value: 0x00FF0000•

Pagina 259

3236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.13 DMAC Channel x [x = 0..3] Source Address RegisterName: DMAC_SADDRx [x = 0..3]Access: Read/Wri

Pagina 260

3246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.14 DMAC Channel x [x = 0..3] Destination Address RegisterName: DMAC_DADDRx [x = 0..3]Access: Rea

Pagina 261

3256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.15 DMAC Channel x [x = 0..3] Descriptor Address RegisterName: DMAC_DSCRx [x = 0..3]Access: Read/

Pagina 262

3266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.16 DMAC Channel x [x = 0..3] Control A RegisterName: DMAC_CTRLAx [x = 0..3]Access: Read/WriteRes

Pagina 263

3276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A•SRC_WIDTH•DST_WIDTH•DONE0: The transfer is performed.1: If SOD field of DMAC_CFG register is set to

Pagina 264

3286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.17 DMAC Channel x [x = 0..3] Control B RegisterName: DMAC_CTRLBx [x = 0..3]Access: Read/WriteRes

Pagina 265

3296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• DST_DSCR0: Destination address is updated when the descriptor is fetched from the memory.1: Buffer

Pagina 266

336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10. Peripherals10.1 User InterfaceThe peripherals are mapped in the upper 256 Mbytes of the address sp

Pagina 267

3306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.18 DMAC Channel x [x = 0..3] Configuration RegisterName: DMAC_CFGx [x = 0..3]Access: Read/WriteR

Pagina 268

3316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0: AHB Bus Locking capability is disabled.1: AHB Bus Locking capability is enabled.•LOCK_IF_L0: The M

Pagina 269

3326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.19 DMAC Channel x [x = 0..3] Source Picture in Picture Configuration RegisterName: DMAC_SPIPx [x

Pagina 270

3336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A26.5.20 DMAC Channel x [x = 0..3] Destination Picture in Picture Configuration RegisterName: DMAC_DPI

Pagina 271

3346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 272

3356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27. Peripheral DMA Controller (PDC)27.1 DescriptionThe Peripheral DMA Controller (PDC) transfers data

Pagina 273

3366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.2 Block DiagramFigure 27-1. Block DiagramPDCFULL DUPLEXPERIPHERALTHRRHRPDC Channel APDC Channel BC

Pagina 274

3376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.3 Functional Description27.3.1 ConfigurationThe PDC channel user interface enables the user to con

Pagina 275

3386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe following list gives an overview of how status register flags behave depending on thecounters’ va

Pagina 276

3396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.3.5.4 Transmit Buffer EmptyThis flag is set when PERIPH_TCR register reaches zero with PERIPH_TNCR

Pagina 277

346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.2.1 Peripheral Interrupts and Clock Control10.2.1.1 System InterruptThe System Interrupt in Source

Pagina 278

3406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4 Peripheral DMA Controller (PDC) User InterfaceNote: 1. PERIPH: Ten registers are mapped in the p

Pagina 279

3416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.1 Receive Pointer RegisterRegister Name: PERIPH_RPRAccess Type: Read/Write• RXPTR: Receive Point

Pagina 280

3426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.2 Receive Counter RegisterRegister Name: PERIPH_RCRAccess Type: Read/Write• RXCTR: Receive Count

Pagina 281

3436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.3 Transmit Pointer RegisterRegister Name: PERIPH_TPRAccess Type: Read/Write• TXPTR: Transmit Cou

Pagina 282

3446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.5 Receive Next Pointer RegisterRegister Name: PERIPH_RNPRAccess Type: Read/Write• RXNPTR: Receiv

Pagina 283

3456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.7 Transmit Next Pointer RegisterRegister Name: PERIPH_TNPRAccess Type: Read/Write• TXNPTR: Trans

Pagina 284

3466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.9 Transfer Control RegisterRegister Name: PERIPH_PTCRAccess Type: Write• RXTEN: Receiver Transfe

Pagina 285

3476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A27.4.10 Transfer Status RegisterRegister Name: PERIPH_PTSRAccess Type: Read• RXTEN: Receiver Transfer

Pagina 286

3486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 287

3496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A28. Clock Generator28.1 DescriptionThe Clock Generator is made up of 2 PLLs, a Main Oscillator, and a

Pagina 288

356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.3 Peripherals Signals Multiplexing on I/O LinesThe AT91CAP9S500A/AT91CAP9S250A features 4 PIO contr

Pagina 289

3506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 28-2. Main Oscillator Block Diagram 28.3.1 Main Oscillator ConnectionsThe Clock Generator inte

Pagina 290

3516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AWhen disabling the main oscillator by clearing the MOSCEN bit in CKGR_MOR, the MOSCS bitin PMC_SR is

Pagina 291

3526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 28-4. Divider and PLL Block Diagram28.4.1 PLL FilterThe PLL requires connection to an external

Pagina 292

3536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe PLL allows multiplication of the divider’s outputs. The PLL clock signal has a frequency thatdepe

Pagina 293

3546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29. Power Management Controller (PMC)29.1 DescriptionThe Power Management Controller (PMC) optimizes

Pagina 294

3556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 29-1. Master Clock Controller29.3 Processor Clock ControllerThe PMC features a Processor Clock

Pagina 295

3566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.5 Peripheral Clock ControllerThe Power Management Controller controls the clocks of each embedded

Pagina 296

3576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ASo, the main oscillator will be enabled (MOSCS bit set) after 56 Slow Clock Cycles.2. Checking the Ma

Pagina 297

3586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe OUTB field is used to select the PLL B output frequency range.The MULB field is the PLL B multipl

Pagina 298

3596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Program the PRES field in the PMC_MCKR register.– Wait for the MCKRDY bit to be set in the PMC_SR r

Pagina 299

366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.3.1 PIO Controller A Multiplexing Table 10-2. Multiplexing on PIO Controller APIO Controller A Appl

Pagina 300

3606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AOnce the PMC_PCKx register has been programmed, The corresponding programmableclock must be enabled a

Pagina 301

3616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AWhen the prescaler is activated, an additional time of 64 clock cycles of the new selected clockhas t

Pagina 302

3626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.8.2 Clock Switching WaveformsFigure 29-3. Switch Master Clock from Slow Clock to PLL Clock Figure

Pagina 303

3636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 29-5. Change PLLA Programming Figure 29-6. Change PLLB ProgrammingSlow ClockSlow ClockPLLA Clo

Pagina 304

3646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 29-7. Programmable Clock Output Programming PLL ClockPCKRDYPCKx OutputWrite PMC_PCKxWrite PMC_

Pagina 305

3656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9 Power Management Controller (PMC) User Interface Table 29-3. Register Mapping Offset Register N

Pagina 306

3666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.1 PMC System Clock Enable RegisterRegister Name: PMC_SCERAccess Type: Write-only • UHP: USB Host

Pagina 307

3676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.2 PMC System Clock Disable Register Register Name: PMC_SCDRAccess Type: Write-only • PCK: Proce

Pagina 308

3686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.3 PMC System Clock Status Register Register Name: PMC_SCSRAccess Type: Read-only • PCK: Processo

Pagina 309

3696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.4 PMC Peripheral Clock Enable RegisterRegister Name: PMC_PCERAccess Type: Write-only • PIDx: Per

Pagina 310

376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.3.2 PIO Controller B MultiplexingTable 10-3. Multiplexing on PIO Controller BPIO Controller B Appli

Pagina 311

3706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.6 PMC Peripheral Clock Status RegisterRegister Name: PMC_PCSRAccess Type: Read-only • PIDx: Peri

Pagina 312

3716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.7 PMC UTMI Clock Configuration RegisterRegister Name: CKGR_UCKRAccess Type: Read/Write • UPLLEN:

Pagina 313

3726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.8 PMC Clock Generator Main Oscillator RegisterRegister Name: CKGR_MORAccess Type: Read/Write • M

Pagina 314

3736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.9 PMC Clock Generator Main Clock Frequency Register Register Name: CKGR_MCFRAccess Type: Read-on

Pagina 315

3746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.10 PMC Clock Generator PLL A Register Register Name: CKGR_PLLARAccess Type: Read/Write Possible

Pagina 316

3756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.11 PMC Clock Generator PLL B Register Register Name: CKGR_PLLBRAccess Type: Read/Write Possible

Pagina 317

3766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.12 PMC Master Clock RegisterRegister Name: PMC_MCKRAccess Type: Read/Write • CSS: Master Clock S

Pagina 318

3776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AAccess Type: Read/Write • CSS: Master Clock Selection • PRES: Programmable Clock Prescaler 31 30 29

Pagina 319

3786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.14 PMC Interrupt Enable RegisterRegister Name: PMC_IERAccess Type: Write-only • MOSCS: Main Osci

Pagina 320

3796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.15 PMC Interrupt Disable RegisterRegister Name: PMC_IDRAccess Type: Write-only • MOSCS: Main Osc

Pagina 321

386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.3.3 PIO Controller C MultiplexingTable 10-4. Multiplexing on PIO Controller CPIO Controller C Appli

Pagina 322

3806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.16 PMC Status RegisterRegister Name: PMC_SRAccess Type: Read-only • MOSCS: MOSCS Flag Status0 =

Pagina 323

3816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A29.9.17 PMC Interrupt Mask RegisterRegister Name: PMC_IMRAccess Type: Read-only • MOSCS: Main Oscill

Pagina 324

3826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 325

3836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30. Advanced Interrupt Controller (AIC)30.1 DescriptionThe Advanced Interrupt Controller (AIC) is an

Pagina 326

3846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.2 Block DiagramFigure 30-1. Block Diagram30.3 Application Block DiagramFigure 30-2. Description of

Pagina 327

3856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.5 I/O Line Description 30.6 Product Dependencies30.6.1 I/O LinesThe interrupt signals FIQ and IRQ0

Pagina 328

3866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.7 Functional Description30.7.1 Interrupt Source Control30.7.1.1 Interrupt Source ModeThe Advanced

Pagina 329

3876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.7.1.5 Internal Interrupt Source Input StageFigure 30-4. Internal Interrupt Source Input Stage30.7

Pagina 330

3886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.7.2 Interrupt LatenciesGlobal interrupt latencies depend on several parameters, including:• The ti

Pagina 331

3896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.7.2.3 Internal Interrupt Edge Triggered SourceFigure 30-8. Internal Interrupt Edge Triggered Sour

Pagina 332

396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.3.4 PIO Controller D Multiplexing Table 10-5. Multiplexing on PIO Controller DPIO Controller D Appl

Pagina 333

3906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe nIRQ line can be asserted only if an interrupt condition occurs on an interrupt source witha high

Pagina 334

3916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIt is assumed that:1. The Advanced Interrupt Controller has been programmed, AIC_SVR registers are lo

Pagina 335

3926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Abeing executed before, and of loading the CPSR with the stored SPSR, masking or unmasking the interru

Pagina 336

3936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1. The CPSR is stored in SPSR_fiq, the current value of the program counter is loaded in the FIQ link

Pagina 337

3946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe Fast Forcing feature does not affect the Source 0 pending bit in the Interrupt PendingRegister (A

Pagina 338

3956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A(arbitrary data) to the AIC_IVR just after reading it. The new context of the AIC, including thevalue

Pagina 339

3966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8 Advanced Interrupt Controller (AIC) User Interface30.8.1 Base Address The AIC is mapped at the a

Pagina 340

3976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.3 AIC Source Mode RegisterRegister Name: AIC_SMR0..AIC_SMR31Access Type: Read/WriteReset Value:

Pagina 341

3986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.4 AIC Source Vector RegisterRegister Name: AIC_SVR0..AIC_SVR31Access Type: Read/WriteReset Valu

Pagina 342

3996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.6 AIC FIQ Vector RegisterRegister Name: AIC_FVRAccess Type: Read-onlyReset Value: 0x0 • FIQV: FI

Pagina 343

46264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A2. AT91CAP9S500A/AT91CAP9S250A Block Diagram Figure 2-1. AT91CAP9S500A/AT91CAP9S250A Block DiagramARM92

Pagina 344

406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.4 Embedded Peripherals 10.4.1 Serial Peripheral Interface• Supports communication with serial exter

Pagina 345

4006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.8 AIC Interrupt Pending RegisterRegister Name: AIC_IPRAccess Type: Read-onlyReset Value: 0x0 •

Pagina 346

4016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.10 AIC Core Interrupt Status RegisterRegister Name: AIC_CISRAccess Type: Read-onlyReset Value: 0

Pagina 347

4026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.12 AIC Interrupt Disable Command RegisterRegister Name: AIC_IDCRAccess Type: Write-only • FIQ, S

Pagina 348

4036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.14 AIC Interrupt Set Command RegisterRegister Name: AIC_ISCRAccess Type: Write-only • FIQ, SYS,

Pagina 349

4046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.16 AIC Spurious Interrupt Vector RegisterRegister Name: AIC_SPUAccess Type: Read/WriteReset Valu

Pagina 350

4056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.18 AIC Fast Forcing Enable RegisterRegister Name: AIC_FFERAccess Type: Write-only • SYS, PID2-PI

Pagina 351

4066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A30.8.20 AIC Fast Forcing Status RegisterRegister Name: AIC_FFSRAccess Type: Read-only • SYS, PID2-PID

Pagina 352

4076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31. Debug Unit (DBGU)31.1 DescriptionThe Debug Unit provides a single entry point from the processor

Pagina 353

4086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.2 Block DiagramFigure 31-1. Debug Unit Functional Block DiagramFigure 31-2. Debug Unit Application

Pagina 354

4096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.3 Product Dependencies31.3.1 I/O LinesDepending on product integration, the Debug Unit pins may be

Pagina 355

416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• IrDA modulation and demodulation– Communication at up to 115.2 Kbps• Test Modes– Remote Loopback, Lo

Pagina 356

4106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 31-3. Baud Rate Generator31.4.2 Receiver31.4.2.1 Receiver Reset, Enable and DisableAfter devic

Pagina 357

4116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 31-4. Start Bit DetectionFigure 31-5. Character Reception31.4.2.3 Receiver ReadyWhen a complet

Pagina 358

4126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Abit. If different, the parity error bit PARE in DBGU_SR is set at the same time the RXRDY is set.The

Pagina 359

4136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250APARE in the mode register DBGU_MR defines whether or not a parity bit is shifted out. When aparity bi

Pagina 360

4146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe RXRDY bit triggers the PDC channel data transfer of the receiver. This results in a read ofthe da

Pagina 361

4156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe Debug Communication Channel contains two registers that are accessible through the ICEBreaker on

Pagina 362

4166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5 Debug Unit User Interface Table 31-2. Debug Unit Memory MapOffset Register Name Access Reset Va

Pagina 363

4176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.1 Debug Unit Control RegisterName: DBGU_CRAccess Type: Write-only • RSTRX: Reset Receiver0 = N

Pagina 364

4186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.2 Debug Unit Mode RegisterName: DBGU_MRAccess Type: Read/Write • PAR: Parity Type • CHMODE: Ch

Pagina 365

4196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.3 Debug Unit Interrupt Enable RegisterName: DBGU_IERAccess Type: Write-only• RXRDY: Enable RXR

Pagina 366

426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.4.7 Pulse Width Modulation Controller• 4 channels, one 16-bit counter per channel• Common clock gen

Pagina 367

4206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.4 Debug Unit Interrupt Disable RegisterName: DBGU_IDRAccess Type: Write-only • RXRDY: Disable

Pagina 368

4216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.5 Debug Unit Interrupt Mask RegisterName: DBGU_IMRAccess Type: Read-only• RXRDY: Mask RXRDY In

Pagina 369

4226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.6 Debug Unit Status RegisterName: DBGU_SRAccess Type: Read-only • RXRDY: Receiver Ready0 = No

Pagina 370

4236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• TXBUFE: Transmission Buffer Empty0 = The buffer empty signal from the transmitter PDC channel is in

Pagina 371

4246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.7 Debug Unit Receiver Holding RegisterName: DBGU_RHRAccess Type: Read-only • RXCHR: Received C

Pagina 372

4256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.9 Debug Unit Baud Rate Generator RegisterName: DBGU_BRGRAccess Type: Read/Write • CD: Clock Di

Pagina 373

4266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.10 Debug Unit Chip ID RegisterName: DBGU_CIDRAccess Type: Read-only • VERSION: Version of the De

Pagina 374

4276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• NVPSIZ2 Second Nonvolatile Program Memory Size • SRAMSIZ: Internal SRAM SizeNVPSIZ2 Size0000None000

Pagina 375

4286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ARCH: Architecture Identifier • NVPTYP: Nonvolatile Program Memory Type• EXT: Extension Flag0 = Chi

Pagina 376

4296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A31.5.11 Debug Unit Chip ID Extension RegisterName: DBGU_EXIDAccess Type: Read-only • EXID: Chip ID

Pagina 377

436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A10.4.10 USB Host Port• Compliance with OHCI Rev 1.0 Specification• Compliance with USB V2.0 Full-speed

Pagina 378

4306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 379

4316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32. Parallel Input/Output Controller (PIO)32.1 DescriptionThe Parallel Input/Output Controller (PIO)

Pagina 380

4326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.2 Block DiagramFigure 32-1. Block DiagramFigure 32-2. Application Block DiagramEmbedded Peripheral

Pagina 381

4336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.3 Product Dependencies32.3.1 Pin MultiplexingEach pin is configurable, according to product defini

Pagina 382

4346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.4 Functional DescriptionThe PIO Controller features up to 32 fully-programmable I/O lines. Most of

Pagina 383

4356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.4.1 Pull-up Resistor ControlEach I/O line is designed with an embedded pull-up resistor. The pull-

Pagina 384

4366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe results of these write operations are detected in PIO_OSR (Output Status Register). Whena bit in

Pagina 385

4376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 32-4. Output Line Timings 32.4.8 InputsThe level on each I/O line can be read through PIO_PDSR

Pagina 386

4386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 32-5. Input Glitch Filter Timing 32.4.10 Input Change InterruptThe PIO Controller can be progr

Pagina 387

4396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Four output signals on I/O lines 4 to 7 (to drive LEDs for example), driven high and low, no pull-u

Pagina 388

446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Full- and half-duplex operations• MII or RMII interface to the physical layer• Register Interface to

Pagina 389

4406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Awriting to the corresponding bits has no effect. Undefined bits read zero. If the I/O line is not mul

Pagina 390

4416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANotes: 1. Reset value of PIO_PSR depends on the product implementation.2. PIO_ODSR is Read-only or Re

Pagina 391

4426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.1 PIO Controller PIO Enable RegisterName: PIO_PERAccess Type: Write-only • P0-P31: PIO Enable0 =

Pagina 392

4436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.3 PIO Controller PIO Status RegisterName: PIO_PSRAccess Type: Read-only • P0-P31: PIO Status0 =

Pagina 393

4446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.5 PIO Controller Output Disable RegisterName: PIO_ODRAccess Type: Write-only • P0-P31: Output Di

Pagina 394

4456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.7 PIO Controller Input Filter Enable RegisterName: PIO_IFERAccess Type: Write-only • P0-P31: Inp

Pagina 395

4466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.9 PIO Controller Input Filter Status RegisterName: PIO_IFSRAccess Type: Read-only • P0-P31: Inpu

Pagina 396

4476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.11 PIO Controller Clear Output Data RegisterName: PIO_CODRAccess Type: Write-only • P0-P31: Set

Pagina 397

4486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.13 PIO Controller Pin Data Status RegisterName: PIO_PDSRAccess Type: Read-only • P0-P31: Output

Pagina 398

4496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.15 PIO Controller Interrupt Disable RegisterName: PIO_IDRAccess Type: Write-only • P0-P31: Input

Pagina 399

456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A11. Metal Programmable BlockThe Metal Programmable Block (MPBlock) is connected to internal resources

Pagina 400

4506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.17 PIO Controller Interrupt Status RegisterName: PIO_ISRAccess Type: Read-only • P0-P31: Input C

Pagina 401

4516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.19 PIO Multi-driver Disable RegisterName: PIO_MDDRAccess Type: Write-only • P0-P31: Multi Drive

Pagina 402

4526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.21 PIO Pull Up Disable RegisterName: PIO_PUDRAccess Type: Write-only • P0-P31: Pull Up Disable.0

Pagina 403

4536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.23 PIO Pull Up Status RegisterName: PIO_PUSRAccess Type: Read-only • P0-P31: Pull Up Status.0 =

Pagina 404

4546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.25 PIO Peripheral B Select RegisterName: PIO_BSRAccess Type: Write-only • P0-P31: Peripheral B S

Pagina 405

4556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.27 PIO Output Write Enable RegisterName: PIO_OWERAccess Type: Write-only • P0-P31: Output Write

Pagina 406

4566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A32.6.29 PIO Output Write Status RegisterName: PIO_OWSRAccess Type: Read-only • P0-P31: Output Write S

Pagina 407

4576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33. Serial Peripheral Interface (SPI)33.1 DescriptionThe Serial Peripheral Interface (SPI) circuit is

Pagina 408

4586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.2 Block DiagramFigure 33-1. Block Diagram 33.3 Application Block Diagram Figure 33-2. Application

Pagina 409

4596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.4 Signal Description 33.5 Product Dependencies33.5.1 I/O LinesThe pins used for interfacing the c

Pagina 410

466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• 30 or 60 MHz UTMI+ USB Clock• MCK System Clock• DDRCK Dual Rate System Clock• PCK Processor Clock• 5

Pagina 411

4606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Afour possible combinations that are incompatible with one another. Thus, a master/slave pairmust use

Pagina 412

4616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 33-4. SPI Transfer Format (NCPHA = 0, 8 bits per transfer)*SPCK(CPOL = 0)SPCK(CPOL = 1)1 2345

Pagina 413

4626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.6.3 Master Mode OperationsWhen configured in Master Mode, the SPI operates on the clock generated

Pagina 414

4636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.6.3.1 Master Mode Block DiagramFigure 33-5. Master Mode Block DiagramShift RegisterSPCKMOSILSB MSB

Pagina 415

4646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.6.3.2 Master Mode Flow Diagram Figure 33-6. Master Mode Flow Diagram SPI EnableCSAAT ?PS ?10011NPC

Pagina 416

4656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.6.3.3 Clock GenerationThe SPI Baud rate clock is generated by dividing the Master Clock (MCK) , by

Pagina 417

4666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Fixed Peripheral Select: SPI exchanges data with only one peripheral• Variable Peripheral Select: D

Pagina 418

4676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATo facilitate interfacing with such devices, the Chip Select Register can be programmed withthe CSAAT

Pagina 419

4686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.6.4 SPI Slave ModeWhen operating in Slave Mode, the SPI processes data bits on the clock provided

Pagina 420

4696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 33-9. Slave Mode Functional Block Diagram Shift RegisterSPCKSPIENSLSB MSBNSSMOSISPI_RDRRDSPI C

Pagina 421

476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A11.2 External ConnectivityThe MPBlock is connected to the following external resources.11.2.1 Dedicate

Pagina 422

4706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7 Serial Peripheral Interface (SPI) User Interface Table 33-3. SPI Register MappingOffset Registe

Pagina 423

4716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.1 SPI Control RegisterName: SPI_CRAccess Type: Write-only• SPIEN: SPI Enable0 = No effect.1 = En

Pagina 424

4726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.2 SPI Mode RegisterName: SPI_MRAccess Type: Read/Write • MSTR: Master/Slave Mode0 = SPI is in Sl

Pagina 425

4736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf PCSDEC = 1:NPCS[3:0] output signals = PCS.• DLYBCS: Delay Between Chip SelectsThis field defines t

Pagina 426

4746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.3 SPI Receive Data RegisterName: SPI_RDRAccess Type: Read-only • RD: Receive DataData received

Pagina 427

4756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.4 SPI Transmit Data RegisterName: SPI_TDR Access Type: Write-only• TD: Transmit DataData to be t

Pagina 428

4766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.5 SPI Status RegisterName: SPI_SRAccess Type: Read-only • RDRF: Receive Data Register Full0 = N

Pagina 429

4776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = As soon as data is written in SPI_TDR.1 = SPI_TDR and internal shifter are empty. If a transfer d

Pagina 430

4786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.6 SPI Interrupt Enable RegisterName: SPI_IERAccess Type: Write-only • RDRF: Receive Data Registe

Pagina 431

4796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.7 SPI Interrupt Disable RegisterName: SPI_IDRAccess Type: Write-only • RDRF: Receive Data Regist

Pagina 432

486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 11-2. Typical Prototyping Solution Bus Matrix4-channelDMAEBIMetal Programmable Block500K Gates

Pagina 433

4806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.8 SPI Interrupt Mask RegisterName: SPI_IMRAccess Type: Read-only • RDRF: Receive Data Register

Pagina 434

4816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A33.7.9 SPI Chip Select RegisterName: SPI_CSR0... SPI_CSR3Access Type: Read/Write • CPOL: Clock Polar

Pagina 435

4826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• SCBR: Serial Clock Baud RateIn Master Mode, the SPI Interface uses a modulus counter to derive the

Pagina 436

4836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34. Two-wire Interface (TWI)34.1 DescriptionThe Atmel Two-wire Interface (TWI) interconnects componen

Pagina 437

4846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.2 List of Abbreviations34.3 Block DiagramFigure 34-1. Block DiagramTable 34-2. AbbreviationsAbbrev

Pagina 438

4856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.4 Application Block DiagramFigure 34-2. Application Block Diagram 34.4.1 I/O Lines Description34.5

Pagina 439

4866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.6 Functional Description34.6.1 Transfer FormatThe data put on the TWD line must be 8 bits long. Da

Pagina 440

4876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.7 Master Mode34.7.1 DefinitionThe Master is the device which starts a transfer, generates a clock

Pagina 441

4886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATXRDY is used as Transmit Ready for the PDC transmit channel.Figure 34-6. Master Write with One Data

Pagina 442

4896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ARXRDY bit is set in the status register, a character has been received in the receive-holding reg-ist

Pagina 443

496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12. ARM926EJ-S Processor Overview12.1 OverviewThe ARM926EJ-S processor is a member of the ARM9™ family

Pagina 444

4906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe three internal address bytes are configurable through the Master Mode register(TWI_MMR).If the sl

Pagina 445

4916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AExample: Address a 10-bit device (10-bit device address is b1 b2 b3 b4 b5 b6 b7 b8 b9 b10)1. Program

Pagina 446

4926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.7.7 Using the Peripheral DMA Controller (PDC)The use of the PDC significantly reduces the CPU load

Pagina 447

4936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.7.8 Read/Write FlowchartsThe following flowcharts shown in Figure 34-14, Figure 34-15 on page 494,

Pagina 448

4946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-15. TWI Write Operation with Single Data Byte and Internal AddressBEGINSet TWI clock(CLDIV,

Pagina 449

4956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-16. TWI Write Operation with Multiple Data Bytes with or without Internal AddressSet the Co

Pagina 450

4966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-17. TWI Read Operation with Single Data Byte without Internal AddressSet the Control regist

Pagina 451

4976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-18. TWI Read Operation with Single Data Byte and Internal AddressSet the Control register:-

Pagina 452

4986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-19. TWI Read Operation with Multiple Data Bytes with or without Internal AddressInternal ad

Pagina 453

4996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.8 Multi-master Mode34.8.1 DefinitionMore than one master may handle the bus at the same time witho

Pagina 454

56264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A3. Signal DescriptionTable 3-1 gives details on the signal name classified by peripheral.Table 3-1. Sig

Pagina 455

506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.2 Block DiagramFigure 12-1. ARM926EJ-S Internal Functional Block Diagram12.3 ARM9EJ-S Processor12.3

Pagina 456

5006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A7. If TWI has to be set in Slave mode, wait until TXCOMP flag is at 1 and then program the Slave mode

Pagina 457

5016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-22. Multi-master FlowchartProgramm the SLAVE mode:SADR + MSDIS + SVENSVACC = 1 ?TXCOMP = 1

Pagina 458

5026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9 Slave Mode34.9.1 DefinitionThe Slave Mode is defined as a mode where the device receives the clo

Pagina 459

5036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANote that a STOP or a repeated START always follows a NACK.See Figure 34-24 on page 504. 34.9.4.2 Wri

Pagina 460

5046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 34-24. Read Access Ordered by a MASTERNotes: 1. When SVACC is low, the state of SVREAD becomes

Pagina 461

5056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9.5.3 General CallThe general call is performed in order to change the address of the slave.If a G

Pagina 462

5066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9.5.4 Clock SynchronizationIn both read and write modes, it may happen that TWI_THR/TWI_RHR buffer

Pagina 463

5076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9.5.6 Clock Synchronization in Write ModeThe clock is tied low if the shift register and the TWI_R

Pagina 464

5086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9.5.7 Reversal after a Repeated Start34.9.5.8 Reversal of Read to WriteThe master initiates the co

Pagina 465

5096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.9.6 Read Write FlowchartsThe flowchart shown in Figure 34-31 on page 509 gives an example of read

Pagina 466

516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ARM state and Jazelle state using the BXJ instruction All exceptions are entered, handled and exited

Pagina 467

5106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10 Two-wire Interface (TWI) User Interface Table 34-5. Two-wire Interface (TWI) User InterfaceOffs

Pagina 468

5116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.1 TWI Control RegisterName: TWI_CRAccess: Write-onlyReset Value: 0x00000000• START: Send a STAR

Pagina 469

5126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = If SVDIS = 0, the slave mode is enabled.Note: Switching from Master to Slave mode is only permitt

Pagina 470

5136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.2 TWI Master Mode RegisterName: TWI_MMRAccess: Read/WriteReset Value: 0x00000000• IADRSZ: Inter

Pagina 471

5146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.3 TWI Slave Mode RegisterName: TWI_SMRAccess: Read/WriteReset Value: 0x00000000• SADR: Slave Ad

Pagina 472

5156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.4 TWI Internal Address RegisterName: TWI_IADRAccess: Read/WriteReset Value: 0x00000000• IADR: I

Pagina 473

5166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.5 TWI Clock Waveform Generator RegisterName: TWI_CWGRAccess: Read/WriteReset Value: 0x00000000T

Pagina 474

5176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.6 TWI Status RegisterName: TWI_SRAccess: Read-onlyReset Value: 0x0000F009• TXCOMP: Transmission

Pagina 475

5186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATXRDY used in Slave mode:0 = As soon as data is written in the TWI_THR, until this data has been tran

Pagina 476

5196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = Each data byte has been correctly received by the Master.1 = In read mode, a data byte has not be

Pagina 477

526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Supervisor mode is a protected mode for the operating system• Abort mode is entered after a data or

Pagina 478

5206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.7 TWI Interrupt Enable RegisterName: TWI_IERAccess: Write-onlyReset Value: 0x00000000• TXCOMP:

Pagina 479

5216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.8 TWI Interrupt Disable RegisterName: TWI_IDRAccess: Write-onlyReset Value: 0x00000000• TXCOMP:

Pagina 480

5226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.9 TWI Interrupt Mask RegisterName: TWI_IMRAccess: Read-onlyReset Value: 0x00000000• TXCOMP: Tra

Pagina 481

5236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A34.10.10 TWI Receive Holding RegisterName: TWI_RHRAccess: Read-onlyReset Value: 0x00000000• RXDATA: M

Pagina 482

5246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 483

5256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35. Universal Synchronous/Asynchronous Receiver/Transceiver35.1 DescriptionThe Universal Synchronous

Pagina 484

5266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.2 Block DiagramFigure 35-1. USART Block Diagram Peripheral DMAControllerChannel ChannelAICReceiver

Pagina 485

5276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.3 Application Block DiagramFigure 35-2. Application Block Diagram35.4 I/O Lines Description Table

Pagina 486

5286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.5 Product Dependencies35.5.1 I/O LinesThe pins used for interfacing the USART may be multiplexed w

Pagina 487

5296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6 Functional DescriptionThe USART is capable of managing several types of serial synchronous or as

Pagina 488

536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aregisters used to hold either data or address values. Register r14 is used as a Link register thathold

Pagina 489

5306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-3. Baud Rate Generator35.6.1.1 Baud Rate in Asynchronous Mode If the USART is programmed to

Pagina 490

5316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe baud rate is calculated with the following formula:The baud rate error is calculated with the fol

Pagina 491

5326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-4. Fractional Baud Rate Generator35.6.1.3 Baud Rate in Synchronous ModeIf the USART is prog

Pagina 492

5336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ADi is a binary value encoded on a 4-bit field, named DI, as represented in Table 35-3. Fi is a binary

Pagina 493

5346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-5. Elementary Time Unit (ETU)35.6.2 Receiver and Transmitter ControlAfter reset, the receiv

Pagina 494

5356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-6. Character Transmit The characters are sent by writing in the Transmit Holding Register (

Pagina 495

5366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-8. NRZ to Manchester EncodingThe Manchester encoded character can also be encapsulated by a

Pagina 496

5376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aoccurs at the middle of the second bit time. Two distinct sync patterns are used: the commandsync and

Pagina 497

5386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-11. Bit Resynchronization35.6.3.3 Asynchronous ReceiverIf the USART is programmed in asynch

Pagina 498

5396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-12. Asynchronous Start Detection Figure 35-13. Asynchronous Character Reception35.6.3.4 Man

Pagina 499

546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 12-2. Status Register Format Figure 12-2 shows the status register format, where:• N: Negative,

Pagina 500

5406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-14. Asynchronous Start Bit DetectionThe receiver is activated and starts Preamble and Frame

Pagina 501

5416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Afield in the US_RHR register and the RXSYNH is updated. RXCHR is set to 1 when the receivedcharacter

Pagina 502

5426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aswitches to receiving mode. The demodulated stream is sent to the Manchester decoder.Because of bit c

Pagina 503

5436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.3.7 Receiver OperationsWhen a character reception is completed, it is transferred to the Receive

Pagina 504

5446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.3.8 ParityThe USART supports five parity modes selected by programming the PAR field in the Mode

Pagina 505

5456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-22. Parity Error35.6.3.9 Multidrop ModeIf the PAR field in the Mode Register (US_MR) is pro

Pagina 506

5466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-23. Timeguard OperationsTable 35-7 indicates the maximum length of a timeguard period that

Pagina 507

5476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aon RXD before a new character is received will not provide a time-out. This prevents having to handle

Pagina 508

5486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.3.12 Framing ErrorThe receiver is capable of detecting framing errors. A framing error happens w

Pagina 509

5496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe transmitter considers the break as though it is a character, i.e. the STTBRK and STPBRKcommands a

Pagina 510

556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe BKPT, or Undefined instruction, and SWI exceptions are mutually exclusive.There is one exception i

Pagina 511

5506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 35-27. Connection with a Remote Device for Hardware HandshakingSetting the USART to operate wi

Pagina 512

5516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.4 ISO7816 ModeThe USART features an ISO7816-compatible operating mode. This mode permits interfa

Pagina 513

5526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf a parity error is detected by the receiver, it drives the I/O line at 0 during the guard time, ass

Pagina 514

5536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AWhen the USART repetition number reaches MAX_ITERATION, the ITERATION bit is set in theChannel Status

Pagina 515

5546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.5.1 IrDA Modulation For baud rates up to and including 115.2 Kbits/sec, the RZI modulation schem

Pagina 516

5556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.5.3 IrDA DemodulatorThe demodulator is based on the IrDA Receive filter comprised of an 8-bit do

Pagina 517

5566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.6 RS485 ModeThe USART features the RS485 mode to enable line driver control. While operating in

Pagina 518

5576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.7 Test ModesThe USART can be programmed to operate in three different test modes. The internal l

Pagina 519

5586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.6.7.4 Remote Loopback ModeRemote loopback mode directly connects the RXD pin to the TXD pin, as sh

Pagina 520

5596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7 USART User Interface Table 35-11. USART Memory Map Offset Register Name Access Reset State0x000

Pagina 521

566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Data processing instructions• Status register transfer instructions• Load and Store instructions• Co

Pagina 522

5606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.1 USART Control RegisterName: US_CRAccess Type: Write-only • RSTRX: Reset Receiver0: No effect.1

Pagina 523

5616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1: Starts transmission of a break after the characters present in US_THR and the Transmit Shift Regis

Pagina 524

5626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.2 USART Mode RegisterName: US_MRAccess Type: Read/Write • USART_MODE • USCLKS: Clock Selection

Pagina 525

5636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CHRL: Character Length • SYNC: Synchronous Mode Select0: USART operates in Asynchronous Mode.1: US

Pagina 526

5646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0: CHRL defines character length.1: 9-bit character length.• CLKO: Clock Output Select0: The USART do

Pagina 527

5656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.3 USART Interrupt Enable RegisterName: US_IERAccess Type: Write-only• RXRDY: RXRDY Interrupt En

Pagina 528

5666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.4 USART Interrupt Disable RegisterName: US_IDRAccess Type: Write-only • RXRDY: RXRDY Interrupt D

Pagina 529

5676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.5 USART Interrupt Mask RegisterName: US_IMRAccess Type: Read-only• RXRDY: RXRDY Interrupt Mask•

Pagina 530

5686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.6 USART Channel Status RegisterName: US_CSRAccess Type: Read-only • RXRDY: Receiver Ready0: No c

Pagina 531

5696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• PARE: Parity Error0: No parity error has been detected since the last RSTSTA.1: At least one parity

Pagina 532

576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.3.9 New ARM Instruction Set.Notes: 1. A Thumb BLX contains two consecutive Thumb instructions, and

Pagina 533

5706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.7 USART Receive Holding RegisterName: US_RHRAccess Type: Read-only • RXCHR: Received CharacterLa

Pagina 534

5716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.8 USART Transmit Holding RegisterName: US_THRAccess Type: Write-only • TXCHR: Character to be Tr

Pagina 535

5726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.9 USART Baud Rate Generator RegisterName: US_BRGRAccess Type: Read/Write • CD: Clock Divider • F

Pagina 536

5736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.10 USART Receiver Time-out RegisterName: US_RTORAccess Type: Read/Write • TO: Time-out Value0: T

Pagina 537

5746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.11 USART Transmitter Timeguard RegisterName: US_TTGRAccess Type: Read/Write • TG: Timeguard Valu

Pagina 538

5756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.12 USART FI DI RATIO RegisterName: US_FIDIAccess Type: Read/WriteReset Value : 0x174 • FI_DI_RAT

Pagina 539

5766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.14 USART Manchester Configuration RegisterName: US_MANAccess Type: Read/Write• TX_PL: Transmitte

Pagina 540

5776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1: Logic Zero is coded as a one-to-zero transition, Logic One is coded as a zero-to-one transition.•

Pagina 541

5786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A35.7.15 USART IrDA FILTER RegisterName: US_IFAccess Type: Read/Write• IRDA_FILTER: IrDA FilterSets th

Pagina 542

5796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36. Serial Synchronous Controller (SSC)36.1 DescriptionThe Atmel Synchronous Serial Controller (SSC)

Pagina 543

586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.4 CP15 CoprocessorCoprocessor 15, or System Control Coprocessor CP15, is used to configure and cont

Pagina 544

5806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.2 Block DiagramFigure 36-1. Block Diagram36.3 Application Block DiagramFigure 36-2. Application Bl

Pagina 545

5816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.4 Pin Name List36.5 Product Dependencies36.5.1 I/O LinesThe pins used for interfacing the complian

Pagina 546

5826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 36-3. SSC Functional Block Diagram36.6.1 Clock ManagementThe transmitter clock can be generate

Pagina 547

5836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.6.1.1 Clock DividerFigure 36-4. Divided Clock Block Diagram The Master Clock divider is determine

Pagina 548

5846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A(CKS field) and at the same time Continuous Transmit Clock (CKO field) might lead to unpredict-able r

Pagina 549

5856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.6.1.4 Serial Clock Ratio ConsiderationsThe Transmitter and the Receiver can be programmed to opera

Pagina 550

5866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.6.3 Receiver OperationsA received frame is triggered by a start event and can be followed by synch

Pagina 551

5876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA start can be programmed in the same manner on either side of the Transmit/Receive ClockRegister (RC

Pagina 552

5886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.6.5 Frame SyncThe Transmitter and Receiver Frame Sync pins, TF and RF, can be programmed to genera

Pagina 553

5896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.6.6.1 Compare FunctionsLength of the comparison patterns (Compare 0, Compare 1) and thus the numbe

Pagina 554

596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANotes: 1. Register locations 0,5, and 13 each provide access to more than one register. The register a

Pagina 555

5906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 36-13. Transmit and Receive Frame Format in Edge/Pulse Start ModesNote: 1. Example of input on

Pagina 556

5916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 36-14. Transmit Frame Format in Continuous Mode Note: 1. STTDLY is set to 0. In this example,

Pagina 557

5926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 36-16. Interrupt Block Diagram36.7 SSC Application ExamplesThe SSC can support several serial

Pagina 558

5936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 36-18. Codec Application Block DiagramFigure 36-19. Time Slot Application Block DiagramSSCRKRF

Pagina 559

5946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8 Synchronous Serial Controller (SSC) User InterfaceTable 36-4. Register MappingOffset Register Re

Pagina 560

5956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.1 SSC Control RegisterName: SSC_CRAccess Type: Write-only • RXEN: Receive Enable0: No effect.1:

Pagina 561

5966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.2 SSC Clock Mode RegisterName: SSC_CMRAccess Type: Read/Write • DIV: Clock Divider0: The Clock D

Pagina 562

5976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.3 SSC Receive Clock Mode RegisterName: SSC_RCMRAccess Type: Read/Write • CKS: Receive Clock Sele

Pagina 563

5986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CKG: Receive Clock Gating Selection• START: Receive Start Selection • STOP: Receive Stop Selection0

Pagina 564

5996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.4 SSC Receive Frame Mode RegisterName: SSC_RFMRAccess Type: Read/Write • DATLEN: Data Length0: F

Pagina 565

66264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AICE and JTAGNTRST Test Reset Signal Input Low No pull-up resistorTCK Test Clock Input No pull-up resist

Pagina 566

606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.4.1 CP15 Registers AccessCP15 registers can only be accessed in privileged mode by:• MCR (Move to C

Pagina 567

6006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• FSOS: Receive Frame Sync Output Selection• FSEDGE: Frame Sync Edge DetectionDetermines which edge o

Pagina 568

6016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.5 SSC Transmit Clock Mode RegisterName: SSC_TCMRAccess Type: Read/Write • CKS: Transmit Clock Se

Pagina 569

6026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CKG: Transmit Clock Gating Selection • START: Transmit Start Selection • STTDLY: Transmit Start D

Pagina 570

6036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.6 SSC Transmit Frame Mode RegisterName: SSC_TFMRAccess Type: Read/Write • DATLEN: Data Length0:

Pagina 571

6046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• FSOS: Transmit Frame Sync Output Selection • FSDEN: Frame Sync Data Enable0: The TD line is driven

Pagina 572

6056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.7 SSC Receive Holding RegisterName: SSC_RHRAccess Type: Read-only • RDAT: Receive DataRight ali

Pagina 573

6066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.9 SSC Receive Synchronization Holding RegisterName: SSC_RSHRAccess Type: Read-only • RSDAT: Rec

Pagina 574

6076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.11 SSC Receive Compare 0 RegisterName: SSC_RC0RAccess Type: Read/Write • CP0: Receive Compare D

Pagina 575

6086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.12 SSC Receive Compare 1 RegisterName: SSC_RC1RAccess Type: Read/Write • CP1: Receive Compare D

Pagina 576

6096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.13 SSC Status RegisterName: SSC_SRAccess Type: Read-only • TXRDY: Transmit Ready0: Data has been

Pagina 577

616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.5 Memory Management Unit (MMU)The ARM926EJ-S processor implements an enhanced ARM architecture v5 M

Pagina 578

6106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A•CP0: Compare 00: A compare 0 has not occurred since the last read of the Status Register.1: A compar

Pagina 579

6116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.14 SSC Interrupt Enable RegisterName: SSC_IERAccess Type: Write-only • TXRDY: Transmit Ready Int

Pagina 580

6126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CP0: Compare 0 Interrupt Enable0: No effect.1: Enables the Compare 0 Interrupt.• CP1: Compare 1 Int

Pagina 581

6136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.15 SSC Interrupt Disable RegisterName: SSC_IDRAccess Type: Write-only • TXRDY: Transmit Ready In

Pagina 582

6146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CP0: Compare 0 Interrupt Disable0: No effect.1: Disables the Compare 0 Interrupt.• CP1: Compare 1 I

Pagina 583

6156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A36.8.16 SSC Interrupt Mask RegisterName: SSC_IMRAccess Type: Read-only • TXRDY: Transmit Ready Interr

Pagina 584

6166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CP0: Compare 0 Interrupt Mask0: The Compare 0 Interrupt is disabled.1: The Compare 0 Interrupt is e

Pagina 585

6176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37. AC’97 Controller (AC’97C)37.1 DescriptionThe AC‘97 Controller is the hardware implementation of t

Pagina 586

6186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.2 Block DiagramFigure 37-1. Functional Block DiagramAC97 Channel AAC97C_CATHRAC97C_CARHRSlot #3...

Pagina 587

6196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.3 Pin Name List The AC‘97 reset signal provided to the primary codec can be generated by a PIO.37.

Pagina 588

626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.5.2 Translation Look-aside Buffer (TLB)The Translation Look-aside Buffer (TLB) caches translated en

Pagina 589

6206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.5 Product Dependencies37.5.1 I/O LinesThe pins used for interfacing the compliant external devices

Pagina 590

6216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.6 Functional Description37.6.1 Protocol overviewAC-link protocol is a bidirectional, fixed clock r

Pagina 591

6226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.6.1.1 Slot DescriptionTag SlotThe tag slot, or slot 0, is a 16-bit wide slot that always goes at t

Pagina 592

6236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.6.2 AC‘97 Controller Channel OrganizationThe AC’97 Controller features a Codec channel and 3 logic

Pagina 593

6246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.6.2.1 AC97 Controller SetupThe following operations must be performed in order to bring the AC’97

Pagina 594

6256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 37-5. Audio Transfer (PCM L Front, PCM R Front) on Channel x The TXEMPTY flag in the AC’97 Con

Pagina 595

6266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe application can also wait for an interrupt notice in order to read data fromAC97C_CxRHR. The inte

Pagina 596

6276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aread AC’97 Controller Channel x Status Register (AC97C_CxSR), x being the channel whoseevent triggers

Pagina 597

6286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AData emitted on related slot: data[19:0] = {0x000, Byte1[1:0], Byte0[7:0]}.To Receive Word transfersD

Pagina 598

6296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Aframe and then determines which SLOTREQ bits to set active (low). These bits are passedfrom the AC97

Pagina 599

636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA new feature is now supported by ARM926EJ-S caches called allocate on read-miss commonlyknown as wrap

Pagina 600

6306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis feature is implemented in AC97 modem codecs that need to report events such as Caller-ID and wak

Pagina 601

6316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Wait for at least 1us• Clear WRST in the AC97C_MR register.The application can check that operation

Pagina 602

6326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7 AC’97 Controller (AC97C) User InterfaceTable 37-4. Register MappingOffset Register Register Name

Pagina 603

6336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.1 AC’97 Controller Mode RegisterName: AC97C_MRAccess Type: Read-Write • VRA: Variable Rate (for

Pagina 604

6346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.2 AC’97 Controller Input Channel Assignment RegisterRegister Name: AC97C_ICAAccess Type: Read/Wr

Pagina 605

6356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.4 AC’97 Controller Codec Channel Receive Holding RegisterRegister Name: AC97C_CORHRAccess Type:

Pagina 606

6366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.6 AC’97 Controller Channel A, Channel B, Channel C Receive Holding RegisterRegister Name: AC97C_

Pagina 607

6376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.8 AC’97 Controller Channel A Status RegisterRegister Name: AC97C_CASRAccess Type: Read-only 37.7

Pagina 608

6386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.11 AC’97 Controller Codec Channel Status RegisterRegister Name: AC97C_COSRAccess Type: Read-onl

Pagina 609

6396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.12 AC’97 Controller Channel A Mode RegisterRegister Name: AC97C_CAMRAccess Type: Read/Write 37.7

Pagina 610

646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe DCache contains an eight data word entry, single address entry write-back buffer used tohold write

Pagina 611

6406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.14 AC’97 Controller Channel C Mode RegisterRegister Name: AC97C_CCMRAccess Type: Read/Write• CEM

Pagina 612

6416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.15 AC’97 Controller Codec Channel Mode RegisterRegister Name: AC97C_COMRAccess Type: Read/Write•

Pagina 613

6426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.16 AC’97 Controller Status RegisterRegister Name: AC97C_SRAccess Type: Read-onlyWKUP and SOF fla

Pagina 614

6436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.17 AC’97 Controller Interrupt Enable RegisterRegister Name: AC97C_IERAccess Type: Write-only• SO

Pagina 615

6446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A37.7.19 AC’97 Controller Interrupt Mask RegisterRegister Name: AC97C_IMRAccess Type: Read-only• SOF:

Pagina 616

6456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 617

6466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 618

6476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38. Timer Counter (TC)38.1 DescriptionThe Timer Counter (TC) includes three identical 16-bit Timer Co

Pagina 619

6486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.2 Block DiagramFigure 38-1. Timer Counter Block Diagram Timer/Counter Channel 0Timer/Counter Chann

Pagina 620

6496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.3 Pin Name List38.4 Product Dependencies38.4.1 I/O Lines The pins used for interfacing the complia

Pagina 621

656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A12.7.2 Enabling and Disabling TCMsPrior to any enabling step, the user should configure the TCM sizes

Pagina 622

6506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.5 Functional Description38.5.1 TC DescriptionThe three channels of the Timer Counter are independe

Pagina 623

6516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-2. Clock Chaining SelectionFigure 38-3. Clock SelectionTimer/Counter Channel 0SYNCTC0XC0STI

Pagina 624

6526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.5.4 Clock ControlThe clock of each counter can be controlled in two different ways: it can be enab

Pagina 625

6536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• Software Trigger: Each channel has a software trigger, available by setting SWTRG in TC_CCR.• SYNC:

Pagina 626

6546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-5. Capture ModeTIMER_CLOCK1TIMER_CLOCK2TIMER_CLOCK3TIMER_CLOCK4TIMER_CLOCK5XC0XC1XC2TCCLKSC

Pagina 627

6556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.5.10 Waveform Operating ModeWaveform operating mode is entered by setting the WAVE parameter in TC

Pagina 628

6566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-6. Waveform ModeTCCLKSCLKIQSRSRQCLKSTA CLKEN CLKDISCPCDISBURSTTIOBRegister A Register B Reg

Pagina 629

6576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.5.11.1 WAVSEL = 00When WAVSEL = 00, the value of TC_CV is incremented from 0 to 0xFFFF. Once 0xFFF

Pagina 630

6586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-8. WAVSEL= 00 with trigger38.5.11.2 WAVSEL = 10When WAVSEL = 10, the value of TC_CV is incr

Pagina 631

6596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-10. WAVSEL = 10 With Trigger38.5.11.3 WAVSEL = 01When WAVSEL = 01, the value of TC_CV is in

Pagina 632

666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable 8 gives an overview of the supported transfers and different kinds of transactions they areused

Pagina 633

6606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-11. WAVSEL = 01 Without TriggerFigure 38-12. WAVSEL = 01 With Trigger38.5.11.4 WAVSEL = 11W

Pagina 634

6616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 38-13. WAVSEL = 11 Without Trigger Figure 38-14. WAVSEL = 11 With TriggerTimeCounter ValueRCRB

Pagina 635

6626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.5.12 External Event/Trigger ConditionsAn external event can be programmed to be detected on one of

Pagina 636

6636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6 Timer Counter (TC) User Interface TC_BCR (Block Control Register) and TC_BMR (Block Mode Registe

Pagina 637

6646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.1 TC Block Control Register Register Name: TC_BCRAccess Type: Write-only• SYNC: Synchro Command0

Pagina 638

6656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.2 TC Block Mode Register Register Name: TC_BMRAccess Type: Read/Write • TC0XC0S: External Clock

Pagina 639

6666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.3 TC Channel Control Register Register Name: TC_CCRAccess Type: Write-only • CLKEN: Counter Cloc

Pagina 640

6676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.4 TC Channel Mode Register: Capture ModeRegister Name: TC_CMRAccess Type: Read/Write • TCCLKS: C

Pagina 641

6686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ETRGEDG: External Trigger Edge Selection• ABETRG: TIOA or TIOB External Trigger Selection0 = TIOB i

Pagina 642

6696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.5 TC Channel Mode Register: Waveform ModeRegister Name: TC_CMRAccess Type: Read/Write • TCCLKS:

Pagina 643

676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13. Debug and Test13.1 DescriptionThe AT91CAP9 features a number of complementary debug and test capab

Pagina 644

6706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• EEVTEDG: External Event Edge Selection• EEVT: External Event Selection Note: 1. If TIOB is chosen a

Pagina 645

6716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ACPC: RC Compare Effect on TIOA • AEEVT: External Event Effect on TIOA• ASWTRG: Software Trigger Ef

Pagina 646

6726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• BEEVT: External Event Effect on TIOB • BSWTRG: Software Trigger Effect on TIOB BEEVT Effect0 0 none

Pagina 647

6736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.6 TC Counter Value Register Register Name: TC_CVAccess Type: Read-only • CV: Counter ValueCV con

Pagina 648

6746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.8 TC Register BRegister Name: TC_RBAccess Type: Read-only if WAVE = 0, Read/Write if WAVE = 1 •

Pagina 649

6756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.10 TC Status Register Register Name: TC_SRAccess Type: Read-only• COVFS: Counter Overflow Status

Pagina 650

6766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = Clock is enabled.• MTIOA: TIOA Mirror0 = TIOA is low. If WAVE = 0, this means that TIOA pin is lo

Pagina 651

6776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.11 TC Interrupt Enable Register Register Name: TC_IERAccess Type: Write-only • COVFS: Counter Ov

Pagina 652

6786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.12 TC Interrupt Disable Register Register Name: TC_IDRAccess Type: Write-only • COVFS: Counter O

Pagina 653

6796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A38.6.13 TC Interrupt Mask Register Register Name: TC_IMRAccess Type: Read-only • COVFS: Counter Overf

Pagina 654

686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13.2 Block DiagramFigure 13-1. Debug and Test Block DiagramICE-RTARM9EJ-SPDCDBGUPIODRXDDTXDTMSTCKTDIJT

Pagina 655

6806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 656

6816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39. Controller Area Network (CAN)39.1 DescriptionThe CAN controller provides all the features require

Pagina 657

6826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.2 Block DiagramFigure 39-1. CAN Block DiagramInternal BusCAN InterruptCANRXController Area Network

Pagina 658

6836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.3 Application Block DiagramFigure 39-2. Application Block Diagram39.4 I/O Lines Description 39.5

Pagina 659

6846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.6 CAN Controller Features39.6.1 CAN Protocol OverviewThe Controller Area Network (CAN) is a multi-

Pagina 660

6856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-3. Message Acceptance ProcedureIf a mailbox is dedicated to receiving several messages (a f

Pagina 661

6866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.6.2.2 Receive MailboxWhen the CAN module receives a message, it looks for the first available mail

Pagina 662

6876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.6.3 Time Management UnitThe CAN Controller integrates a free-running 16-bit internal timer. The co

Pagina 663

6886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.6.4 CAN 2.0 Standard Features39.6.4.1 CAN Bit Timing ConfigurationAll controllers on a CAN bus mus

Pagina 664

6896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe SAMPLE POINT is the point in time at which the bus level is read and interpreted as thevalue of t

Pagina 665

696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13.3 Application Examples13.3.1 Debug EnvironmentFigure 13-2 on page 69 shows a complete debug environ

Pagina 666

6906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ACAN baudrate= 500kbit/s => bit time= 2usDelay of the bus driver: 50 nsDelay of the receiver: 30nsD

Pagina 667

6916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ACAN Bus SynchronizationTwo types of synchronization are distinguished: “hard synchronization” at the

Pagina 668

6926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Afrozen. To go back to the standard mode, the ABM bit must be cleared in the CAN_MRregister.39.6.4.2 E

Pagina 669

6936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-7. Line Error ModeAn error active unit takes part in bus communication and sends an active

Pagina 670

6946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AReactive overload frames are automatically handled by the CAN controller even if the OVL bitin the CA

Pagina 671

6956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-8. Enabling Low-power Mode 39.6.5.2 Disabling Low-power ModeThe CAN controller can be awake

Pagina 672

6966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-9. Disabling Low-power Mode39.7 Functional Description39.7.1 CAN Controller InitializationA

Pagina 673

6976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-10. Possible Initialization Procedure39.7.2 CAN Controller Interrupt HandlingThere are two

Pagina 674

6986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Warn Limit interrupt: The CAN module is in Error-active Mode, but at least one of its error counter

Pagina 675

6996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.7.3 CAN Controller Message Handling39.7.3.1 Receive HandlingTwo modes are available to configure a

Pagina 676

76264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ACompactFlash SupportCFCE1 - CFCE2 CompactFlash Chip Enable Output LowCFOE CompactFlash Output Enable Ou

Pagina 677

706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13.4 Debug and Test Pin Description13.5 Functional Description13.5.1 Test PinOne dedicated pin, TST, i

Pagina 678

7006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA mailbox is in Receive with Overwrite Mode once the MOT field in the CAN_MMRx registerhas been confi

Pagina 679

7016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf several mailboxes are chained to receive a buffer split into several messages, all mailboxesexcept

Pagina 680

7026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-14. Chaining Three Mailboxes to Receive a Buffer Split into Four Messages39.7.3.2 Transmiss

Pagina 681

7036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 and mailbox 5 have the same priority and have a message to send at the same time, thenthe message o

Pagina 682

7046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-16. Producer / Consumer ModelIn Pull Mode, a consumer transmits a remote frame to the produ

Pagina 683

7056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AAfter a remote frame has been received, the mailbox functions like a transmit mailbox. Themessage wit

Pagina 684

7066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 39-18. Consumer Handling39.7.4 CAN Controller Timing ModesUsing the free running 16-bit intern

Pagina 685

7076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.7.4.2 Time Triggered ModeIn Time Triggered Mode, basic cycles can be split into several time windo

Pagina 686

7086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Ais frozen. The TOVF bit in the CAN_SR register is cleared by reading the CAN_SR register.Depending on

Pagina 687

7096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8 Controller Area Network (CAN) User Interface Table 39-4. CAN Memory Map Offset Register Name Acc

Pagina 688

716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AARM9EJ-S Technical Reference Manual (DDI 0222A).13.5.3 JTAG Signal Description• TMS is the Test Mode S

Pagina 689

7106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.1 CAN Mode RegisterName: CAN_MRAccess Type: Read/Write• CANEN: CAN Controller Enable0 = The CAN

Pagina 690

7116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.2 CAN Interrupt Enable RegisterName: CAN_IERAccess Type: Write-only• MBx: Mailbox x Interrupt En

Pagina 691

7126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• SERR: Stuffing Error Interrupt Enable0 = No effect. 1 = Enable Stuffing Error interrupt.• AERR: Ack

Pagina 692

7136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.3 CAN Interrupt Disable RegisterName: CAN_IDRAccess Type: Write-only• MBx: Mailbox x Interrupt D

Pagina 693

7146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• SERR: Stuffing Error Interrupt Disable0 = No effect. 1 = Disable Stuffing Error interrupt.• AERR: A

Pagina 694

7156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.4 CAN Interrupt Mask RegisterName: CAN_IMRAccess Type: Read-only• MBx: Mailbox x Interrupt Mask0

Pagina 695

7166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• SERR: Stuffing Error Interrupt Mask0 = Bit Stuffing Error interrupt is disabled.1 = Bit Stuffing Er

Pagina 696

7176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.5 CAN Status RegisterName: CAN_SRAccess Type: Read-only• MBx: Mailbox x Event0 = No event occurr

Pagina 697

7186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis flag is automatically reset when Low power mode is disabled• WAKEUP: CAN controller is not in Lo

Pagina 698

7196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA bit error is set when the bit value monitored on the line is different from the bit value sent.This

Pagina 699

726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIt is not possible to switch directly between JTAG and ICE operations. A chip reset must beperformed a

Pagina 700

7206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.6 CAN Baudrate RegisterName: CAN_BRAccess Type: Read/WriteAny modification on one of the fields

Pagina 701

7216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AAccess Type: Read-only• TIMERx: Timer This field represents the internal CAN controller 16-bit timer

Pagina 702

7226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.8 CAN Timestamp RegisterName: CAN_TIMESTPAccess Type: Read-only• MTIMESTAMPx: Timestamp This fie

Pagina 703

7236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.9 CAN Error Counter RegisterName: CAN_ECRAccess Type: Read-only • REC: Receive Error CounterWhen

Pagina 704

7246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.10 CAN Transfer Command RegisterName: CAN_TCRAccess Type: Write-onlyThis register initializes se

Pagina 705

7256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.11 CAN Abort Command RegisterName: CAN_ACRAccess Type: Write-onlyThis register initializes sever

Pagina 706

7266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.12 CAN Message Mode RegisterName: CAN_MMRxAccess Type: Read/Write 31 30 29 28 27 26 25 24–––––M

Pagina 707

7276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• MTIMEMARK: Mailbox TimemarkThis field is active in Time Triggered Mode. Transmit operations are all

Pagina 708

7286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATo prevent concurrent access with the internal CAN core, the application must disable the mailbox bef

Pagina 709

7296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.14 CAN Message ID RegisterName: CAN_MIDxAccess Type: Read/Write To prevent concurrent access wi

Pagina 710

736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A14. Boot Program14.1 DescriptionThe Boot Program integrates different programs that manage download an

Pagina 711

7306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.15 CAN Message Family ID RegisterName: CAN_MFIDxAccess Type: Read-only • MFID: Family IDThis fie

Pagina 712

7316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.16 CAN Message Status RegisterName: CAN_MSRxAccess Type: Read onlyThese register fields are upd

Pagina 713

7326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• MRTR: Mailbox Remote Transmission Request • MABT: Mailbox Message AbortAn interrupt is triggered wh

Pagina 714

7336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• MRDY: Mailbox ReadyAn interrupt is triggered when MRDY is set.0 = Mailbox data registers can not be

Pagina 715

7346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.17 CAN Message Data Low RegisterName: CAN_MDLxAccess Type: Read/Write• MDL: Message Data Low Va

Pagina 716

7356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.18 CAN Message Data High RegisterName: CAN_MDHxAccess Type: Read/Write• MDH: Message Data High

Pagina 717

7366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A39.8.19 CAN Message Control RegisterName: CAN_MCRxAccess Type: Write-only • MDLC: Mailbox Data Lengt

Pagina 718

7376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• MACR: Abort Request for Mailbox x It is possible to set MACR field for several mailboxes in the sam

Pagina 719

7386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 720

7396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40. Pulse Width Modulation (PWM) Controller 40.1 DescriptionThe PWM macrocell controls several channe

Pagina 721

746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 14-1. Boot Program Algorithm Flow DiagramTimeout < 1 sCharacter(s) receivedon DBGU ?Run SAM-

Pagina 722

7406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.3 I/O Lines DescriptionEach channel outputs one waveform on one external I/O line. 40.4 Product De

Pagina 723

7416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.5.1 PWM Clock GeneratorFigure 40-2. Functional View of the Clock Generator Block Diagram Caution:

Pagina 724

7426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AAfter a reset of the PWM controller, DIVA (DIVB) and PREA (PREB) in the PWM Mode regis-ter are set to

Pagina 725

7436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A or If the waveform is center aligned then the output waveform period depends on the counter source

Pagina 726

7446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AWhen left aligned, the internal channel counter increases up to CPRD and is reset. This endsthe perio

Pagina 727

7456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 40-5. Waveform PropertiesPWM_MCKxCHIDx(PWM_SR)Center AlignedCPRD(PWM_CPRDx)CDTY(PWM_CDTYx)PWM_

Pagina 728

7466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.5.3 PWM Controller Operations40.5.3.1 InitializationBefore enabling the output channel, this chann

Pagina 729

7476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 40-6. Synchronized Period or Duty Cycle Update To prevent overwriting the PWM_CUPDx by softwar

Pagina 730

7486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.5.3.4 InterruptsDepending on the interrupt mask in the PWM_IMR register, an interrupt is generated

Pagina 731

7496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.1 PWM Mode RegisterRegister Name: PWM_MRAccess Type: Read/Write• DIVA, DIVB: CLKA, CLKB Divide

Pagina 732

756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A14.3 Device InitializationInitialization follows the steps described below:1. Stack setup for ARM supe

Pagina 733

7506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.2 PWM Enable RegisterRegister Name: PWM_ENAAccess Type: Write-only• CHIDx: Channel ID0 = No ef

Pagina 734

7516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.4 PWM Status RegisterRegister Name: PWM_SRAccess Type: Read-only• CHIDx: Channel ID0 = PWM out

Pagina 735

7526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.5 PWM Interrupt Enable RegisterRegister Name: PWM_IERAccess Type: Write-only • CHIDx: Channel I

Pagina 736

7536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.7 PWM Interrupt Mask RegisterRegister Name: PWM_IMRAccess Type: Read-only • CHIDx: Channel ID.

Pagina 737

7546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.9 PWM Channel Mode RegisterRegister Name: PWM_CMRxAccess Type: Read/Write • CPRE: Channel Pre-

Pagina 738

7556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.10 PWM Channel Duty Cycle RegisterRegister Name: PWM_CDTYxAccess Type: Read/WriteOnly the first

Pagina 739

7566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.11 PWM Channel Period RegisterRegister Name: PWM_CPRDxAccess Type: Read/WriteOnly the first 16

Pagina 740

7576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A40.6.12 PWM Channel Counter RegisterRegister Name: PWM_CCNTxAccess Type: Read-only• CNT: Channel Co

Pagina 741

7586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 742

7596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41. MultiMedia Card Interface (MCI)41.1 DescriptionThe MultiMedia Card Interface (MCI) supports the M

Pagina 743

766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A14.4 DataFlash BootThe DataFlash Boot program searches for a valid application in the SPI DataFlash me

Pagina 744

7606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.2 Block DiagramFigure 41-1. Block Diagram Note: 1. When several MCI (x MCI) are embedded in a prod

Pagina 745

7616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.4 Pin Name List Notes: 1. I: Input, O: Output, PP: Push/Pull, OD: Open Drain.2. When several MCI

Pagina 746

7626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe MultiMedia Card communication is based on a 7-pin serial bus interface. It has three com-municati

Pagina 747

7636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe SD Memory Card bus includes the signals listed in Table 41-3. Notes: 1. I: input, O: output, PP:

Pagina 748

7646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ACard addressing is implemented using a session address assigned during the initializationphase by the

Pagina 749

7656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe command ALL_SEND_CID and the fields and values for the MCI_CMDR Control Registerare described in

Pagina 750

7666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 41-7. Command/Response Functional Flow Diagram Note: 1. If the command is SEND_OP_COND, the CR

Pagina 751

7676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AConsequent to MMC Specification 3.1, two types of multiple block read (or write) transactionsare defi

Pagina 752

7686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 41-8. Read Functional Flow Diagram Note: 1. It is assumed that this command has been correctly

Pagina 753

7696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.8.3 Write OperationIn write operation, the MCI Mode Register (MCI_MR) is used to define the paddin

Pagina 754

776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 14-5. Structure of the ARM Vector 614.4.2.1 ExampleAn example of valid vectors follows: 00 ea00

Pagina 755

7706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 41-9. Write Functional Flow Diagram Note: 1. It is assumed that this command has been correctl

Pagina 756

7716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe following flowchart shows how to manage a multiple write block transfer with the PDC(see Figure 4

Pagina 757

7726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 41-10. Multiple Write Functional Flow Diagram Note: 1. It is assumed that this command has bee

Pagina 758

7736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.9 SD/SDIO Card OperationsThe MultiMedia Card Interface allows processing of SD Memory (Secure Digi

Pagina 759

7746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10 MultiMedia Card Interface (MCI) User InterfaceNote: 1. The response register can be read by N a

Pagina 760

7756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.1 MCI Control RegisterName: MCI_CRAccess Type: Write-only• MCIEN: Multi-Media Interface Enable

Pagina 761

7766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.2 MCI Mode RegisterName: MCI_MRAccess Type: Read/write • CLKDIV: Clock DividerMultimedia Card I

Pagina 762

7776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.3 MCI Data Timeout RegisterName: MCI_DTORAccess Type: Read/write • DTOCYC: Data Timeout Cycle

Pagina 763

7786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.4 MCI SDCard/SDIO RegisterName: MCI_SDCR Access Type: Read/write • SDCSEL: SDCard/SDIO Slot• SD

Pagina 764

7796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.5 MCI Argument RegisterName: MCI_ARGRAccess Type: Read/write • ARG: Command Argument31 30 29 2

Pagina 765

786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 14-6. Serial DataFlash Download14.5 NANDFlash BootThe NANDFlash Boot program searches for a val

Pagina 766

7806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.6 MCI Command RegisterName: MCI_CMDRAccess Type: Write-only This register is write-protected w

Pagina 767

7816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = 64-cycle max latency • TRCMD: Transfer Command• TRDIR: Transfer Direction0 = Write1 = Read• TRTYP

Pagina 768

7826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.7 MCI Block RegisterName: MCI_BLKRAccess Type: Read/write • BCNT: MMC/SDIO Block Count - SDIO

Pagina 769

7836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.8 MCI Response RegisterName: MCI_RSPRAccess Type: Read-only • RSP: ResponseNote: 1. The respon

Pagina 770

7846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.9 MCI Receive Data RegisterName: MCI_RDRAccess Type: Read-only • DATA: Data to Read41.10.10 MC

Pagina 771

7856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.11 MCI Status RegisterName: MCI_SRAccess Type: Read-only • CMDRDY: Command Ready0 = A command i

Pagina 772

7866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = The Receive Counter Register has reached 0 since the last write in MCI_RCR or MCI_RNCR.• ENDTX: E

Pagina 773

7876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• SDIOIRQA: SDIO Interrupt for Slot A0 = No interrupt detected on SDIO Slot A.1 = A SDIO Interrupt on

Pagina 774

7886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.12 MCI Interrupt Enable RegisterName: MCI_IERAccess Type: Write-only • CMDRDY: Command Ready In

Pagina 775

7896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.13 MCI Interrupt Disable RegisterName: MCI_IDRAccess Type: Write-only • CMDRDY: Command Ready I

Pagina 776

796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A14.5.1 Supported NANDFlash DevicesAny 8 or 16-bit NANDFlash Devices from 1 Mbit to 16 Gbit density.14.

Pagina 777

7906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A41.10.14 MCI Interrupt Mask RegisterName: MCI_IMRAccess Type: Read-only• CMDRDY: Command Ready Interr

Pagina 778

7916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42. 10/100 Ethernet MAC (EMAC)42.1 DescriptionThe EMAC module implements a 10/100 Ethernet MAC compat

Pagina 779

7926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3 Functional DescriptionThe MACB has several clock domains:• System bus clock (AHB and APB):

Pagina 780

7936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3.1.1 FIFOThe FIFO depths are 28 bytes and 28 bytes and area function of the system clock speed, m

Pagina 781

7946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATo receive frames, the buffer descriptors must be initialized by writing an appropriate address tobit

Pagina 782

7956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Abest to write the pointer register with the least three significant bits set to zero. As receive buff

Pagina 783

7966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Athe control word is read if transmission is to happen. It is written to one when a frame has beentran

Pagina 784

7976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3.2 Transmit BlockThis block transmits frames in accordance with the Ethernet IEEE 802.3 CSMA/CD p

Pagina 785

7986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3.3 Pause Frame SupportThe start of an 802.3 pause frame is as follows:The network configuration r

Pagina 786

7996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3.5 Address Checking BlockThe address checking (or filter) block indicates to the DMA block which

Pagina 787

86264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ASCKx USARTx Serial Clock I/OTXDx USARTx Transmit Data I/ORXDx USARTx Receive Data InputRTSx USARTx Requ

Pagina 788

806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Output: The byte, halfword or word read in hexadecimal following by ‘>’• Send a file (S): Send a

Pagina 789

8006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe sequence above shows the beginning of an Ethernet frame. Byte order of transmission isfrom top to

Pagina 790

8016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Arx_er asserted during reception are discarded and all others are received. Frames with FCSerrors are

Pagina 791

8026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.3.12 Media Independent InterfaceThe Ethernet MAC is capable of interfacing to both RMII and MII In

Pagina 792

8036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.4 Programming Interface42.4.1 Initialization42.4.1.1 ConfigurationInitialization of the EMAC confi

Pagina 793

8046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.4.1.3 Transmit Buffer ListTransmit data is read from areas of data (the buffers) in system memory

Pagina 794

8056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A8. Write to the transmit start bit in the network control register.42.4.1.7 Receiving FramesWhen a fr

Pagina 795

8066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5 10/100 Ethernet MAC (EMAC) User InterfaceTable 42-6. 10/100 Ethernet MAC (EMAC) Register Mapping

Pagina 796

8076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0x90 Hash Register Bottom [31:0] Register EMAC_HRB Read/Write 0x0000_00000x94 Hash Register Top [63:3

Pagina 797

8086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.1 Network Control RegisterRegister Name: EMAC_NCRAccess Type: Read/Write• LB: LoopBackAsserts th

Pagina 798

8096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• TSTART: Start transmission Writing one to this bit starts transmission.• THALT: Transmit haltWritin

Pagina 799

816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 14-7. Xmodem Transfer Example 14.6.3 USB Device PortA 48 MHz USB clock is necessary to use the

Pagina 800

8106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.2 Network Configuration RegisterRegister Name: EMAC_NCFGRAccess Type: Read/Write• SPD: SpeedSet

Pagina 801

8116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CLK: MDC clock dividerSet according to system clock speed. This determines by what number system cl

Pagina 802

8126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.3 Network Status RegisterRegister Name: EMAC_NSRAccess Type: Read-only•MDIOReturns status of the

Pagina 803

8136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.4 Transmit Status RegisterRegister Name: EMAC_TSRAccess Type: Read/WriteThis register, when read

Pagina 804

8146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.5 Receive Buffer Queue Pointer RegisterRegister Name: EMAC_RBQPAccess Type: Read/WriteThis regis

Pagina 805

8156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.6 Transmit Buffer Queue Pointer RegisterRegister Name: EMAC_TBQPAccess Type: Read/WriteThis regi

Pagina 806

8166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.7 Receive Status RegisterRegister Name: EMAC_RSRAccess Type: Read/WriteThis register, when read,

Pagina 807

8176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.8 Interrupt Status RegisterRegister Name: EMAC_ISRAccess Type: Read/Write• MFD: Management Frame

Pagina 808

8186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.9 Interrupt Enable RegisterRegister Name: EMAC_IERAccess Type: Write-only• MFD: Management Frame

Pagina 809

8196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.10 Interrupt Disable RegisterRegister Name: EMAC_IDRAccess Type: Write-only• MFD: Management Fra

Pagina 810

826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe device also handles some class requests defined in the CDC class.Unhandled requests are STALLed.14

Pagina 811

8206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.11 Interrupt Mask RegisterRegister Name: EMAC_IMRAccess Type: Read-only• MFD: Management Frame s

Pagina 812

8216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.12 PHY Maintenance RegisterRegister Name: EMAC_MANAccess Type: Read/Write•DATAFor a write operat

Pagina 813

8226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.13 Pause Time RegisterRegister Name: EMAC_PTRAccess Type: Read/Write• PTIME: Pause TimeStores th

Pagina 814

8236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.14 Hash Register BottomRegister Name: EMAC_HRBAccess Type: Read/Write• ADDR:Bits 31:0 of the has

Pagina 815

8246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.16 Specific Address 1 Bottom RegisterRegister Name: EMAC_SA1BAccess Type: Read/Write• ADDRLeast

Pagina 816

8256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.18 Specific Address 2 Bottom RegisterRegister Name: EMAC_SA2BAccess Type: Read/Write• ADDRLeast

Pagina 817

8266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.20 Specific Address 3 Bottom RegisterRegister Name: EMAC_SA3BAccess Type: Read/Write• ADDRLeast

Pagina 818

8276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.22 Specific Address 4 Bottom RegisterRegister Name: EMAC_SA4BAccess Type: Read/Write• ADDRLeast

Pagina 819

8286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.24 Type ID Checking RegisterRegister Name: EMAC_TIDAccess Type: Read/Write• TID: Type ID checkin

Pagina 820

8296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.25 User Input/Output RegisterRegister Name: EMAC_USRIOAccess Type: Read/Write•RMIIWhen set, this

Pagina 821

836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ABefore performing the jump to the application in internal SRAM, all the PIOs and peripheralsused in th

Pagina 822

8306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26 EMAC Statistic RegistersThese registers reset to zero on a read and stick at all ones when th

Pagina 823

8316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.3 Single Collision Frames RegisterRegister Name: EMAC_SCFAccess Type: Read/Write• SCF: Single

Pagina 824

8326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.5 Frames Received OK RegisterRegister Name: EMAC_FROAccess Type: Read/Write• FROK: Frames Rec

Pagina 825

8336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.7 Alignment Errors RegisterRegister Name: EMAC_ALEAccess Type: Read/Write• ALE: Alignment Err

Pagina 826

8346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.9 Late Collisions RegisterRegister Name: EMAC_LCOLAccess Type: Read/Write• LCOL: Late Collisi

Pagina 827

8356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.11 Transmit Underrun Errors RegisterRegister Name: EMAC_TUNDAccess Type: Read/Write• TUND: Tr

Pagina 828

8366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.13 Receive Resource Errors RegisterRegister Name: EMAC_RREAccess Type: Read/Write• RRE: Recei

Pagina 829

8376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.15 Receive Symbol Errors RegisterRegister Name: EMAC_RSEAccess Type: Read/Write• RSE: Receive

Pagina 830

8386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.17 Receive Jabbers RegisterRegister Name: EMAC_RJAAccess Type: Read/Write• RJB: Receive Jabbe

Pagina 831

8396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.19 SQE Test Errors RegisterRegister Name: EMAC_STEAccess Type: Read/Write• SQER: SQE test err

Pagina 832

846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 833

8406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 834

8416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A43. USB Host Port (UHP)43.1 DescriptionThe USB Host Port (UHP) interfaces the USB with the host appli

Pagina 835

8426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AMemory access errors (abort, misalignment) lead to an “UnrecoverableError” indicated by thecorrespond

Pagina 836

8436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 43-2. USB Host Communication Channels43.4.2 Host Controller DriverFigure 43-3. USB Host Driver

Pagina 837

8446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• USB Bus driver and hub driver: Handles USB commands and enumeration. Offers a hardware independent

Pagina 838

8456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A43.5 Typical ConnectionFigure 43-4. Board Schematic to Interface UHP Device ControllerA termination s

Pagina 839

8466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 840

8476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44. USB High Speed Device Port (UDPHS)44.1 DescriptionThe USB High Speed Device Port (UDPHS) is compl

Pagina 841

8486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.2 Block DiagramFigure 44-1. Block Diagram: 32 bitsSystem ClockDomainUSB ClockDomainctrlstatusRd/Wr

Pagina 842

8496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.3 Typical ConnectionFigure 44-2. Board Schematic Note: The values shown on the 22 kΩ and 15 kΩ res

Pagina 843

856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15. Reset Controller (RSTC)15.1 DescriptionThe Reset Controller (RSTC), based on power-on reset cells,

Pagina 844

8506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A 44.4.3 USB Transfer Event DefinitionsA transfer is composed of one or several transactions;Notes: 1.

Pagina 845

8516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-3. Control Read and Write SequencesA status IN or OUT transaction is identical to a data IN

Pagina 846

8526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A+ NB_BANK_EPT1 x SIZE_EPT1+ NB_BANK_EPT2 x SIZE_EPT2+ NB_BANK_EPT3 x SIZE_EPT3+ NB_BANK_EPT4 x SIZE_E

Pagina 847

8536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– EPT_ENABL: Enable endpoint.Configuration examples of Bulk OUT endpoint type follow below.•With DMA–

Pagina 848

8546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.6 Transfer With DMAUSB packets of any length may be transferred when required by the UDPHS Devic

Pagina 849

8556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.7 Transfer Without DMAImportant. If the DMA is not to be used, it is neccessary that it be disab

Pagina 850

8566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThus, firmware must detect RX_SETUP polling UDPHS_EPTSTAx or catching an interrupt, readthe setup pac

Pagina 851

8576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA simple algorithm can be used by the application to send packets regardless of the number ofbanks as

Pagina 852

8586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– Size of buffer to send: size of the buffer to be sent to the host.– END_B_EN: The endpoint can vali

Pagina 853

8596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-7. Data IN Transfer for Endpoint with One Bank Figure 44-8. Data IN Transfer for Endpoint w

Pagina 854

866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe startup counter waits for the complete crystal oscillator startup. The wait delay is given bythe c

Pagina 855

8606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-9. Data IN Followed By Status OUT Transfer at the End of a Control TransferNote: A NAK hand

Pagina 856

8616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-11. Autovalid with DMANote: In the illustration above Autovalid validates a bank as full, a

Pagina 857

8626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Athe required number of packets per microframe, otherwise, the host will notice a sequencingproblem.A

Pagina 858

8636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ERR_FL_ISO + ERR_FLUSH + ERR_TRANS: The first token IN has been treated, the data for the second To

Pagina 859

8646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– END_BUFFIT: Generate an interrupt when BUFF_COUNT in the UDPHS_DMASTATUSx register reaches 0.– END_

Pagina 860

8656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-13. Data OUT Transfer for an Endpoint with Two Banks44.4.8.13 High Bandwidth Isochronous En

Pagina 861

8666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AExample: • If NB_TRANS = 3, the sequence should be either–MData0 – MData0/Data1 – MData0/Data1/Data2•

Pagina 862

8676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.8.15 STALLSTALL is returned by a function in response to an IN token or after the data phase of

Pagina 863

8686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.9 Speed IdentificationThe high speed reset is managed by the hardware.At the connection, the hos

Pagina 864

8696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-17. UDPHS Interrupt Control InterfaceDET_SUSPDMICRO_SOFIEN_SOFENDRESETWAKE_UPENDOFRSMUPSTR_

Pagina 865

876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AAs the field is within RSTC_MR, which is backed-up, this field can be used to shape the systempower-up

Pagina 866

8706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.12 Power Modes44.4.12.1 Controlling Device States A USB device has several possible states. Refe

Pagina 867

8716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.12.2 Not Powered StateSelf powered devices can detect 5V VBUS using a PIO. When the device is no

Pagina 868

8726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.12.7 Entering Suspend State (Bus Activity)When a Suspend (no bus activity on the USB bus) is det

Pagina 869

8736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.13 Test ModeA device must support the TEST_MODE feature when in the Default, Address or Configur

Pagina 870

8746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5 USB High Speed Device Port (UDPHS) User InterfaceNotes: 1. The reset value for UDPHS_EPTCTL0 is

Pagina 871

8756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.1 UDPHS Control RegisterName: UDPHS_CTRLAccess Type: Read/Write• DEV_ADDR: UDPHS AddressRead:Thi

Pagina 872

8766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = UDPHS is attached.1 = UDPHS is detached, UTMI transceiver is suspended.Write:0 = pull up the DP l

Pagina 873

8776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.2 UDPHS Frame Number RegisterName: UDPHS_FNUMAccess Type: Read • MICRO_FRAME_NUM: Microframe Num

Pagina 874

8786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.3 UDPHS Interrupt Enable RegisterName: UDPHS_IENAccess Type: Read/Write • DET_SUSPD: Suspend Int

Pagina 875

8796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ENDRESET: End Of Reset Interrupt EnableRead:0 = End Of Reset Interrupt is disabled.1 = End Of Reset

Pagina 876

886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 15-4. General Reset StateSLCKperiph_nresetproc_nresetBackup SupplyPOR outputNRST(nrst_out)EXTER

Pagina 877

8806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = enable the interrupts for this endpoint.• DMA_INT_x: DMA Channel x Interrupt EnableRead:0 = the i

Pagina 878

8816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.4 UDPHS Interrupt Status RegisterName: UDPHS_INTSTAAccess Type: Read-only• SPEED: Speed Status0

Pagina 879

8826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• WAKE_UP: Wake Up CPU Interrupt0 = cleared by setting the WAKE_UP bit in UDPHS_CLRINT.1 = set by har

Pagina 880

8836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.5 UDPHS Clear Interrupt RegisterName: UDPHS_CLRINTAccess Type: Write only• DET_SUSPD: Suspend In

Pagina 881

8846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.6 UDPHS Endpoints Reset RegisterName: UDPHS_EPTRSTAccess Type: Write only• EPT_x: Endpoint x Res

Pagina 882

8856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.7 UDPHS Test RegisterName: UDPHS_TSTAccess Type: Read/Write • SPEED_CFG: Speed ConfigurationRead

Pagina 883

8866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = no effect.1 = set to force the OpMode signal (UTMI interface) to “10”, to disable the bit-stuffin

Pagina 884

8876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.8 UDPHS Endpoint Configuration RegisterName: UDPHS_EPTCFGx [x=0..7]Access Type: Read/Write •

Pagina 885

8886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A:Endpoint Type• BK_NUMBER: Number of BanksRead and write:Set this field according to the endpoint’s n

Pagina 886

8896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.9 UDPHS Endpoint Control Enable RegisterName: UDPHS_EPTCTLENBx [x=0..7]Access Type: Write-onl

Pagina 887

896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.3.4.2 Wake-up ResetThe Wake-up Reset occurs when the Main Supply is down. When the Main Supply POR

Pagina 888

8906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = enable Overflow Error Interrupt.• RX_BK_RDY: Received OUT Data Interrupt Enable0 = no effect.1 =

Pagina 889

8916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.10 UDPHS Endpoint Control Disable RegisterName: UDPHS_EPTCTLDISx [x=0..7]Access Type: Write-o

Pagina 890

8926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = disable Overflow Error Interrupt.• RX_BK_RDY: Received OUT Data Interrupt Disable0 = no effect.1

Pagina 891

8936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.11 UDPHS Endpoint Control RegisterName: UDPHS_EPTCTLx [x=0..7]Access Type: Read-only • EPT_EN

Pagina 892

8946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis may be used, for example, to identify or prevent an erroneous packet to be transferred into a bu

Pagina 893

8956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = Stall Sent/ISO CRC error/number of Transaction Error Interrupt is masked.1 = Stall Sent /ISO CRC

Pagina 894

8966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.12 UDPHS Endpoint Set Status RegisterName: UDPHS_EPTSETSTAx [x=0..7]Access Type: Write-only

Pagina 895

8976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.13 UDPHS Endpoint Clear Status RegisterName: UDPHS_EPTCLRSTAx [x=0..7]Access Type: Write-only

Pagina 896

8986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• NAK_OUT: NAKOUT Clear0 = no effect.1 = clear the NAK_OUT flag of UDPHS_EPTSTAx.

Pagina 897

8996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.14 UDPHS Endpoint Status RegisterName: UDPHS_EPTSTAx [x=0..7]Access Type: Read-only • FRCEST

Pagina 898

96264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ALCD Controller - LCDCLCDD0 - LCDD23 LCD Data Bus InputLCDVSYNC LCD Vertical Synchronization OutputLCDHS

Pagina 899

906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.3.4.3 User ResetThe User Reset is entered when a low level is detected on the NRST pin and the bit

Pagina 900

9006264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ERR_OVFLW: Overflow ErrorThis bit is set by hardware when a new too-long packet is received. Exampl

Pagina 901

9016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf one toggle sequencing problem occurs among the n-transactions (n = 1, 2 or 3) inside a microframe,

Pagina 902

9026264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis bit is set when flushing unsent banks at the end of a microframe.This bit is reset by UDPHS_EPTR

Pagina 903

9036264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThis field is also updated at TX_PK_RDY flag set with the next bank.This field is reset by EPT_x of U

Pagina 904

9046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.15 UDPHS DMA Channel Transfer DescriptorThe DMA channel transfer descriptor is loaded from the m

Pagina 905

9056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.16 UDPHS DMA Next Descriptor Address RegisterName: UDPHS_DMANXTDSCx [x = 1..6]Access Type: R

Pagina 906

9066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.17 UDPHS DMA Channel Address RegisterName: UDPHS_DMAADDRESSx [x = 1..6]Access Type: Read/Writ

Pagina 907

9076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.18 UDPHS DMA Channel Control RegisterName: UDPHS_DMACONTROLx [x = 1..6]Access Type: Read/Writ

Pagina 908

9086264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• END_TR_EN: End of Transfer Enable (Control)Used for OUT transfers only.0 = USB end of transfer is i

Pagina 909

9096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.19 UDPHS DMA Channel Status RegisterName: UDPHS_DMASTATUSx [x = 1..6]Access Type: Read/Write•

Pagina 910

916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.3.4.4 Software ResetThe Reset Controller offers several commands used to assert the different reset

Pagina 911

9106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = cleared automatically when read by software.1 = set by hardware when a descriptor has been loaded

Pagina 912

9116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45. Image Sensor Interface (ISI)45.1 OverviewThe Image Sensor Interface (ISI) connects a CMOS-type im

Pagina 913

9126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.2 Block DiagramFigure 45-2. Image Sensor Interface Block Diagram45.3 Functional DescriptionThe Ima

Pagina 914

9136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.1 Data TimingThe two data timings using horizontal and vertical synchronization and EAV/SAV sequ

Pagina 915

9146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.2 Data OrderingThe RGB color space format is required for viewing images on a display screen pre

Pagina 916

9156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe RGB 5:6:5 input format is processed to be displayed as RGB 5:5:5 format, compliant withthe 16-bit

Pagina 917

9166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.4 Preview Path45.3.4.1 Scaling, Decimation (Subsampling)This module resizes captured 8-bit color

Pagina 918

9176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 45-5. Resize Examples 45.3.4.2 Color Space ConversionThis module converts YCrCb or YUV pixels

Pagina 919

9186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.4.3 Memory InterfacePreview datapath contains a data formatter that converts 8:8:8 pixel to RGB

Pagina 920

9196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 45-6. Three Frame Buffers Application and Memory Mapping 45.3.5 Codec Path45.3.5.1 Color Space

Pagina 921

926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 15-7. Software ResetSLCKperiph_nresetif PERRST=1proc_nresetif PROCRST=1Write RSTC_CRNRST(nrst_o

Pagina 922

9206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.5.2 Memory InterfaceDedicated FIFO are used to support packed memory mapping. YCrCb pixel compon

Pagina 923

9216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4 Image Sensor Interface (ISI) User InterfaceNote: Several parts of the ISI controller use the pix

Pagina 924

9226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.1 ISI Control 1 RegisterRegister Name: ISI_CR1Access Type: Read/WriteReset Value: 0x00000002• IS

Pagina 925

9236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1: CRC correction is performed. if the correction is not possible, the current frame is discarded and

Pagina 926

9246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.2 ISI Control 2 RegisterRegister Name: ISI_CR2Access Type: Read/WriteReset Value: 0x0 • IM_VSIZE

Pagina 927

9256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• YCC_SWAP: Defines the YCC image data• RGB_CFG: Defines RGB pattern when RGB_MODE is set to 1If RGB_

Pagina 928

9266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.3 ISI Status RegisterRegister Name: ISI_SRAccess Type: ReadReset Value: 0x0• SOF: Start of frame

Pagina 929

9276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0: No overflow1: An overrun condition has occurred in input FIFO on the preview path. The overrun hap

Pagina 930

9286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.4 Interrupt Enable RegisterRegister Name: ISI_IERAccess Type: Read/WriteReset Value: 0x0• SOF: S

Pagina 931

9296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.5 ISI Interrupt Disable RegisterRegister Name: ISI_IDRAccess Type: Read/WriteReset Value: 0x0• S

Pagina 932

936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.3.4.5 Watchdog ResetThe Watchdog Reset is entered when a watchdog fault occurs. This state lasts Y

Pagina 933

9306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.6 ISI Interrupt Mask RegisterRegister Name: ISI_IMRAccess Type: Read/WriteReset Value: 0x0• SOF:

Pagina 934

9316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0: The codec FIFO empty interrupt is disabled.1: The codec FIFO empty interrupt is enabled.•FR_OVR: F

Pagina 935

9326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.7 ISI Preview RegisterRegister Name: ISI_PSIZEAccess Type: Read/WriteReset Value: 0x0 • PREV_VSI

Pagina 936

9336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.8 ISI Preview Decimation Factor RegisterRegister Name: ISI_PDECFAccess Type: Read/WriteReset Val

Pagina 937

9346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.9 ISI Preview Primary FBD RegisterRegister Name: ISI_PPFBDAccess Type: Read/WriteReset Value: 0x

Pagina 938

9356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.10 ISI Codec DMA Base Address RegisterRegister Name: ISI_CDBAAccess Type: Read/WriteReset Value:

Pagina 939

9366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.11 ISI Color Space Conversion YCrCb to RGB Set 0 RegisterRegister Name: ISI_Y2R_SET0Access Type:

Pagina 940

9376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.12 ISI Color Space Conversion YCrCb to RGB Set 1 RegisterRegister Name: ISI_Y2R_SET1Access Type:

Pagina 941

9386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.13 ISI Color Space Conversion RGB to YCrCb Set 0 RegisterRegister Name: ISI_R2Y_SET0Access Type:

Pagina 942

9396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.14 ISI Color Space Conversion RGB to YCrCb Set 1 RegisterRegister Name: ISI_R2Y_SET1Access Type:

Pagina 943

946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• When in User Reset: – A watchdog event is impossible because the Watchdog Timer is being reset by th

Pagina 944

9406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.15 ISI Color Space Conversion RGB to YCrCb Set 2 RegisterRegister Name: ISI_R2Y_SET2Access Type:

Pagina 945

9416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46. Analog-to-Digital Converter (ADC)46.1 DescriptionThe ADC is based on a Successive Approximation R

Pagina 946

9426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.3 Signal Description 46.4 Product Dependencies46.4.1 Power ManagementThe ADC is automatically cloc

Pagina 947

9436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5 Functional Description46.5.1 Analog-to-digital ConversionThe ADC uses the ADC Clock to perform c

Pagina 948

9446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5.4 Conversion ResultsWhen a conversion is completed, the resulting 10-bit digital value is stored

Pagina 949

9456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf the ADC_CDR is not read before further incoming data is converted, the corresponding Over-run Erro

Pagina 950

9466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5.5 Conversion TriggersConversions of the active analog channels are started with a software or a

Pagina 951

9476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5.7 ADC TimingsEach ADC has its own minimal Startup Time that is programmed through the field STAR

Pagina 952

9486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6 Analog-to-digital Converter (ADC) User InterfaceTable 46-2. ADC Register MappingOffset Register

Pagina 953

9496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.1 ADC Control Register Register Name: ADC_CRAccess Type: Write-only • SWRST: Software Reset0 = N

Pagina 954

956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4 Reset Controller (RSTC) User InterfaceNote: 1. The reset value of RSTC_SR either reports a Genera

Pagina 955

9506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.2 ADC Mode RegisterRegister Name: ADC_MRAccess Type: Read/Write• TRGEN: Trigger Enable • TRGSEL

Pagina 956

9516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• PRESCAL: Prescaler Rate Selection ADCClock = MCK / ( (PRESCAL+1) * 2 )• STARTUP: Start Up TimeStart

Pagina 957

9526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.3 ADC Channel Enable Register Register Name: ADC_CHERAccess Type: Write-only • CHx: Channel x E

Pagina 958

9536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.5 ADC Channel Status Register Register Name: ADC_CHSRAccess Type: Read-only • CHx: Channel x Sta

Pagina 959

9546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.6 ADC Status Register Register Name: ADC_SRAccess Type: Read-only • EOCx: End of Conversion x0

Pagina 960

9556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.7 ADC Last Converted Data RegisterRegister Name: ADC_LCDRAccess Type: Read-only • LDATA: Last Da

Pagina 961

9566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.9 ADC Interrupt Disable Register Register Name: ADC_IDRAccess Type: Write-only • EOCx: End of C

Pagina 962

9576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.10 ADC Interrupt Mask Register Register Name: ADC_IMRAccess Type: Read-only • EOCx: End of Conv

Pagina 963

9586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.11 ADC Channel Data RegisterRegister Name: ADC_CDRxAccess Type: Read-only• DATA: Converted DataT

Pagina 964

9596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47. AT91CAP9 Electrical Characteristics47.1 Absolute Maximum Ratings47.2 DC CharacteristicsThe follow

Pagina 965

966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.1 Reset Controller Control RegisterRegister Name: RSTC_CRAccess Type: Write-only• PROCRST: Proces

Pagina 966

9606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.3 Power ConsumptionThis section contains:• The typical power consumption of PLLs, Slow Clock and M

Pagina 967

9616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable 47-3. Power Consumption for different Modes(1)Mode Conditions Consumption UnitActiveARM Core cl

Pagina 968

9626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.4 32 kHz Crystal Oscillator CharacteristicsThe following characteristics are applicable to the ope

Pagina 969

9636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.5 12 MHz Main Oscillator CharacteristicsThe following characteristics are applicable to the operat

Pagina 970

9646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANote: These characteristics apply only when Main Oscillator is in Bypass Mode (i.e., when MOSCEN = 0

Pagina 971

9656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.8 USB HS CharacteristicsThe following characteristics are applicable to the operating temperature

Pagina 972

9666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.8.3 Dynamic Power ConsumptionNote: 1. Including 1mA due to Pull-up/Pull-down current consumption.T

Pagina 973

9676264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.9 ADC Notes: 1. Corresponds to 13 clock cycles at 5 MHz: 3 clock cycles for track and hold acquisi

Pagina 974

9686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10 Timings47.10.1 Corner Definition Timings in MAX corner always result from the extraction and co

Pagina 975

9696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.4 SMC Timings47.10.4.1 CapacitanceTimings are given assuming a capacitance load on data, contro

Pagina 976

976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.2 Reset Controller Status RegisterRegister Name: RSTC_SRAccess Type: Read-only• URSTS: User Reset

Pagina 977

9706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.4.3 Write Timings Notes: 1. hold length = total cycle duration - setup duration - pulse duratio

Pagina 978

9716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-3. SMC Timings - NCS Controlled Read and WriteSMC25NWE low before NCS high(ncs wr setup - n

Pagina 979

9726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-4. SMC Timings - NRD Controlled Read and NWE Controlled Write NRDNCSD0 - D31NWEA0/A1/NBS[3:

Pagina 980

9736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.5 SDRAMC TimingsThe SDRAM Controller satisfies the timings of standard SDRAM modules (SDRAM or

Pagina 981

9746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-5. SDRAMC TimingsThe timings of the SDRAM controller support the use of PC100, PC133 (3.3V

Pagina 982

9756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANotes: 1. Control is the set of following timings : A0-A9, A11-A13, SDCKE, SDCS, RAS, CAS, SDA10, BAx

Pagina 983

9766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.6 DDR SDRAMC TimingsThe DDR SDRAM controller satisfies the timings of standard Mobile SDRAM, ti

Pagina 984

9776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-6. DDRSDRC Timings The timings of the DDR SDRAM controller support the use of LPDDR200 Doub

Pagina 985

9786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.7 SPIFigure 47-7. SPI Master Mode with (CPOL = NCPHA = 0) or (CPOL= NCPHA= 1) Figure 47-8. SPI

Pagina 986

9796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-10. SPI Slave Mode with (CPOL = NCPHA = 0) or (CPOL= NCPHA= 1) Notes: 1. Cload is 8pF for M

Pagina 987

986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.3 Reset Controller Mode RegisterRegister Name: RSTC_MRAccess Type: Read/Write• URSTEN: User Reset

Pagina 988

9806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.8 ISI TimingsFigure 47-11. ISI Timing Diagram Table 47-37. ISI Timings with Peripheral Supply 3

Pagina 989

9816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.9 MCI TimingsThe PDC interface block controls all data routing between the external data bus, i

Pagina 990

9826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AMCI2Input hold time TBD nsMCI3Input setup time TBD nsMCI4Output change after CLK rising TBD nsMCI5Out

Pagina 991

9836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.10 UDP TimingsFigure 47-13. USB Data Signal Rise and Fall Times orFigure 47-14. USB Data Signal

Pagina 992

9846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.11 EMAC TimingsThe Ethernet controller satisfies the timings of standard given in Table 47-45 a

Pagina 993

9856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-15. EMAC MII Mode EMDCEMDIOECOLECRSETXCKETXERETXENETX[3:0]ERXCKERX[3:0]ERXERERXDVEMAC3EMAC1

Pagina 994

9866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.11.2 RMII Mode Figure 47-16. EMAC RMII Timings Table 47-47. RMII ModeSymbol Parameter Min (ns)

Pagina 995

9876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.12 AC97 TimingsFigure 47-17. Data Setup and Hold Table 47-48. AC97 Data Setup and HoldSymbol Pa

Pagina 996

9886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48. AT91CAP9 Mechanical Characteristics48.1 Thermal Considerations48.1.1 Thermal DataTable 48-1 summa

Pagina 997

9896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48.2 Package DrawingFigure 48-1. 400-ball LFBGA Package DrawingThis package respects the recommendati

Pagina 998

996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A16. Real-time Timer (RTT)16.1 OverviewThe Real-time Timer is built around a 32-bit counter and used to

Pagina 999

9906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48.3 Soldering ProfileTable 48-6 gives the recommended soldering profile from J-STD-020C.Note: It is

Pagina 1000

9916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A49. AT91CAP9 Ordering Information Table 49-1. AT91CAP9 Ordering InformationOrdering Code Package Pack

Pagina 1001

9926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 1002

9936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A50. AT91CAP9 Errata50.1 MarkingAll devices are marked with the Atmel logo and the ordering code.Addit

Pagina 1003

9946264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 1004

9956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A51. Revision HistoryTable 51-1.Revision CommentsChange Request Ref.6264A First issue.

Pagina 1005

9966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A

Pagina 1006

i6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable of ContentsFeatures ...

Pagina 1007

ii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.2 Reset Controller ......

Pagina 1008 - International

iii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13.5 Functional Description ..................

Comentarios a estos manuales

Sin comentarios