DSPRelated.com
Forums

Re: EMIF CLOCK

Started by cman...@emona.com.au June 16, 2008
Hi everyone,
>I need some regarding EMIF. I am usign DSK6713. How can i
>determine/set my EMIF clock frequency?
>
>thanks in advance,
>pramod.


For any other newbies like me out there, here are some simple steps for experimenting with the ECLKOUT and read/write strobe rates of your hardware manually....if using 6713DSK with the 6713dsk CCS provided.

I found it handy for tweaking my hardware.

Once your code is running, you can vary the ECLKOUT rate by selecting "View Memory" in CCS, then go to address 0x01b7c120 (which is the PLLDIV3 setting) and you can change the values to divide the 450MHz clock by various divisors, while your code is running.

To vary the setup-strobe-hold times of your EMIF read/write strobes, select "view > registers" and find the registers CECTL2 and CECTL3, and you can directly, on the fly, vary the strobe timing, while viewing the results on a scope connected to your design.(if you are using hardware connected to CE2 & 3 that is).

Similarly, using "view > registers" allows you to vary most of the other registers to fine tune your design.

Hope that is helpful,
Carlo
Carlo,

On 6/16/08, c...@emona.com.au wrote:
>
> Hi everyone,
> >I need some regarding EMIF. I am usign DSK6713. How can i
> >determine/set my EMIF clock frequency?
> >
> >thanks in advance,
> >pramod.
>
> >
> > For any other newbies like me out there, here are some simple steps for
> experimenting with the ECLKOUT and read/write strobe rates of your hardware
> manually....if using 6713DSK with the 6713dsk CCS provided.
>
> I found it handy for tweaking my hardware.
>
> Once your code is running, you can vary the ECLKOUT rate by selecting "View
> Memory" in CCS, then go to address 0x01b7c120 (which is the PLLDIV3 setting)
> and you can change the values to divide the 450MHz clock by various
> divisors, while your code is running.
>
> To vary the setup-strobe-hold times of your EMIF read/write strobes, select
> "view > registers" and find the registers CECTL2 and CECTL3, and you can
> directly, on the fly, vary the strobe timing, while viewing the results on a
> scope connected to your design.(if you are using hardware connected to CE2 &
> 3 that is).
>
> Similarly, using "view > registers" allows you to vary most of the other
> registers to fine tune your design.
>

Thanks for posting the feedback. I use this technique when I deal with a new
peripheral. Peeking and poking some registers while looking at the
datasheet/documentation [and sometimes a scope] helps me get a better
understanding before I start writing code. The better that you understand
the hardware behavior, the easier it is to write robust code.

mikedunn

Hope that is helpful,
> Carlo
>

--
www.dsprelated.com/blogs-1/nf/Mike_Dunn.php