MCUXpresso SDK Documentation

i3c_master_read_sensor_p3t1755

i3c_master_read_sensor_p3t1755#

Overview#

The example shows how to use i3c driver as master to read temperature data from sensor P3T1755.

The example will do dynamic address assignment to the P3T1755 sensor, read the temperature data and print it in while loop.

Supported Boards#

FRDM-MCXA153
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA153 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a Type-C USB cable between the host PC and the MCU-Link port(J15) on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

IMX952LPD5EVK-19
Hardware requirements
  • Micro USB cable

  • One IMX95LP4X-EVK boards

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

Board settings

Don’t populate R663/664, populate R665/666

Please note this application can’t support running with Linux BSP!

Prepare the Demo
  1. Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW4 to power on the board.

  2. Connect a micro USB cable between the host PC and the J31 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either re-power up your board or launch the debugger in your IDE to begin running the example

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

I3C master read sensor data example.
Temperature:32.812500
Temperature:32.812500
Temperature:32.812500
FRDM-MCXA156
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA156 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXN947
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a type-c USB cable between the PC host and the MCU-Link USB port (J17) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXN947T
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXN947T board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a type-c USB cable between the PC host and the MCU-Link USB port (J17) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

MCX-N5XX-EVK
Hardware requirements
  • Mini/micro USB cable

  • MCX-N5XX-EVK board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J5) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

MCX-N9XX-EVK
Hardware requirements
  • Mini/micro USB cable

  • MCX-N9XX-EVK board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a micro USB cable between the PC host and the MCU-Link USB port (J5) on the board

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

MIMXRT700-EVK
Hardware requirements
  • Micro USB cable

  • MIMXRT700-EVK board

  • Personal Computer

Board settings

To make the example work with cm33_core0, connections needed to be as follows: Make sure R581, R586, R589 are soldered and R582, R585, R588 are removed.

Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXA266
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA266 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXA366
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA366 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXA577
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA577 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

FRDM-MCXA287
Hardware requirements
  • Type-C USB cable

  • FRDM-MCXA287 board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. Press reset button to begin running the demo.

Running the demo

The log below shows the output of the hello world demo in the terminal window:

I3C master read sensor data example.

Temperature:27.000000

Temperature:27.000000

......

IMX943-EVK
Hardware requirements
  • Micro USB cable

  • One IMX943-EVK boards

  • J-Link Debug Probe

  • 12V~20V power supply

  • Personal Computer

Board settings

Populate R423 and R424 on position b of som board.

Please note this application can’t support running with Linux BSP! Sensor: P3T1085UK

Prepare the Demo
  1. Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.

  2. Connect a micro USB cable between the host PC and the J15 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either re-power up your board or launch the debugger in your IDE to begin running the example

Running the demo

When the example runs successfully, the following message is displayed in the terminal:

I3C master read sensor data example.
Temperature:32.812500
Temperature:32.812500
Temperature:32.812500