<?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>8-bit MicrocontrollersのトピックRe: Specific GPIO problems on GT16A</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149773#M8008</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello shiloh,&lt;BR /&gt;&lt;BR /&gt;I have used the GT16A quite a lot. I have a product that runs these pins to an expansion header. Sometimes they are GPIO and other times the second serial port is implemented with RS-485. I can tell you for sure that PC2 works as an input. I set PC0&amp;amp;1 to output when the serial port hardware is not there but have never actually tested it works. AFAIK there is nothing special to do here.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Feb 2009 04:51:42 GMT</pubDate>
    <dc:creator>peg</dc:creator>
    <dc:date>2009-02-06T04:51:42Z</dc:date>
    <item>
      <title>Specific GPIO problems on GT16A</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149772#M8007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;I have used the GT32/GT60 MCUs quite a bit and I am having a problem getting some code of mine to work properly on a GT16A.&amp;nbsp; I have six LEDs connected through a resistor array&amp;nbsp;to the GT16A at pins 2 through 7 (PTC0 through PTE1).&amp;nbsp; In my code, I set the direction to output for all of these pins and then I set the individual pins high or low throughout the rest of my code.&amp;nbsp; The problem is that the PTC0, PTC1, and PTC2 pins do not reflect the values I set from my code.&amp;nbsp; But PTC3, PTE0, and PTE1 all work as expected.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;For example, here is some of my code:&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;void TurnOnAllLights( void ){&lt;BR /&gt;&amp;nbsp; /* turn on all of the lights */&lt;BR /&gt;&amp;nbsp; PTCD_PTCD0=0; //&amp;nbsp;does not work&lt;BR /&gt;&amp;nbsp; PTCD_PTCD1=0; //&amp;nbsp;does not work&lt;BR /&gt;&amp;nbsp; PTCD_PTCD2=0; //&amp;nbsp;does not work&lt;BR /&gt;&amp;nbsp; PTCD_PTCD3=0; //&amp;nbsp;LED works&lt;BR /&gt;&amp;nbsp; PTED_PTED0=0; //&amp;nbsp;LED works&lt;BR /&gt;&amp;nbsp; PTED_PTED1=0; //&amp;nbsp;LED works&lt;BR /&gt;}&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;It acts like a serial module is grabbing the pins, but I am not using any serial ports in my code.&amp;nbsp; I even added code to explicitly disable TX and RX for the serial ports, but that did not help.&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;I have looked through my schematic and my code, and I just do not see any reason that I would not be able to get the PTC0, PTC1, and PTC2 pins into GPIO output mode.&amp;nbsp; I have never had this problem with the GT32/GT60, and this is my first time using the GT16A.&amp;nbsp; Is there something obvious that I may have overlooked?&amp;nbsp; Maybe something specific to the GT16A?&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 04:02:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149772#M8007</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2009-02-06T04:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Specific GPIO problems on GT16A</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149773#M8008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;Hello shiloh,&lt;BR /&gt;&lt;BR /&gt;I have used the GT16A quite a lot. I have a product that runs these pins to an expansion header. Sometimes they are GPIO and other times the second serial port is implemented with RS-485. I can tell you for sure that PC2 works as an input. I set PC0&amp;amp;1 to output when the serial port hardware is not there but have never actually tested it works. AFAIK there is nothing special to do here.&lt;BR /&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 04:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149773#M8008</guid>
      <dc:creator>peg</dc:creator>
      <dc:date>2009-02-06T04:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Specific GPIO problems on GT16A</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149774#M8009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;I have spent several hours on this today and still cannot&amp;nbsp;get PTC0, PTC1, or PTC2 to work as output GPIO pins.&amp;nbsp; I have never had this problem with any GT32 or GT60.&amp;nbsp; If I had to guess, I would say the SCI module is grabbing the pins, but it is not enabled.&amp;nbsp; This is really strange.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Maybe there is something wrong with the MCU I have soldered to my board, but&amp;nbsp;everything else seems to work properly, including GPIO on PTC2, PTE0, PTE1, and TPM input and output on TPM1CH0, TPM1CH1, and TPM2CH0.&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;Message Edited by shiloh on &lt;SPAN class="date_text"&gt;2009-02-05&lt;/SPAN&gt; &lt;SPAN class="time_text"&gt;08:24 PM&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Feb 2009 05:09:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Specific-GPIO-problems-on-GT16A/m-p/149774#M8009</guid>
      <dc:creator>shiloh</dc:creator>
      <dc:date>2009-02-06T05:09:34Z</dc:date>
    </item>
  </channel>
</rss>

