<?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 LPC1768 Landtiger board USB configuration in LPC Microcontrollers</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521056#M3958</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andy_man on Sun Apr 03 08:04:18 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the PLL0 clock to drive the USB clock at 48 MHz, which I accomplished. Now I am trying to configure the USB peripheral. In my program so far I setup the PLL0 clock. Then I successfully enabled PCUSB. But when I try and turn on the DEV_CLK_ON bit and the AHB_CLK_ON bit the LPC_USB-&amp;gt;USBClkSt register does not show that the bits have been enabled in simulation. My goal is to initialize and configure the USB peripheral on my own so I get a good understanding of how it functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//my code to setup the USB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void usb_setup(void){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SC -&amp;gt; PCONP |= 0x80000000; //enable PCUSB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USB-&amp;gt;USBClkCtrl = 0x1A; //turn on DEV_CLK_ON and AHB_CLK_ON&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while((LPC_USB-&amp;gt;USBClkSt &amp;amp; 0x1A) != 0x1A); //wait until the USBClkSt register recognizes the changes in USBClkCtrl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 17:48:53 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T17:48:53Z</dc:date>
    <item>
      <title>LPC1768 Landtiger board USB configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521056#M3958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andy_man on Sun Apr 03 08:04:18 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to use the PLL0 clock to drive the USB clock at 48 MHz, which I accomplished. Now I am trying to configure the USB peripheral. In my program so far I setup the PLL0 clock. Then I successfully enabled PCUSB. But when I try and turn on the DEV_CLK_ON bit and the AHB_CLK_ON bit the LPC_USB-&amp;gt;USBClkSt register does not show that the bits have been enabled in simulation. My goal is to initialize and configure the USB peripheral on my own so I get a good understanding of how it functions.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;//my code to setup the USB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void usb_setup(void){&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_SC -&amp;gt; PCONP |= 0x80000000; //enable PCUSB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;LPC_USB-&amp;gt;USBClkCtrl = 0x1A; //turn on DEV_CLK_ON and AHB_CLK_ON&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;while((LPC_USB-&amp;gt;USBClkSt &amp;amp; 0x1A) != 0x1A); //wait until the USBClkSt register recognizes the changes in USBClkCtrl&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;return;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:48:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521056#M3958</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Landtiger board USB configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521057#M3959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by MikeSimmonds on Mon Apr 04 09:24:16 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Look at the OTG clock control register.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am doing host mode (non OTG) and thought to leave the device and I2C clock bits unset.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But to allow peripheral view in the dubugger I had to enable ALL clocks (i.e OTGCLOCK = 0x1F rather than 0x19)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note the description is in the OTG chapter but it (and the function select register) apply also to device and host modes.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;HTH, Mike.&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:48:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521057#M3959</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:48:54Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Landtiger board USB configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521058#M3960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by andy_man on Mon Apr 04 09:48:32 MST 2016&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Tanks for the suggestion, I will take a look at the OTG chapter and see what effect enabling all clocks has. &lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 17:48:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521058#M3960</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T17:48:55Z</dc:date>
    </item>
    <item>
      <title>Re: LPC1768 Landtiger board USB configuration</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521059#M3961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;bump&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Jun 2016 01:07:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/LPC1768-Landtiger-board-USB-configuration/m-p/521059#M3961</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-19T01:07:09Z</dc:date>
    </item>
  </channel>
</rss>

