<?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 KV10 PTC6 &amp; PTC7 in Kinetis Software Development Kit</title>
    <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-PTC6-PTC7/m-p/563024#M5748</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm having a problem running PTC6 and PTC7 as GPIO. The microcontroller is an MKV10Z16VLC7. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I initialize the pin for GPIO&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PORT_HAL_SetMuxMode(PORTC, 7UL, kPortMuxAsGpio);&lt;/P&gt;&lt;P&gt;gpio_output_pin_user_config_t CLK = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; .pinName = GPIO_MAKE_PIN(GPIOC_IDX, 7U),&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.outputLogic = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.slewRate = kPortFastSlewRate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.driveStrength = kPortLowDriveStrength,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;GPIO_DRV_OutputPinInit(&amp;amp;CLK);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try toggling the pin manually&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PSOR(GPIOC, 1U &amp;lt;&amp;lt; 7U);&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PCOR(GPIOC, 1U &amp;lt;&amp;lt; 7U);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not work. The pin stays low. And if I try to pull the whole port high, all the pins go high except PTC6 and PTC7.&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PDOR(GPIOC, 0xFF);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the datasheet I can see that these two pins are CMP0_INx by default. Is there some sort of internal pull down that I need disable? The pins aren't connected to anything on the PCB either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jun 2016 03:11:32 GMT</pubDate>
    <dc:creator>stephenmonn</dc:creator>
    <dc:date>2016-06-23T03:11:32Z</dc:date>
    <item>
      <title>KV10 PTC6 &amp; PTC7</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-PTC6-PTC7/m-p/563024#M5748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I'm having a problem running PTC6 and PTC7 as GPIO. The microcontroller is an MKV10Z16VLC7. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First I initialize the pin for GPIO&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PORT_HAL_SetMuxMode(PORTC, 7UL, kPortMuxAsGpio);&lt;/P&gt;&lt;P&gt;gpio_output_pin_user_config_t CLK = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; .pinName = GPIO_MAKE_PIN(GPIOC_IDX, 7U),&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.outputLogic = 0,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.slewRate = kPortFastSlewRate,&lt;/P&gt;&lt;P&gt;&amp;nbsp; .config.driveStrength = kPortLowDriveStrength,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;GPIO_DRV_OutputPinInit(&amp;amp;CLK);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I try toggling the pin manually&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PSOR(GPIOC, 1U &amp;lt;&amp;lt; 7U);&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PCOR(GPIOC, 1U &amp;lt;&amp;lt; 7U);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this does not work. The pin stays low. And if I try to pull the whole port high, all the pins go high except PTC6 and PTC7.&lt;/P&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; GPIO_WR_PDOR(GPIOC, 0xFF);&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the datasheet I can see that these two pins are CMP0_INx by default. Is there some sort of internal pull down that I need disable? The pins aren't connected to anything on the PCB either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 03:11:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-PTC6-PTC7/m-p/563024#M5748</guid>
      <dc:creator>stephenmonn</dc:creator>
      <dc:date>2016-06-23T03:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: KV10 PTC6 &amp; PTC7</title>
      <link>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-PTC6-PTC7/m-p/563025#M5749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Stephen, PTC6 and PTC7 are true open drain pins. These pins cannot drive a logic one without a pull-up resistor. If you want use these pins as GPIO then you must have external pull-up resistor. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 08:18:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Software-Development-Kit/KV10-PTC6-PTC7/m-p/563025#M5749</guid>
      <dc:creator>jozefcicka-b508</dc:creator>
      <dc:date>2016-06-23T08:18:20Z</dc:date>
    </item>
  </channel>
</rss>

