<?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: Switch Matrix  and generated file Help</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-Matrix-and-generated-file-Help/m-p/560273#M16056</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JoeHale on Mon Feb 10 08:02:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Siva,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have configured your part in the &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/tools/lpc-initializer" rel="nofollow noopener noreferrer" target="_blank"&gt;web based pinmux tool&lt;/A&gt;&lt;SPAN&gt; you can hit the download button. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get a choice of two versions: CMSIS and LPCOpen. These use different libraries to apply your configuration. If you are starting a project from scratch I'd recommend that you use the LPCOpen libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The zip bundle contains three files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;LPC810xxxxxx.nxp&lt;/STRONG&gt;&lt;SPAN&gt; - the file is just for the web based tool - you can upload to the tool using the Load button in case you want to edit your configuration later&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;iocon.c&lt;/STRONG&gt;&lt;SPAN&gt; - contains a single function &lt;/SPAN&gt;&lt;STRONG&gt;IOCON_Init()&lt;/STRONG&gt;&lt;SPAN&gt; that configures the IOCON block&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;swm.c&lt;/STRONG&gt;&lt;SPAN&gt; - contains a single function &lt;/SPAN&gt;&lt;STRONG&gt;SwitchMatrix_Init()&lt;/STRONG&gt;&lt;SPAN&gt; that configures the switch matrix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use these files in LPCXpresso IDE you need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list=1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]import the LPCOpen Library into your workspace (see up to Building the libraries in the &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers/lpcopen-v200-quickstart-guides/lpcopen-1" rel="nofollow noopener noreferrer" target="_blank"&gt;LPCOpen 2 QuickStart guide&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]create a new LPCOpen based project for the LPC800 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]copy the &lt;/SPAN&gt;&lt;STRONG&gt;iocon.c&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;swm.c&lt;/STRONG&gt;&lt;SPAN&gt; files into the &lt;/SPAN&gt;&lt;STRONG&gt;src&lt;/STRONG&gt;&lt;SPAN&gt; folder of your new project &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]optionally you can also copy in the &lt;/SPAN&gt;&lt;STRONG&gt;.nxp&lt;/STRONG&gt;&lt;SPAN&gt; file so you can find it later - it is ignored by the compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]In the &lt;/SPAN&gt;&lt;STRONG&gt;main()&lt;/STRONG&gt;&lt;SPAN&gt; function of &lt;/SPAN&gt;&lt;STRONG&gt;main.c&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; add the following calls after the call to &lt;/SPAN&gt;&lt;STRONG&gt;Board_Init()&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;IOCON_Init();
SwitchMatrix_Init();
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:58:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:58:35Z</dc:date>
    <item>
      <title>Switch Matrix  and generated file Help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-Matrix-and-generated-file-Help/m-p/560272#M16055</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by zbandit20 on Sun Feb 09 14:29:42 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hello Friends,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm just starting to learn to develop on LPC812 using the LPXpresso board.&amp;nbsp; I tried to configure SPI on different pins using the Web based Switch Matrix. Two or there files were generated.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My question is what do I need to do with the files that were generated?.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there any step by step tutorial on what needs to be done after one configures the pins using Switch Matrix.&amp;nbsp; Any help will be appreciated.&amp;nbsp; Thank you.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Siva.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:58:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-Matrix-and-generated-file-Help/m-p/560272#M16055</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:58:34Z</dc:date>
    </item>
    <item>
      <title>Re: Switch Matrix  and generated file Help</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-Matrix-and-generated-file-Help/m-p/560273#M16056</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by JoeHale on Mon Feb 10 08:02:00 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi Siva,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Once you have configured your part in the &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/tools/lpc-initializer" rel="nofollow noopener noreferrer" target="_blank"&gt;web based pinmux tool&lt;/A&gt;&lt;SPAN&gt; you can hit the download button. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You get a choice of two versions: CMSIS and LPCOpen. These use different libraries to apply your configuration. If you are starting a project from scratch I'd recommend that you use the LPCOpen libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The zip bundle contains three files:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;LPC810xxxxxx.nxp&lt;/STRONG&gt;&lt;SPAN&gt; - the file is just for the web based tool - you can upload to the tool using the Load button in case you want to edit your configuration later&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;iocon.c&lt;/STRONG&gt;&lt;SPAN&gt; - contains a single function &lt;/SPAN&gt;&lt;STRONG&gt;IOCON_Init()&lt;/STRONG&gt;&lt;SPAN&gt; that configures the IOCON block&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*] &lt;/SPAN&gt;&lt;STRONG&gt;swm.c&lt;/STRONG&gt;&lt;SPAN&gt; - contains a single function &lt;/SPAN&gt;&lt;STRONG&gt;SwitchMatrix_Init()&lt;/STRONG&gt;&lt;SPAN&gt; that configures the switch matrix.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;To use these files in LPCXpresso IDE you need to&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[list=1]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]import the LPCOpen Library into your workspace (see up to Building the libraries in the &lt;/SPAN&gt;&lt;A href="http://http://www.lpcware.com/content/project/lpcopen-platform-nxp-lpc-microcontrollers/lpcopen-v200-quickstart-guides/lpcopen-1" rel="nofollow noopener noreferrer" target="_blank"&gt;LPCOpen 2 QuickStart guide&lt;/A&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]create a new LPCOpen based project for the LPC800 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]copy the &lt;/SPAN&gt;&lt;STRONG&gt;iocon.c&lt;/STRONG&gt;&lt;SPAN&gt; and &lt;/SPAN&gt;&lt;STRONG&gt;swm.c&lt;/STRONG&gt;&lt;SPAN&gt; files into the &lt;/SPAN&gt;&lt;STRONG&gt;src&lt;/STRONG&gt;&lt;SPAN&gt; folder of your new project &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]optionally you can also copy in the &lt;/SPAN&gt;&lt;STRONG&gt;.nxp&lt;/STRONG&gt;&lt;SPAN&gt; file so you can find it later - it is ignored by the compiler&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; [*]In the &lt;/SPAN&gt;&lt;STRONG&gt;main()&lt;/STRONG&gt;&lt;SPAN&gt; function of &lt;/SPAN&gt;&lt;STRONG&gt;main.c&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp; add the following calls after the call to &lt;/SPAN&gt;&lt;STRONG&gt;Board_Init()&lt;/STRONG&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD bgcolor="#cacaca"&gt; &lt;PRE&gt;IOCON_Init();
SwitchMatrix_Init();
&lt;/PRE&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[/list] &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Hope that helps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:58:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Switch-Matrix-and-generated-file-Help/m-p/560273#M16056</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:58:35Z</dc:date>
    </item>
  </channel>
</rss>

