<?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>LPCXpresso IDE中的主题 LPCXpresso 1769 GPIO and functions</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590047#M28926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by monnoliv on Tue Nov 15 03:53:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured timer0 with match1 register in order to toggle the P1.29 pin every 1mS, works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of toggling the pin, I've tried to clear the pin (this is ok) and then to set the pin in the interrupt routine, this is not working. I think this is because the P1.29 pin is configured as a function and not as a GPIO, right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Question, how to set these pin manually ? Since there is a possibility to clear (or set) the pin automatically, it must be possible to set (clear) it afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:50:48 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:50:48Z</dc:date>
    <item>
      <title>LPCXpresso 1769 GPIO and functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590047#M28926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by monnoliv on Tue Nov 15 03:53:53 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have configured timer0 with match1 register in order to toggle the P1.29 pin every 1mS, works well.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of toggling the pin, I've tried to clear the pin (this is ok) and then to set the pin in the interrupt routine, this is not working. I think this is because the P1.29 pin is configured as a function and not as a GPIO, right? &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Question, how to set these pin manually ? Since there is a possibility to clear (or set) the pin automatically, it must be possible to set (clear) it afterwards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:50:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590047#M28926</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:50:48Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 1769 GPIO and functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590048#M28927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ex-Zero on Tue Nov 15 05:42:40 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: monnoliv&lt;/STRONG&gt;&lt;BR /&gt;...it must be possible to set (clear) it afterwards&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, it is &lt;SPAN class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;&lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;A simple way to do this is to use EMX-bit in EMR after stopping the timer :eek:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;
LPC_TIM0-&amp;gt;TCR = 0;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //stop timer
LPC_TIM0-&amp;gt;EMR |= (1&amp;lt;&amp;lt;0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //set&amp;nbsp;&amp;nbsp; MAT0.0

or

LPC_TIM0-&amp;gt;EMR &amp;amp;=~(1&amp;lt;&amp;lt;0);&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; //reset MAT0.0&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:50:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590048#M28927</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:50:49Z</dc:date>
    </item>
    <item>
      <title>Re: LPCXpresso 1769 GPIO and functions</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590049#M28928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by monnoliv on Tue Nov 15 06:14:26 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Woaw, well done. Indeed EMx are linked to MATn.x&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you very much&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Olivier&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:50:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/LPCXpresso-1769-GPIO-and-functions/m-p/590049#M28928</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:50:50Z</dc:date>
    </item>
  </channel>
</rss>

