temp_measure#
Overview#
The temp_measure example simply shows how to use the tempsense driver APIs in the SDK.
In this example, the on-die temperature can be obtained using the tempsense module and adc module.
Supported Boards#
FRDM-MCXE31B
Hardware requirements
Type-C USB cable
FRDM-MCXE31B board
Personal Computer
Board settings
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
This demo will measure the on-die temperature.
When the example runs successfully, you will see similar information from the terminal shown below.
Tempsense example.
Please press any key to get the current temperature.
Current temperature is 36.731.
Please press any key to get the current temperature.
Current temperature is 36.925.
Please press any key to get the current temperature.
Current temperature is 37.008.
Please press any key to get the current temperature.
FRDM-MCXE32B
Hardware requirements
Type-C USB cable
FRDM-MCXE32B board
Personal Computer
Board settings
Prepare the Demo
Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
This demo will measure the on-die temperature.
When the example runs successfully, you will see similar information from the terminal shown below.
Tempsense example.
Please press any key to get the current temperature.
Current temperature is 36.731.
Please press any key to get the current temperature.
Current temperature is 36.925.
Please press any key to get the current temperature.
Current temperature is 37.008.
Please press any key to get the current temperature.