<?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 MMA8451Q - FIFO in Sensors</title>
    <link>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230013#M253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would like to ask you for help with configuration of MMA8451Q accelerometer. I need to read data at 800Hz ODR, 14 bit resolution. I'm trying to set the TRIGGER MODE to FIFO. I would like to set the accelerometer so that when watermark is reached, then the interrupt is generated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;My settings of the accelerometer is not working. Setting is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;// FIFO TRIGGER MODE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2A, 0x00);// standby,800Hz,14 bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x09, 0xC8);// Triger, watermark = 8 dec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x0A, 0x00);// no trig 0x00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2D, 0x40);// int_en_fifo = 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2E, 0x40);// INT1 // 0x00 = INT2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x0E, 0x02);// Set 8G - HP OFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2A, 0x01);// active, 800Hz, 14 bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Please can you advise me what is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would also like to ask you how to implement the reading sequence in order to reset interrupt flag in accelerometer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Feb 2026 21:09:51 GMT</pubDate>
    <dc:creator>georgek</dc:creator>
    <dc:date>2026-02-03T21:09:51Z</dc:date>
    <item>
      <title>MMA8451Q - FIFO</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230013#M253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would like to ask you for help with configuration of MMA8451Q accelerometer. I need to read data at 800Hz ODR, 14 bit resolution. I'm trying to set the TRIGGER MODE to FIFO. I would like to set the accelerometer so that when watermark is reached, then the interrupt is generated.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;My settings of the accelerometer is not working. Setting is as follows:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;// FIFO TRIGGER MODE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2A, 0x00);// standby,800Hz,14 bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x09, 0xC8);// Triger, watermark = 8 dec&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x0A, 0x00);// no trig 0x00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2D, 0x40);// int_en_fifo = 1 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2E, 0x40);// INT1 // 0x00 = INT2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x0E, 0x02);// Set 8G - HP OFF&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;iic_acc_send(IIC_ACC_ADDR_MMA8451Q, 0x2A, 0x01);// active, 800Hz, 14 bit&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Please can you advise me what is wrong?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would also like to ask you how to implement the reading sequence in order to reset interrupt flag in accelerometer.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your advice,&lt;/P&gt;&lt;P&gt;George&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Feb 2026 21:09:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230013#M253</guid>
      <dc:creator>georgek</dc:creator>
      <dc:date>2026-02-03T21:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8451Q - FIFO</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230014#M254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;George,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;When using the trigger mode, you need to select an event/function (tap, orientation change etc.) that triggers the FIFO. This is done by setting appropriate bits in the TRIG_CFG register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Further you need to configure the selected function, for example if you select a tap/pulse to trigger the FIFO (TRIG_CFG = 0x08), then you have to configure all related registers (0x21 – 0x28).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Default interrupt configuration is push-pull (PP_OD = 0) and active low (IPOL = 0). If you prefer different configuration, modify these bits in the CTRL_REG3 register.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;In your ISR, you should read the appropriate status register for the selected embedded function (e.g. the PULSE_SRC register when the tap event is selected) to clear function’s interrupt flag. In addition to that, the FIFO interrupt needs to be deasserted by reading out at least one sample (OUT_X_MSB and OUT_X_LSB registers). &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I would recommend you to look at our &lt;A href="http://cache.freescale.com/files/sensors/doc/app_note/AN4073.pdf"&gt;AN4073&lt;/A&gt;, it includes useful software examples such as “Event Detection Trigger on a Tap Event to Flush the Data for Further Analysis 800 Hz ODR, 8g Mode, 8-bit data” on page 13.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;I hope it helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif';"&gt;Tomas&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="mce_paste_marker"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 May 2013 13:41:29 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230014#M254</guid>
      <dc:creator>TomasVaverka</dc:creator>
      <dc:date>2013-05-08T13:41:29Z</dc:date>
    </item>
    <item>
      <title>Re: MMA8451Q - FIFO</title>
      <link>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230015#M255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Gentlemen,&lt;/P&gt;&lt;P&gt;I have an almost-identical application.&amp;nbsp; I am trying to use the FIFO in trigger mode to capture data prior to- and after a Motion event. &lt;/P&gt;&lt;P&gt;I have the FIFO setup in "Trigger" mode with the Motion DSP subsystem as the trigger source.&lt;/P&gt;&lt;P&gt;I have the FIFO high-water mark set at 16 samples.&amp;nbsp; (ie: I'm trying to capture the 16 readings prior to the motion threshold trigger, and the 16 readings after...)&lt;/P&gt;&lt;P&gt;I have the interrupt controller setup to ONLY trigger on FIFO events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my question:&amp;nbsp; (when the interrupt occurs, I read the source register, and discover that the high-water flag is set, but that the FIFO is not yet full (overflow bit still not set).&lt;/P&gt;&lt;P&gt;What is the best way - or is it possible - to only interrupt the host when the overflow occurs?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;-Mike&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Feb 2015 14:15:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Sensors/MMA8451Q-FIFO/m-p/230015#M255</guid>
      <dc:creator>mstroven</dc:creator>
      <dc:date>2015-02-10T14:15:28Z</dc:date>
    </item>
  </channel>
</rss>

