Bosch Sensortec Community

    cancel
    Showing results for 
    Search instead for 
    Did you mean: 

    usage of BMa425 FIFO

    usage of BMa425 FIFO

    Neverweak
    New Poster

    I'm trying to understand how to configure the BMA425 so that I can read the FIFO when a FIFO_WaterMark interrupt occurs.  Here is how I have the BMA425 configured at the moment.After this configration,all data of axsi is read out,but no interrupt signal triggers (no low level output from  pin int1 )

    Am i need to do anything esle ? txs much!

    bma4_write_regs(BMA4_INIT_CTRL_ADDR, &config_load, 1, &BMA425_DEV); //INIT_CRL 0
    bma423_set_remap_axes(&BMA425_AXES_Config,&BMA425_DEV);
    bma423_anymotion_enable_axis(BMA423_ALL_AXIS_EN,&BMA425_DEV);
    bma4_write_regs(BMA4_INIT_CTRL_ADDR, &config_load, 1, &BMA425_DEV); //INIT_CRL 1
    BMA425_DEV.delay(150);
    bma4_set_accel_config(&BMA425_Accel_Config,&BMA425_DEV);
    bma4_set_accel_enable(BMA4_ENABLE,&BMA425_DEV);
    bma423_map_interrupt(BMA4_INTR1_MAP,BMA4_FIFO_FULL_INT,BMA4_ENABLE,&BMA425_DEV);
    bma4_set_fifo_config(BMA4_FIFO_ACCEL,BMA4_ENABLE,&BMA425_DEV);
    bma4_set_fifo_wm(600,&BMA425_DEV);
    bma4_set_int_pin_config(&BMA425_PIN_Config,BMA4_INTR1_MAP,&BMA425_DEV);

    1 REPLY 1

    DavidDai
    Member

    Dear user,

    it depends on how you configure the int pin electrical behavior, by default the INT1&INT2 pins are disabled, so you need to properly enable the output and active level, and the push-pull/open drain behavior.

    normally, once:

    1. the acc_en in reg0x7D is enabled,

    2. fifo_acc_en is enabled in reg0x48,

    3. fwm/ffull is mappeded in reg0x58,

    4. configure INT1/INT2 pin output in reg0x53&0x54

    the corresponding interrupt will be enabled, you should see the interrupt signaled out.

    if this issue still there, you'd better dump all the register map and share to us. better to check the waveform of initialization and interrupt behavior(spi/i2c + INT1) with logic analysor.

    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