求DSP 6747与FPGA用EMIF 通信例程
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了求DSP 6747与FPGA用EMIF 通信例程相关的知识,希望对你有一定的参考价值。
674x就行
参考技术A 供参考Code Segment
The following code segment sets up the EMIF as described above using the
TMS320C6000 Peripheral Runtime Support Control Library.
#include <emif.h>
.
. /*OTHER USER CODE*/
.
/* Get default values for all EMIF registers */
unsigned int g_ctrl = GET_REG(EMIF_GCTRL);
unsigned int ce0_ctrl = GET_REG(EMIF_CE0_CTRL);
unsigned int ce1_ctrl = GET_REG(EMIF_CE1_CTRL);
unsigned int ce2_ctrl = GET_REG(EMIF_CE2_CTRL);
unsigned int ce3_ctrl = GET_REG(EMIF_CE3_CTRL);
unsigned int sdram_ctrl = GET_REG(EMIF_SDRAM_CTRL);
unsigned int sdram_ref = GET_REG(EMIF_SDRAM_REF);
/* Set Global Control - Enable CLKOUT2,SDCLK, and SSCLK*/
/* - Disable CLKOUT1 */
/* - Set for ½x SBSRAM interface */
RESET_BIT(&g_ctrl, SSCRT);
SET_BIT(&g_ctrl, CLK2EN);
RESET_BIT(&g_ctrl, CLK1EN);
SET_BIT(&g_ctrl, SSCEN);
SET_BIT(&g_ctrl, SDCEN);
/* Configure CE2 as SBSRAM */
LOAD_FIELD(&ce2_ctrl ,MTYPE_32SBSRAM, MTYPE , MTYPE_SZ );
/* Store EMIF Control Registers */
emif_init(g_ctrl, ce0_ctrl, ce1_ctrl, ce2_ctrl, ce3_ctrl,
sdram_ctrl, sdram_ref);
.
. /*OTHER USER CODE*/
.
以上是关于求DSP 6747与FPGA用EMIF 通信例程的主要内容,如果未能解决你的问题,请参考以下文章