<?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>Kinetis Microcontrollers中的主题 K22FN256 - Writing to External EEPROM</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728610#M44548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as you see above I'm using the K22FN256 uC and attached to pins 49 - 52 (SPI) is an EEPROM chip (Adesto Technologies, Digikey Part Number:&amp;nbsp;1265-1147-1-ND ).&amp;nbsp; &amp;nbsp;I'm not clear how to get started writing to EEPROM.&lt;/P&gt;&lt;P&gt;I understand the CS', followed by SCK, followed by SO or SI is important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also understand there's OPCodes that are used to Read/Write and/or Erase the EEPROM.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to setup a function that can carry this out.&amp;nbsp; Can someone offer any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Dec 2017 20:32:33 GMT</pubDate>
    <dc:creator>briancavanagh</dc:creator>
    <dc:date>2017-12-18T20:32:33Z</dc:date>
    <item>
      <title>K22FN256 - Writing to External EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728610#M44548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, as you see above I'm using the K22FN256 uC and attached to pins 49 - 52 (SPI) is an EEPROM chip (Adesto Technologies, Digikey Part Number:&amp;nbsp;1265-1147-1-ND ).&amp;nbsp; &amp;nbsp;I'm not clear how to get started writing to EEPROM.&lt;/P&gt;&lt;P&gt;I understand the CS', followed by SCK, followed by SO or SI is important.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also understand there's OPCodes that are used to Read/Write and/or Erase the EEPROM.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm not sure how to setup a function that can carry this out.&amp;nbsp; Can someone offer any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Dec 2017 20:32:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728610#M44548</guid>
      <dc:creator>briancavanagh</dc:creator>
      <dc:date>2017-12-18T20:32:33Z</dc:date>
    </item>
    <item>
      <title>Re: K22FN256 - Writing to External EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728611#M44549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This device is an SPI Flash.&lt;BR /&gt;I have attached the driver for this from the uTasker project (it is compatible with ST parts as far as I can see - it just needs the manufacturer IDs changed) along with the generic flash driver (which allows it to look like a memory mapped device - like a linear extension to the internal Flash).&lt;/P&gt;&lt;P&gt;There are 5 such SPI Flash drivers in the Open Source project for the K22 and if you run it in Visual Studio it will also emulate the SPI chips so that you can see how they interact (Kinetis SP &amp;lt;-&amp;gt; SPi Flash) and test complete application based on it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Kinetis: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;BR /&gt;Kinetis K22:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FTWR-K22F120M.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/TWR-K22F120M.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FBLAZE_K22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fkinetis%2FBLAZE_K22.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/kinetis/BLAZE_K22.html&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Flash interface (including SPI flash): &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fdocs%2FuTasker%2FuTaskerFileSystem_3.PDF" rel="nofollow" target="_blank"&gt;http://www.utasker.com/docs/uTasker/uTaskerFileSystem_3.PDF&lt;/A&gt;&lt;BR /&gt;Virtual memory mapping of flex data (and serial memory) video:&lt;BR /&gt;&lt;SPAN&gt;- &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FPe9A8qsefzQ" rel="nofollow" target="_blank"&gt;https://youtu.be/Pe9A8qsefzQ&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free [&lt;SPAN style="color: #ff0000;"&gt;FREE FREE FREE FREE - so nothing to be scared of !!!&lt;/SPAN&gt;&lt;SPAN&gt;] Open Source solution: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fgithub.com%2FuTasker%2FuTasker-Kinetis" rel="nofollow" target="_blank"&gt;https://github.com/uTasker/uTasker-Kinetis&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Working project in 15 minutes video: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fyoutu.be%2FK8ScSgpgQ6M" rel="nofollow" target="_blank"&gt;https://youtu.be/K8ScSgpgQ6M&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Professional Kinetis support, one-on-one training and complete fast-track project solutions: &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.utasker.com%2Fsupport.html" rel="nofollow" target="_blank"&gt;http://www.utasker.com/support.html&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 05:47:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728611#M44549</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-12-19T05:47:29Z</dc:date>
    </item>
    <item>
      <title>Re: K22FN256 - Writing to External EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728612#M44550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mark, I'm finding it confusing to use these recommendations, but thank you for responding.&lt;/P&gt;&lt;P&gt;I'm using KDS and want to setup SPI0:Init_SPI ?&amp;nbsp; There are questions I'm not clear on how to answer.&lt;/P&gt;&lt;P&gt;Below is just a screen capture of the settings tab.&amp;nbsp; Is there any examples on how to set this up using the 'Components Inspector' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_1.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30118i8D63F1A9C8FFF87E/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_1.png" alt="pastedImage_1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:10:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728612#M44550</guid>
      <dc:creator>briancavanagh</dc:creator>
      <dc:date>2017-12-19T16:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: K22FN256 - Writing to External EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728613#M44551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Below is my components section:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_2.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/30163iEFBA0FAD01660DB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_2.png" alt="pastedImage_2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 16:13:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728613#M44551</guid>
      <dc:creator>briancavanagh</dc:creator>
      <dc:date>2017-12-19T16:13:45Z</dc:date>
    </item>
    <item>
      <title>Re: K22FN256 - Writing to External EEPROM</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728614#M44552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Brian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I can't help with the component inspector - but it is only generating a few lines of code for you (&lt;EM&gt;which you should also understand if you are going to be responsible for a product development&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As reference, it equates to something like this (5 lines of code):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;_CONFIG_PERIPHERAL(C, 4, (PC_4_SPI0_PCS0 | PORT_SRE_FAST | PORT_DSE_HIGH));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;_CONFIG_PERIPHERAL(C, 5, (PC_5_SPI0_SCK | PORT_SRE_FAST | PORT_DSE_HIGH));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;_CONFIG_PERIPHERAL(C, 6, (PC_6_SPI0_SOUT | PORT_SRE_FAST | PORT_DSE_HIGH));&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;_CONFIG_PERIPHERAL(C, 7, PC_7_SPI0_SIN);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;SPI0_MCR = (SPI_MCR_MSTR | SPI_MCR_DCONF_SPI | SPI_MCR_CLR_RXF | SPI_MCR_CLR_TXF | SPI_MCR_PCSIS_CS0 | SPI_MCR_PCSIS_CS1 | SPI_MCR_PCSIS_CS2 | SPI_MCR_PCSIS_CS3 | SPI_MCR_PCSIS_CS4 | SPI_MCR_PCSIS_CS5);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;SPI0_CTAR0 = (SPI_CTAR_DBR | SPI_CTAR_FMSZ_8 | SPI_CTAR_PDT_7 | SPI_CTAR_BR_2 | SPI_CTAR_CPHA | SPI_CTAR_CPOL); // for 50MHz bus, 25MHz speed and 140ns min de-select time&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;In some cases it is easier and faster to write a few lines of code that one then understands, one can manage and which can also be discussed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Regards&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, sans-serif;"&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 17:50:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/K22FN256-Writing-to-External-EEPROM/m-p/728614#M44552</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2017-12-19T17:50:23Z</dc:date>
    </item>
  </channel>
</rss>

