<?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: USB get/putchar for USB CDC</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592155#M22339</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by drs on Fri Apr 11 16:41:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The getchar equivalent in the USB ROM drivers is&amp;nbsp; USBD_API-&amp;gt;hw-&amp;gt;ReadReqEP() and the putchar equivalent is USBD_API-&amp;gt;hw-&amp;gt;WriteEP. You can see how these functions are used in the cdc_uart example in LPCOpen Platform. These are called in the UART ISR in cdc_uart.c&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 19:18:45 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T19:18:45Z</dc:date>
    <item>
      <title>USB get/putchar for USB CDC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592154#M22338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pra18 on Tue Mar 25 04:22:38 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there a getchar and putchar kind of functions&amp;nbsp; that transmit/ receive one byte over USB for USB CDC purpose on lpc435x.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Consider that we use the USB BD ROM libraries.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I find it is available for lpc11xx.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in advance,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;pra18&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592154#M22338</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB get/putchar for USB CDC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592155#M22339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by drs on Fri Apr 11 16:41:19 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;The getchar equivalent in the USB ROM drivers is&amp;nbsp; USBD_API-&amp;gt;hw-&amp;gt;ReadReqEP() and the putchar equivalent is USBD_API-&amp;gt;hw-&amp;gt;WriteEP. You can see how these functions are used in the cdc_uart example in LPCOpen Platform. These are called in the UART ISR in cdc_uart.c&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:18:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592155#M22339</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:18:45Z</dc:date>
    </item>
    <item>
      <title>Re: USB get/putchar for USB CDC</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592156#M22340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by pra18 on Wed Aug 27 06:46:50 MST 2014&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Hi, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I went through the cdc_uart source but could not make out how it is done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;however I' ll&amp;nbsp; try to explain the scenario on my side as below .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am trying to migrate from UART to the USB on this lpc chip and thereby use&amp;nbsp; UART style interfaces by making use of&amp;nbsp; USB ROM APIs .&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I see that there is a reduced flexibility to use one's own implementation since this USBD is ROM'ed in lpc43xx and only header files are exposed and when one tries to use&amp;nbsp; the APIs provided by driver for e.g to read and write without little flexibility &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in this case, for example to transmit / receive &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 1 . a single a byte of data through the USB&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Case 2&amp;nbsp; .a block of data through USB &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;what would be the correct approach. Can you give some examples?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how would one do it compared to the conventional UART on the lpc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This becomes slightly complicated for someone who is trying to emulate this USB as a UART and &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;will try to use UART styed interface using&amp;nbsp; the USB ROM API.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;it is&amp;nbsp; indeed good that USBD is located in ROM and reduces significant time in creating USB user apps.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thansk in advance, &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 19:18:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/USB-get-putchar-for-USB-CDC/m-p/592156#M22340</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T19:18:46Z</dc:date>
    </item>
  </channel>
</rss>

