<?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: Global Pin Control Low Register  in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490007#M30205</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the reference manual, you can get that, PTB10, mux=2 is SPI1_PCS0, it is the SPI cs function.&lt;/P&gt;&lt;P&gt;If you want to configure the PTB10 as the GPIO, you must choose MUX=1, this is the GPIO function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Apr 2016 05:23:57 GMT</pubDate>
    <dc:creator>kerryzhou</dc:creator>
    <dc:date>2016-04-08T05:23:57Z</dc:date>
    <item>
      <title>Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490005#M30203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have K60 120M Tower. PORTB is configured as Alternative 2 as&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* PORTB_PCR10: ISF=0,MUX=2 */&lt;/P&gt;&lt;P&gt;&amp;nbsp; PORTB_PCR10 = (uint32_t)((PORTB_PCR10 &amp;amp; (uint32_t)~(uint32_t)(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_ISF_MASK |&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_MUX(0x05)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; )) | (uint32_t)(&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PORT_PCR_MUX(0x02)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have problem with toggling the PIN using Global Pin Control Low Register:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt;PORTB_GPCLR = 0x4000400;&amp;nbsp;&amp;nbsp;&amp;nbsp; //(1&amp;lt;&amp;lt;26) | (1&amp;lt;&amp;lt;10);&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; _time_delay(1); &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD&gt; PORTB_GPCLR = 0x4000000;&amp;nbsp;&amp;nbsp;&amp;nbsp; //(1&amp;lt;&amp;lt;26) | (0&amp;lt;&amp;lt;10);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The pin is not toggling. Why?&lt;/P&gt;&lt;P&gt;If Pin is configured as GPIO, I can toggle it using gpio register.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 18:37:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490005#M30203</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-07T18:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490006#M30204</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the purpose to configure PTB10 as alternative 2?&amp;nbsp; I the pin is to be connected to external SPI CS, why can not configured as GPIO? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 19:04:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490006#M30204</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-07T19:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490007#M30205</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David zhou,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; From the reference manual, you can get that, PTB10, mux=2 is SPI1_PCS0, it is the SPI cs function.&lt;/P&gt;&lt;P&gt;If you want to configure the PTB10 as the GPIO, you must choose MUX=1, this is the GPIO function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it helps you!&lt;/P&gt;&lt;P&gt;If you still have question, please contact me!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Jingjing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 05:23:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490007#M30205</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-08T05:23:57Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490008#M30206</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JingJing,&lt;/P&gt;&lt;P&gt;That's right. PTB10 , mux=2 is SPI1_PCS0. But I am confused a bit that how to control SPI1_PCS0? SPI1 in MCU is used as master, so how do I turn SPI1_PCS0 to low or high? I am using&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;PORTB_GPCLR = &lt;/TD&gt;&lt;TD&gt;(1&amp;lt;&amp;lt;26) | (1&amp;lt;&amp;lt;10);&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;to set high and PORTB_GPCLR = (1&amp;lt;&amp;lt;26); to set to low. But the pin is not toggling. I don't know why.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 12:29:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490008#M30206</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-08T12:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490009#M30207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi JingJing,&lt;/P&gt;&lt;P&gt;I figured out that if the pin is configured as PCS0, it is controlled by SPI driver. &lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Apr 2016 15:23:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490009#M30207</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-08T15:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490010#M30208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi David,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, if you want to use the PTB10 as the SPIC CS function, you should configure it as the mux=2, and you don't need to control the GPIO, the SPI module will control the CS pin after you initialize the SPI module. If you want to control the GPIO pin, you must configure it as the GPIO function, not the SPI function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wish it help you!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;/P&gt;&lt;P&gt;Jingjing&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 02:40:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490010#M30208</guid>
      <dc:creator>kerryzhou</dc:creator>
      <dc:date>2016-04-11T02:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: Global Pin Control Low Register</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490011#M30209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you , JingJing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;David Zhou&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Apr 2016 12:14:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Global-Pin-Control-Low-Register/m-p/490011#M30209</guid>
      <dc:creator>davidzhou</dc:creator>
      <dc:date>2016-04-11T12:14:27Z</dc:date>
    </item>
  </channel>
</rss>

