<?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: Trouble setting output pins to pull down resistor mode in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172393#M1264</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the correct setting for pull down would be bit 1 =&amp;nbsp; 1 and bit 0 = 0, that is pull enable, use pull down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2012 21:21:03 GMT</pubDate>
    <dc:creator>JimDon</dc:creator>
    <dc:date>2012-11-12T21:21:03Z</dc:date>
    <item>
      <title>Trouble setting output pins to pull down resistor mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172392#M1263</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I trying to read inputs on pins 1, 3, &amp;amp; 5 (PTB8, PTB9 &amp;amp; PTB10 respectively). I want to ground pins PTB9 and PTB10 for an input and connect PTB8 to P3V3 for an input. If I understand things correctly, this would mean that I set PTB8 for pull down and PTB9 &amp;amp; 10 for pull up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although I have been able to read PTB9 &amp;amp; 10 as expected, PTB8 always reads high. However, it reads a low when shorted to ground.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After looking at the control register for the pin (PORTB_PCR8) in the register view, it appears as though both the slew rate and pull up resistor are hard set to on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was not able to clear them with:&lt;/P&gt;&lt;P&gt;PORTB_PCR8 = (PORTB_PCR8 &amp;amp; 0xFFFFFFF8);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(FWIW, it appears the same is true for PORTB_PCR9 as well. And PORTB_PCR10 has the slew rate set off, but the pull up resistor seems to be hard coded on.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this a bug or a "feature" or am I not using these pins correctly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And where do I find a definition of "slew rate", please?&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;Thank you.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 20:46:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172392#M1263</guid>
      <dc:creator>injunear1</dc:creator>
      <dc:date>2012-11-12T20:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting output pins to pull down resistor mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172393#M1264</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I believe the correct setting for pull down would be bit 1 =&amp;nbsp; 1 and bit 0 = 0, that is pull enable, use pull down.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2012 21:21:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172393#M1264</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-11-12T21:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting output pins to pull down resistor mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172394#M1265</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Injun,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You haven't specified which micro you are talking about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However - The description of operation of the port registers is general.&amp;nbsp; A particular port may not implement all possible features.&amp;nbsp; There is usually another table indicating which features are available on which ports.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. for the KL25&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.10.1.2 Port Control and Interrupt Summary&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This confused me a lot as well!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;bye&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 01:39:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172394#M1265</guid>
      <dc:creator>pgo</dc:creator>
      <dc:date>2012-11-13T01:39:35Z</dc:date>
    </item>
    <item>
      <title>Re: Trouble setting output pins to pull down resistor mode</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172395#M1266</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;pgo is&amp;nbsp; correct. According to the table he has mentioned, PORTB has no pull select control implemented, so that would explain why your code seems to do nothing.&lt;/P&gt;&lt;P&gt;It also says "All the pins are hard wired to be pullup except for SWD_CLK."&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Nov 2012 02:27:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Trouble-setting-output-pins-to-pull-down-resistor-mode/m-p/172395#M1266</guid>
      <dc:creator>JimDon</dc:creator>
      <dc:date>2012-11-13T02:27:52Z</dc:date>
    </item>
  </channel>
</rss>

