adc16_low_power#
Overview#
The ADC Low Power demo application demonstrates the usage of the ADC peripheral while in a low power mode. The microcontroller is first set to very low power stop (VLPS) mode. Every 500 ms, an interrupt wakes up the ADC module and reads the current temperature of the microcontroller. While the temperature remains within boundaries, both LEDs are on. If the core temperature is higher or lower than average, the LEDs change state respectively.
Supported Boards#
FRDM-K32L2A4S
Hardware requirements
Mini/micro USB cable
FRDM-K32L2A4S board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the PC host and the OpenSDA USB port on the board.
Open a serial terminal with these 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
FRDM-K32L2B
Hardware requirements
Mini/micro USB cable
FRDM-K32L2B board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
FRDM-MCXC041
Hardware requirements
Type-C USB cable
FRDM-MCXC041 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port on the target board.
Open a serial terminal with the following settings:
9600 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
FRDM-MCXC444
Hardware requirements
Type-C USB cable
FRDM-MCXC444 board
Personal Computer
Board settings
No special settings are required.
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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
TWR-KM34Z50MV3
Hardware requirements
Mini USB cable
TWR-KM34Z50MV3 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
TWR-KM34Z75M
Hardware requirements
Mini USB cable
TWR-KM34Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.
TWR-KM35Z75M
Hardware requirements
Micro USB cable
TWR-KM35Z75M board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA USB port 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
When the demo runs successfully, the following message is displayed in the terminal:
ADC16_DoAutoCalibration() Done.
ADC LOW POWER DEMO
The Low Power ADC project is designed to work with the Tower System or in a stand alone setting
1. Set your target board in a place where the temperature is constant.
2. Wait until two Led light turns on.
3. Increment or decrement the temperature to see the changes.
Wait two led on...
Enter any character to begin...
---> OK! Main process is running...!
Note:
when the temperature is above the average: LED RED on, LED GREEN off.
when the temperature is below the average: LED GREEN on, LED RED off.