<?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>8-bit MicrocontrollersのトピックRe: EEPROM to JK3</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134066#M3607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Check out FAQ-26240. (Enter this string in the Enter Keyword field at the upper right of this web page.) It references a number of application notes, which may be of use to you.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Oct 2006 21:40:54 GMT</pubDate>
    <dc:creator>J2MEJediMaster</dc:creator>
    <dc:date>2006-10-24T21:40:54Z</dc:date>
    <item>
      <title>EEPROM to JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134065#M3606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;HI.&amp;nbsp; I need to save two bytes and to recover them soon.&amp;nbsp;&amp;nbsp;I am&amp;nbsp;being based on document AN2504 to write and to read the Flash, but it does not work to me.&amp;nbsp; I need a different example that it works with CodeWarrior and that makes the functions correctly.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 01:43:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134065#M3606</guid>
      <dc:creator>kikepos</dc:creator>
      <dc:date>2006-10-24T01:43:54Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM to JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134066#M3607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Check out FAQ-26240. (Enter this string in the Enter Keyword field at the upper right of this web page.) It references a number of application notes, which may be of use to you.&lt;BR /&gt;&lt;BR /&gt;---Tom&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 21:40:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134066#M3607</guid>
      <dc:creator>J2MEJediMaster</dc:creator>
      <dc:date>2006-10-24T21:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: EEPROM to JK3</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134067#M3608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;If my understanding of your problem is correct, you wish to write two bytes of data to flash, as part of the normal operation of your JK3 code.&amp;nbsp; Assuming this needs to be done only infrequently, so as not to exceed the endurance limit for the flash, it is really only necessary to erase one page of flash (64 bytes), and re-program the first two bytes.&amp;nbsp; There are no special measures required to directly read the data from flash.&amp;nbsp; The first flash block would normally be chosen so that the remainder of&amp;nbsp;the code can be write protected.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The code shown in AN2504 does far more than you require to do, and with more overheads, to cater for the more general case.&amp;nbsp; However, the various other sources of documentation on the use of the ROM based routines are generally&amp;nbsp;described in assembly code, rather than C.&amp;nbsp; You did not say exactly what your problem is.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;To use the ROM routines, the primary requirement is the use of&amp;nbsp;specific locations in RAM, which would normally require six bytes for writing&amp;nbsp;two data bytes only.&amp;nbsp; However, I would suggest you look at AN1831, where a problem with the page erase routine, applicable to the JK3 and other devices,&amp;nbsp;is discussed.&amp;nbsp; This will involve a "page erase work-around", which requires use of a greater amount of RAM.&amp;nbsp; I am not sure whether AN2504 actually takes this issue into account.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;The use of the ROM routines is also discussed in AN2874, but not the page erase problem.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;I have previously used a very simple assembly sub-routine to do the same task that you seem to require, but for the QY device that does not have the page erase issue.&amp;nbsp; Let me know if you are interested in the code, and I will post it.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Regards,&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Mac&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;/FONT&gt;&amp;nbsp;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Oct 2006 21:57:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/EEPROM-to-JK3/m-p/134067#M3608</guid>
      <dc:creator>bigmac</dc:creator>
      <dc:date>2006-10-24T21:57:43Z</dc:date>
    </item>
  </channel>
</rss>

