资源简介
[代码及相关实验]---代码为C语言编写
1、CPU看门狗实验
2、LED跑马灯实验
3、CPU Timer定时器实验
4、实时时钟实验
5、AD转换实验
6、扩展SDRAM读写实验
7、扩展FLASH读写实验
8、快速傅立叶变换(FFT)实验
9、FIR滤波器实验
10、IIR滤波器实验
11、自适应滤波器(FIRLMS)实验
12、键盘扫描实验
13、外部中断输入实验
14、AIC23播音实验
15、LCD显示实验
16、串口通信实验
17、USB2.0通信实验
18、网络通信实验
19、SD卡读写实验
20、MMC卡读写实验
21、数字图像直方图实验
22、数字图像边缘检测实验
23、数字图像锐化实验
24、数字图像取反实验
25、数字图像直方图均衡化增强实验
26、Flash上电启动程序固化实验
代码片段和文件信息
/******************************************************************************/
/* Copyright 2004 by SEED Electronic Technology LTD. */
/* All rights reserved. SEED Electronic Technology LTD. */
/* Restricted rights to use duplicate or disclose this code are */
/* granted through contract. */
/* */
/* */
/******************************************************************************/
/*----------------------------------------------------------------------------*/
/* MODULE NAME... EMIF_Button */
/* FILENAME...... emif.c */
/* DATE CREATED.. Wed 2/4/2004 */
/* PROJECT....... write and read data between the CPU and SDRAM */
/* COMPONENT..... */
/* PREREQUISITS.. */
/*----------------------------------------------------------------------------*/
/*----------------------------------------------------------------------------*/
/* DEscriptION: */
/* */
/* This is an example for EMIF of C5509 */
/*----------------------------------------------------------------------------*/
#include
#include
#include
#include
#include
Uint16 x;
Uint32 y;
CSLBool b;
unsigned int datacount = 0;
int databuffer[1000] ={0};
int *souraddr*deminaddr;
Uint16 button;
unsigned char k1_down k2_down k3_down k4_down;
/*锁相环的设置*/
PLL_Config myConfig = {
0 //IAI: the PLL locks using the same process that was underway
//before the idle mode was entered
1 //IOB: If the PLL indicates a break in the phase lock
//it switches to its bypass mode and restarts the PLL phase-locking
//sequence
24 //PLL multiply value; multiply 24 times
1 //Divide by 2 PLL divide value; it can be either PLL divide value
//(when PLL is enabled) or Bypass-mode divide value
//(PLL in bypass mode if PLL multiply value is set to 1)
};
/*SDRAM的EMIF设置*/
EMIF_Config emiffig = {
0x221 //EGCR : the MEMFREQ = 00the clock for the memory is equal to cpu frequence
// the WPE = 0 forbiden the writing posting when we debug the EMIF
// the MEMCEN = 1the memory clock is reflected on the CLKMEM pin
// the NOHOLD = 1HOLD requests are not recognized by the EMIF
0xFFFF //EMI_RST: any write to this register resets the EMIF state machine
0x3FFF //CE0_1: CE0 space control register 1
// MTYPE = 011Synchronous DRAM(SDRAM)16-bit data bus width
0xFFFF //CE0_2: CE0 space control register 2
0x00FF //CE0_3: CE0 space control register 3
//
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 4969 2003-05-06 14:37 Program\Button\c5509.gel
文件 356 2007-11-02 23:17 Program\Button\cc_build_Debug.log
文件 0 2007-05-01 12:48 Program\Button\DATA0
文件 20973 2007-11-02 23:17 Program\Button\Debug\emif_button.map
文件 8879 2007-11-02 23:17 Program\Button\Debug\emif_button.obj
文件 124434 2007-11-02 23:17 Program\Button\Debug\emif_button.out
文件 465 2007-11-02 23:17 Program\Button\Debug.lkf
文件 380 2004-02-27 13:54 Program\Button\Debug.lkv
文件 793 2009-09-29 15:46 Program\Button\emif.cmd
文件 7343 2004-02-27 13:55 Program\Button\emif.paf
文件 8090 2007-02-09 20:33 Program\Button\emif.paf2
文件 10439 2007-02-09 20:33 Program\Button\emif.sbl
文件 13415 2004-02-27 13:55 Program\Button\EMIF.wks
文件 5362 2009-09-29 15:46 Program\Button\emif_button.c
文件 4096 2012-02-28 20:34 Program\Button\emif_button.CS_\FILE.CDX
文件 5900 2012-02-28 20:34 Program\Button\emif_button.CS_\FILE.DBF
文件 10384 2012-02-28 20:34 Program\Button\emif_button.CS_\FILE.FPT
文件 543744 2012-02-28 20:34 Program\Button\emif_button.CS_\SYMBOL.CDX
文件 739029 2012-02-28 20:34 Program\Button\emif_button.CS_\SYMBOL.DBF
文件 1542775 2012-02-28 20:34 Program\Button\emif_button.CS_\SYMBOL.FPT
文件 10801 2012-04-05 13:42 Program\Button\emif_button.paf2
文件 994 2012-04-05 13:42 Program\Button\emif_button.pjt
文件 30582 2012-04-05 13:42 Program\Button\emif_button.sbl
文件 0 2007-05-01 12:48 Program\Button\PROG0
文件 0 2007-05-01 12:48 Program\Button\P_VECT
文件 177 2004-03-16 19:32 Program\Button\readme.txt
文件 4969 2003-05-06 14:37 Program\Codec\c5509.gel
文件 345 2007-12-01 23:02 Program\Codec\cc_build_Debug.log
文件 13830 2007-12-01 23:02 Program\Codec\codec.c
文件 2477 2003-06-11 13:02 Program\Codec\codec.cmd
............此处省略854个文件信息
评论
共有 条评论