Rainbow-electronics AT91CAP9S250A Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Sensoren Rainbow-electronics AT91CAP9S250A herunter. Rainbow Electronics AT91CAP9S250A User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 100
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 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
Seitenansicht 0
1 2 3 4 5 6 ... 99 100

Inhaltsverzeichnis

Seite 1 - Features

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

Seite 2

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

Seite 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

Seite 4

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

Seite 5

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

Seite 6

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

Seite 7

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

Seite 8

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

Seite 9

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

Seite 10 - AT91CAP9S500A/AT91CAP9S250A

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

Seite 11

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

Seite 12

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

Seite 13

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

Seite 14

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

Seite 15

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

Seite 16

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

Seite 17

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

Seite 18

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

Seite 19

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

Seite 20

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

Seite 21

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

Seite 22

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

Seite 23

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

Seite 24

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

Seite 25

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

Seite 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

Seite 27

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

Seite 28

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

Seite 29

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

Seite 30

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

Seite 31

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

Seite 32

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

Seite 33

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

Seite 34

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

Seite 35

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

Seite 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

Seite 37

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

Seite 38

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

Seite 39

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

Seite 40

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

Seite 41

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

Seite 42

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

Seite 43

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

Seite 44

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

Seite 45

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

Seite 46

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

Seite 47

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

Seite 48

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

Seite 49

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

Seite 50

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

Seite 51

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

Seite 52

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

Seite 53

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

Seite 54

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

Seite 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

Seite 56

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

Seite 57

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

Seite 58

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

Seite 59

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

Seite 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]

Seite 61

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

Seite 62

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

Seite 63

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

Seite 64

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

Seite 65

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

Seite 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

Seite 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

Seite 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

Seite 69

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

Seite 70

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

Seite 71

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

Seite 72

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

Seite 73

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

Seite 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

Seite 75

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

Seite 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

Seite 77

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

Seite 78

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

Seite 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

Seite 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

Seite 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

Seite 82

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

Seite 83

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

Seite 84

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

Seite 85

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

Seite 86

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

Seite 87

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

Seite 88

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

Seite 89

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 103

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 109

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

Seite 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

Seite 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

Seite 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

Seite 113

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

Seite 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

Seite 115

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

Seite 116

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

Seite 117

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

Seite 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

Seite 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/

Seite 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

Seite 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

Seite 122

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

Seite 123

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

Seite 124

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

Seite 125

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

Seite 126

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

Seite 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

Seite 128

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 133

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

Seite 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

Seite 135

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

Seite 136

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

Seite 137

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

Seite 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

Seite 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

Seite 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

Seite 141

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

Seite 142

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

Seite 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

Seite 144

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

Seite 145

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

Seite 146

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

Seite 147

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

Seite 148

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

Seite 149

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

Seite 150

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 155

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

Seite 156

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

Seite 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

Seite 158

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

Seite 159

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

Seite 160

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

Seite 161

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

Seite 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

Seite 163

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

Seite 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

Seite 165

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

Seite 166

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

Seite 167

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

Seite 168

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

Seite 169

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

Seite 170

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

Seite 171

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

Seite 172

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

Seite 173

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

Seite 174

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

Seite 175

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

Seite 176

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

Seite 177

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

Seite 178

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

Seite 179

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

Seite 180

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

Seite 181

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

Seite 182

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

Seite 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

Seite 184

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

Seite 185

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

Seite 186

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

Seite 187

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

Seite 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

Seite 189

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

Seite 190

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

Seite 191

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

Seite 192

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

Seite 193

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

Seite 194

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

Seite 195

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

Seite 196 - Write cycle

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 202

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

Seite 203

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

Seite 204

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

Seite 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

Seite 206

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

Seite 207

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

Seite 208

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

Seite 209

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

Seite 210

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

Seite 211

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

Seite 212

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

Seite 213

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

Seite 214

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

Seite 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

Seite 216

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

Seite 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

Seite 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

Seite 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

Seite 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_

Seite 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

Seite 222

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

Seite 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

Seite 224

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

Seite 225

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

Seite 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

Seite 227

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

Seite 228

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

Seite 229

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

Seite 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

Seite 231

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

Seite 232

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

Seite 233

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

Seite 234

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

Seite 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

Seite 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

Seite 237

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

Seite 238

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

Seite 239

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

Seite 240

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

Seite 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

Seite 242

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

Seite 243

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

Seite 244

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

Seite 245

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

Seite 246

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

Seite 247

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

Seite 248

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

Seite 249

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

Seite 250

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

Seite 251

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

Seite 252

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

Seite 253

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

Seite 254

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

Seite 255

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

Seite 256

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

Seite 257

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

Seite 258

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

Seite 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

Seite 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

Seite 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/

Seite 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

Seite 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

Seite 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

Seite 265

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

Seite 266

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

Seite 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

Seite 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

Seite 269

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

Seite 270

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

Seite 271

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

Seite 272

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

Seite 273

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

Seite 274

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

Seite 275

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

Seite 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

Seite 277

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

Seite 278

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

Seite 279

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

Seite 280

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

Seite 281

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

Seite 282

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

Seite 283

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

Seite 284

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

Seite 285

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

Seite 286

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

Seite 287

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

Seite 288

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

Seite 289

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

Seite 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

Seite 291

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

Seite 292

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

Seite 293

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

Seite 294

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

Seite 295

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

Seite 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

Seite 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

Seite 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

Seite 299

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

Seite 300

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

Seite 301

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

Seite 302

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

Seite 303

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

Seite 304

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

Seite 305

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

Seite 306

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

Seite 307

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

Seite 308

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

Seite 309

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

Seite 310

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

Seite 311

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

Seite 312

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

Seite 313

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

Seite 314

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

Seite 315

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

Seite 316

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

Seite 317

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

Seite 318

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

Seite 319

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

Seite 320

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

Seite 321

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

Seite 322

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

Seite 323

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

Seite 324

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

Seite 325

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

Seite 326

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

Seite 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

Seite 328

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

Seite 329

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

Seite 330

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

Seite 331

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

Seite 332

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

Seite 333

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

Seite 334

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

Seite 335

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

Seite 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

Seite 337

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

Seite 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

Seite 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

Seite 340

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

Seite 341

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

Seite 342

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

Seite 343

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

Seite 344

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

Seite 345

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

Seite 346

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

Seite 347

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

Seite 348

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

Seite 349

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

Seite 350

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

Seite 351

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

Seite 352

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

Seite 353

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

Seite 354

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

Seite 355

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

Seite 356

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

Seite 357

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

Seite 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

Seite 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

Seite 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

Seite 361

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

Seite 362

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

Seite 363

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

Seite 364

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

Seite 365

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

Seite 366

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

Seite 367

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

Seite 368

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

Seite 369

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

Seite 370

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

Seite 371

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

Seite 372

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

Seite 373

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

Seite 374

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

Seite 375

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

Seite 376

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

Seite 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

Seite 378

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

Seite 379

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

Seite 380

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

Seite 381

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

Seite 382

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

Seite 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-

Seite 384

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

Seite 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

Seite 386

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

Seite 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

Seite 388

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

Seite 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

Seite 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

Seite 391

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

Seite 392

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

Seite 393

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

Seite 394

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

Seite 395

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

Seite 396

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

Seite 397

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

Seite 398

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

Seite 399

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

Seite 400

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

Seite 401

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

Seite 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

Seite 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 =

Seite 404

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

Seite 405

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

Seite 406

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

Seite 407

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

Seite 408

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

Seite 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

Seite 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

Seite 411

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

Seite 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

Seite 413

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

Seite 414

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

Seite 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

Seite 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

Seite 417

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

Seite 418

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

Seite 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

Seite 420

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

Seite 421

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

Seite 422

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

Seite 423

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

Seite 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

Seite 425

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

Seite 426

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

Seite 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

Seite 428

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

Seite 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

Seite 430

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

Seite 431

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

Seite 432

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

Seite 433

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

Seite 434

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

Seite 435

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

Seite 436

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

Seite 437

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

Seite 438

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

Seite 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

Seite 440

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

Seite 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

Seite 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

Seite 443

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

Seite 444

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

Seite 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

Seite 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

Seite 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,

Seite 448

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

Seite 449

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

Seite 450

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

Seite 451

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

Seite 452

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

Seite 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

Seite 454

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

Seite 455

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

Seite 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

Seite 457

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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 466

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

Seite 467

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

Seite 468

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

Seite 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

Seite 470

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

Seite 471

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

Seite 472

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

Seite 473

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

Seite 474

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

Seite 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

Seite 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

Seite 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

Seite 478

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

Seite 479

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

Seite 480

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

Seite 481

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

Seite 482

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

Seite 483

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

Seite 484

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

Seite 485

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

Seite 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

Seite 487

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

Seite 488

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

Seite 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

Seite 490

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

Seite 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

Seite 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

Seite 493

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

Seite 494

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

Seite 495

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

Seite 496

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

Seite 497

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

Seite 498

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

Seite 499

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

Seite 500

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

Seite 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

Seite 502

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

Seite 503

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

Seite 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

Seite 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

Seite 506

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

Seite 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

Seite 508

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

Seite 509

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

Seite 510

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

Seite 511

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

Seite 512

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

Seite 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

Seite 514

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

Seite 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

Seite 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

Seite 517

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

Seite 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

Seite 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

Seite 520

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

Seite 521

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

Seite 522

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

Seite 523

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

Seite 524

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

Seite 525

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

Seite 526

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

Seite 527

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

Seite 528

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

Seite 529

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

Seite 530

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

Seite 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

Seite 532

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

Seite 533

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

Seite 534

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

Seite 535

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

Seite 536

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

Seite 537

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

Seite 538

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

Seite 539

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

Seite 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.•

Seite 541

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

Seite 542

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

Seite 543

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

Seite 544

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

Seite 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

Seite 546

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

Seite 547

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

Seite 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

Seite 549

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

Seite 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

Seite 551

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

Seite 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

Seite 553

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

Seite 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

Seite 555

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

Seite 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,

Seite 557

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

Seite 558

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

Seite 559

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

Seite 560

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

Seite 561

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

Seite 562

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

Seite 563

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

Seite 564

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

Seite 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

Seite 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

Seite 567

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

Seite 568

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

Seite 569

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

Seite 570

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

Seite 571

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

Seite 572

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

Seite 573

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

Seite 574

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

Seite 575

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

Seite 576

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

Seite 577

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

Seite 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

Seite 579

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

Seite 580

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

Seite 581

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

Seite 582

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

Seite 583

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

Seite 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

Seite 585

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

Seite 586

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

Seite 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.

Seite 588

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

Seite 589

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

Seite 590

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

Seite 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

Seite 592

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

Seite 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

Seite 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

Seite 595

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

Seite 596

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

Seite 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

Seite 598

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

Seite 599

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

Seite 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

Seite 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

Seite 602

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

Seite 603

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

Seite 604

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

Seite 605

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

Seite 606

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

Seite 607

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

Seite 608

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

Seite 609

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

Seite 610

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

Seite 611

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

Seite 612

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

Seite 613

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

Seite 614

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

Seite 615

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

Seite 616

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

Seite 617

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

Seite 618

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

Seite 619

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

Seite 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

Seite 621

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

Seite 622

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

Seite 623

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

Seite 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

Seite 625

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

Seite 626

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

Seite 627

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

Seite 628

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

Seite 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

Seite 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

Seite 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

Seite 632

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

Seite 633

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

Seite 634

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

Seite 635

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

Seite 636

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

Seite 637

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

Seite 638

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

Seite 639

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

Seite 640

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

Seite 641

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

Seite 642

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

Seite 643

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

Seite 644

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

Seite 645

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

Seite 646

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

Seite 647

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

Seite 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 •

Seite 649

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

Seite 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

Seite 651

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

Seite 652

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

Seite 653

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

Seite 654

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

Seite 655

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

Seite 656

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

Seite 657

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

Seite 658

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

Seite 659

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

Seite 660

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

Seite 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

Seite 662

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

Seite 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

Seite 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

Seite 665

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

Seite 666

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

Seite 667

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

Seite 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

Seite 669

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

Seite 670

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

Seite 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

Seite 672

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

Seite 673

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

Seite 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

Seite 675

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

Seite 676

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

Seite 677

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

Seite 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

Seite 679

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

Seite 680

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

Seite 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

Seite 682

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

Seite 683

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

Seite 684

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

Seite 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

Seite 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

Seite 687

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

Seite 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

Seite 689

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

Seite 690

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

Seite 691

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

Seite 692

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

Seite 693

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

Seite 694

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

Seite 695

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

Seite 696

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

Seite 697

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

Seite 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

Seite 699

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

Seite 700

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

Seite 701

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

Seite 702

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

Seite 703

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

Seite 704

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

Seite 705

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

Seite 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

Seite 707

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

Seite 708

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

Seite 709

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

Seite 710

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

Seite 711

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

Seite 712

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

Seite 713

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

Seite 714

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

Seite 715

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

Seite 716

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

Seite 717

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

Seite 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

Seite 719

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

Seite 720

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

Seite 721

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

Seite 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

Seite 723

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

Seite 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

Seite 725

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

Seite 726

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

Seite 727

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

Seite 728

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

Seite 729

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

Seite 730

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

Seite 731

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

Seite 732

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

Seite 733

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

Seite 734

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

Seite 735

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

Seite 736

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

Seite 737

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

Seite 738

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

Seite 739

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

Seite 740

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

Seite 741

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

Seite 742

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

Seite 743

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

Seite 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

Seite 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

Seite 746

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

Seite 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:

Seite 748

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

Seite 749

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

Seite 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

Seite 751

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

Seite 752

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

Seite 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

Seite 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

Seite 755

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

Seite 756

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

Seite 757

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

Seite 758

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

Seite 759

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

Seite 760

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

Seite 761

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

Seite 762

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

Seite 763

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

Seite 764

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

Seite 765

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

Seite 766

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

Seite 767

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

Seite 768

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

Seite 769

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

Seite 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

Seite 771

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

Seite 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

Seite 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

Seite 774

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

Seite 775

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

Seite 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.

Seite 777

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

Seite 778

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

Seite 779

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

Seite 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

Seite 781

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

Seite 782

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

Seite 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

Seite 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

Seite 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

Seite 786

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

Seite 787

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

Seite 788

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

Seite 789

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

Seite 790

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

Seite 791

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

Seite 792

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

Seite 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

Seite 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

Seite 795

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

Seite 796

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

Seite 797

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

Seite 798

8096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• TSTART: Start transmission Writing one to this bit starts transmission.• THALT: Transmit haltWritin

Seite 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

Seite 800

8106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.2 Network Configuration RegisterRegister Name: EMAC_NCFGRAccess Type: Read/Write• SPD: SpeedSet

Seite 801

8116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• CLK: MDC clock dividerSet according to system clock speed. This determines by what number system cl

Seite 802

8126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.3 Network Status RegisterRegister Name: EMAC_NSRAccess Type: Read-only•MDIOReturns status of the

Seite 803

8136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.4 Transmit Status RegisterRegister Name: EMAC_TSRAccess Type: Read/WriteThis register, when read

Seite 804

8146264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.5 Receive Buffer Queue Pointer RegisterRegister Name: EMAC_RBQPAccess Type: Read/WriteThis regis

Seite 805

8156264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.6 Transmit Buffer Queue Pointer RegisterRegister Name: EMAC_TBQPAccess Type: Read/WriteThis regi

Seite 806

8166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.7 Receive Status RegisterRegister Name: EMAC_RSRAccess Type: Read/WriteThis register, when read,

Seite 807

8176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.8 Interrupt Status RegisterRegister Name: EMAC_ISRAccess Type: Read/Write• MFD: Management Frame

Seite 808

8186264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.9 Interrupt Enable RegisterRegister Name: EMAC_IERAccess Type: Write-only• MFD: Management Frame

Seite 809

8196264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.10 Interrupt Disable RegisterRegister Name: EMAC_IDRAccess Type: Write-only• MFD: Management Fra

Seite 810

826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe device also handles some class requests defined in the CDC class.Unhandled requests are STALLed.14

Seite 811

8206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.11 Interrupt Mask RegisterRegister Name: EMAC_IMRAccess Type: Read-only• MFD: Management Frame s

Seite 812

8216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.12 PHY Maintenance RegisterRegister Name: EMAC_MANAccess Type: Read/Write•DATAFor a write operat

Seite 813

8226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.13 Pause Time RegisterRegister Name: EMAC_PTRAccess Type: Read/Write• PTIME: Pause TimeStores th

Seite 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

Seite 815

8246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.16 Specific Address 1 Bottom RegisterRegister Name: EMAC_SA1BAccess Type: Read/Write• ADDRLeast

Seite 816

8256264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.18 Specific Address 2 Bottom RegisterRegister Name: EMAC_SA2BAccess Type: Read/Write• ADDRLeast

Seite 817

8266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.20 Specific Address 3 Bottom RegisterRegister Name: EMAC_SA3BAccess Type: Read/Write• ADDRLeast

Seite 818

8276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.22 Specific Address 4 Bottom RegisterRegister Name: EMAC_SA4BAccess Type: Read/Write• ADDRLeast

Seite 819

8286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.24 Type ID Checking RegisterRegister Name: EMAC_TIDAccess Type: Read/Write• TID: Type ID checkin

Seite 820

8296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.25 User Input/Output RegisterRegister Name: EMAC_USRIOAccess Type: Read/Write•RMIIWhen set, this

Seite 821

836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ABefore performing the jump to the application in internal SRAM, all the PIOs and peripheralsused in th

Seite 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

Seite 823

8316264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.3 Single Collision Frames RegisterRegister Name: EMAC_SCFAccess Type: Read/Write• SCF: Single

Seite 824

8326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.5 Frames Received OK RegisterRegister Name: EMAC_FROAccess Type: Read/Write• FROK: Frames Rec

Seite 825

8336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.7 Alignment Errors RegisterRegister Name: EMAC_ALEAccess Type: Read/Write• ALE: Alignment Err

Seite 826

8346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.9 Late Collisions RegisterRegister Name: EMAC_LCOLAccess Type: Read/Write• LCOL: Late Collisi

Seite 827

8356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.11 Transmit Underrun Errors RegisterRegister Name: EMAC_TUNDAccess Type: Read/Write• TUND: Tr

Seite 828

8366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.13 Receive Resource Errors RegisterRegister Name: EMAC_RREAccess Type: Read/Write• RRE: Recei

Seite 829

8376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.15 Receive Symbol Errors RegisterRegister Name: EMAC_RSEAccess Type: Read/Write• RSE: Receive

Seite 830

8386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.17 Receive Jabbers RegisterRegister Name: EMAC_RJAAccess Type: Read/Write• RJB: Receive Jabbe

Seite 831

8396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A42.5.26.19 SQE Test Errors RegisterRegister Name: EMAC_STEAccess Type: Read/Write• SQER: SQE test err

Seite 832

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

Seite 833

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

Seite 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

Seite 835

8426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AMemory access errors (abort, misalignment) lead to an “UnrecoverableError” indicated by thecorrespond

Seite 836

8436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 43-2. USB Host Communication Channels43.4.2 Host Controller DriverFigure 43-3. USB Host Driver

Seite 837

8446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• USB Bus driver and hub driver: Handles USB commands and enumeration. Offers a hardware independent

Seite 838

8456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A43.5 Typical ConnectionFigure 43-4. Board Schematic to Interface UHP Device ControllerA termination s

Seite 839

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

Seite 840

8476264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44. USB High Speed Device Port (UDPHS)44.1 DescriptionThe USB High Speed Device Port (UDPHS) is compl

Seite 841

8486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.2 Block DiagramFigure 44-1. Block Diagram: 32 bitsSystem ClockDomainUSB ClockDomainctrlstatusRd/Wr

Seite 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

Seite 843

856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15. Reset Controller (RSTC)15.1 DescriptionThe Reset Controller (RSTC), based on power-on reset cells,

Seite 844

8506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A 44.4.3 USB Transfer Event DefinitionsA transfer is composed of one or several transactions;Notes: 1.

Seite 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

Seite 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

Seite 847

8536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– EPT_ENABL: Enable endpoint.Configuration examples of Bulk OUT endpoint type follow below.•With DMA–

Seite 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

Seite 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

Seite 850

8566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThus, firmware must detect RX_SETUP polling UDPHS_EPTSTAx or catching an interrupt, readthe setup pac

Seite 851

8576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AA simple algorithm can be used by the application to send packets regardless of the number ofbanks as

Seite 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

Seite 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

Seite 854

866264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AThe startup counter waits for the complete crystal oscillator startup. The wait delay is given bythe c

Seite 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

Seite 856

8616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-11. Autovalid with DMANote: In the illustration above Autovalid validates a bank as full, a

Seite 857

8626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250Athe required number of packets per microframe, otherwise, the host will notice a sequencingproblem.A

Seite 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

Seite 859

8646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A– END_BUFFIT: Generate an interrupt when BUFF_COUNT in the UDPHS_DMASTATUSx register reaches 0.– END_

Seite 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

Seite 861

8666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AExample: • If NB_TRANS = 3, the sequence should be either–MData0 – MData0/Data1 – MData0/Data1/Data2•

Seite 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

Seite 863

8686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.4.9 Speed IdentificationThe high speed reset is managed by the hardware.At the connection, the hos

Seite 864

8696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 44-17. UDPHS Interrupt Control InterfaceDET_SUSPDMICRO_SOFIEN_SOFENDRESETWAKE_UPENDOFRSMUPSTR_

Seite 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

Seite 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

Seite 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

Seite 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

Seite 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

Seite 870

8746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5 USB High Speed Device Port (UDPHS) User InterfaceNotes: 1. The reset value for UDPHS_EPTCTL0 is

Seite 871

8756264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.1 UDPHS Control RegisterName: UDPHS_CTRLAccess Type: Read/Write• DEV_ADDR: UDPHS AddressRead:Thi

Seite 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

Seite 873

8776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.2 UDPHS Frame Number RegisterName: UDPHS_FNUMAccess Type: Read • MICRO_FRAME_NUM: Microframe Num

Seite 874

8786264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.3 UDPHS Interrupt Enable RegisterName: UDPHS_IENAccess Type: Read/Write • DET_SUSPD: Suspend Int

Seite 875

8796264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• ENDRESET: End Of Reset Interrupt EnableRead:0 = End Of Reset Interrupt is disabled.1 = End Of Reset

Seite 876

886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 15-4. General Reset StateSLCKperiph_nresetproc_nresetBackup SupplyPOR outputNRST(nrst_out)EXTER

Seite 877

8806264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = enable the interrupts for this endpoint.• DMA_INT_x: DMA Channel x Interrupt EnableRead:0 = the i

Seite 878

8816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.4 UDPHS Interrupt Status RegisterName: UDPHS_INTSTAAccess Type: Read-only• SPEED: Speed Status0

Seite 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

Seite 880

8836264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.5 UDPHS Clear Interrupt RegisterName: UDPHS_CLRINTAccess Type: Write only• DET_SUSPD: Suspend In

Seite 881

8846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.6 UDPHS Endpoints Reset RegisterName: UDPHS_EPTRSTAccess Type: Write only• EPT_x: Endpoint x Res

Seite 882

8856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.7 UDPHS Test RegisterName: UDPHS_TSTAccess Type: Read/Write • SPEED_CFG: Speed ConfigurationRead

Seite 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

Seite 884

8876264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.8 UDPHS Endpoint Configuration RegisterName: UDPHS_EPTCFGx [x=0..7]Access Type: Read/Write •

Seite 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

Seite 886

8896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.9 UDPHS Endpoint Control Enable RegisterName: UDPHS_EPTCTLENBx [x=0..7]Access Type: Write-onl

Seite 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

Seite 888

8906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = enable Overflow Error Interrupt.• RX_BK_RDY: Received OUT Data Interrupt Enable0 = no effect.1 =

Seite 889

8916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.10 UDPHS Endpoint Control Disable RegisterName: UDPHS_EPTCTLDISx [x=0..7]Access Type: Write-o

Seite 890

8926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1 = disable Overflow Error Interrupt.• RX_BK_RDY: Received OUT Data Interrupt Disable0 = no effect.1

Seite 891

8936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.11 UDPHS Endpoint Control RegisterName: UDPHS_EPTCTLx [x=0..7]Access Type: Read-only • EPT_EN

Seite 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

Seite 893

8956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = Stall Sent/ISO CRC error/number of Transaction Error Interrupt is masked.1 = Stall Sent /ISO CRC

Seite 894

8966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.12 UDPHS Endpoint Set Status RegisterName: UDPHS_EPTSETSTAx [x=0..7]Access Type: Write-only

Seite 895

8976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.13 UDPHS Endpoint Clear Status RegisterName: UDPHS_EPTCLRSTAx [x=0..7]Access Type: Write-only

Seite 896

8986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• NAK_OUT: NAKOUT Clear0 = no effect.1 = clear the NAK_OUT flag of UDPHS_EPTSTAx.

Seite 897

8996264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.14 UDPHS Endpoint Status RegisterName: UDPHS_EPTSTAx [x=0..7]Access Type: Read-only • FRCEST

Seite 898

96264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ALCD Controller - LCDCLCDD0 - LCDD23 LCD Data Bus InputLCDVSYNC LCD Vertical Synchronization OutputLCDHS

Seite 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

Seite 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

Seite 901

9016264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf one toggle sequencing problem occurs among the n-transactions (n = 1, 2 or 3) inside a microframe,

Seite 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

Seite 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

Seite 904

9046264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.15 UDPHS DMA Channel Transfer DescriptorThe DMA channel transfer descriptor is loaded from the m

Seite 905

9056264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.16 UDPHS DMA Next Descriptor Address RegisterName: UDPHS_DMANXTDSCx [x = 1..6]Access Type: R

Seite 906

9066264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.17 UDPHS DMA Channel Address RegisterName: UDPHS_DMAADDRESSx [x = 1..6]Access Type: Read/Writ

Seite 907

9076264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.18 UDPHS DMA Channel Control RegisterName: UDPHS_DMACONTROLx [x = 1..6]Access Type: Read/Writ

Seite 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

Seite 909

9096264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A44.5.19 UDPHS DMA Channel Status RegisterName: UDPHS_DMASTATUSx [x = 1..6]Access Type: Read/Write•

Seite 910

916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.3.4.4 Software ResetThe Reset Controller offers several commands used to assert the different reset

Seite 911

9106264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0 = cleared automatically when read by software.1 = set by hardware when a descriptor has been loaded

Seite 912

9116264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45. Image Sensor Interface (ISI)45.1 OverviewThe Image Sensor Interface (ISI) connects a CMOS-type im

Seite 913

9126264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.2 Block DiagramFigure 45-2. Image Sensor Interface Block Diagram45.3 Functional DescriptionThe Ima

Seite 914

9136264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.1 Data TimingThe two data timings using horizontal and vertical synchronization and EAV/SAV sequ

Seite 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

Seite 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

Seite 917

9166264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.4 Preview Path45.3.4.1 Scaling, Decimation (Subsampling)This module resizes captured 8-bit color

Seite 918

9176264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 45-5. Resize Examples 45.3.4.2 Color Space ConversionThis module converts YCrCb or YUV pixels

Seite 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

Seite 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

Seite 921

926264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 15-7. Software ResetSLCKperiph_nresetif PERRST=1proc_nresetif PROCRST=1Write RSTC_CRNRST(nrst_o

Seite 922

9206264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.3.5.2 Memory InterfaceDedicated FIFO are used to support packed memory mapping. YCrCb pixel compon

Seite 923

9216264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4 Image Sensor Interface (ISI) User InterfaceNote: Several parts of the ISI controller use the pix

Seite 924

9226264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.1 ISI Control 1 RegisterRegister Name: ISI_CR1Access Type: Read/WriteReset Value: 0x00000002• IS

Seite 925

9236264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A1: CRC correction is performed. if the correction is not possible, the current frame is discarded and

Seite 926

9246264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.2 ISI Control 2 RegisterRegister Name: ISI_CR2Access Type: Read/WriteReset Value: 0x0 • IM_VSIZE

Seite 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_

Seite 928

9266264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.3 ISI Status RegisterRegister Name: ISI_SRAccess Type: ReadReset Value: 0x0• SOF: Start of frame

Seite 929

9276264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A0: No overflow1: An overrun condition has occurred in input FIFO on the preview path. The overrun hap

Seite 930

9286264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.4 Interrupt Enable RegisterRegister Name: ISI_IERAccess Type: Read/WriteReset Value: 0x0• SOF: S

Seite 931

9296264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.5 ISI Interrupt Disable RegisterRegister Name: ISI_IDRAccess Type: Read/WriteReset Value: 0x0• S

Seite 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

Seite 933

9306264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.6 ISI Interrupt Mask RegisterRegister Name: ISI_IMRAccess Type: Read/WriteReset Value: 0x0• SOF:

Seite 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

Seite 935

9326264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.7 ISI Preview RegisterRegister Name: ISI_PSIZEAccess Type: Read/WriteReset Value: 0x0 • PREV_VSI

Seite 936

9336264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.8 ISI Preview Decimation Factor RegisterRegister Name: ISI_PDECFAccess Type: Read/WriteReset Val

Seite 937

9346264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.9 ISI Preview Primary FBD RegisterRegister Name: ISI_PPFBDAccess Type: Read/WriteReset Value: 0x

Seite 938

9356264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.10 ISI Codec DMA Base Address RegisterRegister Name: ISI_CDBAAccess Type: Read/WriteReset Value:

Seite 939

9366264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.11 ISI Color Space Conversion YCrCb to RGB Set 0 RegisterRegister Name: ISI_Y2R_SET0Access Type:

Seite 940

9376264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.12 ISI Color Space Conversion YCrCb to RGB Set 1 RegisterRegister Name: ISI_Y2R_SET1Access Type:

Seite 941

9386264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.13 ISI Color Space Conversion RGB to YCrCb Set 0 RegisterRegister Name: ISI_R2Y_SET0Access Type:

Seite 942

9396264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.14 ISI Color Space Conversion RGB to YCrCb Set 1 RegisterRegister Name: ISI_R2Y_SET1Access Type:

Seite 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

Seite 944

9406264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A45.4.15 ISI Color Space Conversion RGB to YCrCb Set 2 RegisterRegister Name: ISI_R2Y_SET2Access Type:

Seite 945

9416264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46. Analog-to-Digital Converter (ADC)46.1 DescriptionThe ADC is based on a Successive Approximation R

Seite 946

9426264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.3 Signal Description 46.4 Product Dependencies46.4.1 Power ManagementThe ADC is automatically cloc

Seite 947

9436264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5 Functional Description46.5.1 Analog-to-digital ConversionThe ADC uses the ADC Clock to perform c

Seite 948

9446264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5.4 Conversion ResultsWhen a conversion is completed, the resulting 10-bit digital value is stored

Seite 949

9456264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AIf the ADC_CDR is not read before further incoming data is converted, the corresponding Over-run Erro

Seite 950

9466264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.5.5 Conversion TriggersConversions of the active analog channels are started with a software or a

Seite 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

Seite 952

9486264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6 Analog-to-digital Converter (ADC) User InterfaceTable 46-2. ADC Register MappingOffset Register

Seite 953

9496264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.1 ADC Control Register Register Name: ADC_CRAccess Type: Write-only • SWRST: Software Reset0 = N

Seite 954

956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4 Reset Controller (RSTC) User InterfaceNote: 1. The reset value of RSTC_SR either reports a Genera

Seite 955

9506264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.2 ADC Mode RegisterRegister Name: ADC_MRAccess Type: Read/Write• TRGEN: Trigger Enable • TRGSEL

Seite 956

9516264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A• PRESCAL: Prescaler Rate Selection ADCClock = MCK / ( (PRESCAL+1) * 2 )• STARTUP: Start Up TimeStart

Seite 957

9526264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.3 ADC Channel Enable Register Register Name: ADC_CHERAccess Type: Write-only • CHx: Channel x E

Seite 958

9536264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.5 ADC Channel Status Register Register Name: ADC_CHSRAccess Type: Read-only • CHx: Channel x Sta

Seite 959

9546264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.6 ADC Status Register Register Name: ADC_SRAccess Type: Read-only • EOCx: End of Conversion x0

Seite 960

9556264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.7 ADC Last Converted Data RegisterRegister Name: ADC_LCDRAccess Type: Read-only • LDATA: Last Da

Seite 961

9566264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.9 ADC Interrupt Disable Register Register Name: ADC_IDRAccess Type: Write-only • EOCx: End of C

Seite 962

9576264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.10 ADC Interrupt Mask Register Register Name: ADC_IMRAccess Type: Read-only • EOCx: End of Conv

Seite 963

9586264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A46.6.11 ADC Channel Data RegisterRegister Name: ADC_CDRxAccess Type: Read-only• DATA: Converted DataT

Seite 964

9596264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47. AT91CAP9 Electrical Characteristics47.1 Absolute Maximum Ratings47.2 DC CharacteristicsThe follow

Seite 965

966264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.1 Reset Controller Control RegisterRegister Name: RSTC_CRAccess Type: Write-only• PROCRST: Proces

Seite 966

9606264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.3 Power ConsumptionThis section contains:• The typical power consumption of PLLs, Slow Clock and M

Seite 967

9616264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable 47-3. Power Consumption for different Modes(1)Mode Conditions Consumption UnitActiveARM Core cl

Seite 968

9626264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.4 32 kHz Crystal Oscillator CharacteristicsThe following characteristics are applicable to the ope

Seite 969

9636264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.5 12 MHz Main Oscillator CharacteristicsThe following characteristics are applicable to the operat

Seite 970

9646264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ANote: These characteristics apply only when Main Oscillator is in Bypass Mode (i.e., when MOSCEN = 0

Seite 971

9656264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.8 USB HS CharacteristicsThe following characteristics are applicable to the operating temperature

Seite 972

9666264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.8.3 Dynamic Power ConsumptionNote: 1. Including 1mA due to Pull-up/Pull-down current consumption.T

Seite 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

Seite 974

9686264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10 Timings47.10.1 Corner Definition Timings in MAX corner always result from the extraction and co

Seite 975

9696264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.4 SMC Timings47.10.4.1 CapacitanceTimings are given assuming a capacitance load on data, contro

Seite 976

976264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.2 Reset Controller Status RegisterRegister Name: RSTC_SRAccess Type: Read-only• URSTS: User Reset

Seite 977

9706264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.4.3 Write Timings Notes: 1. hold length = total cycle duration - setup duration - pulse duratio

Seite 978

9716264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-3. SMC Timings - NCS Controlled Read and WriteSMC25NWE low before NCS high(ncs wr setup - n

Seite 979

9726264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-4. SMC Timings - NRD Controlled Read and NWE Controlled Write NRDNCSD0 - D31NWEA0/A1/NBS[3:

Seite 980

9736264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.5 SDRAMC TimingsThe SDRAM Controller satisfies the timings of standard SDRAM modules (SDRAM or

Seite 981

9746264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-5. SDRAMC TimingsThe timings of the SDRAM controller support the use of PC100, PC133 (3.3V

Seite 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

Seite 983

9766264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.6 DDR SDRAMC TimingsThe DDR SDRAM controller satisfies the timings of standard Mobile SDRAM, ti

Seite 984

9776264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-6. DDRSDRC Timings The timings of the DDR SDRAM controller support the use of LPDDR200 Doub

Seite 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

Seite 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

Seite 987

986264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A15.4.3 Reset Controller Mode RegisterRegister Name: RSTC_MRAccess Type: Read/Write• URSTEN: User Reset

Seite 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

Seite 989

9816264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.9 MCI TimingsThe PDC interface block controls all data routing between the external data bus, i

Seite 990

9826264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AMCI2Input hold time TBD nsMCI3Input setup time TBD nsMCI4Output change after CLK rising TBD nsMCI5Out

Seite 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

Seite 992

9846264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A47.10.11 EMAC TimingsThe Ethernet controller satisfies the timings of standard given in Table 47-45 a

Seite 993

9856264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250AFigure 47-15. EMAC MII Mode EMDCEMDIOECOLECRSETXCKETXERETXENETX[3:0]ERXCKERX[3:0]ERXERERXDVEMAC3EMAC1

Seite 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)

Seite 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

Seite 996

9886264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48. AT91CAP9 Mechanical Characteristics48.1 Thermal Considerations48.1.1 Thermal DataTable 48-1 summa

Seite 997

9896264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48.2 Package DrawingFigure 48-1. 400-ball LFBGA Package DrawingThis package respects the recommendati

Seite 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

Seite 999

9906264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A48.3 Soldering ProfileTable 48-6 gives the recommended soldering profile from J-STD-020C.Note: It is

Seite 1000

9916264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A49. AT91CAP9 Ordering Information Table 49-1. AT91CAP9 Ordering InformationOrdering Code Package Pack

Seite 1001

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

Seite 1002

9936264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A50. AT91CAP9 Errata50.1 MarkingAll devices are marked with the Atmel logo and the ordering code.Addit

Seite 1003

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

Seite 1004

9956264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A51. Revision HistoryTable 51-1.Revision CommentsChange Request Ref.6264A First issue.

Seite 1005

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

Seite 1006

i6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250ATable of ContentsFeatures ...

Seite 1007

ii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A9.2 Reset Controller ......

Seite 1008 - International

iii6264A–CAP–21-May-07AT91CAP9S500A/AT91CAP9S250A13.5 Functional Description ..................

Kommentare zu diesen Handbüchern

Keine Kommentare