AT91SAM ARM-based Embedded MPU: Description
AT91SAM ARM-based Embedded MPU: Description
SAM9G45
SUMMARY
Description
The ARM926EJ-S based SAM9G45 features the frequently demanded combina-
tion of user interface functionality and high data rate connectivity, including LCD
Controller, resistive touch-screen, camera interface, audio, Ethernet 10/100 and
high speed USB and SDIO. With the processor running at 400 MHz and multiple
100+ Mbps data rate peripherals, the SAM9G45 has the performance and band-
width to the network or local storage media to provide an adequate user
experience.
The SAM9G45 supports DDR2 and NAND Flash memory interfaces for program
and data storage. An internal 133 MHz multi-layer bus architecture associated with
37 DMA channels, a dual external bus interface and distributed memory including
a 64-Kbyte SRAM which can be configured as a tightly coupled memory (TCM)
sustains the high bandwidth required by the processor and the high speed
peripherals.
The I/Os support 1.8V or 3.3V operation, which are independently configurable for
the memory interface and peripheral I/Os. This feature completely eliminates the
need for any external level shifters. In addition it supports 0.8 ball pitch package for
low cost PCB manufacturing.
The SAM9G45 power management controller features efficient clock gating and a
battery backup section minimizing power consumption in active and standby
modes.
6438IS–ATARM–12-Feb-13
1. Features
• 400 MHz ARM926EJ-S™ ARM® Thumb® Processor
– 32 Kbytes Data Cache, 32 Kbytes Instruction Cache, MMU
• Memories
– DDR2 Controller 4-bank DDR2/LPDDR, SDRAM/LPSDR
– External Bus Interface supporting 4-bank DDR2/LPDDR, SDRAM/LPSDR, Static Memories, CompactFlash, SLC NAND
Flash with ECC
– One 64-Kbyte internal SRAM, single-cycle access at system speed or processor speed through TCM interface
– One 64-Kbyte internal ROM, embedding bootstrap routine
• Peripherals
– LCD Controller supporting STN and TFT displays up to 1280*860
– ITU-R BT. 601/656 Image Sensor Interface
– USB Device High Speed, USB Host High Speed and USB Host Full Speed with On-Chip Transceiver
– 10/100 Mbps Ethernet MAC Controller
– Two High Speed Memory Card Hosts (SDIO, SDCard, MMC)
– AC'97 controller
– Two Master/Slave Serial Peripheral Interfaces
– Two Three-channel 16-bit Timer/Counters
– Two Synchronous Serial Controllers (I2S mode)
– Four-channel 16-bit PWM Controller
– Two Two-wire Interfaces
– Four USARTs with ISO7816, IrDA, Manchester and SPI modes
– 8-channel 10-bit ADC with 4-wire Touch Screen support
– Write Protected Registers
• System
– 133 MHz twelve 32-bit layer AHB Bus Matrix
– 37 DMA Channels
– Boot from NAND Flash, SDCard, DataFlash® or serial DataFlash
– Reset Controller with on-chip Power-on Reset
– Selectable 32768 Hz Low-power and 12 MHz Crystal Oscillators
– Internal Low-power 32 kHz RC Oscillator
– One PLL for the system and one 480 MHz PLL optimized for USB High Speed
– Two Programmable External Clock Signals
– Advanced Interrupt Controller and Debug Unit
– Periodic Interval Timer, Watchdog Timer, Real Time Timer and Real Time Clock
• I/O
– Five 32-bit Parallel Input/Output Controllers
– 160 Programmable I/O Lines Multiplexed with up to Two Peripheral I/Os with Schmitt trigger input
• Package
– 324-ball TFBGA, pitch 0.8 mm
SAM9G45 [Summary] 2
6438IS–ATARM–12-Feb-13
2.
B
DM
S
HS B
M /H DM
D F
NC
HS M/H
S
A
B,D D
M
DM
C
11
DP ,DFS
E
HS MA
3
H B
, C
N 2
E
IS
R D
A,HFSD
-
EL
-E C
E
P
P/H DP
T
CK C
O
GS
S
DI
SD A,H
SD HFS
RS
I
O
K
CK
R
S
S
D
D -L
D
D T
DP ,LC
I
I
I
I
I M N
T
M
D
C
VB
LC
LC D0
LC VS CDD
LD DO C,L 3
LC EN CK DH
IS WR DC
ET CK
EC EN R
ER S-E T K
ER ER COL R
E 0- ER
EMDC
ET
IS DO- LCD
IS PCK I D OD
IS HS
IS VS NC
E 0-ET 3 V
NT
TD
T
TM
T S
HH DP
DH DP/
HF
DF
RT
JTA
BM
Block Diagram
PCK0-PCK1
DDR A0-DDR A13
Figure 2-1. SAM9G45 Block Diagram
PIO
HS EHCI HS DDR D S 0..1
DT D PDC DMA
DCache USB HOST USB
ICache
32 Kbytes
MMU 32 Kbytes DDR CS
PLLA DMA DMA DMA DMA DMA DDR2 DDR CLK, DDR CLK
ITCM DTCM Bus Interface
LPDDR DDR CKE
PLLUTMI PMC I D DDR RAS, DDR CAS
IN DDR WE
OSC12M
OUT DDR BA0, DDR BA1
SRAM
WDT PIT 64KB
4 D0-D15
RC A0/NBS0
IN32 GPBR EBI
OSC 32K A1/NBS2/NWR2
OUT32 RTT A2-A15, A18
SHDN A16/BA0
SHDC RTC Multi-Layer AHB Matrix DDR2/
WKUP A17/BA1
LPDDR/
NCS1/SDCS
VDDBU POR
SDRAM
RSTC SDCK, SDCK, SDCKE
NRST Controller
RAS, CAS
VDDCORE POR SDWE, SDA10
PIOA PIOD D M 0..1
Peripheral Peripheral NAND Flash D S 0..1
ROM
PIOB PIOE TRNG DMA Controller NRD
64KB Bridge
Controller ECC NWR0/NWE
PIOC
NWR1/NBS1
NWR3/NBS3
APB NCS0
NANDOE, NANDWE
CF
PDC D16-D31
FIFO PDC PDC PDC
TC0 TC3 PDC NWAIT
TWI0 USART0 4-CH D M 2..3
MCI0/MCI1 TC1 TC4
TWI1 USART1 PWM SPI0 SSC0 A19-A24
SD/SDIO TC2 TC5 AC97 8-CH
USART2 SPI1 SSC1 NCS4/CFCS0
CE ATA 10Bit ADC Static
USART3 NCS5/CFCS1
TouchScreen Memory
A25/CFRNW
Controller
CFCE1-CFCE2
NCS2
PIO NCS3/NANDCS
7
3
S
N
A7
B5
D
D3
M
C
O
DA
0
C
C 3
C 1
2
C
A
DA
IO
IO
9 K
TR
M K
M SI
P
SP S0
0
I
0
V 7
0- F1
-T 3
0 D
D F
PW
1
-T K2
-T A5
N
NPCS
NP S2
NPCS
AD IG
AD M
AD P
AC97C
AC97R
3
GN NA
AD
AC RK1
AC 7F
0-
TF -TK
TK ISO
CI CK
S CT
S C
TD 0-T 1
RF -RD1
K T
D0 D
C
RK -R 1
AD PAD
RD 0-T 1
0-
A0 L
VD RE
B I 5
4 3
M 1
S
TS 97T
O -TC
O - B
LK
O
L -T
O -T K
K
D
RT 0- K1
CT TW 1
T 0-R K3
I
SC 0-R S3
RD 0-S S3
T -G M
0-
CK -TW
C I1
TW
A AD P
T 0
TI K3 IO
TI
TI A3 TCL 2
PW
SPI0 , SPI1 SSC0 , SSC1
TC
TC B0 A2
DA ,MC DA
TW D0
C M
GP
C A,M I0 D
1
I
0 A0-
I
M D C
C
C
CI
M
M I0
M 0 D
6438IS–ATARM–12-Feb-13
SAM9G45 [Summary]
3
3. Signal Description
SAM9G45 [Summary] 4
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
Shutdown, Wakeup Logic
Driven at 0V only.
0: The device is in backup
SHDN Shut-Down Control Output VDDBU mode
1: The device is running (not in
backup mode).
Accept between 0V and
WKUP Wake-Up Input Input VDDBU
VDDBU.
ICE and JTAG
No pull-up resistor, Schmitt
TCK Test Clock Input VDDIOP0
trigger
No pull-up resistor, Schmitt
TDI Test Data In Input VDDIOP0
trigger
TDO Test Data Out Output VDDIOP0
No pull-up resistor, Schmitt
TMS Test Mode Select Input VDDIOP0
trigger
JTAGSEL JTAG Selection Input VDDBU Pull-down resistor (15 kΩ).
RTCK Return Test Clock Output VDDIOP0
Reset/Test
Open-drain output,
NRST Microcontroller Reset (2)
I/O Low VDDIOP0 Pull-Up resistor (100 kΩ),
Schmitt trigger
Pull-down resistor (15 kΩ),
TST Test Mode Select Input VDDBU
Schmitt trigger
Pull-Up resistor (100 kΩ),
NTRST Test Reset Signal Input VDDIOP0
Schmitt trigger
must be connected to GND or
BMS Boot Mode Select Input VDDIOP0
VDDIOP.
Debug Unit - DBGU
(1)
DRXD Debug Receive Data Input
(1)
DTXD Debug Transmit Data Output
Advanced Interrupt Controller - AIC
(1)
IRQ External Interrupt Input Input
(1)
FIQ Fast Interrupt Input Input
PIO Controller - PIOA- PIOB - PIOC - PIOD - PIOE
SAM9G45 [Summary] 5
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
SAM9G45 [Summary] 6
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
NAND Flash Support
NANDCS NAND Flash Chip Select Output Low VDDIOM1
NANDOE NAND Flash Output Enable Output Low VDDIOM1
NANDWE NAND Flash Write Enable Output Low VDDIOM1
DDR2/SDRAM/LPDDR Controller
SDCK,#SDCK DDR2/SDRAM differential clock Output VDDIOM1
SDCKE DDR2/SDRAM Clock Enable Output High VDDIOM1
SDCS DDR2/SDRAM Controller Chip Select Output Low VDDIOM1
BA0 - BA1 Bank Select Output VDDIOM1
SDWE DDR2/SDRAM Write Enable Output Low VDDIOM1
RAS - CAS Row and Column Signal Output Low VDDIOM1
SDA10 SDRAM Address 10 Line Output VDDIOM1
DQS[0..1] Data Strobe Output VDDIOM1
DQM[0..3] Write Data Mask Output VDDIOM1
High Speed Multimedia Card Interface - HSMCIx
(1)
MCIx_CK Multimedia Card Clock I/O
(1)
MCIx_CDA Multimedia Card Slot A Command I/O
MCIx_DA0 - (1)
Multimedia Card Slot A Data I/O
MCIx_DA7
Universal Synchronous Asynchronous Receiver Transmitter - USARTx
(1)
SCKx USARTx Serial Clock I/O
(1)
TXDx USARTx Transmit Data Output
(1)
RXDx USARTx Receive Data Input
(1)
RTSx USARTx Request To Send Output
(1)
CTSx USARTx Clear To Send Input
Synchronous Serial Controller - SSCx
(1)
TDx SSC Transmit Data Output
(1)
RDx SSC Receive Data Input
(1)
TKx SSC Transmit Clock I/O
(1)
RKx SSC Receive Clock I/O
(1)
TFx SSC Transmit Frame Sync I/O
(1)
RFx SSC Receive Frame Sync I/O
SAM9G45 [Summary] 7
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
AC97 Controller - AC97C
(1)
AC97RX AC97 Receive Signal Input
(1)
AC97TX AC97 Transmit Signal Output
(1)
AC97FS AC97 Frame Synchronization Signal Output
(1)
AC97CK AC97 Clock signal Input
Time Counter - TCx
(1)
TCLKx TC Channel x External Clock Input Input
(1)
TIOAx TC Channel x I/O Line A I/O
(1)
TIOBx TC Channel x I/O Line B I/O
Pulse Width Modulation Controller - PWM
(1)
PWMx Pulse Width Modulation Output Output
Serial Peripheral Interface - SPIx_
(1)
SPIx_MISO Master In Slave Out I/O
(1)
SPIx_MOSI Master Out Slave In I/O
(1)
SPIx_SPCK SPI Serial Clock I/O
(1)
SPIx_NPCS0 SPI Peripheral Chip Select 0 I/O Low
SPIx_NPCS1- (1)
SPI Peripheral Chip Select Output Low
SPIx_NPCS3
Two-Wire Interface
(1)
TWDx Two-wire Serial Data I/O
(1)
TWCKx Two-wire Serial Clock I/O
USB Host High Speed Port - UHPHS
HFSDPA USB Host Port A Full Speed Data + Analog VDDUTMII
HFSDMA USB Host Port A Full Speed Data - Analog VDDUTMII
HHSDPA USB Host Port A High Speed Data + Analog VDDUTMII
HHSDMA USB Host Port A High Speed Data - Analog VDDUTMII
HFSDPB USB Host Port B Full Speed Data + Analog VDDUTMII Multiplexed with DFSDP
HFSDMB USB Host Port B Full Speed Data - Analog VDDUTMII Multiplexed with DFSDM
HHSDPB USB Host Port B High Speed Data + Analog VDDUTMII Multiplexed with DHSDP
HHSDMB USB Host Port B High Speed Data - Analog VDDUTMII Multiplexed with DHSDM
USB Device High Speed Port - UDPHS
DFSDM USB Device Full Speed Data - Analog VDDUTMII
DFSDP USB Device Full Speed Data + Analog VDDUTMII
DHSDM USB Device High Speed Data - Analog VDDUTMII
DHSDP USB Device High Speed Data + Analog VDDUTMII
SAM9G45 [Summary] 8
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
Ethernet 10/100
(1)
ETXCK Transmit Clock or Reference Clock Input MII only, REFCK in RMII
(1)
ERXCK Receive Clock Input MII only
(1)
ETXEN Transmit Enable Output
(1)
ETX0-ETX3 Transmit Data Output ETX0-ETX1 only in RMII
(1)
ETXER Transmit Coding Error Output MII only
(1)
ERXDV Receive Data Valid Input RXDV in MII, CRSDV in RMII
(1)
ERX0-ERX3 Receive Data Input ERX0-ERX1 only in RMII
(1)
ERXER Receive Error Input
(1)
ECRS Carrier Sense and Data Valid Input MII only
(1)
ECOL Collision Detect Input MII only
(1)
EMDC Management Data Clock Output
(1)
EMDIO Management Data Input/Output I/O
Image Sensor Interface
ISI_D0-ISI_D11 Image Sensor Data Input VDDIOP2
ISI_MCK Image sensor Reference clock output VDDIOP2
ISI_HSYNC Image Sensor Horizontal Synchro input VDDIOP2
ISI_VSYNC Image Sensor Vertical Synchro input VDDIOP2
ISI_PCK Image Sensor Data clock input VDDIOP2
LCD Controller - LCDC
LCDD0 -
LCD Data Bus Output VDDIOP1
LCDD23
LCDVSYNC LCD Vertical Synchronization Output VDDIOP1
LCDHSYNC LCD Horizontal Synchronization Output VDDIOP1
LCDDOTCK LCD Dot Clock Output VDDIOP1
LCDDEN LCD Data Enable Output VDDIOP1
LCDCC LCD Contrast Control Output VDDIOP1
LCDPWR LCD panel Power enable control Output VDDIOP1
LCDMOD LCD Modulation signal Output VDDIOP1
Touch Screen Analog-to-Digital Converter
Analog input channel 0 or
AD0XP Analog VDDANA Multiplexed with AD0
Touch Screen Top channel
Analog input channel 1 or
AD1XM Analog VDDANA Multiplexed with AD1
Touch Screen Bottom channel
Analog input channel 2 or
AD2YP Analog VDDANA Multiplexed with AD2
Touch Screen Right channel
Analog input channel 3 or
AD3YM Analog VDDANA Multiplexed with AD3
Touch Screen Left channel
SAM9G45 [Summary] 9
6438IS–ATARM–12-Feb-13
Table 3-1. Signal Description List (Continued)
Active Reference
Signal Name Function Type Level Voltage Comments
GPAD4-GPAD7 Analog Inputs Analog VDDANA
TSADTRG ADC Trigger Input VDDANA
TSADVREF ADC Reference Analog VDDANA
Notes: 1. Refer to peripheral multiplexing tables in Section 9.4 “Peripheral Signals Multiplexing on I/O Lines” for these signals.
2. When configured as an input, the NRST pin enables asynchronous reset of the device when asserted low. This allows
connection of a simple push button on the NRST pin as a system-user reset.
3. Programming of this pull-up resistor is performed independently for each I/O line through the PIO Controllers. After
reset, all the I/O lines default as inputs with pull-up resistors enabled, except those which are multiplexed with the
External Bus Interface signals that require to be enabled as Peripheral at reset. This is explicitly indicated in the col-
umn “Reset State” of the peripheral multiplexing tables.
SAM9G45 [Summary] 10
6438IS–ATARM–12-Feb-13
4. Package and Pinout
The SAM9G45 is delivered in a 324-ball TFBGA package.
V
U
T
R
P
N
M
L
K
J
H
G
F
E
D
C
B
A
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
SAM9G45 [Summary] 11
6438IS–ATARM–12-Feb-13
4.2 324-ball TFBGA Package Pinout
SAM9G45 [Summary] 12
6438IS–ATARM–12-Feb-13
Table 4-1. SAM9G45 Pinout for 324-ball BGA Package (Continued)
Pin Signal Name Pin Signal Name Pin Signal Name Pin Signal Name
C15 D2 H6 PE7 M15 DDR_D14 U6 PB17
C16 GNDIOM H7 PE9 M16 DDR_D15 U7 PD7
C17 A18 H8 PE10 M17 DDR_A0 U8 PD10
C18 A12 H9 GNDCORE M18 DDR_A2 U9 PD14
D1 XOUT32 H10 GNDIOP N1 PA3 U10 TCK
D2 PD20 H11 VDDCORE N2 PA9 U11 VDDOSC
D3 GNDBU H12 GNDIOM N3 PA12 U12 GNDOSC
D4 VDDBU H13 GNDIOM N4 PA15 U13 PB10
D5 PC24 H14 DDR_CS N5 PA16 U14 PB26
D6 PC18 H15 DDR_WE N6 PA17 U15 HHSDPB/DHSDP
D7 PC13 H16 DDR_DQM1 N7 PB18 U16 HHSDMB/DHSDM
D8 PC6 H17 DDR_CAS N8 PD6 U17 GNDUTMI
D9 NWR1/NBS1 H18 DDR_NCLK N9 PD16 U18 VDDUTMIC
D10 NANDOE J1 PE19 N10 NTRST V1 PA31
D11 DQM1 J2 PE16 N11 PB9 V2 PB1
D12 D14 J3 PE14 N12 PB24 V3 PB2
D13 D9 J4 PE15 N13 PB28 V4 PB5
D14 D5 J5 PE12 N14 DDR_D13 V5 PB15
D15 D1 J6 PE17 N15 DDR_D8 V6 PD3
D16 VDDIOM1 J7 PE18 N16 DDR_D9 V7 PD5
D17 A11 J8 PE20 N17 DDR_D11 V8 PD12
D18 A10 J9 GNDCORE N18 DDR_D12 V9 PD17
E1 PD21 J10 GNDCORE P1 PA11 V10 TDO
E2 TSADVREF J11 GNDIOP P2 PA13 V11 XOUT
E3 VDDANA J12 GNDIOM P3 PA19 V12 XIN
E4 JTAGSEL J13 GNDIOM P4 PA21 V13 VDDPLLUTMI
E5 TST J14 DDR_A12 P5 PA23 V14 VDDIOP2
E6 PC23 J15 DDR_A13 P6 PB12 V15 HFSDPB/DFSDP
E7 PC16 J16 DDR_CKE P7 PB19 V16 HFSDMB/DFSDM
E8 PC8 J17 DDR_RAS P8 PD8 V17 VDDUTMII
E9 PC1 J18 DDR_CLK P9 PD28 V18 VBG
SAM9G45 [Summary] 13
6438IS–ATARM–12-Feb-13
5. Power Considerations
Some supply pins share common ground (GND) pins whereas others have separate grounds.
The respective power/ground pin assignments are as follows:
VDDCORE GNDCORE
VDDIOM0, VDDIOM1 GNDIOM
VDDIOP0, VDDIOP1, VDDIOP2 GNDIOP
VDDBU GNDBU
VDDUTMIC, VDDUTMII GNDUTMI
VDDPLLUTMI, VDDPLLA, VDDOSC, GNDOSC
VDDANA GNDANA
SAM9G45 [Summary] 14
6438IS–ATARM–12-Feb-13
6. Processor and Architecture
SAM9G45 [Summary] 15
6438IS–ATARM–12-Feb-13
6.2 Bus Matrix
z 12-layer Matrix, handling requests from 11 masters
z Programmable Arbitration strategy
z Fixed-priority Arbitration
z Round-Robin Arbitration, either with no default master, last accessed default master or fixed default master
z Burst Management
z Breaking with Slot Cycle Limit Support
z Undefined Burst Length Support
z One Address Decoder provided per Master
z Three different slaves may be assigned to each decoded memory area: one for internal ROM boot, one for
internal flash boot, one after remap
z Boot Mode Select
z Non-volatile Boot Memory can be internal ROM or external memory on EBI_NCS0
z Selection is made by General purpose NVM bit sampled at reset
z Remap Command
z Allows Remapping of an Internal SRAM in Place of the Boot Non-Volatile Memory (ROM or External Flash)
z Allows Handling of Dynamic Exception Vectors
SAM9G45 [Summary] 16
6438IS–ATARM–12-Feb-13
6.2.2 Matrix Slaves
Each Slave has its own arbiter, thus allowing a different arbitration per Slave to be programmed.
SAM9G45 [Summary] 17
6438IS–ATARM–12-Feb-13
Figure 6-1. DDR Multi-port
LCD
DMA
DDR S1
ARM D
ARM D
ARM I
DDRMP DIS
DDR S2
MATRI
DDR S3
ARM ARM USB Host ISI LCD Ethernet USB USB Host
Slave 926 Instr. 926 Data PDC OHCI DMA DMA DMA MAC Device HS EHCI Reserved
0 Internal SRAM 0 X X X X X X - X X X -
Internal ROM X X X - - - - - X - -
UHP OHCI X X - - - - - - - - -
UHP EHCI X X - - - - - - - - -
1
LCD User Int. X X - - - - - - - - -
UDPHS RAM X X - - - - - - - - -
Reserved X X - - - - - - - - -
2 DDR Port 0 X - - - - - - - - - -
3 DDR Port 1 - X - - - - - - - - -
4 DDR Port 2 - - X X X X - X X X X
5 DDR Port 3 - - X X X X X X X X -
6 EBI X X X X X X X X X X X
7 Internal Periph. X X X - X - - - - - -
SAM9G45 [Summary] 18
6438IS–ATARM–12-Feb-13
Table 6-4. SAM9G45 Masters to Slaves Access with DDRMP_DIS = 1 (default)
Master 0 1 2 3 4&5 6 7 8 9 10 11
USB
ARM ARM HOST ISI LCD Ethernet USB USB Host
Slave 926 Instr. 926 Data PDC OHCI DMA DMA DMA MAC Device HS EHCI Reserved
0 Internal SRAM 0 X X X X X X - X X X -
Internal ROM X X X - - - - - X - -
UHP OHCI X X - - - - - - - - -
UHP EHCI X X - - - - - - - - -
1
LCD User Int. X X - - - - - - - - -
UDPHS RAM X X - - - - - - - - -
Reserved X X - - - - - - - - -
2 DDR Port 0 - - - - - - - - - - X
3 DDR Port 1 - - - - - - X - - - -
4 DDR Port 2 X - X X X X - X X X -
5 DDR Port 3 - X X X X X - X X X -
6 EBI X X X X X X X X X X X
7 Internal Periph. X X X - X - - - - - -
Table 6-5 summarizes the Slave Memory Mapping for each connected Master, depending on the Remap status (RCBx
bit in Bus Matrix Master Remap Control Register MATRIX_MRCR) and the BMS state at reset.
Slave RCBx = 0
RCBx = 1
Base Address BMS = 1 BMS = 0
0x0000 0000 Internal ROM EBI NCS0 Internal SRAM
SAM9G45 [Summary] 19
6438IS–ATARM–12-Feb-13
6.3 Peripheral DMA Controller (PDC)
z Acting as one AHB Bus Matrix Master
z Allows data transfers from/to peripheral to/from any memory space without any intervention of the processor.
z Next Pointer support, prevents strong real-time constraints on buffer management.
The Peripheral DMA Controller handles transfer requests from the channel according to the following priorities (Low to
High priorities):
6.4 USB
The SAM9G45 features USB communication ports as follows:
z 2 Ports USB Host full speed OHCI and High speed EHCI
z 1 Device High speed
USB Host Port A is directly connected to the first UTMI transceiver.
The Host Port B is multiplexed with the USB device High speed and connected to the second UTMI port. The selection
between Host Port B and USB device high speed is controlled by a the bit UDPHS enable bit located in the
UDPHS_CTRL control register.
SAM9G45 [Summary] 20
6438IS–ATARM–12-Feb-13
Figure 6-2. USB Selection
HS HS
Transceiver Transceiver
EN UDPHS
0 1
PA PB
HS
HS EHCI USB
FS OHCI
DMA DMA
SAM9G45 [Summary] 21
6438IS–ATARM–12-Feb-13
6.6 Debug and Test Features
z ARM926 Real-time In-circuit Emulator
z Two real-time Watchpoint Units
z Two Independent Registers: Debug Control Register and Debug Status Register
z Test Access Port Accessible through JTAG Protocol
z Debug Communications Channel
z Debug Unit
z Two-pin UART
z Debug Communication Channel Interrupt Handling
z Chip ID Register
z IEEE1149.1 JTAG Boundary-scan on All Digital Pins.
SAM9G45 [Summary] 22
6438IS–ATARM–12-Feb-13
7. Memories
Figure 7-1. SAM9G45 Memory Mapping
Address Memory Space Internal Memories System Controller
0x00000000 0x00000000 0xFFFF0000
Boot Memory Reserved
Internal Memories 0x00100000 0xFFFFE200
ITCM ECC
0x10000000 0x00200000 0xFFFFE400
DTCM DDRSDRC1
EBI Chip Select 0 0x00300000 0xFFFFE600
SRAM DDRSDRC0
0x20000000 0x00400000 0xFFFFE800
ROM SMC
EBI Chip Select 1 0xFFFFEA00
0x00500000
DDRSDRC1 LCDC MATRIX
0x30000000 0x00600000 23 0xFFFFEC00
UDPHS (DMA) DMAC
0xFFFFEE00 21
EBI Chip Select 2 0x00700000
UHP OHCI DBGU
0x40000000 0x00800000 0xFFFFF000
UHP EHCI AIC
EBI Chip Select 3 0xFFFFF200 0;31
0x00900000
NANDFlash Reserved PIOA
0xFFFFF400 2
0x50000000 0x00A00000
Undefined (Abort) PIOB
EBI Chip Select 4 0xFFFFF600 3
0x0FFFFFFF
Compact Flash Slot 0 PIOC
Internal Peripherals 0xFFFFF800 4
0x60000000 0xF0000000
Reserved PIOD
EBI Chip Select 5 0xFFFFFA00 +5
0xFFF78000
Compact Flash Slot 1 UDPHS PIOE
27 0xFFFFFC00 +5
0x70000000 0xFFF7C000
TC0 TC0 PMC
DDRSDRC0 +0x40 +18 0xFFFFFD00
SYSC
Chip Select
TC0 TC1 RSTC
+18 +0x10 1
0x80000000 +0x80 SYSC
TC0 TC2 SHDWC
+0x20 1
Undefined (Abort) 0xFFF80000 SYSC
HSMCI0 RTT
11 +0x30 1
0xF0000000 0xFFF84000 SYSC
TWI0 PIT
12 +0x40 1
Internal Peripherals 0xFFF88000 SYSC
TWI1 WDT
13 +0x50 1
0xFFFFFFFF 0xFFF8C000 SYSC
USART0 SCKCR
7 +0x60 1
0xFFF90000 SYSC
USART1 GPBR
8 +0x70 1
offset 0xFFF94000 SYSC
block peripheral USART2 Reserved
ID 0xFFF98000 9 0xFFFFFDB0
(+ : wired-or)
USART3 RTC
0xFFF9C000 10 0xFFFFFDC0
SSC0 Reserved
0xFFFA0000 16 0xFFFFFFFF
SSC1
0xFFFA4000 17
SPI0
0xFFFA8000 14
SPI1
0xFFFAC000 15
AC97C
0xFFFB0000 24
TSADCC
0xFFFB4000 20
ISI
0xFFFB8000 26
PWM
0xFFFBC000 19
EMAC
0xFFFC0000 25
Reserved
0xFFFC4000
Reserved
0xFFFC8000
Reserved
0xFFFCC000
TRNG
0xFFFD0000 6
HSMCI1
0xFFFD4000 29
TC1 TC3
+0x40
TC1 TC4
+0x80
TC1 TC5
0xFFFD8000
Reserved
0xFFFFC000
System controller
0xFFFFFFFF
SAM9G45 [Summary] 23
6438IS–ATARM–12-Feb-13
7.1 Memory Mapping
A first level of address decoding is performed by the AHB Bus Matrix, i.e., the implementation of the Advanced High
performance Bus (AHB) for its Master and Slave interfaces with additional features.
Decoding breaks up the 4 Gbytes of address space into 16 banks of 256 Mbytes. The banks 1 to 6 are directed to the EBI
that associates these banks to the external chip selects NCS0 to NCS5.
The bank 7 is directed to the DDRSDRC0 that associates this bank to DDR_NCS chip select and so dedicated to the 4-
port DDR2/LPDDR controller.
The bank 0 is reserved for the addressing of the internal memories, and a second level of decoding provides 1 Mbyte of
internal memory area. The bank 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.
Remap
64K 64K
0x00300000 0x00000000
The SAM9G45 device embeds two memory features. The processor Tightly Coupled Memory Interface (TCM) that
allows the processor to access the memory up to processor speed (PCK) and the interface on the AHB side allowing
masters to access the memory at AHB speed (MCK).
A wait state is necessary to access the TCM at 400 MHz. Setting the bit NWS_TCM in the bus Matrix TCM Configuration
Register of the matrix inserts a wait state on the ITCM and DTCM accesses.
SAM9G45 [Summary] 24
6438IS–ATARM–12-Feb-13
z Internal SRAM B is the ARM926EJ-S Data TCM. The user can map this SRAM block anywhere in the ARM926
data memory space using CP15 instructions. This SRAM block is also accessible by the ARM926 Data Master and
by the AHB Masters through the AHB bus.
z Internal SRAM C is only accessible by all the AHB Masters. After reset and until the Remap Command is
performed, this SRAM block is accessible through the AHB bus at address 0x0030 0000 by all the AHB Masters.
After Remap, this SRAM block also becomes accessible through the AHB bus at address 0x0 by the ARM926
Instruction and the ARM926 Data Masters.
Within the 64 Kbyte SRAM size available, the amount of memory assigned to each block is software programmable
according to Table 7-1.
SAM9G45 [Summary] 25
6438IS–ATARM–12-Feb-13
z Bootloader on a non-volatile memory
z SPI DataFlash/Serial Flash connected on NPCS0 of the SPI0
z SDCard
z Nand Flash
z EEPROM connected on TWI0
z SAM-BA Boot in case no valid program is detected in external NVM, supporting
z Serial communication on a DBGU
z USB Device HS Port
SAM9G45 [Summary] 26
6438IS–ATARM–12-Feb-13
z On Die Termination not supported
z OCD mode not supported
SAM9G45 [Summary] 27
6438IS–ATARM–12-Feb-13
z SDRAM Power-up Initialization by Software
z CAS Latency of 2, 3 Supported
z Auto Precharge Command Not Used
z SDR-SDRAM with 16-bit Datapath and Eight Columns Not Supported
z Clock Frequency Change in Precharge Power-down Mode Not Supported
SAM9G45 [Summary] 28
6438IS–ATARM–12-Feb-13
8. System Controller
The System Controller is a set of peripherals that allows handling of key elements of the system, such as power, resets,
clocks, time, interrupts, watchdog, etc.
The System Controller User Interface also embeds the registers that configure the Matrix and a set of registers for the
chip configuration. The chip configuration registers configure the EBI chip select assignment and voltage range for
external memories.
SAM9G45 [Summary] 29
6438IS–ATARM–12-Feb-13
8.2 System Controller Block Diagram
System Controller
VDDCORE Powered
irq0-irq2 nirq
fiq Advanced nfiq
Interrupt
periph irq 2..24 Controller
pit irq int
rtt irq
wdt irq ntrst
dbgu irq por ntrst ARM926EJ-S
pmc irq
rstc irq
MCK proc nreset
periph nreset Debug dbgu irq
Unit dbgu txd PCK
dbgu rxd
debug
MCK Periodic
debug Interval pit irq
periph nreset Timer
tag nreset Boundary Scan
SLCK
debug Watchdog TAP Controller
idle wdt irq
Timer
proc nreset
MCK
wdt fault
WDRPROC Bus Matrix
periph nreset
NRST
rstc irq
por ntrst periph nreset
VDDCORE tag nreset
POR Reset proc nreset
Controller
backup nreset
VDDBU
VDDBU Powered
VDDBU UPLLCK
POR SLCK
UHP48M
SLCK Real-Time rtc irq
UHP12M
backup nreset Clock rtc alarm USB High Speed
Host Port
rtt irq periph nreset
SLCK Real-Time
backup nreset Timer rtt alarm periph irq 25
SLCK
SHDN
WKUP UPLLCK
Shut-Down
backup nreset Controller
RC rtt0 alarm USB High Speed
periph nreset Device Port
OSC 4 General-purpose
Backup Registers periph irq 24
XIN32 SLOW
CLOCK
XOUT32 OSC SCKCR
SAM9G45 [Summary] 30
6438IS–ATARM–12-Feb-13
8.3 Reset Controller
The Reset Controller is based on two Power-on-Reset cells, one on VDDBU and one on VDDCORE.
The Reset Controller is capable to return to the software the source of the last reset, either a general reset (VDDBU
rising), a wake-up reset (VDDCORE rising), a software reset, a user reset or a watchdog reset.
The Reset Controller controls the internal resets of the system and the NRST pin output. It is capable to shape a reset
signal for the external devices, simplifying to a minimum connection of a push-button on the NRST pin to implement a
manual reset.
The configuration of the Reset Controller is saved as supplied on VDDBU.
RCEN
On Chip
RC OSC
Slow Clock
SLCK
XIN32 Slow Clock
Oscillator
XOUT32 OSCSEL
OSC32EN
OSC32B P
XIN
12M Main Main Clock
Oscillator MAINCK
XOUT
UPLL UPLLCK
Status Control
Power
Management
Controller
SAM9G45 [Summary] 31
6438IS–ATARM–12-Feb-13
8.6 Slow Clock Selection
The SAM9G45 slow clock can be generated either by an external 32768Hz crystal or the on-chip RC oscillator. The
32768 Hz crystal oscillator can be bypassed, by setting the bit OSC32BYP, to accept an external slow clock on XIN32.
The internal RC oscillator and the 32768 Hz oscillator can be enabled by setting to 1 respectively RCEN bit and
OSC32EN bit in the system controller user interface. OSCSEL command selects the slow clock source.
RCEN, OSC32EN,OSCSEL and OSC32BYP bits are located in the slow clock control register (SCKCR) located at
address 0xFFFFFD50 in the backup part of the system controller and so are preserved while VDDBU is present.
RCEN
On Chip
RC OSC
Slow Clock
SLCK
OSC32EN
OSC32B P
After a VDDBU power on reset, the default configuration is RCEN = 1, OSC32EN = 0 and OSCSEL = 0 allowing the
system to start on the internal RC oscillator.
The programmer controls by software the slow clock switching and so must take precautions during the switching phase.
SAM9G45 [Summary] 32
6438IS–ATARM–12-Feb-13
z Wait internal RC Startup Time for clock stabilization (software loop).
z Switch from 32768 Hz oscillator to internal RC oscilllator by setting the bit OSCSEL to 0.
z Wait 5 slow clock cycles for internal resynchronization.
z Disable the 32768Hz oscillator by setting the bit OSC32EN to 0.
SAM9G45 [Summary] 33
6438IS–ATARM–12-Feb-13
Figure 8-4. SAM9G45 Power Management Controller Block Diagram
PLLACK
USBS
UHP48M USB
USBDIV+1 OHCI
UHP12M
/4
USB
EHCI
/1,/2
Processor PCK
UPLLCK Clock
Controller int
Divider
SLCK ON/OFF
MAINCK Prescaler pck[..]
/1,/2,/4,...,/64
UPLLCK
SAM9G45 [Summary] 34
6438IS–ATARM–12-Feb-13
z USB Device High Speed and Host EHCI High Speed operations are NOT allowed
z Full Speed OHCI input clock is PLLACK, USBDIV is 7 (division by 8)
z System Input clock is PLLACK, PCK is 384 MHz
z MDIV is ‘11’, MCK is 128 MHz
z DDR2 can be used at up to 128 MHz
SAM9G45 [Summary] 35
6438IS–ATARM–12-Feb-13
z One 32-bit Vector Register per interrupt source
z Interrupt Vector Register reads the corresponding current Interrupt Vector
z Protect Mode
z Easy debugging by preventing automatic operations when protect modes are enabled
z Fast Forcing
z Permits redirecting any normal interrupt source on the Fast Interrupt of the processor
SAM9G45 [Summary] 36
6438IS–ATARM–12-Feb-13
9. Peripherals
SAM9G45 [Summary] 37
6438IS–ATARM–12-Feb-13
9.3 Peripheral Interrupts and Clock Control
SAM9G45 [Summary] 38
6438IS–ATARM–12-Feb-13
9.4.1 PIO Controller A Multiplexing
SAM9G45 [Summary] 39
6438IS–ATARM–12-Feb-13
9.4.2 PIO Controller B Multiplexing
SAM9G45 [Summary] 40
6438IS–ATARM–12-Feb-13
9.4.3 PIO Controller C Multiplexing
SAM9G45 [Summary] 41
6438IS–ATARM–12-Feb-13
9.4.4 PIO Controller D Multiplexing
SAM9G45 [Summary] 42
6438IS–ATARM–12-Feb-13
9.4.5 PIO Controller E Multiplexing
SAM9G45 [Summary] 43
6438IS–ATARM–12-Feb-13
10. Embedded Peripherals
SAM9G45 [Summary] 44
6438IS–ATARM–12-Feb-13
z RS485 with driver control signal
z ISO7816, T = 0 or T = 1 Protocols for interfacing with smart cards
z NACK handling, error counter with repetition and iteration limit
z IrDA modulation and demodulation
z Communication at up to 115.2 Kbps
z Test Modes
z Remote Loopback, Local Loopback, Automatic Echo
SAM9G45 [Summary] 45
6438IS–ATARM–12-Feb-13
z Common clock generator, providing Thirteen Different Clocks
z A Modulo n counter providing eleven clocks
z Two independent Linear Dividers working on modulo n counter outputs
z Independent channel programming
z Independent Enable Disable Commands
z Independent Clock Selection
z Independent Period and Duty Cycle, with Double Buffering
z Programmable selection of the output waveform polarity
z Programmable center or left aligned output waveform
SAM9G45 [Summary] 46
6438IS–ATARM–12-Feb-13
z 1, 2 bits per pixel (palletized), 4 bits per pixel (non-palletized) for mono STN
z 1, 2, 4, 8 bits per pixel (palletized), 16 bits per pixel (non-palletized) for color STN
z 1, 2, 4, 8 bits per pixel (palletized), 16, 24 bits per pixel (non-palletized) for TFT
z Single clock domain architecture
z Resolution supported up to 2048 x 2048
SAM9G45 [Summary] 47
6438IS–ATARM–12-Feb-13
z Preview scaler to generate smaller size image
SAM9G45 [Summary] 48
6438IS–ATARM–12-Feb-13
11. Mechanical Characteristics
SAM9G45 [Summary] 49
6438IS–ATARM–12-Feb-13
12. SAM9G45 Ordering Information
SAM9G45 [Summary] 50
6438IS–ATARM–12-Feb-13
Revision History
In the table that follows, the initials “rfo” indicate changes requested by product experts, or made during proof reading as
part of the approval process.
Change
Request
Doc. Rev Comments Ref.
6438AS First issue
Section 3. “Signal Description”, Table 3-1 in “Reset/Test” description, NRST pin updated with note concerning 6600
6438BS NRST configuration.
Section 4. “Package and Pinout”, Table 4-1, updated. 6669
Introduction:
“Features” part was edited. 6715
LFBGA replaced by TFBGA in “Features” part and Section 4.1 “Mechanical Overview of the 324-ball TFBGA
RFO
Package”
Section 3. “Signal Description”, Table 3-1, Touch Screen Analog-to-Digital Converter on page 9 part was
6438CS 6647
edited.
VDDCORE removed from “Ground pins GND are common to...” sentence in Section 5.1 “Power
RFO
Supplies”
Figure 6.3 was removed.
6715
0x00500000 changed into 0x00400000 in Section 7.2.3 “Internal ROM”.
“Two Three-channel 16-bit Timer/Counters” peripheral feature changed into “Two Three-channel 16-bit
6828
Timer/Counters” .
ECC row added to Figure 7-1 “SAM9G45 Memory Mapping” 6842
6438DS Section 6.2 “Bus Matrix”, Figure 6-1 “DDR Multi-port”, and text above and below added.
6797
1 row and 1 column added to Table 6-3 and Table 6-4.
Typos corrected in Table 6-6, Table 6-7, Table 9-1 and Figure 2-1:
RFO
RNG --> TRNG, PWMC --> PWM, AC97 --> AC97C, TSDAC --> TSADCC.
Section 7.3 “External Memories” reorganized. RFO
New Figure 11-1 “324-ball TFBGA Package Drawing”. 6954
6438ES
‘11-layer’ --> ‘12-layer’ in Section 6.2 “Bus Matrix”. 7171
Section 10.16 “True Random Number Generator (TRNG)” added. 7172
1st Page/headers & footers: (text where found)
Marcom
Product Line/Product naming convention changed - AT91SAM ARM-based MPU / SAM9G45
Section 5.1 “Power Supplies”, replaced ground pin names by GNDIOM, GNDCORE, GNDANA, GNDIOP, 7322
6438FS GNDBU, GNDOSC, GNDUTMI.
Reorganized text describing GND association to power supply pins. rfo
Section 1. “Description”, updated 2nd paragraph, 1st sentence. “...SAM9G45 supports DDR2...” rfo
SAM9G45 [Summary] 51
6438IS–ATARM–12-Feb-13
Change
Request
Doc. Rev Comments Ref.
6438GS Section 12. “SAM9G45 Ordering Information”, fixed error in ordering information table. 7953
Section 12. “SAM9G45 Ordering Information”, a second ordering code added: AT91SAM9G45B-CU. An MRL
6438HS 7979
column added too.
Section 12. “SAM9G45 Ordering Information”, added AT91SAM9G45C-CU and MLR C to Table 12-1, 8551
6438IS “AT91SAM9G45 Ordering Information”
Section 1. “Features”, added Write Protected Registers to “Peripherals” . 8213
SAM9G45 [Summary] 52
6438IS–ATARM–12-Feb-13
Atmel Corporation Atmel Asia Limited Atmel Munich GmbH Atmel Japan G.K.
1600 Technology Drive Unit 01-5 & 16, 19F Business Campus 16F Shin-Osaki Kangyo Bldg
San Jose, CA 95110 BEA Tower, Millennium City 5 Parkring 4 1-6-4 Osaki, Shinagawa-ku
USA 418 Kwun Tong Road D-85748 Garching b. Munich Tokyo 141-0032
Tel: (+1) (408) 441-0311 Kwun Tong, Kowloon GERMANY JAPAN
Fax: (+1) (408) 487-2600 HONG KONG Tel: (+49) 89-31970-0 Tel: (+81) (3) 6417-0300
www.atmel.com Tel: (+852) 2245-6100 Fax: (+49) 89-3194621 Fax: (+81) (3) 6417-0370
Fax: (+852) 2722-1369
Atmel®, Atmel logo and combinations thereof, , SAM-BA® and others are registered trademarks or trademarks of Atmel Corporation or its subsidiaries. ARM®, the
ARMPowered® logo, Thumb® and others are the registered trademarks or trademarks of ARM Ltd. Windows® and others are registered trademarks or trademarks
of Microsoft Corporation in the US and/or other countries. Other terms and product names may be the trademarks of others.
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 THE ATMEL TERMS AND CONDITIONS OF SALES LOCATED ON THE ATMEL WEBSITE, 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 AND 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 products 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. Atmel products are not intended, authorized, or warranted for use as components in applications intended to support or sustain life.