From: "naderus2000" <naderus2000@...>
To: <lpc2000@yahoogroups.com>
Sent: Thursday, May 04, 2006 9:31 AM
Subject: [lpc2000] speed access to the flash
> i want to know the speed access to the flash.
> i want to know if the i have jump in my code
> how long does it take to fetch new code from
> flash.(how many wait state i need on 60 MHZ)
With MAM fully enabled and MAMTIM=3, which gives the best performance at 60
MHz, a jump takes one clock (normal instruction execution) plus two clocks
for the pipeline flush plus two clocks for the two flash waitstates, giving
5 clocks in total. A jump to some code in RAM would only take three clocks
since RAM can always be read without waitstates.
Normal data-processing instructions don't flush the pipeline, and since the
MAM hides the flash waitstates for fetching, they take one clock.
Karl Olsen