<?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: MCU in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987607#M55567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI1 has a &lt;SPAN style="text-decoration: underline;"&gt;fixed&lt;/SPAN&gt; set of pins and so &lt;EM&gt;doesn't&lt;/EM&gt; use SIM_PINSEL as SPI0 can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use SPI1 instead of SPI0 you need to power it up in&amp;nbsp;SIM_SCGC and access its registers in the SPI1&amp;nbsp; area (0x40077000, rather than SPI0 0x40076000). When SPI1 is enabled the pins are automatically configured as long as there is not a higher priority peripheral enabled that shares them.&amp;nbsp;&lt;EM&gt;In the case of SPI1 there is in fact nothing with higher priority and so they are always connected.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The uTasker project does it as follows for controlling an SPI Flash interface, for example, including configuring the SPI1 controller:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;POWER_UP_ATOMIC(SPI1); // enable clocks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPI1_C1 = (SPI_C1_CPHA | SPI_C1_CPOL | SPI_C1_MSTR | SPI_C1_SPE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; SPI1_BR = (SPI_BR_SPPR_PRE_1 | SPI_BR_SPR_DIV_2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPI1_D =&amp;nbsp;0x55;&amp;nbsp; // send a test byte...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this can be verified in its simulator:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104678iDD6549A50C9AC0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&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;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Jan 2020 22:34:05 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2020-01-09T22:34:05Z</dc:date>
    <item>
      <title>MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987606#M55566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello, I am use the&amp;nbsp;MKE02Z32VLC4 as my MCU.The MCU has two SPI: SPI0 and SPI1. &amp;nbsp;In SIM_PINSEL,&amp;nbsp; there only SPI0 is mapped&amp;nbsp;designated pins, and some software demoes don't have the definition&amp;nbsp;about the SPI1，so I don't konw how to use the SPI1.could you tell me how to use the SPI1 or give some demo about it? thanks&lt;/P&gt;&lt;DIV class="" style="color: #000000; background-color: #f9f9f9;"&gt;&lt;DIV class="" style="background-color: #ffffff; border: 1px solid #dedede;"&gt;&lt;DIV class="" dir="ltr" style="background-color: #ffffff; padding: 10px 10px 43px;"&gt;&lt;DIV class=""&gt;&lt;A data-hover-tip-text="发音" href="https://fanyi.baidu.com/translate?aldtype=16047&amp;amp;query=%E7%9B%B8%E5%85%B3%E7%9A%84%0D%0A&amp;amp;keyfrom=baidu&amp;amp;smartresult=dict&amp;amp;lang=auto2zh###" style="color: #666666; text-decoration: none; margin: 0px 6px 0px 0px; padding: 1px 0px 0px 7px;"&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/A&gt;&lt;DIV class="" style="margin: 0px 9px 0px 7px;"&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 02:04:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987606#M55566</guid>
      <dc:creator>songweiyuan</dc:creator>
      <dc:date>2020-01-09T02:04:36Z</dc:date>
    </item>
    <item>
      <title>Re: MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987607#M55567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPI1 has a &lt;SPAN style="text-decoration: underline;"&gt;fixed&lt;/SPAN&gt; set of pins and so &lt;EM&gt;doesn't&lt;/EM&gt; use SIM_PINSEL as SPI0 can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To use SPI1 instead of SPI0 you need to power it up in&amp;nbsp;SIM_SCGC and access its registers in the SPI1&amp;nbsp; area (0x40077000, rather than SPI0 0x40076000). When SPI1 is enabled the pins are automatically configured as long as there is not a higher priority peripheral enabled that shares them.&amp;nbsp;&lt;EM&gt;In the case of SPI1 there is in fact nothing with higher priority and so they are always connected.&amp;nbsp;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The uTasker project does it as follows for controlling an SPI Flash interface, for example, including configuring the SPI1 controller:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;POWER_UP_ATOMIC(SPI1); // enable clocks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPI1_C1 = (SPI_C1_CPHA | SPI_C1_CPOL | SPI_C1_MSTR | SPI_C1_SPE);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt; SPI1_BR = (SPI_BR_SPPR_PRE_1 | SPI_BR_SPR_DIV_2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier, monospace;"&gt;SPI1_D =&amp;nbsp;0x55;&amp;nbsp; // send a test byte...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this can be verified in its simulator:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_5.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/104678iDD6549A50C9AC0B7/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_5.png" alt="pastedImage_5.png" /&gt;&lt;/span&gt;&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;EM&gt;[uTasker project developer for Kinetis and i.MX RT]&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Jan 2020 22:34:05 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987607#M55567</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2020-01-09T22:34:05Z</dc:date>
    </item>
    <item>
      <title>Re: MCU</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987608#M55568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, I have successfully used the SPI1 on you above guidance. thank you very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2020 03:41:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/MCU/m-p/987608#M55568</guid>
      <dc:creator>songweiyuan</dc:creator>
      <dc:date>2020-01-10T03:41:40Z</dc:date>
    </item>
  </channel>
</rss>

