Example_S32K144_I2C_Master_MPL3115A2_S32DSR1_v3

Document created by Daniel Martynek Employee on Nov 25, 2018
Version 1Show Document
  • View in full screen mode

****************************************************************************************
Detailed Description:
This is a rather simple example that shows LPI2C0 in Master mode.
MPL3115A2 sensor is used as a slave device.
I2C bus at PTA2 SDA, PTA3 SCL (2-pin open drain mode),
external pull-up resistors on BRKTSTBC-P3115 board.
BRKTSTBC-P3115 supplied from P3V3 (J3.7).
Baud rate 400kHz, source SIRCDIV2 8MHz.
The master reads periodically MPL3115A2 status register (every 200ms)
and temperature / altitude data once they are ready.
-------------------------------------------------------------------------------------------------------
Test HW: S32K144EVB-Q100, BRKTSTBC-P3115
MCU: S32K144 0N57U
IDE: S32DSR1, OpenSDA
Target: internal_FLASH
****************************************************************************************

Outcomes