完善资料让更多小伙伴认识你,还能领取20积分哦, 立即完善>
/* This is an example for EMIF of C5509 */
/*----------------------------------------------------------------------------*/ #include #include #include #include /* Uint16 x; */ /* Uint32 y; */ CSLBool b; unsigned int datacount = 0; int databuffer[1000] =[0]; int *souraddr,*deminaddr; /*锁相环的设置*/ 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) CPU frequency = 144 MHz ]; /*SDRAM的EMIF设置*/ EMIF_Config emiffig = [ 0x221, //EGCR : the MEMFREQ = 001,the clock for the memory is 1/2 to cpu frequence // the WPE = 0 ,forbiden the writing posting when we debug the EMIF // the MEMCEN = 1,the memory clock is reflected on the CLKMEM pin // the NOHOLD = 1,HOLD 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 = 011,Synchronous DRAM(SDRAM),16-bit data bus width 0xFFFF, //CE0_2: CE0 space control register 2 0x00FF, //CE0_3: CE0 space control register 3 // TIMEOUT = 0xFF; 0x7FFF, //CE1_1: CE1 space control register 1 0xFFFF, //CE1_2: CE1 space control register 2 0x00FF, //CE1_3: CE1 space control register 3 0x7FFF, //CE2_1: CE2 space control register 1 0xFFFF, //CE2_2: CE2 space control register 2 0x00FF, //CE2_3: CE2 space control register 3 0x7FFF, //CE3_1: CE3 space control register 1 0xFFFF, //CE3_2: CE3 space control register 2 0x00FF, //CE3_3: CE3 space control register 3 0x2911, //SDC1: SDRAM control register 1 // TRC = 8 // SDSIZE = 0;SDWID = 0 // RFEN = 1 // TRCD = 2 // TRP = 2 0x0410, //SDPER : SDRAM period register // 7ns *4096 0x07FF, //SDINIT: SDRAM initialization register // any write to this register to init the all CE spaces, // do it after hardware reset or power up the C55x device 0x0131 //SDC2: SDRAM control register 2 // SDACC = 0; // TMRD = 01; // TRAS = 0101; // TACTV2ACTV = 0001; ]; main() [ /*初始化CSL库*/ CSL_init(); /*EMIF为全EMIF接口*/ CHIP_RSET(XBSR,0x0a01); /*设置系统的运行速度为144MHz*/ PLL_config(&myConfig); /*初始化DSP的外部SDRAM*/ EMIF_config(&emiffig); 其中, TMS320VC5509 DSP External Memory Interface (EMIF) Reference Guide.pdf 中提到: 1、在这个程序中,采用的是TMS320VC5509,程序中配置CPU频率为144MHz,MEMFREQ=001b,那必须配置EBSR中的EMIFX2 bit,从哪配置? 2、main函数中,EMIF为全EMIF接口, CHIP_RSET(XBSR,0x0a01); XBSR这个寄存器中的各个位的含义是什么?没找到有关这个寄存器的介绍啊? |
|
相关推荐
3 个讨论
|
|
只有小组成员才能发言,加入小组>>
NA555DR VCC最低电压需要在5V供电,为什么用3.3V供电搭了个单稳态触发器也使用正常?
624 浏览 3 评论
MSP430F249TPMR出现高温存储后失效了的情况,怎么解决?
583 浏览 1 评论
对于多级放大电路板,在PCB布局中,电源摆放的位置应该注意什么?
1035 浏览 1 评论
702 浏览 0 评论
普中科技F28335开发板每次上电复位后数码管都会显示,如何熄灭它?
508 浏览 1 评论
请问下tpa3220实际测试引脚功能和官方资料不符,哪位大佬可以帮忙解答下
144浏览 20评论
请教下关于TAS5825PEVM评估模块原理图中不太明白的地方,寻求答疑
110浏览 14评论
在使用3254进行录音的时候出现一个奇怪的现象,右声道有吱吱声,请教一下,是否是什么寄存器设置存在问题?
116浏览 13评论
TLV320芯片内部自带数字滤波功能,请问linein进来的模拟信号是否是先经过ADC的超采样?
113浏览 12评论
TPA6304-Q1: TPA6304 两片公用一组I2C的话,其中一片配置不成功怎么办
153浏览 10评论
小黑屋| 手机版| Archiver| 电子发烧友 ( 湘ICP备2023018690号 )
GMT+8, 2024-11-15 10:06 , Processed in 0.765006 second(s), Total 46, Slave 39 queries .
Powered by 电子发烧友网
© 2015 bbs.elecfans.com
关注我们的微信
下载发烧友APP
电子发烧友观察
版权所有 © 湖南华秋数字科技有限公司
电子发烧友 (电路图) 湘公网安备 43011202000918 号 电信与信息服务业务经营许可证:合字B2-20210191 工商网监 湘ICP备2023018690号