<?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 Using GPIO on PC9RS08LE4 in 8-bit Microcontrollers</title>
    <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-GPIO-on-PC9RS08LE4/m-p/192886#M14896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Vcc is 5V from a 7805 regulator.&amp;nbsp; I am using a few PC9RS08LE4 samples from Freescale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTDDD = 0xFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTDD = 0xFF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What voltage should my 8 port pins be for the output?&amp;nbsp; The datasheet says Vdd-0.8 is Voh, and 0.8V is Vol, but I am getting 0V low, and only 0.3V when they are all on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've thought that perhaps the LCD functionality was on, but checking the value of LCDC0 in the debugger, it actually is set to 0x03 (the value after reset).&amp;nbsp; I tried resetting it to &amp;nbsp;&amp;nbsp;&amp;nbsp; LCDC0 = 0x00; but no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had any luck with this part using the LCD pins as GPIO?&amp;nbsp; I'm certainly missing something here, but I have no idea what it could be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help that can be provided!&amp;nbsp; &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif"&gt;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Apr 2010 03:17:06 GMT</pubDate>
    <dc:creator>Darkn3ss</dc:creator>
    <dc:date>2010-04-18T03:17:06Z</dc:date>
    <item>
      <title>Using GPIO on PC9RS08LE4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-GPIO-on-PC9RS08LE4/m-p/192886#M14896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is the deal.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Vcc is 5V from a 7805 regulator.&amp;nbsp; I am using a few PC9RS08LE4 samples from Freescale.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code is as follows:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTDDD = 0xFF;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; PTDD = 0xFF;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What voltage should my 8 port pins be for the output?&amp;nbsp; The datasheet says Vdd-0.8 is Voh, and 0.8V is Vol, but I am getting 0V low, and only 0.3V when they are all on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've thought that perhaps the LCD functionality was on, but checking the value of LCDC0 in the debugger, it actually is set to 0x03 (the value after reset).&amp;nbsp; I tried resetting it to &amp;nbsp;&amp;nbsp;&amp;nbsp; LCDC0 = 0x00; but no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Has anyone had any luck with this part using the LCD pins as GPIO?&amp;nbsp; I'm certainly missing something here, but I have no idea what it could be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance for any help that can be provided!&amp;nbsp; &lt;A href="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif"&gt;&lt;IMG alt=":smileyvery-happy:" class="emoticon emoticon-smileyvery-happy" src="http://freescale.i.lithium.com/i/smilies/16x16_smiley-very-happy.gif" title="Smiley Very Happy" /&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Apr 2010 03:17:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-GPIO-on-PC9RS08LE4/m-p/192886#M14896</guid>
      <dc:creator>Darkn3ss</dc:creator>
      <dc:date>2010-04-18T03:17:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using GPIO on PC9RS08LE4</title>
      <link>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-GPIO-on-PC9RS08LE4/m-p/192887#M14897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SOLUTION!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apparently there is an error in my interpretation of the documentation, or the documentation itself.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you turn the LCD off, I would think that a GPIO is a GPIO.&amp;nbsp; This is not the case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LCDSUPPLY needs to have VLL3 driven externally.&amp;nbsp; What this means?&amp;nbsp; I don't know.&amp;nbsp; Anyways, set LCDSUPPLY = 3;&lt;/P&gt;&lt;P&gt;Then, LCDC1 = 0x03; sets up the GPIO pins shared with the LCD pins to be used as a full complimentary output, instead of an open drain output.&amp;nbsp; I figured this out luckily because I decided to re-wire one of my NPN transistors with a PNP and totem-pole them for a redundant circuit, and turning on the PNP worked like a charm!&amp;nbsp; Well, not I know why!&amp;nbsp; Searched open drain in the RM, and I found this gem.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Good luck to anyone else that comes across this!&amp;nbsp; I hope my solution will help you some.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Apr 2010 07:29:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/8-bit-Microcontrollers/Using-GPIO-on-PC9RS08LE4/m-p/192887#M14897</guid>
      <dc:creator>Darkn3ss</dc:creator>
      <dc:date>2010-04-20T07:29:14Z</dc:date>
    </item>
  </channel>
</rss>

