<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://community.arm.com/utility/feedstylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/developer/tools-software/tools/f/keil-forum/20182/help-i-want-to-measure-time-of-flash-write-operation</link><description> Dear Friends. 
 
I am using LPC 2138 (ARM) processor. I am using its flash memory to store large data. I want to measure exact time, processor requires to complete whole write operation. 
 
To do this can any one tell me how to make use of onchip hardware</description><dc:language>en-US</dc:language><generator>Telligent Community 10</generator><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/123317?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2006 08:54:17 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5a2ff02e-fd8b-4dbd-bef0-b4377a328ae6</guid><dc:creator>Christoph Franck</dc:creator><description>&lt;p&gt;&lt;i&gt;Murphy guarantees that the next flash chips you receive will have a Twr of more than 500ns.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
Murphy guarantees that in the next revision of the flash chip data sheet, Twr will be longer.&lt;br /&gt;
&lt;br /&gt;
Don&amp;#39;t laugh. That&amp;#39;s the real world.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/112217?ContentTypeID=1</link><pubDate>Mon, 17 Jul 2006 08:43:14 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:8519cbe6-6669-4798-ac51-7cae128105d6</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt; but requirments arised to evaluate performance of current flash system.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
just look at the datasheet for your flash memory.  You will, find that Twr is &lt;b&gt;max&lt;/b&gt; some number - for this I will assume it is 750 ns.  Now you &amp;#39;measure&amp;#39; you flash performance and find that they all perform in the 300 - 500 ns range and design based on this and Murphy guarantees that the next flash chips you receive will have a Twr of more than 500ns.&lt;br /&gt;
&lt;br /&gt;
The way to &amp;#39;measure performance of a flash system&amp;#39; is to calculate based on worst case found in the datasheets.&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/123323?ContentTypeID=1</link><pubDate>Sat, 15 Jul 2006 04:23:42 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:694b38cf-7f56-4e0a-ae24-db684e793a2b</guid><dc:creator>Raj Mittal</dc:creator><description>&lt;p&gt;I have taken look of that app notes and samples, it worked for my system, thanks&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/112215?ContentTypeID=1</link><pubDate>Sat, 15 Jul 2006 01:44:31 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:e24c14b1-3157-43d4-9321-27367c89cd8e</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;So Reinhard&amp;#39;s answer should give all you need?&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/98267?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2006 23:08:56 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:cae384c8-279f-472e-8ed3-ce4a3d504425</guid><dc:creator>Raj Mittal</dc:creator><description>&lt;p&gt;Dear erik and other&lt;br /&gt;
thanks for kind responce.&lt;br /&gt;
&lt;br /&gt;
quot &amp;quot;I am new to H/w timers&amp;quot;&lt;br /&gt;
It means i have not need to deal more with H/W timers till now, but requirments arised to evaluate performance of current flash system. I want to use timer JUST as counter &amp;quot;that can start timer at beginneing of FLASH write (IAP) operation and stop timer at end of Flash write operation&amp;quot; , and then i can calculate timer click and can evaluate write time performance summary in terms of micro secoands.&lt;br /&gt;
&lt;br /&gt;
That is simple version of my query &amp;quot;How can i use timer as JUST only COUNTER&amp;quot;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/112214?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2006 11:30:24 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:4e91207e-c2d7-48b6-b39a-9a480e1cf4f0</guid><dc:creator>Drew Davis</dc:creator><description>&lt;p&gt;Spoken like a true hardware guy :)&lt;br /&gt;
&lt;br /&gt;
Scopes aren&amp;#39;t so common that everyone always has one at their desk.  I&amp;#39;d be tempted just to set a timer and read the result just so that I didn&amp;#39;t have to go back into the lab, round one up, and start probing pins on a BGA package.&lt;br /&gt;
&lt;br /&gt;
Besides, I&amp;#39;ve got the code sitting around anyway, as I always wind up having to do minor bits of profiling and timing here and there.  Much faster just to throw in a couple of procedure calls into the source and rebuild.&lt;br /&gt;
&lt;br /&gt;
I&amp;#39;m somewhat curious as to why measuring the actual time matters, since the system has to be designed to tolerate the worst case found in the data sheets.  And that worst case is usually significantly larger than the typical case.  If you code failure timeouts and the like for a typical case, your system will just fail in actual operation when you happen to hit a slow bit pattern.  Measuring a few actual cases doesn&amp;#39;t tell you much about the requirements of the part.  But the OP could be creating a test rig, or just investigating, I suppose.&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/98268?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2006 09:44:30 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:1f169d3f-a585-4bde-b389-94e083291a5c</guid><dc:creator>Andy Neil</dc:creator><description>&lt;p&gt;&lt;i&gt;&amp;quot;WHY do you want to &amp;#39;measure exact time, processor requires to complete whole write&amp;#39;&amp;quot;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
And why do you want to have it in your code?&lt;br /&gt;
&lt;br /&gt;
Would it not be simpler to just set some port pin at the start of the operation, clear it at the end, and use an external timing device to do the timing?&lt;br /&gt;
(an oscilloscope should be sufficient)&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/87800?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2006 08:54:34 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:5d476c76-464d-4296-85a3-937e14526afc</guid><dc:creator>erik  malund</dc:creator><description>&lt;p&gt;&lt;i&gt;I want to measure exact time, processor requires to complete whole write operation.&lt;br /&gt;
Please note I am new to hardware Timers.&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
since you are &amp;#39;new&amp;#39; I suspect you may ask this question at the beginning of the wrong road.&lt;br /&gt;
&lt;br /&gt;
WHY do you want to &amp;quot;measure exact time, processor requires to complete whole write&amp;quot;&lt;br /&gt;
&lt;br /&gt;
Erik&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item><item><title>RE: Help: I want to measure time of Flash Write operation</title><link>https://community.arm.com/thread/46390?ContentTypeID=1</link><pubDate>Fri, 14 Jul 2006 08:43:00 GMT</pubDate><guid isPermaLink="false">dd9e70c8-6d3c-4c71-b136-2456382a7b5c:eb7c6c31-1185-4705-a620-1be03f14ca1a</guid><dc:creator>Keil Software Support Intl.</dc:creator><description>&lt;p&gt;If your are &lt;i&gt;new to hardware timers&lt;/i&gt; you should:&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
  &lt;li&gt;Read the User&amp;#39;s Manual of the Device&lt;/li&gt;
  &lt;li&gt;take a look to the Insiders Guide &lt;a href="http://www.hitex.co.uk/arm/lpc2000book/index.html" target="_blank"&gt;http://www.hitex.co.uk/arm/lpc2000book/index.html&lt;/a&gt;&lt;/li&gt;
  &lt;li&gt;Review the example project &lt;a href="http://www.keil.com/download/docs/232.asp"&gt;http://www.keil.com/download/docs/232.asp&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/p&gt;&lt;div style="clear:both;"&gt;&lt;/div&gt;</description></item></channel></rss>