/**
hardware -- TMDX LCDK6748 eval. kit (digikey 296-37514-ND, $200 )
I would like to read an external ADC at 20 mHz for
bursts of 20k words. I want to use EMIFA for memory-mapped IO.
J14 on the eval. kit has the EMIFA interface signals.
Why does this code (attached) only go at about 1.5 microsec/read?
(This is the toggle rate for EMA_A0, J14-pin21)
I can pull D0 high and low and see the LS bit change
when I print out jj.
I'm testing this in CCS 5 Debug mode.
One anomoly -- J14,pin35 = EMA_BA1 is not acting like the LS bit
of the address.
(see SPRUH79A.pdf, fig. 18.7
EMIF wait interrupts are masked off
INTMSK = 0
EMIFA_CE3CFG_EW = 0
EMA_CLK (J14-pin42) is 40 ns / cycle
RDRATE is 0
Could it be the PLL registers? I've made PLLDIV3 faster.
I have seen "EMIAF speed" problems posted here on http://e2e.ti.com and I must have
read them all. Please do not tell me this problem has been solved before,
unless you can point me to a specific answer.
Is this simply the wrong approach? Does the hardware work best with
some EDMA method?
The code is running in the L2 DSP ram. (I changed the .cmd file to do this.)
Thanks
Mike