<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>S12 / MagniV Microcontrollers中的主题 Re: [D-FLASH] What difference of accessing time between D-Flash and Ram?</title>
    <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164631#M5322</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In S12SX flash module chapter in datasheet it is said:&lt;/P&gt;&lt;P&gt;"Read access time is one bus cycle for bytes and aligned words, and two bus cycles for misaligned words."&lt;/P&gt;&lt;P&gt;Unfortunately I don't find&amp;nbsp;any mention about RAM acces times&amp;nbsp;in new parts datasheets, but in older S12 datasheets it is said :&lt;/P&gt;&lt;P&gt;"the internal RAM is specifically designed to allow misaligned 16-bit accesses in a single cycle". I hope that RAM in newer S12X parts is not worse than this, e.g. that it allows misaligned word reads,&amp;nbsp;aligned words reads and byte reads in single bus cycle. If that's the case, then reads from flash should be as fast as reads from RAM, provided data is word aligned. So there's no need to copy your data from flash to RAM, but it makes sense to align your data in flash. In&amp;nbsp;CodeWarrior you can do this for specific&amp;nbsp;flash segments like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROM_4000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4000 TO&amp;nbsp;&amp;nbsp; 0x7FFF &lt;STRONG&gt;ALIGN 2[1:1];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 05 Sep 2011 17:27:24 GMT</pubDate>
    <dc:creator>kef</dc:creator>
    <dc:date>2011-09-05T17:27:24Z</dc:date>
    <item>
      <title>[D-FLASH] What difference of accessing time between D-Flash and Ram?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164630#M5321</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I'm using MC9S12XS128 and save some parameters in D-Flash. My question is do I need to copy those parameters into ram? If I use those parameters directly accessing D-Flash, does it has enough&amp;nbsp;efficiency?&amp;nbsp;What difference of accessing time between D-Flash and Ram?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pogo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 16:15:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164630#M5321</guid>
      <dc:creator>Pogo</dc:creator>
      <dc:date>2011-09-05T16:15:37Z</dc:date>
    </item>
    <item>
      <title>Re: [D-FLASH] What difference of accessing time between D-Flash and Ram?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164631#M5322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In S12SX flash module chapter in datasheet it is said:&lt;/P&gt;&lt;P&gt;"Read access time is one bus cycle for bytes and aligned words, and two bus cycles for misaligned words."&lt;/P&gt;&lt;P&gt;Unfortunately I don't find&amp;nbsp;any mention about RAM acces times&amp;nbsp;in new parts datasheets, but in older S12 datasheets it is said :&lt;/P&gt;&lt;P&gt;"the internal RAM is specifically designed to allow misaligned 16-bit accesses in a single cycle". I hope that RAM in newer S12X parts is not worse than this, e.g. that it allows misaligned word reads,&amp;nbsp;aligned words reads and byte reads in single bus cycle. If that's the case, then reads from flash should be as fast as reads from RAM, provided data is word aligned. So there's no need to copy your data from flash to RAM, but it makes sense to align your data in flash. In&amp;nbsp;CodeWarrior you can do this for specific&amp;nbsp;flash segments like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ROM_4000&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = READ_ONLY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x4000 TO&amp;nbsp;&amp;nbsp; 0x7FFF &lt;STRONG&gt;ALIGN 2[1:1];&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Sep 2011 17:27:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164631#M5322</guid>
      <dc:creator>kef</dc:creator>
      <dc:date>2011-09-05T17:27:24Z</dc:date>
    </item>
    <item>
      <title>Re: [D-FLASH] What difference of accessing time between D-Flash and Ram?</title>
      <link>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164632#M5323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi kef,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Pogo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Sep 2011 10:55:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/S12-MagniV-Microcontrollers/D-FLASH-What-difference-of-accessing-time-between-D-Flash-and/m-p/164632#M5323</guid>
      <dc:creator>Pogo</dc:creator>
      <dc:date>2011-09-06T10:55:34Z</dc:date>
    </item>
  </channel>
</rss>

