<?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>Kinetis MicrocontrollersのトピックRead register error</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-register-error/m-p/485639#M29807</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am not able to figure this when stepping through the code, as soon as the debugger processes status = USB0_ISTAT I get an unhandled interrupt.&amp;nbsp;&amp;nbsp; I can hover over the USB0_ISTAT and get the value of it but I am not able to do anything with it in code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #005032;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; status;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = USB0_ISTAT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;I can also add &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;USB0_ISTAT to the expression window and the value shows up without any issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Apr 2016 18:15:39 GMT</pubDate>
    <dc:creator>bradm</dc:creator>
    <dc:date>2016-04-06T18:15:39Z</dc:date>
    <item>
      <title>Read register error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-register-error/m-p/485639#M29807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #1f497d;"&gt;I am not able to figure this when stepping through the code, as soon as the debugger processes status = USB0_ISTAT I get an unhandled interrupt.&amp;nbsp;&amp;nbsp; I can hover over the USB0_ISTAT and get the value of it but I am not able to do anything with it in code?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="text-indent: .5in;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: #005032;"&gt;uint8_t&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt; status;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = USB0_ISTAT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;I can also add &lt;SPAN style="font-size: 10.0pt; font-family: Consolas; color: black;"&gt;USB0_ISTAT to the expression window and the value shows up without any issue.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Apr 2016 18:15:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-register-error/m-p/485639#M29807</guid>
      <dc:creator>bradm</dc:creator>
      <dc:date>2016-04-06T18:15:39Z</dc:date>
    </item>
    <item>
      <title>Re: Read register error</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-register-error/m-p/485640#M29808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Brad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USB0_ISTAT register should be read correctly only if USB clock gate was enabled before.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that USB can be fed from USB_CLKIN or MCGFLLCLK/MCGPLLCLK/IRC48M (selected in SIM_SOPT2) but you need to enable clock gate control in SIM_SCGC4 register:&lt;/P&gt;&lt;PRE __default_attr="c++" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14600669939304593 jive_text_macro" data-renderedposition="138_8_1192_16" jivemacro_uid="_14600669939304593" modifiedtitle="true"&gt;&lt;P&gt;SIM_SCGC4&amp;nbsp; |= SIM_SCGC4_USBOTG_MASK;&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Isaac&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Apr 2016 22:11:06 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/Read-register-error/m-p/485640#M29808</guid>
      <dc:creator>isaacavila</dc:creator>
      <dc:date>2016-04-07T22:11:06Z</dc:date>
    </item>
  </channel>
</rss>

