<?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 How do we do Interrupt generation in mems Accelerometer when data is ready using I2C ? in Kinetis Microcontrollers</title>
    <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-we-do-Interrupt-generation-in-mems-Accelerometer-when/m-p/304208#M12864</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am using FXOS8700CQ mems Accelerometer + Magnetometer. I want to extract data from the device only when data ready flag is high. I have configured the interrupt register at INT1 pin to data ready flag, by default the pin goes high when an interrupt is generated. I am using K60 uc now on probing the interrupt pin, I can see the interrupt pin giving the square wave. following was the algo for activating interrupt &lt;/P&gt;&lt;P&gt;CTRL_REG4 ------&amp;gt; 0x01;&lt;/P&gt;&lt;P&gt;CTRL_REG5 ------&amp;gt; 0x01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am polling data in infinite loop i.e &lt;/P&gt;&lt;P&gt;for (;;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read all data ();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I am getting the following wave&amp;nbsp; yellow----&amp;gt;SCL clock&lt;/P&gt;&lt;P&gt;blue -------&amp;gt; Interrupt (data ready) &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43319i2E5541DB1A6CB746/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.jpg" alt="pastedImage_4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I try doing like&lt;/P&gt;&lt;P&gt;init_FXOS8700CQ();&lt;/P&gt;&lt;P&gt;for(;;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43320i02803DBFC4697FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.jpg" alt="pastedImage_10.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthe ISR I am reading all acelerometer and magnetometer data (as I am using Hybrid mode) so the interrupt flag should go low and also the clock at SCL should be there but nothing is happening.&lt;/P&gt;&lt;P&gt;Please look into the matter.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Mar 2014 04:18:19 GMT</pubDate>
    <dc:creator>Amit_Kumar1</dc:creator>
    <dc:date>2014-03-26T04:18:19Z</dc:date>
    <item>
      <title>How do we do Interrupt generation in mems Accelerometer when data is ready using I2C ?</title>
      <link>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-we-do-Interrupt-generation-in-mems-Accelerometer-when/m-p/304208#M12864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;I am using FXOS8700CQ mems Accelerometer + Magnetometer. I want to extract data from the device only when data ready flag is high. I have configured the interrupt register at INT1 pin to data ready flag, by default the pin goes high when an interrupt is generated. I am using K60 uc now on probing the interrupt pin, I can see the interrupt pin giving the square wave. following was the algo for activating interrupt &lt;/P&gt;&lt;P&gt;CTRL_REG4 ------&amp;gt; 0x01;&lt;/P&gt;&lt;P&gt;CTRL_REG5 ------&amp;gt; 0x01;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I am polling data in infinite loop i.e &lt;/P&gt;&lt;P&gt;for (;;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; read all data ();&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;I am getting the following wave&amp;nbsp; yellow----&amp;gt;SCL clock&lt;/P&gt;&lt;P&gt;blue -------&amp;gt; Interrupt (data ready) &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_4.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43319i2E5541DB1A6CB746/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_4.jpg" alt="pastedImage_4.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I try doing like&lt;/P&gt;&lt;P&gt;init_FXOS8700CQ();&lt;/P&gt;&lt;P&gt;for(;;)&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the following trace&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="pastedImage_10.jpg"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/43320i02803DBFC4697FF8/image-size/large?v=v2&amp;amp;px=999" role="button" title="pastedImage_10.jpg" alt="pastedImage_10.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;inthe ISR I am reading all acelerometer and magnetometer data (as I am using Hybrid mode) so the interrupt flag should go low and also the clock at SCL should be there but nothing is happening.&lt;/P&gt;&lt;P&gt;Please look into the matter.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Amit Kumar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Mar 2014 04:18:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Kinetis-Microcontrollers/How-do-we-do-Interrupt-generation-in-mems-Accelerometer-when/m-p/304208#M12864</guid>
      <dc:creator>Amit_Kumar1</dc:creator>
      <dc:date>2014-03-26T04:18:19Z</dc:date>
    </item>
  </channel>
</rss>

