ARM920T-based Microcontroller AT91RM9200: Features
ARM920T-based Microcontroller AT91RM9200: Features
ARM920T-based Microcontroller AT91RM9200: Features
NOTE: This is a summary document. The complete document is available on the Atmel website at www.atmel.com.
1768MSATARM09-Jul-09
1. Description
The AT91RM9200 is a complete system-on-chip built around the ARM920T ARM Thumb processor. It incorporates a rich set of system and application peripherals and standard interfaces in order to provide a single-chip solution for a wide range of compute-intensive applications that require maximum functionality at minimum power consumption at lowest cost. The AT91RM9200 incorporates a high-speed on-chip SRAM workspace, and a low-latency External Bus Interface (EBI) for seamless connection to whatever configuration of off-chip memories and memory-mapped peripherals is required by the application. The EBI incorporates controllers for synchronous DRAM (SDRAM), Burst Flash and Static memories and features specific circuitry facilitating the interface for NAND Flash/SmartMedia and Compact Flash. The Advanced Interrupt Controller (AIC) enhances the interrupt handling performance of the ARM920T processor by providing multiple vectored, prioritized interrupt sources and reducing the time taken to transfer to an interrupt handler. The Peripheral DMA Controller (PDC) provides DMA channels for all the serial peripherals, enabling them to transfer data to or from on- and off-chip memories without processor intervention. This reduces the processor overhead when dealing with transfers of continuous data streams.The AT91RM9200 benefits from a new generation of PDC which includes dual pointers that simplify significantly buffer chaining. The set of Parallel I/O (PIO) controllers multiplex the peripheral input/output lines with generalpurpose data I/Os for maximum flexibility in device configuration. An input change interrupt, open drain capability and programmable pull-up resistor is included on each line. The Power Management Controller (PMC) keeps system power consumption to a minimum by selectively enabling/disabling the processor and various peripherals under software control. It uses an enhanced clock generator to provide a selection of clock signals including a slow clock (32 kHz) to optimize power consumption and performance at all times. The AT91RM9200 integrates a wide range of standard interfaces including USB 2.0 Full Speed Host and Device and Ethernet 10/100 Base-T Media Access Controller (MAC), which provides connection to a extensive range of external peripheral devices and a widely used networking layer. In addition, it provides an extensive set of peripherals that operate in accordance with several industry standards, such as those used in audio, telecom, Flash Card, infrared and Smart Card applications. To complete the offer, the AT91RM9200 benefits from the integration of a wide range of debug features including JTAG-ICE, a dedicated UART debug channel (DBGU) and an embedded real time trace. This enables the development and debug of all applications, especially those with real-time constraints.
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
2. Block Diagram
Bold arrows ( Figure 2-1. AT91RM9200 Block Diagram
NRST JTAGSEL TDI TDO TMS TCK NTRST Reset and Test ICE JTAG Scan
Instruction Cache 16K bytes Data Cache 16K bytes
TST0-TST1
ARM920T Core
ETM
MMU
TSYNC
PIO
PIO
AIC
EBI
CompactFlash NAND Flash SmartMedia
PLLB PLLA PMC OSC Peripheral Bridge System Timer Peripheral DMA Controller Fast ROM 128K bytes
SDRAM Controller
Memory Controller
DBGU PDC
DTXD
PIO
OSC
RTC
D0-D15 A0/NBS0 A1/NBS2/NWR2 A2-A15/A18-A22 A16/BA0 A17/BA1 NCS0/BFCS NCS1/SDCS NCS2 NCS3/SMCS NRD/NOE/CFOE NWR0/NWE/CFWE NWR1/NBS1/CFIOR NWR3/NBS3/CFIOW SDCK SDCKE RAS-CAS SDWE SDA10 BFRDY/SMOE BFCK BFAVD BFBAA/SMWE BFOE BFWE A23-A24 A25/CFRNW NWAIT NCS4/CFCS NCS5/CFCE1 NCS6/CFCE2 NCS7 D16-D31 HDMA HDPA HDMB HDPB
DDM DDP
Transceiver
USB Device DMA FIFO ETXCK-ERXCK-EREFCK ETXEN-ETXER ECRS-ECOL ERXER-ERXDV ERX0-ERX3 ETX0-ETX3 EMDC EMDIO EF100 TF0 TK0 TD0 RD0 RK0 RF0 TF1 TK1 TD1 RD1 RK1 RF1 TF2 TK2 TD2 RD2 RK2 RF2 TCLK0 TCLK1 TCLK2 TIOA0 TIOB0 TIOA1 TIOB1 TIOA2 TIOB2 TCLK3 TCLK4 TCLK5 TIOA3 TIOB3 TIOA4 TIOB4 TIOA5 TIOB5
MCCK MCCDA MCDA0-MCDA3 MCCDB MCDB0-MCDB3 RXD0 TXD0 SCK0 RTS0 CTS0 RXD1 TXD1 SCK1 RTS1 CTS1 DSR1 DTR1 DCD1 RI1 RXD2 TXD2 SCK2 RTS2 CTS2 RXD3 TXD3 SCK3 RTS3 CTS3 NPCS0 NPCS1 NPCS2 NPCS3 MISO MOSI SPCK TWD
MCI PDC
SSC0
SSC2
USART3 PDC
TWCK
3
1768MSATARM09-Jul-09
3. Signal Description
Table 3-1.
Pin Name
Memory I/O Lines Power Supply Peripheral I/O Lines Power Supply Oscillator and PLL Power Supply Core Chip Power Supply Oscillator Power Supply Ground PLL Ground Oscillator Ground
3.0V to 3.6V 3.0V to 3.6V 1.65V to 1.95V 1.65V to 1.95V 1.65V to 1.95V
Clocks, Oscillators and PLLs XIN XOUT XIN32 XOUT32 PLLRCA PLLRCB PCK0 - PCK3 Main Crystal Input Main Crystal Output 32KHz Crystal Input 32KHz Crystal Output PLL A Filter PLL B Filter Programmable Clock Output ICE and JTAG TCK TDI TDO TMS NTRST JTAGSEL Test Clock Test Data In Test Data Out Test Mode Select Test Reset Signal JTAG Selection ETM TSYNC TCLK TPS0 - TPS2 TPK0 - TPK15 Trace Synchronization Signal Trace Clock Trace ARM Pipeline Status Trace Packet Port Reset/Test NRST TST0 - TST1 Microcontroller Reset Test Mode Select Input Input Low No on-chip pull-up, Schmitt trigger Must be tied low for normal operation, Schmitt trigger Output Output Output Output Input Input Output Input Input Input Low Schmitt trigger Internal Pull-up, Schmitt trigger Tri-state Internal Pull-up, Schmitt trigger Internal Pull-up, Schmitt trigger Schmitt trigger Input Output Input Output Input Input Output
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
Table 3-1.
Pin Name
BMS
Input
DRXD DTXD
Input Output
Input Input
Pulled-up input at reset Pulled-up input at reset Pulled-up input at reset Pulled-up input at reset
D0 - D31 A0 - A25
I/O Output
NCS0 - NCS7 NWR0 - NWR3 NOE NRD NUB NLB NWE NWAIT NBS0 - NBS3
Chip Select Lines Write Signal Output Enable Read Signal Upper Byte Select Lower Byte Select Write Enable Wait Signal Byte Mask Signal
Output Output Output Output Output Output Output Input Output EBI for CompactFlash Support
1 at reset
CompactFlash Chip Enable CompactFlash Output Enable CompactFlash Write Enable CompactFlash IO Read CompactFlash IO Write CompactFlash Read Not Write CompactFlash Chip Select
Low
5
1768MSATARM09-Jul-09
Table 3-1.
Pin Name
NAND Flash/SmartMedia Chip Select NAND Flash/SmartMedia Output Enable NAND Flash/SmartMedia Write Enable SDRAM Controller
SDRAM Clock SDRAM Clock Enable SDRAM Controller Chip Select Bank Select SDRAM Write Enable Row and Column Signal SDRAM Address 10 Line
Output Output Output Output Output Output Output Burst Flash Controller Low Low High Low
Burst Flash Clock Burst Flash Chip Select Burst Flash Address Valid Burst Flash Address Advance Burst Flash Output Enable Burst Flash Ready Burst Flash Write Enable
Output Output Output Output Output Input Output Multimedia Card Interface Low Low Low Low High Low
Multimedia Card Clock Multimedia Card A Command Multimedia Card A Data Multimedia Card B Command Multimedia Card B Data USART
SCK0 - SCK3 TXD0 - TXD3 RXD0 - RXD3 RTS0 - RTS3 CTS0 - CTS3 DSR1 DTR1 DCD1 RI1
Serial Clock Transmit Data Receive Data Ready To Send Clear To Send Data Set Ready Data Terminal Ready Data Carrier Detect Ring Indicator
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
Table 3-1.
Pin Name
DDM DDP
USB Device Port Data USB Device Port Data + USB Host Port
Analog Analog
USB Host Port A Data USB Host Port A Data + USB Host Port B Data USB Host Port B Data + Ethernet MAC
EREFCK ETXCK ERXCK ETXEN ETX0 - ETX3 ETXER ERXDV ECRSDV ERX0 - ERX3 ERXER ECRS ECOL EMDC EMDIO EF100
Reference Clock Transmit Clock Receive Clock Transmit Enable Transmit Data Transmit Coding Error Receive Data Valid Carrier Sense and Data Valid Receive Data Receive Error Carrier Sense Collision Detected Management Data Clock Management Data Input/Output Force 100 Mbits/sec.
Input Input Input Output Output Output Input Input Input Input Input Input Output I/O Output Synchronous Serial Controller High
ETX0 - ETX1 only in RMII MII only MII only RMII only ERX0 - ERX1 only in RMII
RMII only
TD0 - TD2 RD0 - RD2 TK0 - TK2 RK0 - RK2 TF0 - TF2 RF0 - RF2
Transmit Data Receive Data Transmit Clock Receive Clock Transmit Frame Sync Receive Frame Sync Timer/Counter
7
1768MSATARM09-Jul-09
Table 3-1.
Pin Name
Master In Slave Out Master Out Slave In SPI Serial Clock SPI Peripheral Chip Select 0 SPI Peripheral Chip Select Two-Wire Interface
TWD TWCK
I/O I/O
4.1
208 1 52
53
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
4.2 208-pin PQFP Package Pinout
AT91RM9200 Pinout for 208-pin PQFP Package
Signal Name
PC24 PC25 PC26 PC27 PC28 PC29 VDDIOM GND PC30 PC31 PC10 PC11 PC12 PC13 PC14 PC15 PC0 PC1 VDDCORE GND PC2 PC3 PC4 PC5 PC6 VDDIOM GND VDDPLL PLLRCA GNDPLL XOUT XIN VDDOSC GNDOSC XOUT32 XIN32
Table 4-1.
Pin Number
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
Pin Number
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72
Signal Name
VDDPLL PLLRCB GNDPLL VDDIOP GND PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 VDDIOP GND PA14 PA15 PA16 PA17 VDDCORE GND PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26
Pin Number
73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
Signal Name
PA27 PA28 VDDIOP GND PA29 PA30 PA31/BMS PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 VDDIOP GND PB13 PB14 PB15 PB16 PB17 PB18 PB19 PB20 PB21 PB22 JTAGSEL TDI TDO TCK
Pin Number
109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144
Signal Name
TMS NTRST VDDIOP GND TST0 TST1 NRST VDDCORE GND PB23 PB24 PB25 PB26 PB27 PB28 PB29 HDMA HDPA DDM DDP VDDIOP GND VDDIOM GND A0/NBS0 A1/NBS2/NWR2 A2 A3 A4 A5 A6 A7 A8 A9 A10 SDA10
9
1768MSATARM09-Jul-09
Table 4-1.
Pin Number
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
Pin Number
161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176
Signal Name
PC7 PC8 PC9 VDDIOM GND NCS0/BFCS NCS1/SDCS NCS2 NCS3/SMCS NRD/NOE/CFOE NWR0/NWE/CFWE NWR1/NBS1/CFIOR NWR3/NBS3/CFIOW SDCK SDCKE RAS
Pin Number
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192
Signal Name
CAS SDWE D0 D1 D2 D3 VDDIOM GND D4 D5 D6 VDDCORE GND D7 D8 D9
Pin Number
193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208
Signal Name
D10 D11 D12 D13 D14 D15 VDDIOM GND PC16 PC17 PC18 PC19 PC20 PC21 PC22 PC23
Note:
4.3
BALL A1
10
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
4.4 256-ball BGA Package Pinout
AT91RM9200 Pinout for 256-ball BGA Package
Signal Name TDI JTAGSEL PB20 PB17 PD11 PD8 VDDIOP PB9 PB4 PA31/BMS VDDIOP PA23 PA19 GND PA14 VDDIOP PA13 TDO PD13 PB18 PB21 PD12 PD9 GND PB10 PB5 PB0 VDDIOP PA24 PA17 PA15 PA11 PA12 PA7 TMS PD15 Pin C3 C4 C5 C6 C7 C8 C9 C10 C11 C12 C13 C14 C15 C16 C17 D1 D2 D3 D4 D5 D6 D7 D8 D9 D10 D11 D12 D13 D14 D15 D16 D17 E1 E2 E3 E4 Signal Name PD14 PB22 PB19 PD10 PB13 PB12 PB6 PB1 GND PA20 PA18 VDDCORE GND PA8 PD5 TST1 VDDIOP VDDIOP GND VDDIOP PD7 PB14 VDDIOP PB8 PB2 GND PA22 PA21 PA16 PA10 PD6 PD4 NRST NTRST GND TST0 Pin E5 E6 E7 E8 E9 E10 E11 E12 E13 E14 E15 E16 E17 F1 F2 F3 F4 F5 F6 F7 F9 F11 F12 F13 F14 F15 F16 F17 G1 G2 G3 G4 G5 G6 G12 G13 Signal Name TCK GND PB15 GND PB7 PB3 PA29 PA26 PA25 PA9 PA6 PD3 PD0 PD16 GND PB23 PB25 PB24 VDDCORE PB16 PB11 PA30 PA28 PA4 PD2 PD1 PA5 PLLRCB PD19 PD17 GND PB26 PD18 PB27 PA27 PA0 Pin G14 G15 G16 G17 H1 H2 H3 H4 H5 H13 H14 H15 H16 H17 J1 J2 J3 J4 J5 J6 J12 J13 J14 J15 J16 J17 K1 K2 K3 K4 K5 K13 K14 K15 K16 K17 Signal Name PA1 PA2 PA3 XIN32 PD23 PD20 PD22 PD21 VDDIOP VDDPLL VDDIOP GNDPLL GND XOUT32 PD25 PD27 PD24 PD26 PB28 PB29 GND GNDOSC VDDOSC VDDPLL GNDPLL XIN HDPA DDM HDMA VDDIOP DDP PC5 PC4 PC6 VDDIOM XOUT
Table 4-2.
Pin A1 A2 A3 A4 A5 A6 A7 A8 A9 A10 A11 A12 A13 A14 A15 A16 A17 B1 B2 B3 B4 B5 B6 B7 B8 B9 B10 B11 B12 B13 B14 B15 B16 B17 C1 C2
11
1768MSATARM09-Jul-09
Table 4-2.
Pin L1 L2 L3 L4 L5 L6 L12 L13 L14 L15 L16 L17 M1 M2 M3 M4 M5 M6 M7 M9 M11 M12 M13 M14 M15 M16 M17 N1
Note:
12
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
5. Power Considerations
5.1 Power Supplies
The AT91RM9200 has five types of power supply pins: VDDCORE pins. They power the core, including processor, memories and peripherals; voltage ranges from 1.65V to 1.95V, 1.8V nominal. VDDIOM pins. They power the External Bus Interface I/O lines; voltage ranges from 3.0V to 3.6V, 3V or 3.3V nominal. VDDIOP pins. They power the Peripheral I/O lines and the USB transceivers; voltage ranges from 3.0V to 3.6V, 3V or 3.3V nominal. VDDPLL pins. They power the PLL cells; voltage ranges from 1.65V to 1.95V, 1.8V nominal. VDDOSC pin. They power both oscillators; voltage ranges from 1.65V to 1.95V, 1.8V nominal. The double power supplies VDDIOM and VDDIOP are identified in Table 4-1 on page 9 and Table 4-2 on page 11. These supplies enable the user to power the device differently for interfacing with memories and for interfacing with peripherals. Ground pins are common to all power supplies, except VDDPLL and VDDOSC pins. For these pins, GNDPLL and GNDOSC are provided, respectively.
5.2
Power Consumption
The AT91RM9200 consumes about 500 A of static current on VDDCORE at 25 C. For dynamic power consumption, the AT91RM9200 consumes a maximum of 25 mA on VDDCORE at maximum speed in typical conditions (1.8V, 25 C), processor running full-performance algorithm.
6. I/O Considerations
6.1 JTAG Port Pins
TMS and TDI are Schmitt trigger inputs and integrate internal pull-up resistors of 15 kOhm typical. TCK is a Schmitt trigger input without internal pull-up resistor. TDO is a tri-state output. The JTAGSEL pin is used to select the JTAG boundary scan when asserted at a high level. The NTRST pin is used to initialize the EmbeddedICE TAP Controller.
6.2
Test Pin
The TST0 and TST1 pins are used for manufacturing test purposes when asserted high. As they do not integrate a pull-down resistor, they must be tied low during normal operations. Driving this line at a high level leads to unpredictable results.
6.3
Reset Pin
NRST is a Schmitt trigger without pull-up resistor. The NRST signal is inserted in the Boundary Scan.
13
1768MSATARM09-Jul-09
6.4
7.2
14
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
Debug Unit Two-pin UART Debug Communication Channel Chip ID Register Embedded Trace Macrocell: ETM9 Rev2a Medium Level Implementation Half-rate Clock Mode Four Pairs of Address Comparators Two Data Comparators Eight Memory Map Decoder Inputs Two Counters One Sequencer One 18-byte FIFO IEEE1149.1 JTAG Boundary Scan on all Digital Pins
7.3
Boot Program
Default Boot Program stored in ROM-based products Downloads and runs an application from external storage media into internal SRAM Downloaded code size depends on embedded SRAM size Automatic detection of valid application Bootloader supporting a wide range of non-volatile memories SPI DataFlash connected on SPI NPCS0 Two-wire EEPROM 8-bit parallel memories on NCS0 Boot Uploader in case no valid program is detected in external NVM and supporting several communication media Serial communication on a DBGU (XModem protocol) USB Device Port (DFU Protocol)
7.4
7.5
Memory Controller
Programmable Bus Arbiter handling four Masters Internal Bus is shared by ARM920T, PDC, USB Host Port and Ethernet MAC Masters Each Master can be assigned a priority between 0 and 7 15
1768MSATARM09-Jul-09
Address Decoder provides selection for Eight external 256-Mbyte memory areas Four internal 1-Mbyte memory areas One 256-Mbyte embedded peripheral area Boot Mode Select Option Non-volatile Boot Memory can be internal or external Selection is made by BMS pin sampled at reset Abort Status Registers Source, Type and all parameters of the access leading to an abort are saved Misalignment Detector Alignment checking of all data accesses Abort generation in case of misalignment Remap command Provides remapping of an internal SRAM in place of the boot NVM
16
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
8. Memories
Figure 8-1. AT91RM9200 Memory Mapping
Address Memory Space 0x0000 0000 Internal Memories
0x0FFF FFFF
256M Bytes
0x0010 0000
ROM
0x0020 0000
0x1000 0000 EBI Chip Select 0 / BFC EBI Chip Select 1 / SDRAMC 256M Bytes
1 MBytes
0x1FFF FFFF
1 MBytes
0x2FFF FFFF
Notes : 248 MBytes (1) Can be SRAM, ROM or Flash depending on BMS and the REMAP Command
0x4000 0000 EBI Chip Select 3 / NANDFlash Logic EBI Chip Select 4 / CF Logic EBI Chip Select 5 / CF Logic EBI Chip Select 6 / CF Logic EBI Chip Select 7
0x8FFF FFFF
256M Bytes
0x4FFF FFFF
0x5FFF FFFF
0xF000 0000
Reserved
0xFFFA 0000
0x6FFF FFFF
16K Bytes
16K Bytes
0x7FFF FFFF
16K Bytes
UDP
0xFFFB 4000
16K Bytes
0x9000 0000
MCI
0xFFFB 8000
16K Bytes
TWI
0xFFFB C000
16K Bytes
EMAC
0xFFFC 0000
16K Bytes
Reserved
USART0
0xFFFC 4000
16K Bytes
0xFFFF F000
AIC USART1
16K Bytes 0xFFFF F200
512 Bytes
0xFFFC 8000
DBGU USART2
16K Bytes 0xFFFF F400
512 Bytes
Undefined (Abort)
1,518M Bytes
0xFFFC C000
PIOA USART3
16K Bytes 0xFFFF F600
512 Bytes
0xFFFD 0000
PIOB SSC0
16K Bytes 0xFFFF F800
512 Bytes
0xFFFD 4000
PIOC SSC1
16K Bytes 0xFFFF FA00
512 bytes
0xFFFD 8000
PIOD SSC2
16K Bytes 0xFFFF FC00
512 bytes
0xFFFD C000
PMC Reserved
0xFFFF FD00
256 Bytes
0xFFFE 0000
ST SPI
16K Bytes 0xFFFF FE00
256 Bytes
0xEFFF FFFF
0xFFFE 4000
RTC Reserved
0xFFFF FF00
256 Bytes
256M Bytes
0xFFFF FFFF
MC
0xFFFF FFFF
256 Bytes
17
1768MSATARM09-Jul-09
A first level of address decoding is performed by the Memory Controller, i.e., by the implementation of the Advanced System Bus (ASB) with additional features. Decoding splits the 4G bytes of address space into 16 areas of 256M bytes. The areas 1 to 8 are directed to the EBI that associates these areas to the external chip selects NC0 to NCS7. The area 0 is reserved for the addressing of the internal memories, and a second level of decoding provides 1M bytes of internal memory area. The area 15 is reserved for the peripherals and provides access to the Advanced Peripheral Bus (APB). Other areas are unused and performing an access within them provides an abort to the master requesting such an access.
8.1
8.1.1 8.1.1.1
Embedded Memories
Internal Memory Mapping Internal RAM The AT91RM9200 integrates a high-speed, 16-Kbyte internal SRAM. After reset and until the Remap Command is performed, the SRAM is only accessible at address 0x20 0000. After Remap, the SRAM is also available at address 0x0. Internal ROM The AT91RM9200 integrates a 128-Kbyte Internal ROM. At any time, the ROM is mapped at address 0x10 0000. It is also accessible at address 0x0 after reset and before the Remap Command if the BMS is tied high during reset. USB Host Port The AT91RM9200 integrates a USB Host Port Open Host Controller Interface (OHCI). The registers of this interface are directly accessible on the ASB Bus and are mapped like a standard internal memory at address 0x30 0000.
8.1.1.2
8.1.1.3
18
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
9. System Peripherals
A complete memory map is shown in Figure 8-1 on page 17.
9.1
Reset Controller
Two reset input lines (NRST and NTRST) providing, respectively: Initialization of the User Interface registers (defined in the user interface of each peripheral) and: Sample the signals needed at bootup Compel the processor to fetch the next instruction at address zero Initialization of the embedded ICE TAP controller
9.2
9.3
1768MSATARM09-Jul-09
the Master Clock MCK the USB Clocks, UHPCK and UDPCK, respectively for the USB Host Port and the USB Device Port Programmable automatic PLL switch-off in USB Device suspend conditions up to thirty peripheral clocks four programmable clock outputs PCK0 to PCK3 Four operating modes: Normal Mode, Idle Mode, Slow Clock Mode, Standby Mode
9.4
Debug Unit
System peripheral to facilitate debug of Atmels ARM-based systems Composed of the following functions Two-pin UART Debug Communication Channel (DCC) support Chip ID Registers Two-pin UART Implemented features are 100% compatible with the standard Atmel USART Independent receiver and transmitter with a common programmable Baud Rate Generator Even, Odd, Mark or Space Parity Generation Parity, Framing and Overrun Error Detection Automatic Echo, Local Loopback and Remote Loopback Channel Modes Interrupt generation Support for two PDC channels with connection to receiver and transmitter Debug Communication Channel Support Offers visibility of COMMRX and COMMTX signals from the ARM Processor Interrupt generation Chip ID Registers Identification of the device revision, sizes of the embedded memories, set of peripherals
9.5
PIO Controller
Up to 32 programmable I/O Lines Fully programmable through Set/Clear Registers Multiplexing of two peripheral functions per I/O Line For each I/O Line (whether assigned to a peripheral or used as general purpose I/O) Input change interrupt Glitch filter Multi-drive option enables driving in open drain Programmable pull up on each I/O line Pin data status register, supplies visibility of the level on the pin at any time
20
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
Synchronous output, provides Set and Clear of several I/O lines in a single write
10.2
Peripheral Identifiers
The AT91RM9200 embeds a wide range of peripherals. Table 10-1 defines the peripheral identifiers of the AT91RM9200. A peripheral identifier is required for the control of the peripheral interrupt with the Advanced Interrupt Controller and for the control of the peripheral clock with the Power Management Controller. Table 10-1.
Peripheral ID 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
Peripheral Identifiers
Peripheral Mnemonic AIC SYSIRQ PIOA PIOB PIOC PIOD US0 US1 US2 US3 MCI UDP TWI SPI SSC0 SSC1 SSC2 TC0 TC1 TC2 TC3 TC4 TC5 UHP Parallel I/O Controller A Parallel I/O Controller B Parallel I/O Controller C Parallel I/O Controller D USART 0 USART 1 USART 2 USART 3 Multimedia Card Interface USB Device Port Two-wire Interface Serial Peripheral Interface Synchronous Serial Controller 0 Synchronous Serial Controller 1 Synchronous Serial Controller 2 Timer/Counter 0 Timer/Counter 1 Timer/Counter 2 Timer/Counter 3 Timer/Counter 4 Timer/Counter 5 USB Host Port Peripheral Name Advanced Interrupt Controller External Interrupt FIQ
21
1768MSATARM09-Jul-09
Table 10-1.
Peripheral ID 24 25 26 27 28 29 30 31
10.3
22
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
10.3.1 PIO Controller A Multiplexing Multiplexing on PIO Controller A
PIO Controller A I/O Line PA0 PA1 PA2 PA3 PA4 PA5 PA6 PA7 PA8 PA9 PA10 PA11 PA12 PA13 PA14 PA15 PA16 PA17 PA18 PA19 PA20 PA21 PA22 PA23 PA24 PA25 PA26 PA27 PA28 PA29 PA30 PA31 Peripheral A MISO MOSI SPCK NPCS0 NPCS1 NPCS2 NPCS3 ETXCK/EREFCK ETXEN ETX0 ETX1 ECRS/ECRSDV ERX0 ERX1 ERXER EMDC EMDIO TXD0 RXD0 SCK0 CTS0 RTS0 RXD2 TXD2 SCK2 TWD TWCK MCCK MCCDA MCDA0 DRXD DTXD Peripheral B PCK3 PCK0 IRQ4 IRQ5 PCK1 TXD3 RXD3 PCK2 MCCDB MCDB0 MCDB1 MCDB2 MCDB3 TCLK0 TCLK1 TCLK2 IRQ6 TIOA0 TIOB0 TIOA1 TIOB1 TIOA2 TIOB2 IRQ3 PCK1 IRQ2 IRQ1 TCLK3 TCLK4 TCLK5 CTS2 RTS2 Reset State I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Function Application Usage Comments
Table 10-2.
23
1768MSATARM09-Jul-09
10.3.2
Table 10-3.
I/O Line PB0 PB1 PB2 PB3 PB4 PB5 PB6 PB7 PB8 PB9 PB10 PB11 PB12 PB13 PB14 PB15 PB16 PB17 PB18 PB19 PB20 PB21 PB22 PB23 PB24 PB25 PB26 PB27 PB28 PB29
Peripheral A TF0 TK0 TD0 RD0 RK0 RF0 TF1 TK1 TD1 RD1 RK1 RF1 TF2 TK2 TD2 RD2 RK2 RF2 RI1 DTR1 TXD1 RXD1 SCK1 DCD1 CTS1 DSR1 RTS1 PCK0 FIQ IRQ0
Peripheral B RTS3 CTS3 SCK3 MCDA1 MCDA2 MCDA3 TIOA3 TIOB3 TIOA4 TIOB4 TIOA5 TIOB5 ETX2 ETX3 ETXER ERX2 ERX3 ERXDV ECOL ERXCK
24
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
10.3.3 PIO Controller C Multiplexing The PIO Controller C has no multiplexing and only peripheral A lines are used. Selecting Peripheral B on the PIO Controller C has no effect. Table 10-4. Multiplexing on PIO Controller C
PIO Controller C I/O Line PC0 PC1 PC2 PC3 PC4 PC5 PC6 PC7 PC8 PC9 PC10 PC11 PC12 PC13 PC14 PC15 PC16 PC17 PC18 PC19 PC20 PC21 PC22 PC23 PC24 PC25 PC26 PC27 PC28 PC29 PC30 PC31 D16 D17 D18 D19 D20 D21 D22 D23 D24 D25 D26 D27 D28 D29 D30 D31 Peripheral A BFCK BFRDY/SMOE BFAVD BFBAA/SMWE BFOE BFWE NWAIT A23 A24 A25/CFRNW NCS4/CFCS NCS5/CFCE1 NCS6/CFCE2 NCS7 Peripheral B Reset State I/O I/O I/O I/O I/O I/O I/O A23 A24 A25 NCS4 NCS5 NCS6 NCS7 I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Function Application Usage Comments
25
1768MSATARM09-Jul-09
10.3.4 PIO Controller D Multiplexing The PIO Controller D multiplexes pure output signals on peripheral A connections, in particular from the EMAC MII interface and the ETM Port on the peripheral B connections. The PIO Controller D is available only in the 256-ball BGA package option of the AT91RM9200. Table 10-5. Multiplexing on PIO Controller D
PIO Controller D I/O Line PD0 PD1 PD2 PD3 PD4 PD5 PD6 PD7 PD8 PD9 PD10 PD11 PD12 PD13 PD14 PD15 PD16 PD17 PD18 PD19 PD20 PD21 PD22 PD23 PD24 PD25 PD26 PD27 TD0 TD1 TD2 NPCS1 NPCS2 NPCS3 RTS0 RTS1 RTS2 RTS3 DTR1 Peripheral A ETX0 ETX1 ETX2 ETX3 ETXEN ETXER DTXD PCK0 PCK1 PCK2 PCK3 TSYNC TCLK TPS0 TPS1 TPS2 TPK0 TPK1 TPK2 TPK3 TPK4 TPK5 TPK6 TPK7 TPK8 TPK9 TPK10 TPK11 TPK12 TPK13 TPK14 TPK15 Peripheral B Reset State I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O Function Application Usage Comments
26
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
10.3.5 System Interrupt The System Interrupt is the wired-OR of the interrupt signals coming from: the Memory Controller the Debug Unit the System Timer the Real-Time Clock the Power Management Controller The clock of these peripherals cannot be controlled and the Peripheral ID 1 can only be used within the Advanced Interrupt Controller. 10.3.6 External Interrupts All external interrupt signals, i.e., the Fast Interrupt signal FIQ or the Interrupt signals IRQ0 to IRQ6, use a dedicated Peripheral ID. However, there is no clock control associated with these peripheral IDs.
10.4
10.5
27
1768MSATARM09-Jul-09
Compliant with LCD Module Programmable Setup Time Read/Write Programmable Hold Time Read/Write Multiple Wait State Management Programmable Wait State Generation External Wait Request Programmable Data Float Time
10.6
SDRAM Controller
Numerous configurations supported 2K, 4K, 8K Row Address Memory Parts SDRAM with two or four Internal Banks SDRAM with 16- or 32-bit Data Path Programming facilities Word, half-word, byte access Automatic page break when Memory Boundary has been reached Multibank Ping-pong Access Timing parameters specified by software Automatic refresh operation, refresh rate is programmable Energy-saving capabilities Self-refresh and Low-power Modes supported Error detection Refresh Error Interrupt SDRAM Power-up Initialization by software Latency is set to two clocks (CAS Latency of 1, 3 Not Supported) Auto Precharge Command not used
10.7
28
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
10.8 Peripheral DMA Controller (PDC)
Generates transfers to/from peripherals such as DBGU, USART, SSC, SPI and MCI Twenty channels One Master Clock cycle needed for a transfer from memory to peripheral Two Master Clock cycles needed for a transfer from peripheral to memory
10.9
System Timer
One Period Interval Timer, 16-bit programmable counter One Watchdog Timer, 16-bit programmable counter One Real-time Timer, 20-bit free-running counter Interrupt Generation on event
10 and 100 Mbits per second data throughput capability Full- and half-duplex operation MII or RMII interface to the physical layer Register interface to address, status and control registers DMA interface, operating as a master on the Memory Controller Interrupt generation to signal receive and transmit completion 28-byte transmit and 28-byte receive FIFOs Automatic pad and CRC generation on transmitted frames Address checking logic to recognize four 48-bit addresses Supports promiscuous mode where all valid frames are copied to memory Supports physical layer management through MDIO interface
10.16 USART
Programmable Baud Rate Generator 5- to 9-bit full-duplex synchronous or asynchronous serial communications 1, 1.5 or 2 stop bits in Asynchronous Mode or 1 or 2 stop bits in Synchronous Mode Parity generation and error detection Framing error detection, overrun error detection 30
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
MSB- or LSB-first Optional break generation and detection By 8 or by-16 over-sampling receiver frequency Optional hardware handshaking RTS-CTS Optional modem signal management DTR-DSR-DCD-RI Receiver time-out and transmitter timeguard Optional Multi-drop Mode with address generation and detection RS485 with driver control signal ISO7816, T = 0 or T = 1 Protocols for interfacing with smart cards NACK handling, error counter with repetition and iteration limit IrDA modulation and demodulation Communication at up to 115.2 Kbps Test Modes Remote Loopback, Local Loopback, Automatic Echo Connection of two Peripheral DMA Controller (PDC) channels Offers buffer transfer without processor intervention The USART describes features allowing management of the Modem Signals DTR, DSR, DCD and RI. For details, see Modem Mode on page 435. In the AT91RM9200, only the USART1 implements these signals, named DTR1, DSR1, DCD1 and RI1. The USART0, USART2 and USART3 do not implement all the modem signals. Only RTS and CTS (RTS0 and CTS0, RTS2 and CTS2, RTS3 and CTS3, respectively) are implemented in these USARTs for other features. Thus, programming the USART0, USART2 or the USART3 in Modem Mode may lead to unpredictable results. In these USARTs, the commands relating to the Modem Mode have no effect and the status bits relating the status of the modem signals are never activated.
31
1768MSATARM09-Jul-09
Interval Measurement Pulse Generation Delay Timing Pulse Width Modulation Up/down Capabilities Each channel is user-configurable and contains: Three external clock inputs Five internal clock inputs Two multi-purpose input/output signals Internal interrupt signal Two global registers that act on all three TC Channels The Timer Counter 0 to 5 are described with five generic clock inputs, TIMER_CLOCK1 to TIMER_CLOCK5. In the AT91RM9200, these clock inputs are connected to the Master Clock (MCK), to the Slow Clock (SLCK) and to divisions of the Master Clock. For details, see Clock Control on page 488. Table 10-6 gives the correspondence between the Timer Counter clock inputs and clocks in the AT91RM9200. Each Timer Counter 0 to 5 displays the same configuration. Table 10-6. Timer Counter Clocks Assignment
TC Clock Input TIMER_CLOCK1 TIMER_CLOCK2 TIMER_CLOCK3 TIMER_CLOCK4 TIMER_CLOCK5 Clock MCK/2 MCK/8 MCK/32 MCK/128 SLCK
32
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
11. Package Drawings
Figure 11-1. 208-lead PQFP Package Drawing
C1
Table 11-1.
Symbol c c1 L L1 R2 R1 S A A1 A2 b
33
1768MSATARM09-Jul-09
34
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
12. AT91RM9200 Ordering Information
Table 12-1. Ordering Information
Ordering Code AT91RM9200-QU-002 AT91RM9200-CJ-002 Package PQFP 208 BGA 256 Package Type Green RoHS-compliant Temperature Operating Range Industrial (-40 C to 85 C)
35
1768MSATARM09-Jul-09
36
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
Revision History (cont.)
Document Ref. Comments Reformatted Section 8. Memories on page 17. Inserted new figure Figure 8-1 on page 17 with overall product memory map. Added Section 11. Package Drawings on page 33. Updated Features and Section 4. Package and Pinout on page 8 with additional details on package options. Updated Table 40-1, Ordering Information, on page 661. 1768LS 1768MS Ordering code AT91RM9200-CI-002 removed from Section 12. AT91RM9200 Ordering Information on page 35 USART3 0XFFECC000 changed into 0XFFFCC000 in Figure 8-1 on page 17 6423 5067 Change Request Ref.
1768JS
1768KS
37
1768MSATARM09-Jul-09
38
AT91RM9200
1768MSATARM09-Jul-09
AT91RM9200
39
1768MSATARM09-Jul-09
40
AT91RM9200
1768MSATARM09-Jul-09
Headquarters
Atmel Corporation 2325 Orchard Parkway San Jose, CA 95131 USA Tel: 1(408) 441-0311 Fax: 1(408) 487-2600
International
Atmel Asia Unit 1-5 & 16, 19/F BEA Tower, Millennium City 5 418 Kwun Tong Road Kwun Tong, Kowloon Hong Kong Tel: (852) 2245-6100 Fax: (852) 2722-1369 Atmel Europe Le Krebs 8, Rue Jean-Pierre Timbaud BP 309 78054 Saint-Quentin-enYvelines Cedex France Tel: (33) 1-30-60-70-00 Fax: (33) 1-30-60-71-11 Atmel Japan 9F, Tonetsu Shinkawa Bldg. 1-24-8 Shinkawa Chuo-ku, Tokyo 104-0033 Japan Tel: (81) 3-3523-3551 Fax: (81) 3-3523-7581
Product Contact
Web Site www.atmel.com www.atmel.com/AT91SAM Technical Support AT91SAM Support Atmel techincal support Sales Contacts www.atmel.com/contacts/
Disclaimer: The information in this document is provided in connection with Atmel products. No license, express or implied, by estoppel or otherwise, to any intellectual property right is granted by this document or in connection with the sale of Atmel products. EXCEPT AS SET FORTH IN ATMELS TERMS AND CONDITIONS OF SALE LOCATED ON ATMELS WEB SITE, ATMEL ASSUMES NO LIABILITY WHATSOEVER AND DISCLAIMS ANY EXPRESS, IMPLIED OR STATUTORY WARRANTY RELATING TO ITS PRODUCTS INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, OR NON-INFRINGEMENT. IN NO EVENT SHALL ATMEL BE LIABLE FOR ANY DIRECT, INDIRECT, CONSEQUENTIAL, PUNITIVE, SPECIAL OR INCIDENTAL DAMAGES (INCLUDING, WITHOUT LIMITATION, DAMAGES FOR LOSS OF PROFITS, BUSINESS INTERRUPTION, OR LOSS OF INFORMATION) ARISING OUT OF THE USE OR INABILITY TO USE THIS DOCUMENT, EVEN IF ATMEL HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Atmel makes no representations or warranties with respect to the accuracy or completeness of the contents of this document and reserves the right to make changes to specifications and product descriptions at any time without notice. Atmel does not make any commitment to update the information contained herein. Unless specifically provided otherwise, Atmel products are not suitable for, and shall not be used in, automotive applications. Atmels products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.
2009 Atmel Corporation. All rights reserved. Atmel, Atmel logo and combinations thereof DataFlash and others, are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM, Thumb and the ARMPowered logo and others are registered trademarks or trademarks ARM Ltd. Other terms and product names may be trademarks of others.
1768MSATARM09-Jul-09