FRDM-STBC-AGM04 - Bare metal example project

Document created by Tomas Vaverka Employee on Jul 25, 2017Last modified by ebiz_ws_prod on Dec 13, 2017
Version 3Show Document
  • View in full screen mode

******************************************************************************************************
* This code has been written for the NXP FRDM-KL25Z + FRDM-STBC-AGM04 boards
* and demonstrates how to read the acceleration (MMA8652FC), magnetic (MAG3110)
* and angular rate (FXAS21002C) data using an interrupt technique.
*
* All sensors are controlled via I2C by default.
*
* I2C slave addresses:
* MMA8652FC -> 0x1D
* MAG3110 -> 0x0E
* FXAS21002C -> 0x20
*
* J7 selects MCU I2C bus for SDA:
* 2:3 -> I2C_SDA1 (PTC2)
*
* J8 selects MCU I2C bus for SCL:
* 2:3 -> I2C_SCL1 (PTC1)
*
* INT1_8652 connected to PTD4, INT1_MAG3110 connected to PTA5 pin and
* INT1_21002 connected to PTA4 pin.
*****************************************************************************************************

Original Attachment has been moved to: FRDM-KL25Z-FRDM-STBC-AGM04-Basic-read-using-I2C-and-interrupts.rar

Attachments

    Outcomes