<?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 Re: Basic USB example in LPCXpresso IDE</title>
    <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572927#M21232</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sjalloq on Mon Apr 04 07:10:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That PDF link above is a good starting place and once you understand the different USB transfer mechanisms you'll be better placed to know what is appropriate for your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, you could write something as simple as a vendor specific control request that reads your ADC value whenever it is polled.&amp;nbsp; I think this would also involve the least amount of programming on the host side too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at any of the HID examples and think about whether they would work for you.&amp;nbsp; A keyboard, for example, works by having the host regularly poll the device for key presses.&amp;nbsp; You could replace the key press data with your ADC readings - obviously creating your own HID report type and writing the host software to handle it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start with the basics of USB such as the different stages and packet types, then move onto Control transfers, then try to get your head around how something as simple as a HID device works.&amp;nbsp; Then worry about your app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 22:33:17 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T22:33:17Z</dc:date>
    <item>
      <title>Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572919#M21224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ajay on Sat Apr 02 12:37:58 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;I have zero knowledge about the USB protocol. So I am not sure how best to describe this request:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I would like to be able to pass A/D readings from the LPCxpresso base board to the PC. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;What is a good starting point?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Ajay&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572919#M21224</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572920#M21225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sjalloq on Sun Apr 03 06:01:29 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Easiest way is to look for a HID class example and modify that.&amp;nbsp; You can use the HID Report structure to send your ADC samples back to the host. You should find lots of software examples for both device and host.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a USB book that is brilliant. USB Complete, Fourth Edition, Jan Axelson.&amp;nbsp; Good starting point if you know nothing but remember the USB specs are freely available and aren't that hard to read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572920#M21225</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572921#M21226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ajay on Sun Apr 03 08:26:32 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;HR /&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;Quote: sjalloq&lt;/STRONG&gt;&lt;BR /&gt;Easiest way is to look for a HID class example and modify that. You can use the HID Report structure to send your ADC samples back to the host. You should find lots of software examples for both device and host.&lt;BR /&gt;&lt;/SPAN&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much as that provides direction.&amp;nbsp; I will order the book as it would be good to have.&amp;nbsp; The abundance of examples is overwhelming.&amp;nbsp; What is the name of a project which contains the HID class?&amp;nbsp; There are many projects:&amp;nbsp; projects which come with the IDE, Keil examples for MCB1700, RDB1768 examples, ets.&amp;nbsp; I have an LPCXpresso 1769 board. Many thanks.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572921#M21226</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:13Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572922#M21227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Fernando on Sun Apr 03 17:29:16 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;You can check this tutorial:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://"&gt;http://www.beyondlogic.org/usbnutshell/usb-in-a-nutshell.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it´s the best introduction to the USB bus. Very easy to read.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Fernando&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572922#M21227</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572923#M21228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by larryvc on Sun Apr 03 18:09:49 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Ajay the&amp;nbsp; RDB1768 examples work fine with the LPCXpresso 1769 board.&amp;nbsp;&amp;nbsp; They should give you an idea as to where to start.&amp;nbsp; I've used them as a base for my own USB code on the LPCXpresso 1769 board with just a USB connector wired up.&amp;nbsp; You may have to modify them a little to work with the base board.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Fernando thanks for the link to the tutorial.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572923#M21228</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572924#M21229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ajay on Sun Apr 03 19:25:15 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes, I know.&amp;nbsp; I have looked through them time to time.&amp;nbsp; But was wondering if 'sjalloq' had a specific one in mind.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572924#M21229</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572925#M21230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sjalloq on Mon Apr 04 04:05:54 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;No example in mind.&amp;nbsp; You just need to pick one and ask your next round of questions.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572925#M21230</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572926#M21231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ajay on Mon Apr 04 04:16:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Since I do not know the basics (things like the difference between Host, Device, OTG), I will need to learn more.&amp;nbsp; I was hoping for some guidance on which example is best suited for my project:&amp;nbsp; Ability to read A\D counts and send to PC via USB.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572926#M21231</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:16Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572927#M21232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by sjalloq on Mon Apr 04 07:10:20 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;That PDF link above is a good starting place and once you understand the different USB transfer mechanisms you'll be better placed to know what is appropriate for your application.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;For example, you could write something as simple as a vendor specific control request that reads your ADC value whenever it is polled.&amp;nbsp; I think this would also involve the least amount of programming on the host side too.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Take a look at any of the HID examples and think about whether they would work for you.&amp;nbsp; A keyboard, for example, works by having the host regularly poll the device for key presses.&amp;nbsp; You could replace the key press data with your ADC readings - obviously creating your own HID report type and writing the host software to handle it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Start with the basics of USB such as the different stages and packet types, then move onto Control transfers, then try to get your head around how something as simple as a HID device works.&amp;nbsp; Then worry about your app.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572927#M21232</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:17Z</dc:date>
    </item>
    <item>
      <title>Re: Basic USB example</title>
      <link>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572928#M21233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by Ajay on Mon Apr 04 10:57:12 MST 2011&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks very much for the pointers.&amp;nbsp; Looks like I have some work to do...&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 22:33:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPCXpresso-IDE/Basic-USB-example/m-p/572928#M21233</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T22:33:18Z</dc:date>
    </item>
  </channel>
</rss>

