AT91SAM9G45-EKES Atmel, AT91SAM9G45-EKES Datasheet

KIT EVAL FOR AT91SAM9G45

AT91SAM9G45-EKES

Manufacturer Part Number
AT91SAM9G45-EKES
Description
KIT EVAL FOR AT91SAM9G45
Manufacturer
Atmel
Series
AT91SAM Smart ARMr
Type
MCUr

Specifications of AT91SAM9G45-EKES

Contents
Board
Processor To Be Evaluated
SAM9G45
Data Bus Width
32 bit
Interface Type
I2C, SPI, UART
Maximum Operating Temperature
+ 50 C
Minimum Operating Temperature
- 10 C
Operating Supply Voltage
1.8 V to 3.3 V
For Use With/related Products
AT91SAM9G45
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Other names
Q4626953
Features
400 MHz ARM926EJ-S™ ARM
Memories
Peripherals
System
I/O
Package
– 32 KBytes Data Cache, 32 KBytes Instruction Cache, MMU
– DDR2 Controller 4-bank DDR2/LPDDR, SDRAM/LPSDR
– External Bus Interface supporting 4-bank DDR2/LPDDR, SDRAM/LPSDR, Static
– One 64-KByte internal SRAM, single-cycle access at system speed or processor
– One 64-KByte internal ROM, embedding bootstrap routine
– 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-
– 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
– 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
– Five 32-bit Parallel Input/Output Controllers
– 160 Programmable I/O Lines Multiplexed with up to Two Peripheral I/Os with
– 324-ball TFBGA, pitch 0.8 mm
Memories, CompactFlash, SLC NAND Flash with ECC
speed through TCM interface
Chip Transceiver
Schmitt trigger input
®
Thumb
®
Processor
AT91 ARM
Thumb-based
Microcontrollers
AT91SAM9G45
Preliminary
6438F–ATARM–21-Jun-10

Related parts for AT91SAM9G45-EKES

AT91SAM9G45-EKES Summary of contents

Page 1

... 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 ® Processor AT91 ARM Thumb-based Microcontrollers AT91SAM9G45 Preliminary 6438F–ATARM–21-Jun-10 ...

Page 2

... LCD Controller, resistive touch- screen, camera interface, audio, Ethernet 10/100 and high speed USB and SDIO. With the pro- cessor running at 400MHz and multiple 100+ Mbps data rate peripherals, the AT91SAM9G45 has the performance and bandwidth to the network or local storage media to provide an ade- quate user experience ...

Page 3

... Block Diagram Figure 2-1. AT91SAM9G45 Block Diagram 6438F–ATARM–21-Jun-10 PIO AT91SAM9G45 3 ...

Page 4

... XOUT Main Oscillator Output XIN32 Slow Clock Oscillator Input XOUT32 Slow Clock Oscillator Output VBG Bias Voltage Reference for USB PCK0 - PCK1 Programmable Clock Output AT91SAM9G45 4 gives details on the signal names classified by peripheral. Active Type Level Power Supplies Power Power Power ...

Page 5

... Debug Unit - DBGU Input Output Advanced Interrupt Controller - AIC Input Input PIO Controller - PIOA- PIOB - PIOC - PIOD - PIOE I/O I/O I/O AT91SAM9G45 Reference Voltage Comments Driven at 0V only. 0: The device is in backup mode VDDBU 1: The device is running (not in backup mode). Accept between 0V and VDDBU VDDBU ...

Page 6

... NBS0 - NBS3 Byte Mask Signal CFCE1 - CFCE2 CompactFlash Chip Enable CFOE CompactFlash Output Enable CFWE CompactFlash Write Enable CFIOR CompactFlash IO Read CFIOW CompactFlash IO Write CFRNW CompactFlash Read Not Write AT91SAM9G45 6 Active Reference Type Level (1) I/O (1) I/O I/O VDDIOM0 Output VDDIOM0 Output ...

Page 7

... High Speed Multimedia Card Interface - HSMCIx I/O I/O I/O I/O Output Input Output Input Synchronous Serial Controller - SSCx Output Input I/O I/O I/O I/O AT91SAM9G45 Reference Voltage Comments VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 VDDIOM1 ...

Page 8

... USB Host Port B High Speed Data - DFSDM USB Device Full Speed Data - DFSDP USB Device Full Speed Data + DHSDM USB Device High Speed Data - DHSDP USB Device High Speed Data + AT91SAM9G45 8 Active Type Level AC97 Controller - AC97C Input Output Output Input ...

Page 9

... LCD Controller - LCDC Output Output Output Output Output Output Output Output Touch Screen Analog-to-Digital Converter Analog Analog Analog AT91SAM9G45 Reference Voltage Comments (1) MII only, REFCK in RMII (1) MII only (1) (1) ETX0-ETX1 only in RMII (1) MII only (1) RXDV in MII, CRSDV in RMII (1) ...

Page 10

... I/O lines default as inputs with pull-up resistors enabled, except those which are multiplexed with the External Bus Inter- face signals that require to be enabled as Peripheral at reset. This is explicitly indicated in the column “Reset State” of the peripheral multiplexing tables. AT91SAM9G45 10 Active ...

Page 11

... Package and Pinout The AT91SAM9G45 is delivered in a 324-ball TFBGA package. 4.1 Mechanical Overview of the 324-ball TFBGA Package Figure 4-1 Figure 4-1. 6438F–ATARM–21-Jun-10 shows the orientation of the 324-ball TFBGA Package Orientation of the 324-ball TFBGA Package AT91SAM9G45 Bottom VIEW ...

Page 12

... TFBGA Package Pinout Table 4-1. AT91SAM9G45 Pinout for 324-ball BGA Package Pin Signal Name Pin A1 PC27 E10 A2 PC28 E11 A3 PC25 E12 A4 PC20 E13 A5 PC12 E14 A6 PC7 E15 A7 PC5 E16 A8 PC0 E17 A9 NWR3/NBS3 E18 A10 NCS0 F1 A11 DQS0 F2 A12 RAS ...

Page 13

... Table 4-1. AT91SAM9G45 Pinout for 324-ball BGA Package (Continued) Pin Signal Name Pin C13 D10 H4 C14 D6 H5 C15 D2 H6 C16 GNDIOM H7 C17 A18 H8 C18 A12 H9 D1 XOUT32 H10 D2 PD20 H11 D3 GNDBU H12 D4 VDDBU H13 D5 PC24 H14 D6 PC18 H15 D7 PC13 H16 D8 PC6 ...

Page 14

... Power Considerations 5.1 Power Supplies The AT91SAM9G45 has several types of power supply pins: • VDDCORE pins: Power the core, including the processor, the embedded memories and the peripherals; voltage ranges from 0.9V to 1.1V, 1.0V typical. • VDDIOM0 pins: Power the DDR2/LPDDR I/O lines; voltage ranges between 1.65V and 1.95V (1.8V typical). • ...

Page 15

... Memories Figure 6-1. AT91SAM9G45 Memory Mapping Address Memory Space 0x00000000 Internal Memories 0x10000000 EBI Chip Select 0 0x20000000 EBI Chip Select 1 DDRSDRC1 0x30000000 EBI Chip Select 2 0x40000000 EBI Chip Select 3 NANDFlash 0x50000000 EBI Chip Select 4 Compact Flash Slot 0 0x60000000 EBI Chip Select 5 ...

Page 16

... Embedded Memories 6.2.1 Internal SRAM The AT91SAM9G45 product embeds a total of 64Kbytes high-speed SRAM split in 4 blocks of 16 KBytes connected to one slave of the matrix. After reset and until the Remap Command is performed, the four SRAM blocks are contiguous and only accessible at address 0x00300000. ...

Page 17

... Internal ROM The AT91SAM9G45 embeds an Internal ROM, which contains the boot ROM and SAM-BA program. At any time, the ROM is mapped at address 0x0040 0000 also accessible at address 0x0 (BMS =1) after the reset and before the Remap Command. I/O Drive Selection and Delay Control 6 ...

Page 18

... D[14] <=> DELAY2[27:24], – D[15] <=> DELAY2[31:28] D[31,16]on PIOC[31:16] controlled by 2 registers, DELAY3 and DELAY4, located in the HSMC3 user interface – D[16] <=> DELAY3[3:0], – D[17] <=> DELAY3[7:4],..., – D[22] <=> DELAY3[27:24], – PC[23] <=> DELAY3[31:28] AT91SAM9G45 18 6438F–ATARM–21-Jun-10 ...

Page 19

... PA[23] <=> DELAY2[3:0], – PA[24] <=> DELAY2[7:4],..., – PA[29] <=> DELAY2[27:24], – PA[30] <=> DELAY2[31:28] 7. 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. 6438F–ATARM–21-Jun-10 AT91SAM9G45 19 ...

Page 20

... All the registers of the System Controller can be addressed from a single pointer by using the standard ARM instruction set, as the Load/Store instruction have an indexing mode of ±4 KB. Figure 7-1 on page 21 Figure 6-1 on page 15 peripherals. AT91SAM9G45 20 shows the System Controller block diagram. shows the mapping of the User Interfaces of the System Controller 6438F–ATARM–21-Jun-10 ...

Page 21

... System Controller Block Diagram Figure 7-1. AT91SAM9G45 System Controller Block Diagram periph_irq[2..24] pit_irq rtt_irq wdt_irq dbgu_irq pmc_irq rstc_irq periph_nreset periph_nreset proc_nreset NRST VDDCORE POR VDDBU VDDBU POR backup_nreset backup_nreset SHDN WKUP RC OSC SLOW XIN32 CLOCK XOUT32 OSC XIN 12MHz MAIN OSC ...

Page 22

... Chip Identification The AT91SAM9G45 Chip ID is defined in the Debug Unit Chip ID Register and Debug Unit Chip ID Extension Register. • Chip ID: 0x819B05A2 • Ext ID: 0x00000004 • JTAG ID: 05B2_703F • ARM926 TAP ID: 0x0792603F 7.4 Backup Section The AT91SAM9G45 features a Backup Section that embeds: • ...

Page 23

... Reserved 31 AIC 6438F–ATARM–21-Jun-10 Figure 6-1, the Peripherals are mapped in the upper 256 Mbytes of the address defines the Peripheral Identifiers of the AT91SAM9G45. A peripheral identifier is Peripheral Name Advanced Interrupt Controller System Controller Interrupt Parallel I/O Controller A, Parallel I/O Controller B Parallel I/O Controller C ...

Page 24

... Peripheral ID. However, there is no clock control associated with these peripheral IDs. 8.4 Peripheral Signals Multiplexing on I/O Lines The AT91SAM9G45 features 5 PIO controllers, PIOA, PIOB, PIOC, PIOD and PIOE, which mul- tiplexes the I/O lines of the peripheral set. Each PIO Controller controls lines. Each line can be assigned to one of two peripheral functions The multiplexing tables in the following paragraphs define how the I/O lines of the peripherals A and B are multiplexed on the PIO Controllers. The two columns “ ...

Page 25

... I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 SCK3 I/O VDDIOP0 RTS3 I/O VDDIOP0 CTS3 I/O VDDIOP0 PWM3 I/O VDDIOP0 TIOB2 I/O VDDIOP0 ETXER I/O VDDIOP0 ERXCK I/O VDDIOP0 ECRS I/O VDDIOP0 ECOL I/O VDDIOP0 PCK0 I/O VDDIOP0 AT91SAM9G45 Function Comments 25 ...

Page 26

... ISI_D1 PB22 ISI_D2 PB23 ISI_D3 PB24 ISI_D4 PB25 ISI_D5 PB26 ISI_D6 PB27 ISI_D7 PB28 ISI_PCK PB29 ISI_VSYNC PB30 ISI_HSYNC PB31 ISI_MCK AT91SAM9G45 26 Reset Power Peripheral B State Supply I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 ...

Page 27

... I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 I/O VDDIOM1 AT91SAM9G45 Function Comments 27 ...

Page 28

... TIOA1 PD22 TIOA2 PD23 TCLK0 PD24 SPI0_NPCS1 PD25 SPI0_NPCS2 PD26 PCK0 PD27 PCK1 PD28 TSADTRG PD29 TCLK1 PD30 TIOB0 PD31 TIOB1 AT91SAM9G45 28 Reset Power Peripheral B State Supply PWM3 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O VDDIOP0 I/O ...

Page 29

... I/O VDDIOP1 LCDD15 I/O VDDIOP1 LCDD18 I/O VDDIOP1 LCDD19 I/O VDDIOP1 LCDD20 I/O VDDIOP1 LCDD21 I/O VDDIOP1 LCDD22 I/O VDDIOP1 LCDD23 I/O VDDIOP1 I/O VDDIOP1 I/O VDDIOP1 I/O VDDIOP1 I/O VDDIOP1 I/O VDDIOP1 I/O VDDIOP1 PCK1 I/O VDDIOP1 AT91SAM9G45 Function Comments 29 ...

Page 30

... AT91SAM9G45 30 6438F–ATARM–21-Jun-10 ...

Page 31

... The ARM926EJ-S provides a complete high performance processor subsystem, including: • an ARM9EJ-S integer core • a Memory Management Unit (MMU) • separate instruction and data AMBA AHB bus interfaces • separate instruction and data TCM interfaces 6438F–ATARM–21-Jun-10 ™ processor is a member of the ARM9 AT91SAM9G45 ™ family of general-purpose micropro- 31 ...

Page 32

... Separate Masters for both instruction and data access providing complete Matrix – Separate Address and Data Buses for both the 32-bit instruction interface and the – On Address and Data Buses, data can be 8-bit (Bytes), 16-bit (Half-words) or 32-bit • TCM Interface AT91SAM9G45 32 each quarter of the page system flexibility ...

Page 33

... External Coprocessor Interface ARM9EJ-S Processor Core Read Data Data Instruction Address MMU Instruction Data TLB TLB Data Address AHB Interface and Write Buffer AMBA AHB AT91SAM9G45 ETM9 Trace Port Interface Instruction Fetches Address ITCM Interface Instruction TCM Instruction Address Instruction Cache 33 ...

Page 34

... ARM instructions. The hardware/software split is invisible to the programmer, invisible to the application and invisible to the operating system. All existing ARM registers are re-used in Jazelle state and all registers then have particular functions in this mode. AT91SAM9G45 34 6438F–ATARM–21-Jun-10 ...

Page 35

... R8 R9 R10 R11 6438F–ATARM–21-Jun-10 shows all the registers in all modes. ARM9TDMI Modes and Registers Layout Supervisor Mode Abort Mode R10 R10 R11 R11 AT91SAM9G45 Undefined Interrupt Fast Interrupt Mode Mode R8_FIQ R9 R9 R9_FIQ R10 R10 R10_FIQ R11 R11 R11_FIQ ...

Page 36

... The Thumb state register set is a subset of the ARM state set. The programmer has direct access to: • Eight general-purpose registers r0-r7 • Stack pointer, SP • Link register, LR (ARM r14) • PC AT91SAM9G45 36 ARM9TDMI Modes and Registers Layout Supervisor Mode Abort Mode R12 ...

Page 37

... Software interrupt and Reset (Supervisor) 6438F–ATARM–21-Jun-10 Status Register Format Reserved Jazelle state bit Reserved Sticky Overflow Overflow Carry/Borrow/Extend Zero Negative/Less than shows the status register format, where: AT91SAM9G45 Mode Mode bits Thumb state bit FIQ disable IRQ disable 37 ...

Page 38

... The Prefetch Abort is one of the aborts that indicates that the current memory access cannot be completed. When a Prefetch Abort occurs, the ARM9EJ-S marks the prefetched instruction as invalid, but does not take the exception until the instruction reaches the Execute stage in the AT91SAM9G45 38 into LR (current PC(r15 depending on the exception). ...

Page 39

... Multiply Sign Long Multiply Signed Long Multiply Accumulate Move to Status Register B Branch Branch and Exchange Load Word Load Signed Halfword Load Signed Byte AT91SAM9G45 Mnemonic Operation MVN Move Not ADC Add with Carry SBC Subtract with Carry RSC Reverse Subtract with Carry ...

Page 40

... The Thumb instruction set is a re-encoded subset of the ARM instruction set. The Thumb instruction set is divided into: • Branch instructions • Data processing instructions • Load and Store instructions • Load and Store multiple instructions AT91SAM9G45 40 ARM Instruction Mnemonic List (Continued) Operation Load Half Word Load Byte ...

Page 41

... Arithmetic Shift Right Multiply Branch Branch and Exchange Load Word Load Half Word Load Byte Load Signed Halfword Load Multiple Push Register to stack Conditional Branch AT91SAM9G45 Mnemonic Operation MVN Move Not ADC Add with Carry SBC Subtract with Carry CMN Compare Negated ...

Page 42

... ARM9EJ-S • Caches (ICache, DCache and write buffer) • TCM • MMU • Other system options To control these features, CP15 provides 16 additional registers. See Table 9-5. Register Notes: AT91SAM9G45 42 CP15 Registers Name ( Code (1) 0 Cache type ...

Page 43

... MCR instruction 1 = MRC instruction • opcode_1[23:20]: Coprocessor Code Defines the coprocessor specific code. Value is c15 for CP15. • cond [31:28]: Condition For more details, see Chapter 2 in ARM926EJ-S TRM. 6438F–ATARM–21-Jun-10 MCR/MRC{cond} p15, opcode_1, Rd, CRn, CRm, opcode_2 AT91SAM9G45 CRn CRm 43 ...

Page 44

... Translation Look-aside Buffer (TLB) The Translation Look-aside Buffer (TLB) caches translated entries and thus avoids going through the translation process every time. When the TLB contains an entry for the MVA (Modi- AT91SAM9G45 44 Mapping Details Mapping Size Access Permission By ...

Page 45

... The fault address register (register 6 in CP15) holds the MVA associated with the access that caused the Data Abort. For further details on MMU faults, please refer to chapter 3 in ARM926EJ-S Technical Reference Manual. 6438F–ATARM–21-Jun-10 AT91SAM9G45 45 ...

Page 46

... This means that the MMU is not involved in write-back operations. Each line (8 words) in the DCache has two dirty bits, one for the first four words and the other one for the second four words. These bits, if set, mark the associated half-lines as dirty. If the AT91SAM9G45 46 6438F–ATARM–21-Jun-10 ...

Page 47

... When a cache write hit occurs, the cache line or half line is marked as dirty, meaning that its contents are not up-to-date with those in the external memory. When a cache write miss occurs, a line, chosen by round robin or another algorithm, is stored in the write buffer which transfers it to external memory. 6438F–ATARM–21-Jun-10 AT91SAM9G45 47 ...

Page 48

... However, the base address of a TCM must be aligned to its size, and the DTCM and ITCM regions must not overlap. TCM mapping is per- formed by using TCM region register (register 9) in CP15. The user should input the right mapping address for TCMs. AT91SAM9G45 48 6438F–ATARM–21-Jun-10 ...

Page 49

... NCB, WT that has missed in DCache) • data read (NCNB or NCB) • NC instruction fetch (prefetched and non-prefetched) • page table walk read Half-line cache write-back, Instruction prefetch, if enabled. Four-word burst NCNB, NCB, WT write. Full-line cache write-back, eight-word burst NCNB, NCB, WT write. Cache linefill AT91SAM9G45 49 ...

Page 50

... AT91SAM9G45 50 6438F–ATARM–21-Jun-10 ...

Page 51

... AT91SAM9G45 Debug and Test 10.1 Description The AT91SAM9G45 features a number of complementary debug and test capabilities. A com- mon JTAG/ICE (In-Circuit Emulator) port is used for standard debugging functions, such as downloading code and single-stepping through programs. The Debug Unit provides a two-pin UART that can be used to upload an application into internal SRAM. It manages the interrupt handling of the internal COMMTX and COMMRX signals that trace the activity of the Debug Communication Channel ...

Page 52

... Block Diagram Figure 10-1. Debug and Test Block Diagram TAP: Test Access Port AT91SAM9G45 52 ICE/JTAG Boundary TAP Port ARM9EJ-S ICE-RT ARM926EJ-S PDC DBGU TMS TCK TDI NTRST JTAGSEL TDO RTCK POR Reset and TST Test DTXD DRXD 6438F–ATARM–21-Jun-10 ...

Page 53

... Trace Port interface utilizing the ICE/JTAG interface. Figure 10-2. Application Debug and Trace Environment Example 6438F–ATARM–21-Jun-10 shows a complete debug environment example. The ICE/JTAG inter- ICE/JTAG Interface ICE/JTAG Connector RS232 AT91SAM9G45 Connector AT91SAM9G45-based Application Board AT91SAM9G45 Host Debugger PC Terminal 53 ...

Page 54

... Test vectors are sent and inter- Test Adaptor JTAG Interface ICE/JTAG Chip n AT91SAM9G45 AT91SAM9G45-based Application Board In Test Debug and Test Pin List Function Reset/Test Microcontroller Reset Test Mode Select ICE and JTAG Test Reset Signal Test Clock ...

Page 55

... TCK clock and take not care about the given ratio between the ICE Interface clock and system clock equal to 1/6th. This signal is only available in JTAG ICE Mode and not in boundary scan mode. 6438F–ATARM–21-Jun-10 AT91SAM9G45 ™ is supported via the ICE/JTAG port connected ...

Page 56

... A specific register, the Debug Unit Chip ID Register, gives information about the product version and its internal configuration. The AT91SAM9G45 Debug Unit Chip ID value is 0x819B 05A2 and the extended ID is 0x00000004 on 32-bit width. For further details on the Debug Unit, see the Debug Unit section. ...

Page 57

... Note: All the memory blocks can always be seen at their specified base addresses that are not concerned by these parameters. The AT91SAM9G45 manages a boot memory that depends on the level on the BMS pin at reset. The internal memory area mapped between address 0x0 and 0x000F FFFF is reserved to this effect ...

Page 58

... Flow Diagram The Boot Program implements the algorithm shown below in Figure 11-1. Boot Program Algorithm Flow Diagram AT91SAM9G45 58 Device S etup Y es Valid boot code Copy and run it found in one in internal NVM No S AM-BA Monitor Figure 11-1. 6438F–ATARM–21-Jun-10 ...

Page 59

... C variable initialization: non zero-initialized data are initialized in RAM (copy from ROM to RAM). Zero-initialized data are set RAM. 6. PLLA initialization: PLLA is configured to allow communication on the USB link for the SAM-BA Monitor. Its configuration depends on the Main Oscillator source (external clock or crystal) and on its frequency. 6438F–ATARM–21-Jun-10 AT91SAM9G45 59 ...

Page 60

... Y es Copy the valid code from external NVM to internal SRAM. Restore the reset values for the peripherals. Perform the REMAP and set the jump to the downloaded application End AT91SAM9G45 Restore the reset values for the peripherals and Jump to next boot solution 60 ...

Page 61

... ARM exception vectors. Except for the sixth vector, these bytes must implement the ARM instructions for either branch or load PC with PC relative addressing. Figure 11-4. LDR Opcode 6438F–ATARM–21-Jun-10 0x0000_0000 Internal ROM 0x0030_0000 Internal SRAM 0x0040_0000 Internal ROM AT91SAM9G45 0x0000_0000 REMAP Internal SRAM 0x0030_0000 Internal SRAM 0x0040_0000 Internal ROM set 61 ...

Page 62

... The NVM bootloader program looks for a boot.bin file in the root directory of a FAT12/16/32 for- matted NVM Flash. 6438F–ATARM–21-Jun- Size of the code to download in bytes ea000006 B 0x20 eafffffe B 0x04 ea00002f B _main eafffffe B 0x0c eafffffe B 0x10 <- Code size = 4660 bytes < 60kB 00001234 B 0x14 eafffffe B 0x18 AT91SAM9G45 O set (24 bits ...

Page 63

... Yes Copy from NAND Flash to SRAM Yes Copy from SD Card to SRAM Yes Copy from SPI Flash to SRAM Yes Copy from TWI EEPROM to SRAM AT91SAM9G45 NAND Flash Bootloader Run SD Card Bootloader Run SPI Flash Bootloader Run TWI EEPROM Bootloader Run Table 11-1 ...

Page 64

... AT91SAM9G45 inTable BlockSsize (Bytes) Bus Width Voltage (V) 4096 8 4096 8 8196 8 4096 8 4096 8 4096 8 8196 8 8196 8 8196 8 8196 8 16384 8 16384 8 16384 16 16384 ...

Page 65

... Mbit 2 Mbits 4 Mbits 8 Mbits 16 Mbits 32 Mbits 64 Mbits 2 C-compatible TWI EEPROM memories using 7 bits device contains a list of pins that are driven during the boot program execution. These pins AT91SAM9G45 Page Size (bytes) Number of Pages 264 512 264 1024 264 2048 264 4096 ...

Page 66

... EBI CS3 SMC MCI0 MCI0 MCI0 MCI0 MCI0 MCI0 SPI0 SPI0 SPI0 SPI0 TWI0 TWI0 DBGU DBGU loop waiting for different commands as listed in AT91SAM9G45 Pin PIO Line NANDCS PIOC14 NAND ALE A21 NAND CLE A22 Cmd/Addr/Data D[16:0] MCI0_CK PIOA0 MCI0_CD PIOA1 MCI0_D0 ...

Page 67

... Address, Value# read a half word Address,# write a word Address, Value# read a word Address,# send a file Address,# receive a file Address, NbOfBytes# go Address# display version No argument AT91SAM9G45 on DBGU ? Y es Run monitor on the DBGU link Example N# T# O200001,CA# o200001,# H200002,CAFE# h200002,# W200000,CAFEDECA# w200000,# S200000,# ...

Page 68

... AT91SAM9G45 68 There is a time-out on this command which is reached when the prompt ‘>’ appears before the end of the command execution. ...

Page 69

... Host C SOH 01 FE Data[128] CRC CRC ACK SOH 02 FD Data[128] CRC CRC ACK SOH 03 FC Data[100] CRC CRC ACK EOT ACK ® ® , from Windows 98SE to Windows XP AT91SAM9G45 Device ® . The CDC document, available at 69 ...

Page 70

... Endpoint 64-byte Bulk OUT endpoint and endpoint 64-byte Bulk IN endpoint. SAM- BA Boot commands are sent by the host through endpoint 1. If required, the message is split by the host into several data payloads by the host driver. If the command requires a response, the host can send IN transactions to pick up the response. AT91SAM9G45 70 Handled Standard Requests Definition Returns the current device configuration value ...

Page 71

... The configuration of the Reset Controller is saved as supplied on VDDBU. 12.3 Block Diagram Figure 12-1. Reset Controller Block Diagram Main Supply POR Backup Supply POR NRST WDRPROC wd_fault 6438F–ATARM–21-Jun-10 Reset Controller Startup Counter Reset State Manager user_reset NRST Manager nrst_out exter_nreset SLCK AT91SAM9G45 rstc_irq proc_nreset periph_nreset backup_neset 71 ...

Page 72

... The NRST Manager samples the NRST pin at Slow Clock speed. When the line is detected low, a User Reset is reported to the Reset State Manager. However, the NRST Manager can be programmed to not trigger a reset when an assertion of NRST occurs. Writing the bit URSTEN RSTC_MR disables the User Reset trigger. AT91SAM9G45 72 Figure 12-2 shows the block diagram of the NRST Manager. ...

Page 73

... Startup Counter, which operates at Slow Clock. The pur- pose of this counter is to make sure the Slow Clock oscillator is stable before starting up the 6438F–ATARM–21-Jun-10 Slow Clock cycles. This gives the approximate duration of an assertion between 60 μs XXX BMS sampling delay = 3 cycles AT91SAM9G45 ...

Page 74

... SLCK MCK Backup Supply POR output Main Supply POR output backup_nreset proc_nreset RSTTYP periph_nreset NRST (nrst_out) AT91SAM9G45 74 shows how the General Reset affects the reset signals. Startup Time Processor Startup = 3 cycles XXX EXTERNAL RESET LENGTH = 2 cycles Any Freq. 0x0 = General Reset ...

Page 75

... The User Reset is left when NRST rises, after a two-cycle resynchronization time and a 3-cycle processor startup. The processor clock is re-enabled as soon as NRST is confirmed high. 6438F–ATARM–21-Jun-10 Resynch. Processor Startup 2 cycles = 3 cycles XXX EXTERNAL RESET LENGTH = 4 cycles (ERSTL = 1) AT91SAM9G45 Any Freq. 0x1 = WakeUp Reset XXX 75 ...

Page 76

... EXTRST: Writing EXTRST at 1 asserts low the NRST pin during a time defined by the field ERSTL in the Mode Register (RSTC_MR). The software reset is entered if at least one of these bits is set by the software. All these com- mands can be performed independently or simultaneously. The software reset lasts 3 Slow Clock cycles. AT91SAM9G45 Resynch ...

Page 77

... ERSTL. However, the resulting low level on NRST does not result in a User Reset state. 6438F–ATARM–21-Jun-10 Any Freq. Resynch. Processor Startup 1 cycle = 3 cycles XXX Any EXTERNAL RESET LENGTH AT91SAM9G45 0x3 = Software Reset 8 cycles (ERSTL=2) 77 ...

Page 78

... A watchdog event is impossible because the Watchdog Timer is being reset by the – A software reset is impossible, since the processor reset is being activated. • When in Software Reset: – A watchdog event has priority over the current state. – The NRST has no effect. AT91SAM9G45 78 Any Freq. Processor Startup ...

Page 79

... URSTIEN bit in the RSTC_MR register, the URSTS bit triggers an interrupt. Reading the RSTC_SR status register resets the URSTS bit and clears the interrupt. Figure 12-9. Reset Controller Status and Interrupt MCK Peripheral Access 2 cycle resynchronization NRST NRSTL URSTS rstc_irq if (URSTEN = 0) and (URSTIEN = 1) 6438F–ATARM–21-Jun-10 AT91SAM9G45 read RSTC_SR 2 cycle resynchronization Figure 79 ...

Page 80

... Register Mapping Offset Register 0x00 Control Register 0x04 Status Register 0x08 Mode Register Note: 1. The reset value of RSTC_SR either reports a General Reset or a Wake-up Reset depending on last rising power supply. AT91SAM9G45 80 Name Access RSTC_CR Write-only RSTC_SR Read-only RSTC_MR Read-write Reset Backup Reset ...

Page 81

... If KEY is correct, asserts the NRST pin. • KEY: Password Should be written at value 0xA5. Writing any other value in this field aborts the write operation. 6438F–ATARM–21-Jun- KEY – – – – – – – – EXTRST AT91SAM9G45 – – – PERRST – PROCRST 24 16 – 8 – ...

Page 82

... Registers the NRST Pin Level at Master Clock (MCK). • SRCMP: Software Reset Command in Progress software command is being performed by the reset controller. The reset controller is ready for a software command software reset command is being performed by the reset controller. The reset controller is busy. AT91SAM9G45 – ...

Page 83

... KEY: Password Should be written at value 0xA5. Writing any other value in this field aborts the write operation. 6438F–ATARM–21-Jun- KEY – – – – – URSTIEN – AT91SAM9G45 – – ERSTL – – URSTEN (ERSTL+1) Slow Clock cycles. This 83 ...

Page 84

... AT91SAM9G45 84 6438F–ATARM–21-Jun-10 ...

Page 85

... Slow Clock is 32.768 kHz). The 32-bit counter can count sponding to more than 136 years, then roll over to 0. 6438F–ATARM–21-Jun-10 Controller 0 RTT_SR 1 0 32-bit Counter RTT_SR CRTV RTT_SR ALMV AT91SAM9G45 RTT_MR RTTINCIEN set RTTINC reset read RTT_MR ALMIEN reset ALMS set = rtt_int ...

Page 86

... Writing the bit RTTRST in RTT_MR immediately reloads and restarts the clock divider with the new programmed value. This also resets the 32-bit counter. Note: AT91SAM9G45 86 Because of the asynchronism between the Slow Clock (SCLK) and the System Clock (MCK): 1) The restart of the counter and the reset of the RTT_VR current value register is effective only 2 slow clock cycles after the write of the RTTRST bit in the RTT_MR register ...

Page 87

... Figure 13-2. RTT Counting SCLK RTPRES - 1 Prescaler 0 RTT RTTINC (RTT_SR) ALMS (RTT_SR) APB Interface 6438F–ATARM–21-Jun-10 APB cycle ... 0 ALMV-1 ALMV AT91SAM9G45 APB cycle ALMV+1 ALMV+2 ALMV+3 read RTT_SR 87 ...

Page 88

... Real-time Timer (RTT) User Interface Table 13-1. Register Mapping Offset Register 0x00 Mode Register 0x04 Alarm Register 0x08 Value Register 0x0C Status Register AT91SAM9G45 88 Name Access RTT_MR Read-write RTT_AR Read-write RTT_VR Read-only RTT_SR Read-only Reset 0x0000_8000 0xFFFF_FFFF 0x0000_0000 0x0000_0000 6438F–ATARM–21-Jun-10 ...

Page 89

... The bit RTTINC in RTT_SR asserts interrupt. • RTTRST: Real-time Timer Restart 1 = Reloads and restarts the clock divider with the new programmed value. This also resets the 32-bit counter. 6438F–ATARM–21-Jun- – – – – – – RTPRES RTPRES 16 . AT91SAM9G45 – – RTTRST RTTINCIEN ALMIEN – ...

Page 90

... Defines the alarm value (ALMV+1) compared with the Real-time Timer. 13.5.3 Real-time Timer Value Register Register Name: RTT_VR Address: 0xFFFFFD28 Access Type: Read-only • CRTV: Current Real-time Value Returns the current value of the Real-time Timer. AT91SAM9G45 ALMV ALMV ALMV ALMV 29 28 ...

Page 91

... The Real-time Timer has not been incremented since the last read of the RTT_SR The Real-time Timer has been incremented since the last read of the RTT_SR. 6438F–ATARM–21-Jun- – – – – – – – – – – – – AT91SAM9G45 – – – – – – – – – – RTTINC ALMS 91 ...

Page 92

... AT91SAM9G45 92 6438F–ATARM–21-Jun-10 ...

Page 93

... Alarm and update parallel load • Control of alarm and update Time/Calendar Data In 14.3 Block Diagram Figure 14-1. RTC Block Diagram Crystal Oscillator: SLCK Bus Interface 6438F–ATARM–21-Jun-10 32768 Divider Time Bus Interface Entry Control AT91SAM9G45 Date Interrupt RTC Interrupt Control 93 ...

Page 94

... Each of these fields can be enabled or disabled to match the alarm condition: • If all the fields are enabled, an alarm flag is generated (the corresponding flag is asserted and an interrupt generated if enabled given month, date, hour/minute/second. • If only the “seconds” field is enabled, then an alarm is generated every minute. AT91SAM9G45 94 6438F–ATARM–21-Jun-10 ...

Page 95

... If the 12-hour mode is selected by means of the RTC_MODE register, a 12-hour value can be pro- grammed and the returned value on RTC_TIME will be the corresponding 24-hour value. The entry control checks the value of the AM/PM indicator (bit 22 of RTC_TIME register) to determine the range to be checked. AT91SAM9G45 95 ...

Page 96

... Figure 14-2. Update Sequence Prepare TIme or Calendar Fields Set UPDTIM and/or UPDCAL Clear ACKUPD bit in RTC_SCCR Update Time andor Calendar values in Clear UPDTIM and/or UPDCAL bit in AT91SAM9G45 96 Begin bit(s) in RTC_CR Read RTC_SR No ACKUPD = 1 ? Yes RTC_TIMR/RTC_CALR RTC_CR End Polling or IRQ (if enabled) 6438F–ATARM–21-Jun-10 ...

Page 97

... Status Register 0x1C Status Clear Command Register 0x20 Interrupt Enable Register 0x24 Interrupt Disable Register 0x28 Interrupt Mask Register 0x2C Valid Entry Register 6438F–ATARM–21-Jun-10 AT91SAM9G45 Name Access RTC_CR Read-write RTC_MR Read-write RTC_TIMR Read-write RTC_CALR Read-write RTC_TIMALR Read-write RTC_CALALR ...

Page 98

... Every day at noon. • CALEVSEL: Calendar Event Selection The event that generates the flag CALEV in RTC_SR depends on the value of CALEVSEL Week change (every Monday at time 00:00:00 Month change (every 01 of each month at time 00:00:00 Year change (every January 1 at time 00:00:00). AT91SAM9G45 – ...

Page 99

... HRMOD: 12-/24-hour Mode 0 = 24-hour mode is selected 12-hour mode is selected. All non-significant bits read zero. 6438F–ATARM–21-Jun- – – – – – – – – – – – – AT91SAM9G45 – – – – – – – – – – – HRMOD 99 ...

Page 100

... The lowest four bits encode the units. The higher bits encode the tens. • HOUR: Current Hour The range that can be set (BCD) in 12-hour mode (BCD) in 24-hour mode. • AMPM: Ante Meridiem Post Meridiem Indicator This bit is the AM/PM indicator in 12-hour mode AM PM. All non-significant bits read zero. AT91SAM9G45 100 – – – ...

Page 101

... DATE: Current Day in Current Month The range that can be set (BCD). The lowest four bits encode the units. The higher bits encode the tens. All non-significant bits read zero. 6438F–ATARM–21-Jun- YEAR CENT AT91SAM9G45 26 25 DATE 18 17 MONTH 101 ...

Page 102

... This field is the alarm field corresponding to the BCD-coded hour counter. • AMPM: AM/PM Indicator This field is the alarm field corresponding to the BCD-coded hour counter. • HOUREN: Hour Alarm Enable 0 = The hour-matching alarm is disabled The hour-matching alarm is enabled. AT91SAM9G45 102 – – ...

Page 103

... This field is the alarm field corresponding to the BCD-coded date counter. • DATEEN: Date Alarm Enable 0 = The date-matching alarm is disabled The date-matching alarm is enabled. 6438F–ATARM–21-Jun- – – – – – – – AT91SAM9G45 26 25 DATE 18 17 MONTH 10 9 – – – – – 0 – 103 ...

Page 104

... No calendar event has occurred since the last clear least one calendar event has occurred since the last clear. The calendar event is selected in the CALEVSEL field in RTC_CR and can be any one of the following events: week change, month change and year change. AT91SAM9G45 104 – ...

Page 105

... CALCLR: Calendar Clear effect Clears corresponding status flag in the Status Register (RTC_SR). 6438F–ATARM–21-Jun- – – – – – – – – – – CALCLR TIMCLR AT91SAM9G45 26 25 – – – – – – SECCLR ALRCLR ACKCLR 24 – 16 – 8 – 0 105 ...

Page 106

... SECEN: Second Event Interrupt Enable effect The second periodic interrupt is enabled. • TIMEN: Time Event Interrupt Enable effect The selected time event interrupt is enabled. • CALEN: Calendar Event Interrupt Enable effect. • The selected calendar event interrupt is enabled. AT91SAM9G45 106 – – – 21 ...

Page 107

... CALDIS: Calendar Event Interrupt Disable effect The selected calendar event interrupt is disabled. 6438F–ATARM–21-Jun- – – – – – – – – – – CALDIS TIMDIS AT91SAM9G45 – – – – – – SECDIS ALRDIS ACKDIS – – 8 – 0 107 ...

Page 108

... The second periodic interrupt is enabled. • TIM: Time Event Interrupt Mask 0 = The selected time event interrupt is disabled The selected time event interrupt is enabled. • CAL: Calendar Event Interrupt Mask 0 = The selected calendar event interrupt is disabled The selected calendar event interrupt is enabled. AT91SAM9G45 108 – – ...

Page 109

... No invalid data has been detected in RTC_CALALR (Calendar Alarm Register RTC_CALALR has contained invalid data since it was last programmed. 6438F–ATARM–21-Jun- – – – – – – – – – – – NVCALALR AT91SAM9G45 26 25 – – – – – – NVTIMALR NVCAL NVTIM 24 – 16 – 8 – 0 109 ...

Page 110

... AT91SAM9G45 110 6438F–ATARM–21-Jun-10 ...

Page 111

... The PIT provides a programmable overflow counter and a reset-on-read feature built around two counters: a 20-bit CPIV counter and a 12-bit PICNT counter. Both counters work at Master Clock /16. 6438F–ATARM–21-Jun-10 PIT_MR PIV = ? 0 1 PIT_PIVR PIT_PIIR AT91SAM9G45 set 0 PIT_SR PITS reset 0 1 12-bit Adder read PIT_PIVR ...

Page 112

... PIV value is reached, and is then reset. PIT restarts counting, only if the PITEN is set again. The PIT is stopped when the core enters debug state. Figure 15-2. Enabling/Disabling PIT with PITEN 15 MCK Prescaler 0 PITEN CPIV 0 PICNT PITS (PIT_SR) APB Interface AT91SAM9G45 112 APB cycle MCK 1 PIV - 1 PIV 1 0 read PIT_PIVR Figure 15-2 APB cycle ...

Page 113

... Periodic Interval Timer (PIT) User Interface Table 15-1. Register Mapping Offset Register 0x00 Mode Register 0x04 Status Register 0x08 Periodic Interval Value Register 0x0C Periodic Interval Image Register 6438F–ATARM–21-Jun-10 AT91SAM9G45 Name Access PIT_MR Read-write PIT_SR Read-only PIT_PIVR Read-only PIT_PIIR Read-only Reset 0x000F_FFFF 0x0000_0000 ...

Page 114

... PITEN: Period Interval Timer Enabled 0 = The Periodic Interval Timer is disabled when the PIV value is reached The Periodic Interval Timer is enabled. • PITIEN: Periodic Interval Timer Interrupt Enable 0 = The bit PITS in PIT_SR has no effect on interrupt The bit PITS in PIT_SR asserts interrupt. AT91SAM9G45 114 – ...

Page 115

... Returns the number of occurrences of periodic intervals since the last read of PIT_PIVR. 6438F–ATARM–21-Jun- – – – – – – – – – – – – PICNT CPIV CPIV AT91SAM9G45 – – – – – – – – – – – PITS CPIV 115 ...

Page 116

... PICNT • CPIV: Current Periodic Interval Value Returns the current value of the periodic interval timer. • PICNT: Periodic Interval Counter Returns the number of occurrences of periodic intervals since the last read of PIT_PIVR. 6438F–ATARM–21-Jun- PICNT CPIV CPIV AT91SAM9G45 CPIV 116 ...

Page 117

... WDT_MR WDT_CR WDRSTT WDT_MR read WDT_SR or reset 6438F–ATARM–21-Jun-10 WDT_MR WDV reload 1 0 12-bit Down Counter WDD Current Value <= WDD = 0 set WDUNF reset set WDERR reset AT91SAM9G45 reload SLCK 1/128 WDT_MR WDRSTEN wdt_fault (to Reset Controller) wdt_int WDFIEN WDT_MR 117 ...

Page 118

... Writing the WDT_MR reloads and restarts the down counter. While the processor is in debug state or in idle mode, the counter may be stopped depending on the value programmed for the bits WDIDLEHLT and WDDBGHLT in the WDT_MR. AT91SAM9G45 118 6438F–ATARM–21-Jun-10 ...

Page 119

... Figure 16-2. Watchdog Behavior FFF Normal behavior WDV Forbidden Window WDD Permitted Window 0 Watchdog Fault AT91SAM9G45 119 Watchdog Error WDT_CR = WDRSTT Watchdog Underflow if WDRSTEN WDRSTEN is 0 6438F–ATARM–21-Jun-10 ...

Page 120

... WDRSTT: Watchdog Restart 0: No effect. 1: Restarts the Watchdog. • KEY: Password Should be written at value 0xA5. Writing any other value in this field aborts the write operation. AT91SAM9G45 120 Name WDT_CR WDT_MR WDT_SR KEY – – ...

Page 121

... The Watchdog stops when the processor is in debug state. • WDIDLEHLT: Watchdog Idle Halt 0: The Watchdog runs when the system is in idle mode. 1: The Watchdog stops when the system is in idle state. • WDDIS: Watchdog Disable 0: Enables the Watchdog Timer. 1: Disables the Watchdog Timer. AT91SAM9G45 121 WDDBGHLT 21 ...

Page 122

... No Watchdog underflow occurred since the last read of WDT_SR least one Watchdog underflow occurred since the last read of WDT_SR. • WDERR: Watchdog Error 0: No Watchdog error occurred since the last read of WDT_SR least one Watchdog error occurred since the last read of WDT_SR. AT91SAM9G45 122 – ...

Page 123

... Figure 17-1. Shutdown Controller Block Diagram Shutdown Controller SHDW_MR CPTWK0 WKMODE0 WKUP0 RTTWKEN RTT Alarm 6438F–ATARM–21-Jun-10 read SHDW_SR reset WAKEUP0 SHDW_SR set read SHDW_SR reset SHDW_MR RTTWK SHDW_SR set AT91SAM9G45 SLCK Wake-up SHDN Shutdown Output Controller SHDW_CR Shutdown SHDW 123 ...

Page 124

... Wake-up 0 input SHDN Shutdown output 17.5 Product Dependencies 17.5.1 Power Management The Shutdown Controller is continuously clocked by Slow Clock. The Power Management Con- troller has no effect on the behavior of the Shutdown Controller. AT91SAM9G45 124 read SHDW_SR reset WAKEUP0 SHDW_SR set read SHDW_SR reset ...

Page 125

... SHDW_SR. When using the RTC alarm to wake up the system, the user must ensure that the RTC alarm status flag is cleared before shutting down the system. Otherwise, no rising edge of the status flag may be detected and the wake-up fails fail. 6438F–ATARM–21-Jun-10 AT91SAM9G45 125 ...

Page 126

... SHDW: Shutdown Command effect KEY is correct, asserts the SHDN • KEY: Password Should be written at value 0xA5. Writing any other value in this field aborts the write operation. AT91SAM9G45 126 Name SHDW_CR SHDW_MR SHDW_SR KEY – – ...

Page 127

... Wake-up Input Transition Selection None. No detection is performed on the wake-up input Low to high level High to low level Both levels change SHDN pin. SHDN pin. AT91SAM9G45 26 25 – – – – – RTCWKEN 10 9 – – – – WKMODE0 ...

Page 128

... At least one wake-up alarm from the RTT occurred since the last read of SHDW_SR. • RTCWK: Real-time Clock Wake- wake-up alarm from the RTC occurred since the last read of SHDW_SR least one wake-up alarm from the RTC occurred since the last read of SHDW_SR. AT91SAM9G45 128 – ...

Page 129

... Four 32-bit general-purpose backup registers 18.3 General Purpose Backup Registers (GPBR) User Interface Table 18-1. Register Mapping Offset Register 0x0 General Purpose Backup Register 0 ... ... 0xc General Purpose Backup Register 3 6438F–ATARM–21-Jun-10 AT91SAM9G45 Name SYS_GPBR0 ... SYS_GPBR3 Access Reset Read-write – ... ... Read-write – 129 ...

Page 130

... General Purpose Backup Register x Name: SYS_GPBRx Addresses: 0xFFFFFD60 [0], 0xFFFFFD64 [1], 0xFFFFFD68 [2], 0xFFFFFD6C [3] Type: Read-write • GPBR_VALUEx: Value of GPBR x AT91SAM9G45 130 GPBR_VALUEx GPBR_VALUEx GPBR_VALUEx GPBR_VALUEx 6438F–ATARM–21-Jun-10 ...

Page 131

... Allows Handling of Dynamic Exception Vectors 19.2.1 Matrix Masters The Bus Matrix of the AT91SAM9G45 manages Masters, thus each master can perform an access concurrently with others, depending on whether the slave it accesses is available. Each Master has its own decoder, which can be defined specifically for each master. In order to simplify the addressing, all the masters have the same decodings. 6438F– ...

Page 132

... The four DDR ports are connected differently according to the application device. The user can disable the DDR multi-port in the DDR multi-port Register (bit DDRMP_DIS) in the Chip Configuration User Interface. AT91SAM9G45 132 List of Bus Matrix Masters ™ ...

Page 133

... DDR Port 3. • When the DDR multi-port is disabled (DDRMP_DIS=1), DDR Port 1 is dedicated to the LCD controller. The remaining masters share DDR Port 2 and DDR Port 3. Figure 19-1. DDR Multi-port Table 19-3. AT91SAM9G45 Masters to Slaves Access DDRMP_DIS = 0 Master 0 ARM ARM Slave 926 Instr ...

Page 134

... Table 19-4. AT91SAM9G45 Masters to Slaves Access with DDRMP_DIS = 1 (default) Master 0 ARM Slave 926 Instr. 926 Data 0 Internal SRAM 0 X Internal ROM X UHP OHCI X UHP EHCI X 1 LCD User Int. X UDPHS RAM X Reserved X 2 DDR Port DDR Port DDR Port DDR Port 3 ...

Page 135

... Every request attempted by this fixed default master will not cause any arbi- tration latency whereas other non privileged masters will still get one latency cycle. This technique is useful for a master that mainly perform single accesses or short bursts with some Idle cycles in between. 6438F–ATARM–21-Jun-10 AT91SAM9G45 Section 19.7.2 “Bus 143. 135 ...

Page 136

... Predicted end of burst is generated at each single transfer inside the INCR transfer. 3. 4-beat bursts: Predicted end of burst is generated at the end of each 4-beat boundary inside INCR transfer. 6438F–ATARM–21-Jun-10 136. “Undefined Length Burst Arbitration” on AT91SAM9G45 Section 19.5.1 “Arbitration “Slot Cycle Limit Arbi- 136 ...

Page 137

... Arbitration Priority Scheme The bus Matrix arbitration scheme is organized in priority pools. Round-Robin priority is used inside the highest and lowest priority pools, whereas fix level prior- ity is used between priority pools and inside the intermediate priority pools. 6438F–ATARM–21-Jun-10 AT91SAM9G45 137 ...

Page 138

... This algorithm is only used inside the highest and lowest priority pools. It allows the Bus Matrix arbiters to dispatch the requests from different masters to the same slave in a fair way. If two or more master requests are active at the same time inside the priority pool, they are serviced in a round-robin increasing master number order. 6438F–ATARM–21-Jun-10 AT91SAM9G45 138 ...

Page 139

... The protected registers are: “Bus Matrix Master Configuration Registers” “Bus Matrix Slave Configuration Registers” “Bus Matrix Priority Registers A For Slaves” “Bus Matrix Priority Registers B For Slaves” “Bus Matrix Master Remap Control Register” 6438F–ATARM–21-Jun-10 AT91SAM9G45 139 ...

Page 140

... MATRIX_PRAS2 Read-write MATRIX_PRBS2 Read-write MATRIX_PRAS3 Read-write MATRIX_PRBS3 Read-write MATRIX_PRAS4 Read-write MATRIX_PRBS4 Read-write MATRIX_PRAS5 Read-write MATRIX_PRBS5 Read-write MATRIX_PRAS6 Read-write MATRIX_PRBS6 Read-write AT91SAM9G45 Reset 0x00000001 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 0x00000000 – 0x000001FF 0x000001FF 0x000001FF 0x000001FF 0x000001FF 0x000001FF 0x000001FF 0x000001FF – ...

Page 141

... Write Protect Mode Register 0x01E8 Write Protect Status Register 6438F–ATARM–21-Jun-10 Name Access MATRIX_PRAS7 Read-write MATRIX_PRBS7 Read-write – – MATRIX_MRCR Read-write – – – – MATRIX_WPMR Read-write MATRIX_WPSR Read-only AT91SAM9G45 Reset 0x00000000 0x00000000 – 0x00000000 – – 0x00000000 0x00000000 141 ...

Page 142

... Unless duly needed the ULBT should be let to its default 0 value for power saving. 6438F–ATARM–21-Jun- – – – – – – – – – – – – “Write Protect Mode AT91SAM9G45 – – – – – – – – – ULBT Register”. 142 ...

Page 143

... This results in not having one clock cycle latency when the fixed master tries to access the slave again. 6438F–ATARM–21-Jun- – – – FIXED_DEFMSTR – – – SLOT_CYCLE “Write Protect Mode for details. AT91SAM9G45 – – – DEFMSTR_TYPE – – SLOT_CYCLE Register”. 143 ...

Page 144

... FIXED_DEFMSTR: Fixed Default Master This is the number of the Default Master for this slave. Only used if DEFMSTR_TYPE is 2. Specifying the number of a mas- ter which is not connected to the selected slave is equivalent to setting DEFMSTR_TYPE to 0. 6438F–ATARM–21-Jun-10 AT91SAM9G45 144 ...

Page 145

... Fixed priority is used inside intermediate priority pools (MxPR = 1) and (MxPR = 2). See Section 19.5.2 “Arbitration Priority Scheme” 6438F–ATARM–21-Jun- M7PR – M5PR – M3PR – M1PR – “Write Protect Mode for details. AT91SAM9G45 – M6PR – M4PR – M2PR – M0PR Register”. 145 ...

Page 146

... See Section 19.5.2 “Arbitration Priority Scheme” 6438F–ATARM–21-Jun- – – – – – – – – M9PR – “Write Protect Mode for details. AT91SAM9G45 26 25 – – – – – M10PR 2 1 – M8PR Register”. 24 – 16 – 146 ...

Page 147

... Enable remapped address decoding for the selected Master 6438F–ATARM–21-Jun- – – – – – – – – – RCB5 RCB4 RCB3 “Write Protect Mode AT91SAM9G45 – – – – – – RCB10 RCB9 RCB8 RCB2 RCB1 RCB0 Register”. 147 ...

Page 148

... Bus Matrix TCM Configuration Register 0x0114 Reserved 0x0118 DDR Multi-Port Register 0x011C - 0x0124 Reserved 0x0128 EBI Chip Select Assignment Register 0x012C - 0x01FC Reserved 6438F–ATARM–21-Jun-10 AT91SAM9G45 Name Access CCFG_TCMR Read-write – – CCFG_DDRMPR Read-write – – CCFG_EBICSA Read-write – ...

Page 149

... TCM_NWS: TCM Wait State 0: no TCM Wait State 1: 1 TCM Wait State (only for ration 3:1 or 4:1) 6438F–ATARM–21-Jun- – – – – – – – – TCM_NWS AT91SAM9G45 – – – – – – – – – ITCM_SIZE 149 ...

Page 150

... Bus Matrix DDR Multi-Port Register Register Name: CCFG_DDRMPR Access Type: Read-write Reset: 0x0000_0001 31 30 – – – – – – – – • DDRMP_DIS: DDR Multi-Port Disable 0: Multi-Port is enabled 1: Multi-Port is disabled AT91SAM9G45 150 – – – – – – – – – – – – ...

Page 151

... Low Drive, optimized for load capacitance < 30 pF. 6438F–ATARM–21-Jun- – – – – – – EBI_CS5A EBI_CS4A EBI_CS3A Maximum load capacitance < Maximum load capacitance < Maximum load capacitance < Maximum load capacitance < AT91SAM9G45 – – – – DDR_DRIVE – – – – EBI_CS1A ...

Page 152

... High Drive, optimized for load capacitance < 55 pF. Note: This concerns only stand-alone DDR controller. AT91SAM9G45 152 6438F–ATARM–21-Jun-10 ...

Page 153

... Should be written at value 0x4D4154 (“MAT” in ASCII). Writing any other value in this field aborts the write operation of the WPEN bit. Always reads as 0. 6438F–ATARM–21-Jun- WPKEY WPKEY WPKEY – – – Section 19.6 “Write Protect Registers” on page AT91SAM9G45 – – WPEN 139. 153 ...

Page 154

... At least one Write Protect Violation has occurred since the last write of the MATRIX_WPMR. • WPVSRC: Write Protect Violation Source When WPVS is active, this field indicates the register address offset in which a write access has been attempted. Otherwise it reads as 0. AT91SAM9G45 154 – ...

Page 155

... Port 2 Port 1 Port 0 EBI Bus Matrix DDRSDRC1 Compact Flash Controller NAND Flash Controller Static Memory Controller Section 22. ”DDR/SDR SDRAM Controller AT91SAM9G45 DDR2 or LP-DDR Device DDR2 or LP-DDR or SDR or LP-SDR Device Compact Flash Device NAND Flash Device Static Memory Device (DDRSDRC)”. 155 ...

Page 156

... Self-refresh, Power-down and Deep Power Modes Supported • Power-up Initialization by Software • CAS Latency Supported • Reset function supported (DDR2) • Auto Precharge Command Not Used • On Die Termination not supported • OCD mode not supported AT91SAM9G45 156 Average Latency of Transactions) 6438F–ATARM–21-Jun-10 ...

Page 157

... DDR2 Controller Block Diagram Figure 20-2. Organization of the DDR2 Bus Matrix AHB Address Decoders 6438F–ATARM–21-Jun-10 DDR2 DDR2 LPDDR Controller User Interface APB AT91SAM9G45 DDR_A0-DDR_A13 DDR_D0-DDR_D15 DDR_CS DDR_CKE DDR_RAS, DDR_CAS DDR_CLK,#DDR_CLK DDR_DQS[0..1] DDR_DQM[0..1] DDR_WE DDR_BA0, DDR_BA1 DDR_VREF 157 ...

Page 158

... The pins used for interfacing the DDR2 memory are not multiplexed with the PIO lines. 20.1.6 Implementation Example The following hardware configuration is given for illustration only. The user should refer to the memory manufacturer web site to check current device availability. AT91SAM9G45 158 DDR2/LPDDR Controller Type Active Level ...

Page 159

... F7 E3 RAS VSS J1 VSS VSS A7 VSSQ B2 VSSQ G1 B8 RFU1 VSSQ L3 D2 RFU2 VSSQ L7 D8 RFU3 VSSQ E7 VSSDL AT91SAM9G45 MN7 MN7 DDR_A0 DDR_D8 DQ0 DDR_A1 DDR_D9 DDR2 SDRAM DDR2 SDRAM DQ1 DDR_A2 DDR_D10 H7 D7 MT47H64M8CF-3 MT47H64M8CF-3 A2 DQ2 DDR_A3 DDR_D11 DQ3 ...

Page 160

... Memory Controllers. 20.2.2 Embedded Characteristics The AT91SAM9G45 features an External Bus Interface to interface to a wide range of external memories and to any parallel peripheral. 20.2.2.1 External Bus Interface • ...

Page 161

... Automatic Hamming Code Calculation while reading – Error Report, including error flag, correctable error flag and word address being – Support 8- or 16-bit NAND Flash devices with 512-, 1024-, 2048- or 4096-bytes 6438F–ATARM–21-Jun-10 Average Latency of Transactions) detected erroneous pages AT91SAM9G45 161 ...

Page 162

... EBI Block Diagram Figure 20-3. Organization of the External Bus Interface Bus Matrix AHB Address Decoders AT91SAM9G45 162 External Bus Interface DDR2 LPDDR SDRAM Controller MUX Static Logic Memory Controller CompactFlash Logic NAND Flash Logic ECC Controller Chip Select Assignor User Interface ...

Page 163

... Memory Controllers and the EBI Pins and Memory Controllers I/O Lines Connections EBIx Pins NBS1 Not Supported Not Supported SDRAMC_A[9:0] SDRAMC_A10 Not Supported SDRAMC_A[12:11] Not Supported D[31:0] AT91SAM9G45 Type Active Level I/O Output Input Output Output Output Output Output Output ...

Page 164

... NWRx enables corresponding byte x writes 0,1 NBS0 and NBS1 enable respectively lower and upper bytes of the lower 16-bit word. 4. NBS2 and NBS3 enable respectively lower and upper bytes of the upper 16-bit word. AT91SAM9G45 164 details the connections to be applied between the EBI pins and the ...

Page 165

... CK CLK CK# – CKE CKE RAS RAS CAS CAS AT91SAM9G45 CompactFlash CompactFlash True IDE Mode SMC – – – – – – A[2:10] A[2:10] – – – – ...

Page 166

... For "CE don't care" NAND Flash devices, it can be either connected to NCS3/NANDCS or to any free PIO line. 4. I/O8 - !/O15 pins used only for 16-bit NANDFlash device. 5. EBI_NWAIT signal is multiplexed with PC15. 20.2.5.2 Connection Examples Figure 20-4 Figure 20-4. EBI Connections to Memory Devices AT91SAM9G45 166 Pins of the Interfaced Device SDRAM CompactFlash DDRC SDRAMC ...

Page 167

... For information on the Static Memory Controller, refer to the Static Memory Controller section. 20.2.7.4 DDR2SDRAM Controller For information on the DDR2SDRAM Controller, refer to the DDR2SDRAMC section. 20.2.7.5 ECC Controller For information on the ECC Controller, refer to the ECC section. 6438F–ATARM–21-Jun-10 AT91SAM9G45 167 ...

Page 168

... Note: Table 20-6. A[23:21] 000 010 100 110 111 AT91SAM9G45 168 168. Offset 0x00E0 0000 Offset 0x00C0 0000 Offset 0x0080 0000 Offset 0x0040 0000 Offset 0x0000 0000 The A22 pin is used to drive the REG signal of the CompactFlash Device (except in True IDE mode) ...

Page 169

... Don’t 1 Access to Even Byte on D[7:0] Care 1 8 bits Access to Odd Byte on D[7:0] 1 – demonstrates a schematic representation of this logic. AT91SAM9G45 to enable the required access type. SMC Access Mode Byte Select Byte Select Byte Select Byte Select Don’t Care – – ...

Page 170

... EBI_CSA Register in the Chip Configuration User Interface is set. These pins must not be used to drive any other memory devices. The EBI pins in corresponding CompactFlash interface is enabled (EBI_CS4A = 1 and/or EBI_CS5A = 1). Table 20-9. Dedicated CompactFlash Interface Multiplexing Pins CS4A = 1 NCS4/CFCS0 CFCS0 NCS5/CFCS1 AT91SAM9G45 170 CompactFlash Logic A23 A22 ...

Page 171

... NWAIT 6438F–ATARM–21-Jun-10 Access to CompactFlash Device CompactFlash Signals CFOE CFWE CFIOR CFIOW CFRNW illustrates an example of a CompactFlash application. CFCS0 and DIR /OE /OE AT91SAM9G45 Access to Other EBI Devices EBI Signals NRD NWR0/NWE NWR1/NBS1 NWR3/NBS3 A25 CompactFlash Connector D[15:0] _CD1 _CD2 A[10:0] ...

Page 172

... NCSx address space. The chip enable (CE) signal of the device and the ready/busy (R/B) signals are connected to PIO lines. The CE signal then remains asserted even when NCSx is not selected, preventing the device from returning to standby mode. Figure 20-8. NAND Flash Application Example EBI PIO PIO AT91SAM9G45 172 D[7:0] A[22:21] NCSx/NANDCS Not Connected NANDOE ...

Page 173

... Assign EBI_CS1 to the DDR2 controller by setting the EBI_CS1A bit in the EBI Chip Select Register located in the bus matrix memory space. • Initialize the DDR2 Controller depending on the DDR2 device and system bus frequency. The DDR2 initialization sequence is described in the sub-section “DDR2 Device Initialization” of the DDRSDRC section. 6438F–ATARM–21-Jun-10 AT91SAM9G45 173 ...

Page 174

... Register located in the bus matrix memory space. • Initialize the DDR2 Controller depending on the LP-DDR device and system bus frequency. The LP-DDR initialization sequence is described in the section “Low-power DDR1-SDRAM Ini- tialization” in “DDR/SDR SDRAM Controller (DDRSDRC)”. AT91SAM9G45 174 6438F–ATARM–21-Jun-10 ...

Page 175

... Select Assignment Register located in the bus matrix memory space. • Initialize the SDRAM Controller depending on the SDRAM device and system bus frequency. The Data Bus Width programmed to 16 bits. The SDRAM initialization sequence is described in the section “SDRAM Device Initialization” in “SDRAM Controller (SDRAMC)”. 6438F–ATARM–21-Jun-10 AT91SAM9G45 175 ...

Page 176

... The Data Bus Width programmed to 32 bits. The data lines D[16..31] are multiplexed with PIO lines and thus the dedicated PIOs must be programmed in peripheral mode in the PIO controller. The SDRAM initialization sequence is described in the section “SDRAM Device Initialization” in “SDRAM Controller (SDRAMC)”. AT91SAM9G45 176 D0 2 DQ0 ...

Page 177

... Configure Static Memory Controller CS3 Setup, Pulse, Cycle and Mode accordingly to NAND Flash timings, the data bus width and the system bus frequency. 6438F–ATARM–21-Jun- 10K 10K 3V3 R2 R2 10K 10K AT91SAM9G45 U1 U1 K9F2G08U0M K9F2G08U0M D0 29 CLE I/ ALE R ...

Page 178

... NAND Flash Hardware Configuration D[0..15] CLE ALE NANDOE NANDWE (ANY PIO) (ANY PIO) Software Configuration The software configuration is the same as for an 8-bit NAND Flash except for the data bus width programmed in the mode register of the Static Memory Controller. AT91SAM9G45 178 10K 10K ...

Page 179

... A16 A18 17 A17 A19 16 AT49BV6416 AT49BV6416 A18 A20 15 A19 A21 10 A20 A22 9 A21 12 RESET 3V3 VPP TSOP48 PACKAGE AT91SAM9G45 D0 29 DQ0 D1 31 DQ1 D2 33 DQ2 D3 35 DQ3 D4 38 DQ4 D5 40 DQ5 D6 42 DQ6 D7 44 DQ7 D8 30 DQ8 D9 32 DQ9 D10 34 DQ10 ...

Page 180

... A22/REG CFWE CFOE CFIOW CFIOR CFCE2 CFCE1 CFRST (ANY PIO) CFIRQ (ANY PIO) NWAIT Software Configuration The following configuration has to be performed: AT91SAM9G45 180 MN1A MN1A CF_D15 A2 A5 1B1 1A1 CF_D14 A1 A6 1B2 1A2 CF_D13 B2 B5 1B3 1A3 CF_D12 B1 B6 1B4 ...

Page 181

... Configure a PIO line as an output for CFRST and two others as an input for CFIRQ and CARD DETECT functions respectively. • Configure SMC CS4 and/or SMC_CS5 (for Slot Setup, Pulse, Cycle and Mode accordingly to CompactFlash timings and system bus frequency. 6438F–ATARM–21-Jun-10 AT91SAM9G45 181 ...

Page 182

... A22/REG CFWE CFOE CFIOW CFIOR CFCE2 CFCE1 CFRST (ANY PIO) CFIRQ (ANY PIO) NWAIT Software Configuration The following configuration has to be performed: AT91SAM9G45 182 MN1A MN1A CF_D15 A2 A5 1B1 1A1 CF_D14 A1 A6 1B2 1A2 CF_D13 B2 B5 1B3 1A3 CF_D12 B1 B6 1B4 ...

Page 183

... The user must make sure to program the EBI voltage range before getting the device out of its Slow Clock Mode. The user must make sure to program the EBI voltage range before getting the device out of its Slow Clock Mode. 6438F–ATARM–21-Jun-10 AT91SAM9G45 183 ...

Page 184

... AT91SAM9G45 184 6438F–ATARM–21-Jun-10 ...

Page 185

... Write or Byte Select Access” on page 187 8-/16-bit or 32-bit data bus, see “Data Bus Width” on page Byte-write or byte-select access, see Byte-write or byte-select access see “Byte Write or Byte Select Access” on page 187 AT91SAM9G45 Type Output Output Output Output Output ...

Page 186

... The programmer must first program the PIO controller to assign the Static Memory Con- troller pins to their peripheral function. If I/O Lines of the SMC are not used by the application, they can be used for other purposes by the PIO Controller. AT91SAM9G45 186 128K x 8 SRAM ...

Page 187

... This is controlled by the BAT field of the SMC_MODE register for the corresponding chip select. 6438F–ATARM–21-Jun-10 NCS2 NCS1 NCS0 shows how to connect a 512K x 8-bit memory on NCS2. Figure 21-5 AT91SAM9G45 Figure 21-2). NCS7 Memory Enable NCS6 Memory Enable NCS5 Memory Enable ...

Page 188

... Figure 21-3. Memory Connection for an 8-bit Data Bus Figure 21-4. Memory Connection for a 16-bit Data Bus Figure 21-5. Memory Connection for a 32-bit Data Bus SMC AT91SAM9G45 188 D[7:0] A[18:2] A0 SMC A1 NWE NRD NCS[2] D[15:0] A[19:2] A1 NBS0 SMC NBS1 NWE NRD NCS[2] ...

Page 189

... Byte Select Access is used to connect two 16-bit devices. Figure 21-7 mode, on NCS3 (BAT = Byte Select Access). 6438F–ATARM–21-Jun-10 Figure 21-6. shows how to connect two 16-bit devices on a 32-bit data bus in Byte Select Access AT91SAM9G45 189 ...

Page 190

... For 32-bit devices, bits A0 and A1 are unused. For 16-bit devices, bit A0 of address is unused. When Byte Select Option is selected, NWR1 to NWR3 are unused. When Byte Write option is selected, NBS0 to NBS3 are unused. AT91SAM9G45 190 D[7:0] D[15:8] ...

Page 191

... Byte Select Byte Write NBS0 NWE NWR0 NBS1 NWR1 NBS2 NWR2 NBS3 NWR3 AT91SAM9G45 D[15:0] A[23:0] Write Enable Low Byte Enable High Byte Enable Read Enable Memory Enable D[31:16] A[23:0] Write Enable Low Byte Enable High Byte Enable ...

Page 192

... NRD_SETUP: the NRD setup time is defined as the setup of address before the NRD falling edge; 2. NRD_PULSE: the NRD pulse length is the time between NRD falling edge and NRD rising edge; 3. NRD_HOLD: the NRD hold time is defined as the hold time of address after the NRD rising edge. AT91SAM9G45 192 Figure 21-8. NRD_SETUP NRD_PULSE ...

Page 193

... NCS_RD_HOLD = NRD_CYCLE - NCS_RD_SETUP - NCS_RD_PULSE 21.8.1.4 Null Delay Setup and Hold If null setup and hold parameters are programmed for NRD and/or NCS, NRD and NCS remain active continuously in case of consecutive read cycles in the same memory (see 6438F–ATARM–21-Jun-10 AT91SAM9G45 Figure 21-9). 193 ...

Page 194

... NRD. In this case, the READ_MODE must be set to 1 (read is controlled by NRD), to indicate that data is available with the rising edge of NRD. The SMC samples the read data internally on the rising edge of Master Clock that generates the rising edge of NRD, whatever the pro- grammed waveform of NCS may be. AT91SAM9G45 194 NRD_PULSE NRD_PULSE ...

Page 195

... Figure 21-11. READ_MODE = 0: Data is sampled by SMC before the rising edge of NCS MCK A[25:2] NBS0,NBS1, NBS2,NBS3, A0, A1 NRD NCS D[31:0] 6438F–ATARM–21-Jun-10 t PACC Data Sampling shows the typical read cycle of an LCD module. The read data is valid t t PACC Data Sampling AT91SAM9G45 after PACC 195 ...

Page 196

... NCS_WR_HOLD: the NCS hold time is defined as the hold time of address after the NCS rising edge. Figure 21-12. Write Cycle MCK [25:2] A NBS0, NBS1, NBS2, NBS3, A0, A1 NWE NCS NCS_WR_SETUP AT91SAM9G45 196 NWE_SETUP NWE_PULSE NCS_WR_PULSE NWE_CYCLE Figure 21-12. The write cycle NWE_HOLD NCS_WR_HOLD 6438F–ATARM–21-Jun-10 ...

Page 197

... NWR0, NWR1, NWR2, NWR3 NCS D[31:0] 21.8.3.5 Null Pulse Programming null pulse is not permitted. Pulse must be at least set null value leads to unpredictable behavior. 6438F–ATARM–21-Jun-10 NWE_PULSE NWE_PULSE NCS_WR_PULSE NCS_WR_PULSE NWE_CYCLE NWE_CYCLE AT91SAM9G45 Figure 21-13). How- NWE_PULSE NCS_WR_PULSE NWE_CYCLE 197 ...

Page 198

... NCS signal. The internal data buffers are turned out after the NCS_WR_SETUP time, and until the end of the write cycle, regardless of the programmed waveform on NWE. AT91SAM9G45 198 shows the waveforms of a write operation with WRITE_MODE set to 1. The data is shows the waveforms of a write operation with WRITE_MODE set to 0. The data is 6438F– ...

Page 199

... Table 21-8 6438F–ATARM–21-Jun-10 shows how the timing parameters are coded and their permitted range. Effective Value 128 x setup[5] + setup[4:0] 256 x pulse[6] + pulse[5:0] 256 x cycle[8:7] + cycle[6:0] gives the default value of timing parameters at reset. AT91SAM9G45 Permitted Range Coded Value Effective Value 128+31 ...

Page 200

... During chip select wait state, all control lines are turned inactive: NBS0 to NBS3, NWR0 to NWR3, NCS[0..5], NRD lines are all set to 1. Figure 21-16 Select 2. AT91SAM9G45 200 “Early Read Wait State” on page 201. illustrates a chip select wait state between access on Chip Select 0 and Chip ...

Related keywords