NEW DATABASE - 350 MILLION DATASHEETS FROM 8500 MANUFACTURERS
MCF5307 A25-A17 32-BIT - Datasheet Archive
DRAM CONTROLLER MCF5307 DRAM CTRL Motorola ColdFire ® 1- 1 MCF5307 DRAM CONTROLLER MCF5307 w MCF5307 DRAM Controller I Addr
MCF5307 MCF5307 DRAM CONTROLLER MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 1 MCF5307 MCF5307 DRAM CONTROLLER MCF5307 MCF5307 w MCF5307 MCF5307 DRAM Controller I Addr Gen Supports 2 banks of DRAM Supports External Masters Programmable Wait States & Refresh Timer Supports Page Mode and Burst Page Mode Supports 8-, 16-, & 32-bit wide DRAM banks Supports Extended Data Out DRAMs Supports Asynchronous or Synchronous DRAMs 8K Unified Cache Motorola ColdFire ® System Bus Controller I Fetch2 I Decode Instr Buf Dec&Sel Op 4K SRAM A Gen & Ex DUART MAC 2 Timers 4 DMA MCF5307 MCF5307 DRAM CTRL I Fetch1 DRAM Cntr & Chip Selects Interrupt Ctr Debug Rev B Module General Purpose I/O PLL M-Bus JTAG 1- 2 MCF5307 MCF5307 ASYNCHRONOUS & SYNCHRONOUS OPERATION w THE DRAM CONTROLLER HAS 2 MAJOR MODES OF OPERATION: 1) ASYNCHRONOUS. Has 4 basic modes of operation: Non-page mode Burst page mode Contiguous page mode Extended Data Out mode 2) SYNCHRONOUS. Supports common SDRAM implementations. Burst page mode Continuous Page mode wTHESE 2 MODES WORK VERY DIFFERENTLY. The DRAM registers are used differently The DRAM pins are used differently Both banks of DRAM will be in the same mode of operation based on programming the DRAM Configuration Register's (DCR) Synchronous Operation bit (SO bit) MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 3 MCF5307 MCF5307 DRAM CONTROL REGISTER: ASYNC MODE w When DCR[SO]=0, this register is defined as follows: DCR - DRAM CONTROL REGISTER B15 B14 B13 SO - NAM Master RST: 0 - B12 - B11 RRA - B10 B9 B8 B7 B6 B5 RRP - - B4 B3 B2 B1 B0 - - - - RC - - - - - - RC- REFRESH COUNT CONTROLS THE FREQUENCY OF REFRESH PERFORMED BY THE DRAM CONTROLLER: (RC + 1) * 16 = REFRESH CLOCKS RRP- REFRESH RAS PRECHARGED 00 - 1 CLOCK 01 - 2 CLOCKS 10- 3 CLOCKS 11- 4 CLOCKS RRA- REFRESH RAS ASSERTED 00 - 2 CLOCKS 01 - 3 CLOCKS 10- 4 CLOCKS 11- 5 CLOCKS NAM- NO ADDRESS MULTIPLEXING 1 - THE DRAM CONTROLLER WILL NOT MULTIPLEX THE EXTERNAL ADDRESS BUS 0 - THE DRAM CONTROLLER WILL MULTIPLEX THE EXTERNAL ADDRESS BUS SO- SYNCHRONOUS OPERATION 1 - SYNCHRONOUS MODE 0 - ASYNCHRONOUS MODE MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 4 MCF5307 MCF5307 ADDRESS & CONTROL REGISTERS: ASYNC MODE w When DCR[SO]=0, this register is defined as follows: ACR0[31:0] & ACR1[31:0]-ADDRESS & CONTROL REGISTERS B31.B18 B17 BA [31:18] RST: B15 B14 B13 B12 RE RST: - - - B11 CAS 0 - B10 RP - - - B9 B8 B7 RNCN RCD - B16 - B6 - EDO - - - B5 B4 B3 PS - - B2 B1 PM - - - - B0 0 BA BASE ADDRESS. USED IN CONJUNCTION WITH THE BAM (MASK) BITS IN THE DCMR. COMPARED WITH BUS ADDRESS & MASK TO DETERMINE DRAM HIT OR MISS. RE REFRESH ENABLE (1 = Refresh associated DRAM bank CAS COLUMN ADDRESS STROBE TIMING (00 = 1 CLK; RP RAS PRECHARGE ENCODING (00 = 1 CLK; RNCN RAS NEGATE TO CAS NEGATE (0 = RAS negated concurrently with CAS; RCD RAS TO CAS DELAY (0 = 1 CLK; EDO EXTENDED DATA OUT (0 = EDO operation disabled; PS PORT SIZE (00 = 32-bit port; PM PAGE MODE (00 = No page mode; MCF5307 MCF5307 DRAM CTRL 0 = Do not Refresh associated DRAM bank) 01 = 2 CLKS; 10 = 3 CLKS; 11 = 4 CLKS) 01 = 2 CLKS; 10 = 3 CLKS; 11 = 4 CLKS) 1= RAS negated 1 CLK before CAS) 1 = 2 CLK) 1 = EDO operation enabled) 01 = 8-bit port; 10 =16-bit port; 11 =16-bit port) 01 =Page mode or bursts only; 10 = Reserved; 11 = Continuous page mode) Motorola ColdFire ® 1- 5 MCF5307 MCF5307 DRAM CONTROLLER MASK REGISTERS: ASYNC MODE w When DCR[SO]=0, this register is defined as follows: DCMR0[31:0] & DCMR BASE[31:0]-DRAM CONTROLLER MASK REGISTERS B31.B18 B17 BAM [31:18] RST: B15 B14 B13 - - B12 - B11 B10 RESERVED RST: - - - - - B9 B8 B7 B6 WP - - - B16 - C/I - - - - - - - - B5 B4 B3 B2 B1 B0 AM SC SD UC UD V - - - - - - BAM BASE ADDRESS MASK. (0 =Associated address bit is compared in DRAM hit; 0 =Associated address bit is ignored in DRAM hit) WP WRITE PROTECT. (0 =Allow write accesses; 1 =Ignore write accesses) ADDRESS MODIFIER MASKS: (0 =Allow associated access type; 1 =Ignore associated access type) C/I AM ALTERNATE MASTER SC SUPERVISOR CODE SD SUPERVISOR DATA UC USER CODE UD V CPU SPACE/ INTERRUPT ACKNOWLEDGE) USER DATA VALID BIT ENCODING 0 = DRAM Accesses not decoded; MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1 = DRAM Accesses decoded) 1- 6 MCF5307 MCF5307 ASYNCHRONOUS MODE: SIGNAL DESCRIPTION ADDR [A25-A17 A25-A17] TA M C F 5 3 0 7 TS RAS[1:0] CAS[3:0] DRAMRW DATA [31-0] · RAS[1:0] - ROW ADDRESS STROBE - USED TO SELECT 1 OF 2 DRAM BANKS. · CAS[3:0] - COLUMN ADDRESS STROBE - USED TO SELECT 1 OF 4-BYTE LANES IN A 32-BIT 32-BIT ORGANIZED MEMORY. · DRAMRW - DRAM WRITE, ASSERTS TO SIGNIFY A WRITE OPERATION TO DRAM AND ALLOWS SEPARATE REFRESH CYCLES REGARDLESS TO R/W STATE. MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 7 MCF5307 MCF5307 ASYNCHRONOUS MODE: DRAM CONTROLLER INTERFACE TO 1 OF 2-BANKS TO OTHER DEVICES RAS CAS[3:0] RAS CAS0 [D24:31] [D16:23] RAS CAS2 RAS CAS3 ADDR_BUS D [D8:15] RAS CAS1 M C F 5 3 0 7 A [D0:7] T A WE 256Kx8 DRAM WE B WE WE G U S DRAMW DATA [31:0] 1 2 3 4 1 2 3 4 CLOCK TS(OPTIONAL) ADDR ROW COLUMN ROW COLUMN RAS RNCN =0 RNCN =0 CAS DATA DRAMW MCF5307 MCF5307 DRAM CTRL Data TWO CONSECUTIVE READ CYCLES Motorola ColdFire ® Data 1- 8 MCF5307 MCF5307 ASYNC BURST PAGE MODE READ CLOCK 1 3 2 4 1 2 3 1 2 3 TS ADDR ROW COLUMN COLUMN COLUMN RAS RCD=0 CAS CAS =01 DATA DRAMW TA INTERNAL MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 9 MCF5307 MCF5307 ASYNC BURST PAGE MODE WRITE CLOCK 1 2 3 4 1 2 3 1 2 3 TS ADDR ROW COLUMN COLUMN COLUMN RAS RCD=0 CAS CAS =01 DATA DATA DATA DATA DRAMW TA MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 10 MCF5307 MCF5307 CONTINUOUS PAGE MODE CLOCK 1 2 3 4 1 2 3 1 2 3 4 AS ADDR ROW COLUMN RAS COLUMN PAGE HIT RCD=0 CAS CAS =01 DATA COLUMN PAGE MISS RNCN=1 DATA DATA DATA DRAMW TA MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 11 MCF5307 MCF5307 EDO READ OPERATION CLOCK 1 3 2 4 1 2 1 2 1 2 TS ADDR ROW COLUMN RAS RCD=0 CAS CAS =00 DATA DRAMW TA INTERNAL MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 12 MCF5307 MCF5307 ASYNCHRONOUS DRAM REFRESH CYCLE CLOCK RAS CAS DRAMW CAS BEFORE RAS REFRESH TIMING MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 13 MCF5307 MCF5307 DRAM CONTROL REGISTER: SYNCHRONOUS MODE w When DCR[SO]=1, this register is defined as follows: DCR - DRAM CONTROL REGISTER B15 SO Master RST: 0 B14 B13 IS NAM COC IP - B12 - - B11 - B10 B9 B8 B7 B6 B5 RTIM - - B4 B3 B2 B1 B0 - - - - RC - - - - - RC- REFRESH COUNT CONTROLS THE FREQUENCY OF REFRESH PERFORMED BY THE DRAM CONTROLLER: (RC + 1) * 16 = REFRESH CLOCKS RTIM- REFRESH TIMING (REFRESH TO ACTV, i.e. TRC) 00- 3 CLOCKS 01- 6 CLOCKS 10,11- 9 CLOCKS IP- INITIATE PRECHARGE ALL COMMAND 0 - TAKE NO ACTION 1 - INITIATE PALL COMMAND COC- COMMAND ON CLOCK ENABLE 0 - CLOCK ENABLE ON SCKE PIN 1 - COMMAND ON SCKE PIN IS- INITIATE SELF REFRESH COMMAND 1 - INITIATE SELF REFRESH OR STAY IN SELF REFRESH 0 - TAKE NO ACTION OR EXIT SELF REFRESH SO- SYNCHRONOUS OPERATION 1 - SYNCHRONOUS MODE 0 - ASYNCHRONOUS MODE MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 14 MCF5307 MCF5307 ADDRESS & CONTROL REGISTERS: SYNC MODE w When DCR[SO]=1, this register is defined as follows: ACR0[31:0] & ACR1[31:0]-ADDRESS & CONTROL REGISTERS B31.B18 B17 BA [31:18] RST: - - B15 B14 B13 B12 - B11 RE RST: - CASL - - - - - B10 - 0 - - - - - B9 B8 B7 B6 B5 CBM - - B16 - 0 B4 IMRS PS1 PS0 0 - - B3 - B2 PM - - - B1 - B0 0 BA BASE ADDRESS. USED IN CONJUNCTION WITH THE BAM (MASK) BITS IN THE DCMR. COMPARED WITH BUS ADDRESS & MASK TO DETERMINE DRAM HIT OR MISS. RE REFRESH ENABLE (1 = Refresh associated DRAM bank CASL COLUMN ADDRESS STROBE LATENCY. DETERMINES HOW LONG THE DATA IS DELAYED AFTER THE CAS SIGNAL IS ASSERTED. THIS CORRESPONDS TO THE tRCD SPECIFICATION. THIS ALSO IMPLIES OTHER TIMINGS, INCLUDING tRAS, tRP, tRWL, & tEP. CBM COMMAND & BANK MUX. SINCE DIFFERENT DRAM CONFIGURATIONS WILL CAUSE THE BANK & COLUMN BITS TO CORRESPOND TO DIFFERENT ADDRESSES, THESE BITS DETERMINE WHICH ADDRESS BITS THESE FUNCTIONS WILL BE MULTIPLEXED TO. PS PORT SIZE (00 = 32-bit port; PM PAGE MODE (0 =Page mode or bursts only; MCF5307 MCF5307 DRAM CTRL 0 = Do not Refresh associated DRAM bank) 01 = 8-bit port; 10 =16-bit port; 11 =16-bit port) 1= Continuous page mode) Motorola ColdFire ® 1- 15 MCF5307 MCF5307 DRAM CONTROLLER MASK REGISTERS: SYNC MODE w When DCR[SO]=1, this register is defined as follows: w This register is defined the same in Asynchronous & Synchronous modes DCMR0[31:0] & DCMR BASE[31:0]-DRAM CONTROLLER MASK REGISTERS B31.B18 BAM RST: B15 B14 B13 - - B12 - B11 B10 RST: - - - - B9 B8 B7 B6 WP - - - B16 - RESERVED B17 - C/I - - - - - - - - B5 B4 B3 B2 B1 B0 AM SC SD UC UD V - - - - - - BAM BASE ADDRESS MASK. (0 =Associated address bit is compared in DRAM hit; 0 =Associated address bit is ignored in DRAM hit) WP WRITE PROTECT. (0 =Allow write accesses; 1 =Ignore write accesses) ADDRESS MODIFIER MASKS: (0 =Allow associated access type; 1 =Ignore associated access type) C/I AM ALTERNATE MASTER SC SUPERVISOR CODE SD SUPERVISOR DATA UC USER CODE UD V CPU SPACE/ INTERRUPT ACKNOWLEDGE) USER DATA VALID BIT ENCODING 0 = DRAM Accesses not decoded; MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1 = DRAM Accesses decoded) 1- 16 POWER ON SEQUENCE w Synchronous DRAMs have a prescribed power on sequence. The 5307 DRAM Controller supports this sequence by using the following procedure: x x Synchronous DRAM control signals are reset to the idle state. Firmware should wait the prescribed period before taking any action on the SDRAMs. Firmware should now: - Set up the DCR, ACR, & DCMR registers in their operational configuration. Do not yet enable refresh commands. - Issue the PALL command to the SDRAMs by setting the associated bit in the DCR. - Enable refresh & wait a period long enough for at least 8 refreshed to take place. - Issue the MRS command by setting the IMRS bit in the ACRs. MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 17 MODE REGISTER SET (MRS) COMMAND CLOCK ADDR TS RAS CAS DRAMR/W DATA CS MRS w w w w MCF5307 MCF5307 The DRAM Controller can configure SDRAMs with the MRS command. The MRS command is used to set burst operation & CAS latency of 1, 2 or 3. The MRS command should set burst operation to a burst length of 1, or no burst. Addresses are incremented internally to the DRAM controller to allow fast accesses. Transfer size is 1, 2, 4 or 16 bytes. SDRAM mode register is written by: setting the base address & mask registers & the associated CBM bits, & setting ACR[IMRS]. DRAM CTRL Motorola ColdFire ® 1- 18 BURST PAGE MODE w w w w w The advantage of synchronous DRAMs is the speed of data transfer once a page is opened. Once CAS has been issued the SDRAM will accept a new address & CAS every clock for accesses on that page. In burst page mode, if the transfer size is greater than the port size of the SDRAM, there will be multiple read or write operations for every ACTV command. As soon as the transfer is completed, the PALL command is generated to prepare for the next access. Synchronous Burst Page Mode accesses always follow this sequence: x x x x x x ACTV command NOP commands to ensure RAS to CAS delay Read or Write commands Sometimes NOPs are required here to ensure the ACTV to Precharge delay PALL command Required number of idle clocks to ensure Precharge to ACTV delay MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 19 BURST READ SDRAM ACCESS CLOCK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ADDR TS RAS CAS DRAMR/W CAS Latency=2 DATA Command Address CS DQM ACTV MCF5307 MCF5307 DRAM CTRL NOP READ Motorola ColdFire ® PALL 1- 20 BURST WRITE SDRAM ACCESS CLOCK 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ADDR TS RAS CAS CAS Latency=2 DRAMR/W DATA Command Address CS DQM ACTV MCF5307 MCF5307 DRAM CTRL NOP WRITE Motorola ColdFire ® PALL 1- 21 CONTINUOUS PAGE MODE w w Continuous Page Mode is a variation in page mode which tries to balance performance complexity and size. With the internal pipelined bus of the Core, the DRAM Controller will predict whether the next bus cycle will hit in the same SDRAM: x If the next bus cycle is not pending or misses in the page, the PALL command is generated to the SDRAM. This allow the precharge to be hidden in the current cycle. x If the next bus cycle is pending and hits in the page, the page is left open & the next SDRAM access will begin with a read or write command. MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 22 SYNCHRONOUS CONTINUOS PAGE MODE ACCESSREAD FOLLOWED BY READ 0 CLOCK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ADDR TS RAS CAS CAS Latency=2 DRAMR/W DATA Command Address CS DQM ACTV w w MCF5307 MCF5307 NOP READ NOP READ PALL Note there is no precharge between the 2 accesses. Also note the 2nd cycle begins with a read operation with no ACTV command. DRAM CTRL Motorola ColdFire ® 1- 23 SYNCHRONOUS CONTINUOS PAGE MODE ACCESSWRITE FOLLOWED BY READ 0 CLOCK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ADDR TS RAS CAS CAS Latency=2 DRAMR/W DATA Command Address CS DQM ACTV w w MCF5307 MCF5307 NOP WRITE NOP READ PALL Note that the 2nd cycle begins sooner after a write than after a read, since a read requires data to be returned before the bus cycle is terminated. In Continuous page mode, 2nd accesses will present multiplexed addresses. DRAM CTRL 1- 24 Motorola ColdFire ® AUTO-REFRESH OPERATION w w w The DRAM Controller provides timing & control to refresh the SDRAM. If the refresh counter is set & refresh is enabled, the counter counts down to zero, an internal refresh request flag is set & the counter is reloaded & begins counting down again. When the refresh request flag is set, the DRAM Controller completes any active burst operation & then performs a precharge all operation, initiates a refresh cycle & clears the refresh request flag. MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 25 AUTO-REFRESH OPERATION 0 CLOCK 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 ADDR TS RAS CAS CAS Latency=2 DRAMR/W Command Address CS PALL w w MCF5307 MCF5307 DESL REF DESL ACTV The request is delayed by the precharge to ACTV delay programmed into the active SDRAM bank by the CAS bits. The REF command is then generated & the delay required by the DCR[RTIM] is inserted before the DRAM CTRL next ACTV command. 1- 26 Motorola ColdFire ® SELF REFRESH OPERATION CLOCK RAS TRC= 6 CAS CAS Latency=2 DRAMR/W Command Address CS CKE PALL w w DESL SELF Self Refresh Active SELFX DESL First Possible ACTV Self-refresh is a method of allowing the SDRAM to enter a low power state & at the same time doing an internal refresh operation & maintaining the integrity of SDRAM data. The DCR[IS] bit turns on the Self-refresh operation. MCF5307 MCF5307 DRAM CTRL Motorola ColdFire ® 1- 27