<?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>LPC MicrocontrollersのトピックRe: PIO0_8 on LPC812_MAX board doesn't pull-up</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/PIO0-8-on-LPC812-MAX-board-doesn-t-pull-up/m-p/757136#M30463</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PIO0_8 can works as XTAL so it is possible that somewhere in the init is enabled this functionality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In this schematic&amp;nbsp;&lt;A class="link-titled" href="https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf" title="https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf"&gt;https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf&lt;/A&gt;&amp;nbsp;is shown that PI0_8 is maybe connected to crystal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try to look&amp;nbsp;if the chip runs from integrated crystal or external.&lt;/P&gt;&lt;P&gt;If internal than try this before GPIO init:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chip_SWM_Init();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt; Chip_SWM_DisableFixedPin(SWM_FIXED_XTALIN);&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chip_SWM_Deinit();&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 02 Jan 2018 09:45:07 GMT</pubDate>
    <dc:creator>vojtechhavlicek</dc:creator>
    <dc:date>2018-01-02T09:45:07Z</dc:date>
    <item>
      <title>PIO0_8 on LPC812_MAX board doesn't pull-up</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PIO0-8-on-LPC812-MAX-board-doesn-t-pull-up/m-p/757135#M30462</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For a unknown reason, for me of course, the PIO0_8 in such a board is always read as logical LOW. The jumpers follow the factory settings. The pin is set as input:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#include "board.h"&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;#include &amp;lt;cr_section_macros.h&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; SystemCoreClockUpdate();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Board_Init();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Chip_GPIO_SetPinDIRInput(LPC_GPIO_PORT, 0, 8);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;bool tSup = Chip_GPIO_GetPinState (LPC_GPIO_PORT, 0, 8);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;// here always read false (or LOW), even when the pin is at 2.5V&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though the pull-ups resistors are enabled by default, I set one 10K at the pin. This pin, the 14 in the 20 lead package, reads 2.5 volts, HIGH I guess, but internally at the chip it's read as LOW. I didn't found any conflict in this pin, looking both at the schematic and int the board.c library function, Board_Init(). But maybe I'm overlooking something.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pins 0, 4 and 6 are set as inputs as well, and their readings are as expected: low when low, and high when high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas? Thank you in advance!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 05:07:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PIO0-8-on-LPC812-MAX-board-doesn-t-pull-up/m-p/757135#M30462</guid>
      <dc:creator>fjrg76</dc:creator>
      <dc:date>2018-01-02T05:07:03Z</dc:date>
    </item>
    <item>
      <title>Re: PIO0_8 on LPC812_MAX board doesn't pull-up</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/PIO0-8-on-LPC812-MAX-board-doesn-t-pull-up/m-p/757136#M30463</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;PIO0_8 can works as XTAL so it is possible that somewhere in the init is enabled this functionality.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;In this schematic&amp;nbsp;&lt;A class="link-titled" href="https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf" title="https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf"&gt;https://www.embeddedartists.com/sites/default/files/support/xpr/LPC812_max/LPC812_MAX_Schematic_Rev3.pdf&lt;/A&gt;&amp;nbsp;is shown that PI0_8 is maybe connected to crystal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Try to look&amp;nbsp;if the chip runs from integrated crystal or external.&lt;/P&gt;&lt;P&gt;If internal than try this before GPIO init:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chip_SWM_Init();&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;EM&gt; Chip_SWM_DisableFixedPin(SWM_FIXED_XTALIN);&lt;/EM&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Chip_SWM_Deinit();&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Jan 2018 09:45:07 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/PIO0-8-on-LPC812-MAX-board-doesn-t-pull-up/m-p/757136#M30463</guid>
      <dc:creator>vojtechhavlicek</dc:creator>
      <dc:date>2018-01-02T09:45:07Z</dc:date>
    </item>
  </channel>
</rss>

