<?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: How do i set the LPC_IOCON register on a LPC1114?</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532450#M10409</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jan 28 06:40:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ledi007&lt;/STRONG&gt;&lt;BR /&gt;i am a newbie to programm an arm-controller like the LPC1114.&lt;BR /&gt;&lt;BR /&gt;Now, i am struggling to deal with the LPC_IOCON register!&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then start to read the User Manual, in your case: Chapter 7&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10398.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10398.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:34:02 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:34:02Z</dc:date>
    <item>
      <title>How do i set the LPC_IOCON register on a LPC1114?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532449#M10408</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ledi007 on Thu Jan 28 06:30:47 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i am a newbie to programm an arm-controller like the LPC1114.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Now, i am struggling to deal with the LPC_IOCON register!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use LPCXpresso in the newest version with LPCXpresso board LPC1114. What i want to do is to set the portpin 1_8 high and low in the while loop.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But unfortunally it doesn´t work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;How must i set the LPC_IOCON register :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I dont understand how it works and how i have to set the bits in the register to set the GPIO1_8 to an digital output :quest: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Underneath is my code i am using right now.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Please can somebody explain me the functionality of the LPC_IOCON register?&lt;/SPAN&gt;&lt;BR /&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;
#ifdef __USE_CMSIS
#include "LPC11xx.h"
#endif

#include &amp;lt;cr_section_macros.h&amp;gt;

int main(void)
{
SysTick_Config(SystemCoreClock / 1000);

LPC_SYSCON-&amp;gt;SYSAHBCLKCTRL |= (1&amp;lt;&amp;lt;6);&amp;nbsp; //Enables clock for GPIO.

LPC_IOCON-&amp;gt;PIO1_8 = (1 | (1&amp;lt;&amp;lt;7));// ??? 

LPC_GPIO1-&amp;gt;DIR |= (1&amp;lt;&amp;lt;8);// Set Pin 8 on PORT 1 to output

&amp;nbsp;&amp;nbsp;&amp;nbsp; while(1)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO1-&amp;gt;DATA |= (1&amp;lt;&amp;lt;8);// set GPIO DATA Register (Pin 8) to HIGH
&amp;nbsp;&amp;nbsp;&amp;nbsp; LPC_GPIO1-&amp;gt;DATA &amp;amp;= ~(1&amp;lt;&amp;lt;8);// set GPIO DATA Register (Pin 8) to LOW
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; return 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 19:34:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532449#M10408</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How do i set the LPC_IOCON register on a LPC1114?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532450#M10409</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jan 28 06:40:22 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ledi007&lt;/STRONG&gt;&lt;BR /&gt;i am a newbie to programm an arm-controller like the LPC1114.&lt;BR /&gt;&lt;BR /&gt;Now, i am struggling to deal with the LPC_IOCON register!&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then start to read the User Manual, in your case: Chapter 7&amp;nbsp; :) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fdocuments%2Fuser_manual%2FUM10398.pdf" rel="nofollow" target="_blank"&gt;http://www.nxp.com/documents/user_manual/UM10398.pdf&lt;/A&gt;&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:34:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532450#M10409</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: How do i set the LPC_IOCON register on a LPC1114?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532451#M10410</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ledi007 on Thu Jan 28 07:02:01 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had done this already! But i don´t understand all things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example the bits 2:0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The reset value is 000.&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&amp;nbsp;&amp;nbsp;&amp;nbsp; OK!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x0 Selects function PIO1_8.&amp;nbsp; .....&amp;nbsp;&amp;nbsp;&amp;nbsp; If i set 0b000 i select the PIO1_8 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;0x1 Selects function CT16B1_CAP0.&amp;nbsp;&amp;nbsp; .....&amp;nbsp; what is CT16B1_CAP0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So i understand it right, i have to set this register to&amp;nbsp; 0011 0 00 000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532451#M10410</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do i set the LPC_IOCON register on a LPC1114?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532452#M10411</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by R2D2 on Thu Jan 28 07:13:41 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ledi007&lt;/STRONG&gt;&lt;BR /&gt;i had done this already! But i don´t understand all things.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then start with things you understand...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ledi007&lt;/STRONG&gt;&lt;BR /&gt;For example the bits 2:0&lt;BR /&gt;The reset value is 000.&amp;nbsp;&amp;nbsp;&amp;nbsp; .....&amp;nbsp;&amp;nbsp;&amp;nbsp; OK!&lt;BR /&gt;&lt;BR /&gt;0x0 Selects function PIO1_8.&amp;nbsp; .....&amp;nbsp;&amp;nbsp;&amp;nbsp; If i set 0b000 i select the PIO1_8 ?&lt;BR /&gt;&lt;BR /&gt;0x1 Selects function CT16B1_CAP0.&amp;nbsp;&amp;nbsp; .....&amp;nbsp; what is CT16B1_CAP0 ?&lt;BR /&gt;&lt;BR /&gt;So i understand it right, i have to set this register to&amp;nbsp; 0011 0 00 000?&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Default setup is PIO1_8, so normally you don't need to change this IOCON register&amp;nbsp; :O &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the debugger to check this register...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: ledi007&lt;/STRONG&gt;&lt;BR /&gt;0x1 Selects function CT16B1_CAP0.&amp;nbsp;&amp;nbsp; .....&amp;nbsp; what is CT16B1_CAP0 ?&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's described in the User manual....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: You are toggling that PIN without delay, so don't use a LED (or don't expect to see something blinking)...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:34:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532452#M10411</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:34:03Z</dc:date>
    </item>
    <item>
      <title>Re: How do i set the LPC_IOCON register on a LPC1114?</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532453#M10412</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by ledi007 on Thu Jan 28 10:15:15 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;ledi007 wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i had done this already! But i don´t understand all things.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then start with things you understand...&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#f00]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;that´s not possible ;-) Did you understand all things as you start with programming?[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ledi007 wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example the bits 2:0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; The reset value is 000. ..... OK!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x0 Selects function PIO1_8. ..... If i set 0b000 i select the PIO1_8 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1 Selects function CT16B1_CAP0. ..... what is CT16B1_CAP0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; So i understand it right, i have to set this register to 0011 0 00 000?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Default setup is PIO1_8, so normally you don't need to change this IOCON register Shock&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use the debugger to check this register...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ledi007 wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x1 Selects function CT16B1_CAP0. ..... what is CT16B1_CAP0 ?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;That's described in the User manual....&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#f00]I know, that all is describt in the user manual. So i think that is the advantage of a forum that user with experience can help other people.[/color]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;BTW: You are toggling that PIN without delay, so don't use a LED (or don't expect to see something blinking)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[color=#f00]I know! In this case i step vorward with the debugger...[/color]&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:34:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/How-do-i-set-the-LPC-IOCON-register-on-a-LPC1114/m-p/532453#M10412</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:34:04Z</dc:date>
    </item>
  </channel>
</rss>

