mt48lc2m32b2tg.h

Go to the documentation of this file.
00001 #ifndef _mt481c2m32b2tg_h_
00002 #define _mt481c2m32b2tg_h_
00003 
00004 #include "sdram.h"
00005 
00006 /*
00007 
00008 These values are device specific. Consult the datasheet for
00009 the given device for more information
00010 
00011 */
00012 
00013 // number of cols = 256  ->  8 col bits
00014 #define mt481c2m32b2tg_cols  8   
00015 
00016 // number of rows = 2048 -> 11 row bits
00017 #define mt481c2m32b2tg_rows  11 
00018 
00019 // number of banks = 4   ->  2 bank bits
00020 #define mt481c2m32b2tg_banks 2  
00021 
00022 
00023 // Refresh rate
00024 // Use 15.6 uS = 15600 ns. 
00025 // With cpu hz 20 MHz = 50 ns clock cycle : 
00026 // Refresh rate = 15600 ns / 50 ns = 312 clock cycles
00027 #define  mt481c2m32b2tg_tr (156 * (cpu_hz / 1000) ) / 10000
00028 
00029 
00030 // CAS Latency: 3
00031 // Should be 3 for Speed grade -5 part (up to 200Mhz)
00032 #define mt481c2m32b2tg_cas 3  
00033 
00034 // Minimal write recovery time min: 2ck
00035 #define mt481c2m32b2tg_twr 2   
00036 
00037 // Minimal ACTIVE to ACTIVE command period: 55 ns -> 55 / 50 ~=  2
00038 #define mt481c2m32b2tg_trc 7
00039 
00040 // Minimal PRECHARGE command period: 15 ns -> 15 / 50 ~= 1
00041 #define mt481c2m32b2tg_trp 2
00042 
00043 // Minimal ACTIVE to READ or WRITE delay: 15 ns -> 15 / 50 ~= 1
00044 #define mt481c2m32b2tg_trcd 2 
00045 
00046 // Minimal ACTIVE to PRECHARGE command: 42 ns -> 42 / 50 ~= 1
00047 #define mt481c2m32b2tg_tras 5
00048 
00049 // Minimal exit SELF REFREASH to ACTIVE command: 55 ns -> 55 / 50 ~= 2 
00050 #define mt481c2m32b2tg_txsr 5
00051 
00052 void mt481c2m32b2tg_init( const sdram_info *info );
00053 
00054 #endif

Generated on Thu May 10 13:52:44 2007 for AVR32102 - Using the AVR32 SDRAM controller by  doxygen 1.5.1