<?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のトピックRe: SPI Slave Select as GPIO</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Slave-Select-as-GPIO/m-p/860148#M51476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the pin in question is only used by the SPI when SSOE is set to '1'.&lt;BR /&gt;However I suggest you do the following test to confirm that it is really not being used by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Attempt to drive PTB5 to '0' (stop the debugger and use the register view to ensure it is correctly set as output driving '0').&lt;BR /&gt;2. Now change SIM_PINSEL0 bit SPI0PS from '0' to '1' so that the complete SPI pin set switches to PTE0,1,2,3&lt;BR /&gt;3. If the pin stays at '1' try toggling it in the GPIO output register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Base on this I would conclude:&lt;BR /&gt;A. If the GPIO function starts operating when moved to PTE3 the assumption that SSOE controls the pin muxing is incorrect (also mine)&lt;BR /&gt;B. If the muxing between port B and port E doesn't change the behavior&lt;BR /&gt;B1. And if you can't control the port state as GPIO output it must be a problem with the GPIO port setup&lt;BR /&gt;B2. But if you can control the state in the GPIO output register it must be a completely different issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&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;EM&gt;Complete Kinetis solutions, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Feb 2019 00:45:10 GMT</pubDate>
    <dc:creator>mjbcswitzerland</dc:creator>
    <dc:date>2019-02-14T00:45:10Z</dc:date>
    <item>
      <title>SPI Slave Select as GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Slave-Select-as-GPIO/m-p/860147#M51475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;MKE02Z16VFM4 runs SPI0 as a master on PTB2, PTB3 and PTB4 (SPI0PS = 0).&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; overflow-wrap: break-word; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;PTB5 is not used as part of the SPI0 functionality (MODFEN = 0 and&amp;nbsp; SSOE = 0) and configured as a GPIO output.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; overflow-wrap: break-word; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;However, the pin always stuck on '1' and does not change its state like any other GPIO pin.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0cm; margin-bottom: .0001pt; overflow-wrap: break-word; font-variant-ligatures: normal; font-variant-caps: normal; orphans: 2; text-align: start; widows: 2; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-spacing: 0px;"&gt;&lt;SPAN style="font-size: 11.5pt; font-family: 'Helvetica',sans-serif; color: #3d3d3d;"&gt;Can anyone comment whether PTB5 is actually operating as a general purpose output while PTB2,3,4 are operating as SPI0 master?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Feb 2019 21:42:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Slave-Select-as-GPIO/m-p/860147#M51475</guid>
      <dc:creator>isaacp</dc:creator>
      <dc:date>2019-02-13T21:42:03Z</dc:date>
    </item>
    <item>
      <title>Re: SPI Slave Select as GPIO</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Slave-Select-as-GPIO/m-p/860148#M51476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Isaac&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe that the pin in question is only used by the SPI when SSOE is set to '1'.&lt;BR /&gt;However I suggest you do the following test to confirm that it is really not being used by doing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Attempt to drive PTB5 to '0' (stop the debugger and use the register view to ensure it is correctly set as output driving '0').&lt;BR /&gt;2. Now change SIM_PINSEL0 bit SPI0PS from '0' to '1' so that the complete SPI pin set switches to PTE0,1,2,3&lt;BR /&gt;3. If the pin stays at '1' try toggling it in the GPIO output register&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Base on this I would conclude:&lt;BR /&gt;A. If the GPIO function starts operating when moved to PTE3 the assumption that SSOE controls the pin muxing is incorrect (also mine)&lt;BR /&gt;B. If the muxing between port B and port E doesn't change the behavior&lt;BR /&gt;B1. And if you can't control the port state as GPIO output it must be a problem with the GPIO port setup&lt;BR /&gt;B2. But if you can control the state in the GPIO output register it must be a completely different issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck&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;EM&gt;Complete Kinetis solutions, training and support: &lt;A href="http://www.utasker.com/kinetis.html" target="test_blank"&gt;http://www.utasker.com/kinetis.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;Kinetis KE:&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE02Z40M.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE02Z40M.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE04Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE04Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE06Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE06Z.html&lt;/A&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;- &lt;A href="http://www.utasker.com/kinetis/FRDM-KE15Z.html" target="test_blank"&gt;http://www.utasker.com/kinetis/FRDM-KE15Z.html&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Feb 2019 00:45:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/SPI-Slave-Select-as-GPIO/m-p/860148#M51476</guid>
      <dc:creator>mjbcswitzerland</dc:creator>
      <dc:date>2019-02-14T00:45:10Z</dc:date>
    </item>
  </channel>
</rss>

