<?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>Vybrid ProcessorsのトピックRe: Quick Help with GPIO</title>
    <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229738#M342</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible that the boot ROM changes the &lt;STRONG&gt;PORT&lt;/STRONG&gt; registers; especially if the GPIO is a boot config pin.&amp;nbsp; I looked in u-boot and the TimeSys Linux and didn't see a reference to the &lt;STRONG&gt;PORT&lt;/STRONG&gt; registers there.&amp;nbsp; Maybe it is in the MQX code on the M4.&amp;nbsp; I didn't check that.&amp;nbsp; Are you using the same or different GPIOs as the tower switches in your bare metal version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 26 Nov 2013 22:37:20 GMT</pubDate>
    <dc:creator>billpringlemeir</dc:creator>
    <dc:date>2013-11-26T22:37:20Z</dc:date>
    <item>
      <title>Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229733#M337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At a little bit of a lost here..&amp;nbsp; I'm not using MQX just some simple, I thought, GPIO writing and reading.&amp;nbsp; I seems to not clearly under stand the data sheet.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example:&lt;/P&gt;&lt;P&gt;IOMUXC-&amp;gt;SINGLE.PTC15 =&amp;nbsp; 0x1D;&amp;nbsp; // set as input with 47K pull up on PTC15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rd = GPIO1-&amp;gt;PDIR;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // read and bit 28 I think is PTC15 and it should be HIGH&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what am I missing..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 19:56:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229733#M337</guid>
      <dc:creator>davidpeter</dc:creator>
      <dc:date>2013-11-26T19:56:13Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229734#M338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The &lt;STRONG&gt;PORT CONTROL&lt;/STRONG&gt; module must be configured to an interrupt.&amp;nbsp; See section 7.3 of the manual.&amp;nbsp; Is PTC the same as GPIO1?&amp;nbsp; I think it should be GPIO2 for PTC.&amp;nbsp; Ie, GPIO0-4 gives PT[A-E].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Edit:&lt;/STRONG&gt; PTC15 is very weird naming.&amp;nbsp; It is actully RGPIO-60 (60-32=28), so it is GPIO-1 bit 28.&amp;nbsp; Section &lt;STRONG&gt;8.11.1.1 GPIO Mapping&lt;/STRONG&gt; gives an overview of all the PTxNN mappings to the GPIO values.&amp;nbsp; This can be very confusing.&amp;nbsp; The PTxNN are only used for pin naming.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:46:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229734#M338</guid>
      <dc:creator>billpringlemeir</dc:creator>
      <dc:date>2013-11-26T20:46:40Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229735#M339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello David,&lt;/P&gt;&lt;P&gt;Without going into details of your HW and SW, it is not enough to just enable a pull-up.&lt;/P&gt;&lt;P&gt;According to 'Chapter 5 Input/Output Multiplexer Controller (IOMUXC)' of 'Vybrid Reference Manual, Rev. 5, 07/2013', quite likely, you will also have to take care of the 'Buffer Enable' and 'Pull / Keep' fields (e.g. see the 'IOMUXC_PTA6 field descriptions' table).&lt;/P&gt;&lt;P&gt;Regards, Naoum Gitnik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 20:54:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229735#M339</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-11-26T20:54:21Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229736#M340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naoum&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, though the port is configured:&lt;/P&gt;&lt;P&gt;IOMUXC-&amp;gt;SINGLE.PTC15 =&amp;nbsp; 0x1D&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which is 0x1D:&lt;/P&gt;&lt;P&gt;IOMUX_IBE_ENABLED&lt;/P&gt;&lt;P&gt;IOMUX_PUE_ENABLED&lt;/P&gt;&lt;P&gt;IOMUX_PKE_ENABLED&lt;/P&gt;&lt;P&gt;IOMUX_PUS_47KPUP&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This config works OK with the two switches GPIO on the Tower VyBrid board&amp;nbsp; and the getting_started code for IAR.&amp;nbsp; I don't see any reference to Port Control. This does not mean I disagree with you guys.&amp;nbsp; I just don't see and code modifying the Port Control &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:20:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229736#M340</guid>
      <dc:creator>davidpeter</dc:creator>
      <dc:date>2013-11-26T21:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229737#M341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good point, Bill!&lt;/P&gt;&lt;P&gt;"7.3.1 General-purpose input &lt;/P&gt;&lt;P&gt;The logic state of each pin is available via the Port Data Input registers, provided the pin is configured for a digital function and the corresponding Port Control and Interrupt module is enabled.&lt;/P&gt;&lt;P&gt;The Port Data Input registers return the synchronized pin state after any enabled digital filter in the Port Control and Interrupt module. The input pin synchronizers are shared with the Port Control and Interrupt module, so that if the corresponding Port Control and&lt;/P&gt;&lt;P&gt;Interrupt module is disabled, then synchronizers are also disabled."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly enough, "&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;This config works OK with the two switches GPIO on the Tower VyBrid board&lt;/SPAN&gt;" for the discussion originator; IMO, something changed in the settings, and quite likely what you mentioned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards, Naoum Gitnik.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 21:31:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229737#M341</guid>
      <dc:creator>naoumgitnik</dc:creator>
      <dc:date>2013-11-26T21:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229738#M342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible that the boot ROM changes the &lt;STRONG&gt;PORT&lt;/STRONG&gt; registers; especially if the GPIO is a boot config pin.&amp;nbsp; I looked in u-boot and the TimeSys Linux and didn't see a reference to the &lt;STRONG&gt;PORT&lt;/STRONG&gt; registers there.&amp;nbsp; Maybe it is in the MQX code on the M4.&amp;nbsp; I didn't check that.&amp;nbsp; Are you using the same or different GPIOs as the tower switches in your bare metal version?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Nov 2013 22:37:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229738#M342</guid>
      <dc:creator>billpringlemeir</dc:creator>
      <dc:date>2013-11-26T22:37:20Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229739#M343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bill,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using the switches plus some other GPIO. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Nov 2013 00:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229739#M343</guid>
      <dc:creator>davidpeter</dc:creator>
      <dc:date>2013-11-27T00:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Quick Help with GPIO</title>
      <link>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229740#M344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You also need to turn on the clocks.&amp;nbsp; See pg670&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;CCM_CCGR2[CG41] AIPS0-Slot73 Port A multiplexing control&lt;/LI&gt;&lt;LI&gt;CCM_CCGR2[CG42] AIPS0-Slot74 Port B multiplexing control&lt;/LI&gt;&lt;LI&gt;CCM_CCGR2[CG43] AIPS0-Slot75 Port C multiplexing control&lt;/LI&gt;&lt;LI&gt;CCM_CCGR2[CG44] AIPS0-Slot76 Port D multiplexing control&lt;/LI&gt;&lt;LI&gt;CCM_CCGR2[CG45] AIPS0-Slot77 Port E multiplexing control&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These clocks are listed as disabled by the HAB/ROM (pg832, table 19-5).&amp;nbsp; u-boot seems to gate all the clocks on.&amp;nbsp; Check &lt;A href="https://github.com/Timesys/u-boot-timesys/blob/2011.12-mvf/arch/arm/cpu/armv7/vybrid/lowlevel_init.S"&gt;vybrid/lowlevel_init.S&lt;/A&gt;, for some start code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Dec 2013 22:24:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Vybrid-Processors/Quick-Help-with-GPIO/m-p/229740#M344</guid>
      <dc:creator>billpringlemeir</dc:creator>
      <dc:date>2013-12-04T22:24:34Z</dc:date>
    </item>
  </channel>
</rss>

