And the attachment is just added.
--- On Sat, 7/10/10, Wave Waves wrote:
From: Wave Waves
Subject: C6713 DSK _ OUTPUTING VIA EMIF
To: r...@lewiscounty.com, c...
Date: Saturday, July 10, 2010, 6:39 PM
Dear Williams,
As we discussed about driving EMIF before,
I tested lots of solutions and prgrams from making an uotput via EMIF .
***
//EMIF.c Illustrates output through EMIF 80-pin connector J4
#define OUTPUT 0xA0000000 //EMIF output address (CE_2
address)
int *output = (int *)OUTPUT;
void main()
{
*output = 0x00000001; //outputs 0x1 to EMIF bus
}
***
Here are the total solutions :
1.writing an asembely within C code like .sect and define 0xA0000000 address in
cmd file for this section.
2.using dsp bios for 6713dsk and driving EMIF registers via EMIF manger in cdb
file.
3.the simpleset solution by initialing the EMIF for 6713 dsk on the main as
below : (I also attach you this full project,please take a look):
I don't see any error or warning for this code but just can not
make any low state (zero voltage) on EMIF 80 pins connector.
seriously, how can we write our value to EMIF port/connector ?!!!!!!!!!
none of them works practically !!!!!!!!!
// main.c *******************
/* Functional Dependencies */
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include "dsk6713.h"
#include "DSK6713_AIC23.h" //codec-DSK support file
Uint32 fs=DSK6713_AIC23_FREQ_8KHZ; //set sampling rate
#define DSK6713_AIC23_INPUT_MIC 0x0015
#define DSK6713_AIC23_INPUT_LINE 0x0011
Uint16 inputsource=DSK6713_AIC23_INPUT_MIC;
// EMIF DEFINES: ***† SDEXT available only on C621x/C671x devices.
#define EMIF_GCR 0x01800000 /* EMIF global
control */
#define EMIF_CE0 0x01800008 /* EMIF
CE0control */
#define EMIF_CE1 0x01800004 /* EMIF CE1
control */
#define EMIF_CE2 0x01800010
#define EMIF_CE3 0x01800014
#define EMIF_SDCTRL 0x01800018 /* EMIF SDRAM
control */
#define EMIF_SDRP 0x0180001c /* EMIF SDRM refresh period
*/
#define EMIF_SDRAMEXT 0x01800020
//****************
/* definitions for the DSK */
#define IO_PORT 0x90080000 /* address of I/O port, only top byte has
valid data */
//********************
/*
* ======== main ======= */
#define OUTPUT 0xA0000000 //EMIF output address
int *output = (int *)OUTPUT;
void main(void)
{
/* Initializations */
emif_init();
comm_intr();
while (1)
{
*output = 0x0000000F; //outputs 0x1 to EMIF bus
}
}
================================
Yours Sincerely,
wAVe
***C6713 DSK _ OUTPUTING VIA EMIF [1 Attachment]
Started by ●July 10, 2010