<?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: GPIO general question in MQX Software Solutions</title>
    <link>https://community.nxp.com/t5/MQX-Software-Solutions/GPIO-general-question/m-p/198473#M4268</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon further review of the schematics, it appears that I'm probing the wrong ports; confusing GPIO pin labels with RGPIO. I'll investigate this further and get back with those interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 May 2010 00:22:13 GMT</pubDate>
    <dc:creator>SuperFlyGT</dc:creator>
    <dc:date>2010-05-11T00:22:13Z</dc:date>
    <item>
      <title>GPIO general question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/GPIO-general-question/m-p/198472#M4267</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Freescale Community,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm using the TWR-MCF51CN-KIT to develop a project and I'm having trouble with the GPIO.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm working of the built in GPIO example to get started (***\Freescale\Freescale MQX 3.5\mqx\examples\gpio). I'm able to load this project and toggel the LED with the SW2 fine. Now I'm trying to toggle a GPIO on the side expansion port of the Functional Elevator (&lt;A href="http://cache.freescale.com/files/microcontrollers/hardware_tools/schematics/TWR-ELEV-FUNC-SCH.pdf?fpsp=1" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/microcontrollers/hardware_tools/schematics/TWR-ELEV-FUNC-SCH.pdf?fpsp=1&lt;/A&gt;).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my main task of this example, I have:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;void main_task ( uint_32 initial_data)&lt;BR /&gt;{&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; FILE_PTR port_file_ID7;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;GPIO_PIN_STRUCT pin_ID7[] =&lt;BR /&gt;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp; ID7,&lt;BR /&gt;&amp;nbsp; GPIO_LIST_END&lt;BR /&gt;&amp;nbsp; };&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; port_file_ID7&amp;nbsp;&amp;nbsp; = fopen("gpio:write", (char_ptr) &amp;amp;pin_ID7 );&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; while (TRUE)&lt;BR /&gt;&amp;nbsp;&amp;nbsp; {&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ioctl(port_file_ID7, GPIO_IOCTL_WRITE_LOG0, NULL);&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; _time_delay(1000);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; ioctl(port_file_ID7, GPIO_IOCTL_WRITE_LOG1, NULL);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; _mqx_exit(-1);&lt;BR /&gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;*****&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where I declare ID7 as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;#define ID7&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (GPIO_PORT_TD | GPIO_PIN3)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;in a header file (ports defined in the MCF51CN datasheet, page 5, &lt;A href="http://cache.freescale.com/files/32bit/doc/data_sheet/MCF51CN128.pdf?fpsp=1" rel="nofollow" target="_blank"&gt;http://cache.freescale.com/files/32bit/doc/data_sheet/MCF51CN128.pdf?fpsp=1&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, when I probe this port (J9, pin/port 23 on the Functional Elevator schematic), I read no change in voltage. I tried doing this with a few other GPIOs (GPIO9, 8, 7, among others) with similar results.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Does anyone see anyhting overtly wrong with the code? Perhaps it's a hardware connection somewhere?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 May 2010 00:02:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/GPIO-general-question/m-p/198472#M4267</guid>
      <dc:creator>SuperFlyGT</dc:creator>
      <dc:date>2010-05-09T00:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: GPIO general question</title>
      <link>https://community.nxp.com/t5/MQX-Software-Solutions/GPIO-general-question/m-p/198473#M4268</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Upon further review of the schematics, it appears that I'm probing the wrong ports; confusing GPIO pin labels with RGPIO. I'll investigate this further and get back with those interested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 May 2010 00:22:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/MQX-Software-Solutions/GPIO-general-question/m-p/198473#M4268</guid>
      <dc:creator>SuperFlyGT</dc:creator>
      <dc:date>2010-05-11T00:22:13Z</dc:date>
    </item>
  </channel>
</rss>

