Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    BMP390 FIFO filter coefficient for IIR filter STM32

    BMP390 FIFO filter coefficient for IIR filter STM32

    snail
    New Poster

    Hi, Bosch team, hello!
    In the BMP390 testing project, the iiR_filter parameter was set in a single continuous temperature and pressure data collection set, and the pressure data iiR_filter obtained was normal. When the FIFO is turned on, the collected pressure parameter iid_filter is always incorrect. May I ask where the parameter setting issue is with me?
    The original code is as follows:

         if (ONE_FIFO_SELECT == 1)
        {  
            //BMP390_Send_Byte(0x15, 0xfc);             //FIFO_WTM_0 
            //BMP390_Send_Byte(0x16, 0x00);            //FIFO_WTM_1
     
            BMP390_Send_Byte(0x17, 0x1b);            //FIFO_CONFIG_1  TP= 0x1b  T= 0x13 P= 0x0b  STP= 0x1f
            //BMP390_Send_Byte(0x18, 0x08);            //FIFO_CONFIG_2
            BMP390_Send_Byte(0x19, 0x16);            //INT_CTRL  0x16 FIFO Full Interrupt  0x0e  FIFO Watermark Interrupt
     
            BMP390_Send_Byte(0x1c, 0x03);            //OSR
            BMP390_Send_Byte(0x1f, 0x08);            //CONFIG
            BMP390_Send_Byte(0x1D, 0x02);            //ODR
        }
     
        if (ONE_FIFO_SELECT == 0)
        {
            BMP390_Send_Byte(0x1c, 0x03);            //OSR
            BMP390_Send_Byte(0x1f, 0x08);            //CONFIG
            BMP390_Send_Byte(0x1D, 0x02);            //ODR
        }
       
     
        Thank you!
    2 REPLIES 2

    snail
    New Poster

    The problem has been resolved! Thank you.

    BSTRobin
    Community Moderator
    Community Moderator

    Hi snail,

    Thanks for your inquiry.
    Good news.
    You can also refer to BMP390 sensor API & exmaple code(https://github.com/boschsensortec/BMP3_SensorAPI/tree/master/examples) in the future.

    Icon--AD-black-48x48Icon--address-consumer-data-black-48x48Icon--appointment-black-48x48Icon--back-left-black-48x48Icon--calendar-black-48x48Icon--center-alignedIcon--Checkbox-checkIcon--clock-black-48x48Icon--close-black-48x48Icon--compare-black-48x48Icon--confirmation-black-48x48Icon--dealer-details-black-48x48Icon--delete-black-48x48Icon--delivery-black-48x48Icon--down-black-48x48Icon--download-black-48x48Ic-OverlayAlertIcon--externallink-black-48x48Icon-Filledforward-right_adjustedIcon--grid-view-black-48x48IC_gd_Check-Circle170821_Icons_Community170823_Bosch_Icons170823_Bosch_Icons170821_Icons_CommunityIC-logout170821_Icons_Community170825_Bosch_Icons170821_Icons_CommunityIC-shopping-cart2170821_Icons_CommunityIC-upIC_UserIcon--imageIcon--info-i-black-48x48Icon--left-alignedIcon--Less-minimize-black-48x48Icon-FilledIcon--List-Check-grennIcon--List-Check-blackIcon--List-Cross-blackIcon--list-view-mobile-black-48x48Icon--list-view-black-48x48Icon--More-Maximize-black-48x48Icon--my-product-black-48x48Icon--newsletter-black-48x48Icon--payment-black-48x48Icon--print-black-48x48Icon--promotion-black-48x48Icon--registration-black-48x48Icon--Reset-black-48x48Icon--right-alignedshare-circle1Icon--share-black-48x48Icon--shopping-bag-black-48x48Icon-shopping-cartIcon--start-play-black-48x48Icon--store-locator-black-48x48Ic-OverlayAlertIcon--summary-black-48x48tumblrIcon-FilledvineIc-OverlayAlertwhishlist