Rainbow-electronics AT91CAP9S250A Manual do Utilizador

Consulte online ou descarregue Manual do Utilizador para Sensores Rainbow-electronics AT91CAP9S250A. Rainbow Electronics AT91CAP9S250A User Manual Manual do Utilizador

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

Resumo do Conteúdo

Página 1 - Features

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

Página 2

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

Página 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

Página 4

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

Página 5

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

Página 6

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

Página 7

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

Página 8

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

Página 9

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

Página 10 - AT91CAP9S500A/AT91CAP9S250A

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

Página 11

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

Página 12

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

Página 13

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

Página 14

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

Página 15

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

Página 16

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

Página 17

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

Página 18

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

Página 19

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

Página 20

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

Página 21

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

Página 22

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

Página 23

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

Página 24

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

Página 25

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

Página 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

Página 27

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

Página 28

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

Página 29

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

Página 30

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

Página 31

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

Página 32

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

Página 33

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

Página 34

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

Página 35

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

Página 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

Página 37

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

Página 38

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

Página 39

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

Página 40

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

Página 41

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

Página 42

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

Página 43

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

Página 44

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

Página 45

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

Página 46

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

Página 47

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

Página 48

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

Página 49

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

Página 50

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

Página 51

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

Página 52

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

Página 53

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

Página 54

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

Página 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

Página 56

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

Página 57

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

Página 58

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

Página 59

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

Página 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]

Página 61

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

Página 62

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

Página 63

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

Página 64

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

Página 65

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

Página 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

Página 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

Página 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

Página 69

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

Página 70

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

Página 71

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

Página 72

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

Página 73

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

Página 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

Página 75

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

Página 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

Página 77

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

Página 78

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

Página 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

Página 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

Página 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

Página 82

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

Página 83

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

Página 84

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

Página 85

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

Página 86

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

Página 87

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

Página 88

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

Página 89

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 103

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 109

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

Página 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

Página 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

Página 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

Página 113

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

Página 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

Página 115

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

Página 116

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

Página 117

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

Página 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

Página 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/

Página 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

Página 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

Página 122

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

Página 123

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

Página 124

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

Página 125

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

Página 126

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

Página 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

Página 128

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

Página 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

Página 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

Página 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

Página 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

Página 133

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

Página 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

Página 135

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

Página 136

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

Página 137

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

Página 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

Página 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

Página 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

Página 141

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

Página 142

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

Página 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

Página 144

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

Página 145

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

Página 146

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

Página 147

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

Página 148

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

Página 149

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

Página 150

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

Página 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

Página 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

Página 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

Página 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

Página 155

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

Página 156

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

Página 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

Página 158

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

Página 159

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

Página 160

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

Página 161

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

Página 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

Página 163

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

Página 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

Página 165

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

Página 166

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

Página 167

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

Página 168

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

Página 169

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

Página 170

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

Página 171

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

Página 172

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

Página 173

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

Página 174

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

Página 175

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

Página 176

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

Página 177

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

Página 178

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

Página 179

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

Página 180

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

Página 181

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

Página 182

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

Página 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

Página 184

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

Página 185

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

Página 186

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

Página 187

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

Página 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

Página 189

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

Página 190

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

Página 191

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

Página 192

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

Página 193

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

Página 194

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

Página 195

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

Página 196 - Write cycle

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 202

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

Página 203

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

Página 204

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

Página 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

Página 206

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

Página 207

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

Página 208

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

Página 209

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

Página 210

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

Página 211

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

Página 212

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

Página 213

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

Página 214

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

Página 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

Página 216

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

Página 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

Página 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

Página 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

Página 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_

Página 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

Página 222

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

Página 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

Página 224

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

Página 225

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

Página 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

Página 227

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

Página 228

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

Página 229

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

Página 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

Página 231

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

Página 232

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

Página 233

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

Página 234

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

Página 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

Página 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

Página 237

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

Página 238

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

Página 239

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

Página 240

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

Página 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

Página 242

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

Página 243

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

Página 244

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

Página 245

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

Página 246

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

Página 247

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

Página 248

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

Página 249

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

Página 250

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

Página 251

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

Página 252

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

Página 253

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

Página 254

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

Página 255

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

Página 256

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

Página 257

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

Página 258

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

Página 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

Página 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

Página 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/

Página 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

Página 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

Página 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

Página 265

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

Página 266

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

Página 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

Página 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

Página 269

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

Página 270

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

Página 271

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

Página 272

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

Página 273

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

Página 274

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

Página 275

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

Página 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

Página 277

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

Página 278

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

Página 279

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

Página 280

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

Página 281

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

Página 282

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

Página 283

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

Página 284

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

Página 285

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

Página 286

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

Página 287

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

Página 288

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

Página 289

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

Página 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

Página 291

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

Página 292

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

Página 293

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

Página 294

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

Página 295

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

Página 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

Página 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

Página 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

Página 299

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

Página 300

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

Página 301

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

Página 302

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

Página 303

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

Página 304

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

Página 305

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

Página 306

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

Página 307

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

Página 308

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

Página 309

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

Página 310

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

Página 311

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

Página 312

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

Página 313

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

Página 314

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

Página 315

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

Página 316

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

Página 317

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

Página 318

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

Página 319

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

Página 320

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

Página 321

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

Página 322

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

Página 323

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

Página 324

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

Página 325

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

Página 326

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

Página 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

Página 328

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

Página 329

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

Página 330

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

Página 331

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

Página 332

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

Página 333

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

Página 334

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

Página 335

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

Página 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

Página 337

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

Página 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

Página 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

Página 340

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

Página 341

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

Página 342

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

Página 343

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

Página 344

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

Página 345

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

Página 346

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

Página 347

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

Página 348

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

Página 349

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

Página 350

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

Página 351

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

Página 352

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

Página 353

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

Página 354

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

Página 355

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

Página 356

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

Página 357

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

Página 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

Página 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

Página 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

Página 361

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

Página 362

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

Página 363

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

Página 364

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

Página 365

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

Página 366

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

Página 367

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

Página 368

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

Página 369

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

Página 370

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

Página 371

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

Página 372

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

Página 373

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

Página 374

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

Página 375

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

Página 376

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

Página 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

Página 378

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

Página 379

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

Página 380

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

Página 381

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

Página 382

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

Página 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-

Página 384

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

Página 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

Página 386

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

Página 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

Página 388

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

Página 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

Página 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

Página 391

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

Página 392

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

Página 393

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

Página 394

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

Página 395

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

Página 396

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

Página 397

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

Página 398

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

Página 399

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

Página 400

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

Página 401

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

Página 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

Página 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 =

Página 404

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

Página 405

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

Página 406

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

Página 407

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

Página 408

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

Página 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

Página 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

Página 411

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

Página 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

Página 413

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

Página 414

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

Página 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

Página 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

Página 417

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

Página 418

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

Página 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

Página 420

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

Página 421

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

Página 422

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

Página 423

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

Página 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

Página 425

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

Página 426

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

Página 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

Página 428

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

Página 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

Página 430

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

Página 431

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

Página 432

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

Página 433

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

Página 434

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

Página 435

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

Página 436

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

Página 437

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

Página 438

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

Página 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

Página 440

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

Página 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

Página 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

Página 443

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

Página 444

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

Página 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

Página 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

Página 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,

Página 448

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

Página 449

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

Página 450

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

Página 451

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

Página 452

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

Página 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

Página 454

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

Página 455

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

Página 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

Página 457

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 466

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

Página 467

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

Página 468

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

Página 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

Página 470

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

Página 471

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

Página 472

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

Página 473

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

Página 474

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

Página 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

Página 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

Página 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

Página 478

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

Página 479

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

Página 480

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

Página 481

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

Página 482

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

Página 483

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

Página 484

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

Página 485

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

Página 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

Página 487

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

Página 488

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

Página 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

Página 490

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

Página 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

Página 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

Página 493

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

Página 494

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

Página 495

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

Página 496

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

Página 497

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

Página 498

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

Página 499

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

Página 500

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

Página 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

Página 502

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

Página 503

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

Página 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

Página 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

Página 506

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

Página 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

Página 508

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

Página 509

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

Página 510

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

Página 511

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

Página 512

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

Página 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

Página 514

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

Página 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

Página 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

Página 517

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

Página 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

Página 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

Página 520

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

Página 521

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

Página 522

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

Página 523

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

Página 524

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

Página 525

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

Página 526

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

Página 527

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

Página 528

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

Página 529

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

Página 530

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

Página 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

Página 532

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

Página 533

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

Página 534

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

Página 535

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

Página 536

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

Página 537

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

Página 538

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

Página 539

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

Página 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.•

Página 541

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

Página 542

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

Página 543

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

Página 544

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

Página 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

Página 546

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

Página 547

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

Página 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

Página 549

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

Página 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

Página 551

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

Página 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

Página 553

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

Página 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

Página 555

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

Página 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,

Página 557

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

Página 558

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

Página 559

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

Página 560

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

Página 561

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

Página 562

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

Página 563

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

Página 564

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

Página 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

Página 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

Página 567

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

Página 568

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

Página 569

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

Página 570

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

Página 571

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

Página 572

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

Página 573

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

Página 574

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

Página 575

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

Página 576

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

Página 577

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

Página 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

Página 579

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

Página 580

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

Página 581

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

Página 582

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

Página 583

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

Página 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

Página 585

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

Página 586

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

Página 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.

Página 588

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

Página 589

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

Página 590

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

Página 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

Página 592

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

Página 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

Página 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

Página 595

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

Página 596

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

Página 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

Página 598

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

Página 599

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

Página 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

Página 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

Página 602

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

Página 603

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

Página 604

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

Página 605

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

Página 606

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

Página 607

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

Página 608

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

Página 609

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

Página 610

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

Página 611

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

Página 612

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

Página 613

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

Página 614

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

Página 615

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

Página 616

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

Página 617

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

Página 618

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

Página 619

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

Página 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

Página 621

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

Página 622

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

Página 623

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

Página 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

Página 625

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

Página 626

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

Página 627

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

Página 628

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

Página 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

Página 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

Página 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

Página 632

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

Página 633

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

Página 634

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

Página 635

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

Página 636

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

Página 637

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

Página 638

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

Página 639

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

Página 640

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

Página 641

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

Página 642

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

Página 643

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

Página 644

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

Página 645

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

Página 646

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

Página 647

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

Página 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 •

Página 649

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

Página 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

Página 651

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

Página 652

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

Página 653

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

Página 654

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

Página 655

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

Página 656

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

Página 657

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

Página 658

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

Página 659

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

Página 660

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

Página 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

Página 662

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

Página 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

Página 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

Página 665

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

Página 666

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

Página 667

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

Página 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

Página 669

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

Página 670

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

Página 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

Página 672

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

Página 673

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

Página 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

Página 675

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

Página 676

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

Página 677

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

Página 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

Página 679

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

Página 680

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

Página 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

Página 682

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

Página 683

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

Página 684

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

Página 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

Página 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

Página 687

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

Página 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

Página 689

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

Página 690

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

Página 691

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

Página 692

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

Página 693

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

Página 694

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

Página 695

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

Página 696

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

Página 697

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

Página 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

Página 699

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

Página 700

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

Página 701

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

Página 702

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

Página 703

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

Página 704

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

Página 705

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

Página 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

Página 707

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

Página 708

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

Página 709

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

Página 710

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

Página 711

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

Página 712

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

Página 713

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

Página 714

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

Página 715

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

Página 716

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

Página 717

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

Página 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

Página 719

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

Página 720

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

Página 721

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

Página 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

Página 723

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

Página 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

Página 725

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

Página 726

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

Página 727

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

Página 728

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

Página 729

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

Página 730

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

Página 731

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

Página 732

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

Página 733

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

Página 734

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

Página 735

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

Página 736

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

Página 737

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

Página 738

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

Página 739

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

Página 740

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

Página 741

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

Página 742

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

Página 743

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

Página 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

Página 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

Página 746

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

Página 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:

Página 748

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

Página 749

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

Página 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

Página 751

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

Página 752

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

Página 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

Página 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

Página 755

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

Página 756

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

Página 757

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

Página 758

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

Página 759

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

Página 760

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

Página 761

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

Página 762

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

Página 763

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

Página 764

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

Página 765

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

Página 766

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

Página 767

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

Página 768

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

Página 769

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

Página 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

Página 771

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

Página 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

Página 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

Página 774

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

Página 775

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

Página 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.

Página 777

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

Página 778

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

Página 779

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

Página 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

Página 781

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

Página 782

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

Página 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

Página 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

Página 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

Página 786

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

Página 787

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

Página 788

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

Página 789

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

Página 790

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

Página 791

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

Página 792

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

Página 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

Página 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

Página 795

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

Página 796

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

Página 797

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

Página 798

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

Página 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

Página 800

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

Página 801

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

Página 802

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

Página 803

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

Página 804

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

Página 805

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

Página 806

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

Página 807

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

Página 808

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

Página 809

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

Página 810

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

Página 811

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

Página 812

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

Página 813

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

Página 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

Página 815

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

Página 816

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

Página 817

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

Página 818

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

Página 819

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

Página 820

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

Página 821

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

Página 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

Página 823

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

Página 824

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

Página 825

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

Página 826

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

Página 827

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

Página 828

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

Página 829

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

Página 830

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

Página 831

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

Página 832

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

Página 833

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

Página 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

Página 835

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

Página 836

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

Página 837

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

Página 838

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

Página 839

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

Página 840

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

Página 841

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

Página 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

Página 843

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

Página 844

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

Página 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

Página 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

Página 847

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

Página 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

Página 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

Página 850

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

Página 851

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

Página 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

Página 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

Página 854

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

Página 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

Página 856

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

Página 857

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

Página 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

Página 859

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

Página 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

Página 861

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

Página 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

Página 863

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

Página 864

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

Página 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

Página 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

Página 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

Página 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

Página 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

Página 870

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

Página 871

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

Página 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

Página 873

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

Página 874

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

Página 875

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

Página 876

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

Página 877

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

Página 878

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

Página 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

Página 880

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

Página 881

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

Página 882

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

Página 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

Página 884

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

Página 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

Página 886

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

Página 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

Página 888

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

Página 889

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

Página 890

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

Página 891

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

Página 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

Página 893

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

Página 894

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

Página 895

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

Página 896

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

Página 897

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

Página 898

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

Página 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

Página 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

Página 901

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

Página 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

Página 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

Página 904

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

Página 905

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

Página 906

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

Página 907

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

Página 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

Página 909

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

Página 910

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

Página 911

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

Página 912

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

Página 913

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

Página 914

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

Página 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

Página 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

Página 917

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

Página 918

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

Página 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

Página 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

Página 921

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

Página 922

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

Página 923

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

Página 924

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

Página 925

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

Página 926

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

Página 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_

Página 928

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

Página 929

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

Página 930

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

Página 931

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

Página 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

Página 933

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

Página 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

Página 935

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

Página 936

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

Página 937

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

Página 938

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

Página 939

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

Página 940

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

Página 941

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

Página 942

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

Página 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

Página 944

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

Página 945

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

Página 946

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

Página 947

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

Página 948

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

Página 949

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

Página 950

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

Página 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

Página 952

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

Página 953

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

Página 954

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

Página 955

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

Página 956

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

Página 957

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

Página 958

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

Página 959

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

Página 960

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

Página 961

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

Página 962

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

Página 963

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

Página 964

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

Página 965

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

Página 966

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

Página 967

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

Página 968

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

Página 969

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

Página 970

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

Página 971

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

Página 972

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

Página 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

Página 974

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

Página 975

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

Página 976

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

Página 977

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

Página 978

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

Página 979

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

Página 980

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

Página 981

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

Página 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

Página 983

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

Página 984

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

Página 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

Página 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

Página 987

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

Página 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

Página 989

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

Página 990

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

Página 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

Página 992

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

Página 993

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

Página 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)

Página 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

Página 996

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

Página 997

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

Página 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

Página 999

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

Página 1000

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

Página 1001

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

Página 1002

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

Página 1003

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

Página 1004

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

Página 1005

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

Página 1006

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

Página 1007

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

Página 1008 - International

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

Comentários a estes Manuais

Sem comentários