<?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: I2C in interrupt mode</title>
    <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-in-interrupt-mode/m-p/557802#M15477</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by khfreiberg on Wed Oct 03 15:01:15 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;One more question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found following in the LPC43xx_I2C library that came with Keil:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** I2C block interrupt entry (interrupt number \ref I2C0_IRQn). */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C0_IRQHandler (void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPCLIB_OSAL_ARG taskSwitch = LPCLIB_OSAL_FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_commonIRQHandler(I2C0, &amp;amp;taskSwitch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPCLIB_OSALExitISR(&amp;amp;taskSwitch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the Keil libraries seems to be old LPC18xx libs, so I try to use only the new libs from LPCware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They provide this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* I2C Interrupt handler functions ------*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_IntCmd (LPC_I2Cn_Type *I2Cx, Bool NewState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_MasterHandler (LPC_I2Cn_Type *I2Cx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_SlaveHandler (LPC_I2Cn_Type *I2Cx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there somewhere a 'I2C0_IRQHandler' in the new lib or how do I use an IRQ handler with parameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Jun 2016 18:44:35 GMT</pubDate>
    <dc:creator>lpcware</dc:creator>
    <dc:date>2016-06-15T18:44:35Z</dc:date>
    <item>
      <title>I2C in interrupt mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-in-interrupt-mode/m-p/557801#M15476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by khfreiberg on Wed Oct 03 11:49:26 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there an example how to use I2C0 in 'I2C_TRANSFER_INTERRUPT' mode.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The interrupt handlers in lpc43xx_i2c have parameters (!?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When I add 'I2C_MasterHandler' to interrupt table it stuck in INT. I assume the int flag management is simply missing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to write an own handler and call these functions?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I do not see how to get to my callback. What do I miss?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-in-interrupt-mode/m-p/557801#M15476</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:34Z</dc:date>
    </item>
    <item>
      <title>Re: I2C in interrupt mode</title>
      <link>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-in-interrupt-mode/m-p/557802#M15477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Content originally posted in LPCWare by khfreiberg on Wed Oct 03 15:01:15 MST 2012&lt;/STRONG&gt;&lt;BR /&gt;&lt;SPAN&gt;One more question.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I found following in the LPC43xx_I2C library that came with Keil:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;/** I2C block interrupt entry (interrupt number \ref I2C0_IRQn). */&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C0_IRQHandler (void)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPCLIB_OSAL_ARG taskSwitch = LPCLIB_OSAL_FALSE;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I2C_commonIRQHandler(I2C0, &amp;amp;taskSwitch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LPCLIB_OSALExitISR(&amp;amp;taskSwitch);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But the Keil libraries seems to be old LPC18xx libs, so I try to use only the new libs from LPCware.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;They provide this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;/* I2C Interrupt handler functions ------*/&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_IntCmd (LPC_I2Cn_Type *I2Cx, Bool NewState);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_MasterHandler (LPC_I2Cn_Type *I2Cx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;void I2C_SlaveHandler (LPC_I2Cn_Type *I2Cx);&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Is there somewhere a 'I2C0_IRQHandler' in the new lib or how do I use an IRQ handler with parameters?&lt;/SPAN&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Jun 2016 18:44:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/LPC-Microcontrollers/I2C-in-interrupt-mode/m-p/557802#M15477</guid>
      <dc:creator>lpcware</dc:creator>
      <dc:date>2016-06-15T18:44:35Z</dc:date>
    </item>
  </channel>
</rss>

