AM263x MCU+ SDK  09.02.00
I2C Temperature Interrupt LLD

Introduction

This example demonstrates probing of sensor via I2C and reading data from it. It makes use of the LLD driver and it's interrupt transfer API. The application reads data from the temperature sensor in the EVM. Application reads 20 samples from the sensor and exits.

Supported Combinations

Parameter Value
CPU + OS r5fss0-0 nortos
Toolchain ti-arm-clang
Boards am263x-cc, am263x-lp
Example folder examples/drivers/i2c/i2c_temperature_interrupt_lld

Steps to Run the Example

See Also

I2C Low Level Driver

Sample Output

Shown below is a sample output when the application is run,

[I2C] I2C Temperature Read test Started in interrupt mode ... !!!
[I2C] Temperature sensor found at device address 0x4c
[I2C] Sample 0: 44.000000 (celcius)
[I2C] Sample 1: 44.000000 (celcius)
[I2C] Sample 2: 44.000000 (celcius)
[I2C] Sample 3: 44.000000 (celcius)
[I2C] Sample 4: 44.000000 (celcius)
[I2C] Sample 5: 44.000000 (celcius)
[I2C] Sample 6: 44.000000 (celcius)
[I2C] Sample 7: 44.000000 (celcius)
[I2C] Sample 8: 44.000000 (celcius)
[I2C] Sample 9: 44.000000 (celcius)
[I2C] Sample 10: 44.000000 (celcius)
[I2C] Sample 11: 44.000000 (celcius)
[I2C] Sample 12: 44.000000 (celcius)
[I2C] Sample 13: 44.000000 (celcius)
[I2C] Sample 14: 44.000000 (celcius)
[I2C] Sample 15: 44.000000 (celcius)
[I2C] Sample 16: 44.000000 (celcius)
[I2C] Sample 17: 44.000000 (celcius)
[I2C] Sample 18: 44.000000 (celcius)
[I2C] Sample 19: 44.000000 (celcius)
All tests have passed!!