<?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 Change SWD pins to GPIO at runtime in LPC800 in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-SWD-pins-to-GPIO-at-runtime-in-LPC800/m-p/613854#M23998</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to use 20 TSSOP pin new LPC802 series and my pin requirements are not enough.&lt;/P&gt;&lt;P&gt;only way to use 20 pin package is to change SWD pin to GPIO at runtime,&lt;/P&gt;&lt;P&gt;I found below explanation at user manuel of LPC800 but I wonder if there is an ready example code for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.3.3 Changing the pin function assignment Pin function assignments can be changed “on-the-fly” from one peripheral to another while the part is running. To disconnect a peripheral from the pins and change the pin function assignment, follow these steps: 1. Enable the clock to the switch matrix. 2. Find the pin assign register for the current pin function. For example, register PINASSIGN0 for pin function U0_RXD. 3. Set the corresponding bits in the PINASSIGN register to their default value 0xFF. 4. Clear all pending interrupts for the disconnected peripheral and ensure that the peripheral is in a defined state. 5. In the pin assign register for the new pin function, program the pin number. 6. Disable the clock to the switch matrix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Mar 2017 15:51:42 GMT</pubDate>
    <dc:creator>hakankaracay</dc:creator>
    <dc:date>2017-03-23T15:51:42Z</dc:date>
    <item>
      <title>Change SWD pins to GPIO at runtime in LPC800</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-SWD-pins-to-GPIO-at-runtime-in-LPC800/m-p/613854#M23998</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;I want to use 20 TSSOP pin new LPC802 series and my pin requirements are not enough.&lt;/P&gt;&lt;P&gt;only way to use 20 pin package is to change SWD pin to GPIO at runtime,&lt;/P&gt;&lt;P&gt;I found below explanation at user manuel of LPC800 but I wonder if there is an ready example code for this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;7.3.3 Changing the pin function assignment Pin function assignments can be changed “on-the-fly” from one peripheral to another while the part is running. To disconnect a peripheral from the pins and change the pin function assignment, follow these steps: 1. Enable the clock to the switch matrix. 2. Find the pin assign register for the current pin function. For example, register PINASSIGN0 for pin function U0_RXD. 3. Set the corresponding bits in the PINASSIGN register to their default value 0xFF. 4. Clear all pending interrupts for the disconnected peripheral and ensure that the peripheral is in a defined state. 5. In the pin assign register for the new pin function, program the pin number. 6. Disable the clock to the switch matrix&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Mar 2017 15:51:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Change-SWD-pins-to-GPIO-at-runtime-in-LPC800/m-p/613854#M23998</guid>
      <dc:creator>hakankaracay</dc:creator>
      <dc:date>2017-03-23T15:51:42Z</dc:date>
    </item>
    <item>
      <title>Re: Change SWD pins to GPIO at runtime in LPC800</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/Change-SWD-pins-to-GPIO-at-runtime-in-LPC800/m-p/613855#M23999</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Could you please confirm the device you are using?&lt;/P&gt;&lt;P&gt;Please check the below example: &lt;BR /&gt;Chip_Clock_EnablePeriphClock(SYSCTL_CLOCK_SWM); // enable the clock to the switch matrix&lt;BR /&gt;Chip_SWM_DisableFixedPin(SWM_FIXED_SWCLK);//Disable SWDCLK pin in PIO0_3&amp;nbsp; PINENABLE0 register.&lt;BR /&gt;Chip_SWM_DisableFixedPin(SWM_FIXED_SWDIO);//Disable SWDIO pin in PIO0_2&amp;nbsp;&amp;nbsp; PINENABLE0 register&lt;BR /&gt;Chip_Clock_DisablePeriphClock(SYSCTL_CLOCK_SWM);//Disable the clock to the switch matrix&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Sol &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Mar 2017 00:08:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/Change-SWD-pins-to-GPIO-at-runtime-in-LPC800/m-p/613855#M23999</guid>
      <dc:creator>soledad</dc:creator>
      <dc:date>2017-03-28T00:08:42Z</dc:date>
    </item>
  </channel>
</rss>

