<?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>topic Re: How to read and write EEPROM ?!?! in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234497#M19465</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weiping Xu,&lt;/P&gt;&lt;P&gt;I'm developing a product with a microprocessor MC9S08PA4. &lt;/P&gt;&lt;P&gt;With 512 bytes of RAM.&lt;/P&gt;&lt;P&gt;I was watching the project: TWR-S08PT60_Flash_lab_v6.&lt;/P&gt;&lt;P&gt;I understand the management of the Flash and EEPROM memory. &lt;/P&gt;&lt;P&gt;But I see that it uses a lot of RAM to run the routines of writing and erasing flash. &lt;/P&gt;&lt;P&gt;I have only 512 bytes of RAM in the MC9S08PA4.&lt;/P&gt;&lt;P&gt;Using only the routines: &lt;/P&gt;&lt;P&gt;Flash_Program1LongWord&lt;/P&gt;&lt;P&gt;Flash_EraseSector&lt;/P&gt;&lt;P&gt;Occupy 299 bytes of RAM!&lt;/P&gt;&lt;P&gt;Am I right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to write the flash with the PA4 and not have to use as much RAM?&lt;/P&gt;&lt;P&gt;I worked with QD4 with only 256 Bytes of RAM and features doonstack.asm had no problems. &lt;/P&gt;&lt;P&gt;I hope you can help me, &lt;/P&gt;&lt;P&gt;cordially &lt;/P&gt;&lt;P&gt;Roberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 25 Jul 2014 18:23:00 GMT</pubDate>
    <dc:creator>robertobabicz</dc:creator>
    <dc:date>2014-07-25T18:23:00Z</dc:date>
    <item>
      <title>How to read and write EEPROM ?!?!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234494#M19462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, pleas help me!&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I should make a project with mc9s08pa16, but i don't know how i program in C the read and write on eeprom. I tried make this with ProcessorExpert, where they give me the funcitons setbyte, get byte.. but i don't know how i use that. I have to use ProcessorExpert? or have another way? and what is the codes?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Sep 2013 14:02:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234494#M19462</guid>
      <dc:creator>wendersonolivei</dc:creator>
      <dc:date>2013-09-16T14:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write EEPROM ?!?!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234495#M19463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Oliveira,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached one sample code for your reference.&amp;nbsp; The EEPROM routines are at the bottom of&amp;nbsp; flash.c(\TWR-S08PT60_Flash_Lab_v6\src\drivers\nvm).&lt;/P&gt;&lt;P&gt;Any doubt in using those routines, feel free to contact with me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 03:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234495#M19463</guid>
      <dc:creator>weapon</dc:creator>
      <dc:date>2013-09-22T03:35:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write EEPROM ?!?!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234496#M19464</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's helped me very much! Thank you Xu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Sep 2013 13:37:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234496#M19464</guid>
      <dc:creator>wendersonolivei</dc:creator>
      <dc:date>2013-09-22T13:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write EEPROM ?!?!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234497#M19465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Weiping Xu,&lt;/P&gt;&lt;P&gt;I'm developing a product with a microprocessor MC9S08PA4. &lt;/P&gt;&lt;P&gt;With 512 bytes of RAM.&lt;/P&gt;&lt;P&gt;I was watching the project: TWR-S08PT60_Flash_lab_v6.&lt;/P&gt;&lt;P&gt;I understand the management of the Flash and EEPROM memory. &lt;/P&gt;&lt;P&gt;But I see that it uses a lot of RAM to run the routines of writing and erasing flash. &lt;/P&gt;&lt;P&gt;I have only 512 bytes of RAM in the MC9S08PA4.&lt;/P&gt;&lt;P&gt;Using only the routines: &lt;/P&gt;&lt;P&gt;Flash_Program1LongWord&lt;/P&gt;&lt;P&gt;Flash_EraseSector&lt;/P&gt;&lt;P&gt;Occupy 299 bytes of RAM!&lt;/P&gt;&lt;P&gt;Am I right? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there another way to write the flash with the PA4 and not have to use as much RAM?&lt;/P&gt;&lt;P&gt;I worked with QD4 with only 256 Bytes of RAM and features doonstack.asm had no problems. &lt;/P&gt;&lt;P&gt;I hope you can help me, &lt;/P&gt;&lt;P&gt;cordially &lt;/P&gt;&lt;P&gt;Roberto.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 18:23:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234497#M19465</guid>
      <dc:creator>robertobabicz</dc:creator>
      <dc:date>2014-07-25T18:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to read and write EEPROM ?!?!</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234498#M19466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Weiping Xu,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;Now solve the problem, run the following lines only in RAM.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NVM_FSTAT = 0x80;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;while (!(NVM_FSTAT &amp;amp; NVM_FSTAT_CCIF_MASK));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;The other lines run from the Flash.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;Thank you!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="line-height: 1.5em; color: #222222; font-size: 12.800000190734863px; font-family: arial, sans-serif;"&gt;Roberto&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Jul 2014 20:48:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/How-to-read-and-write-EEPROM/m-p/234498#M19466</guid>
      <dc:creator>robertobabicz</dc:creator>
      <dc:date>2014-07-25T20:48:02Z</dc:date>
    </item>
  </channel>
</rss>

