acmp_round_robin#
Overview#
The ACMP Round-Robin project is a simple demonstration program that uses the SDK software. User must set the round-robin mode trigger in specific board properly according to the board resource before running the example. When the example running, it sets positive port as fixed channel and internal DAC output as comparison reference in positive port and sets the channels input by user as round-robin checker channel. The example will enter stop mode and wait user to change the voltage of round-robin checker channel. It will exit stop mode after the voltage of round-robin checker channel changed by user.
Running the demo#
When the demo runs successfully, following information can be seen on the OpenSDA terminal:
Example to demonstrate low power wakeup by round robin comparison!
In order to wakeup the MCU, please change the analog input voltage to be different from original pre-state setting.
Press S for enter: Stop Mode
The system entered into stop mode.
The system exited from stop mode!
Supported Boards#
EVK-MIMXRT595
Hardware requirements
Micro USB cable
EVK-MIMXRT595 board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel B(J18-3) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel B(J18-3) should be connected to GND signal(J42-1) on the board before the example running. Example will exit deep sleep mode when channel B(J18-3) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J40) on the 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.
Launch the debugger in your IDE to begin running the demo.
EVK-MIMXRT685
Hardware requirements
Micro USB cable
EVK-MIMXRT685 board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel A(J1-9) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel A(J1-9) should be connected to GND signal(J25-1) on the board before the example running. Example will exit deep sleep mode when channel A(J1-9) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the 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.
Launch the debugger in your IDE to begin running the demo.
FRDM-KE15Z
Hardware requirements
Micro USB cable
FRDM-KE15Z board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel 0(J4-2) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel 0(J4-2) should be connected to GND signal(J2-14) on the board before the example running. Example will exit stop mode when channel 0(J4-2) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the 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.
FRDM-KE16Z
Hardware requirements
Micro USB cable
FRDM-KE16Z board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel 0(J4-12) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel 0(J4-12) should be connected to GND signal(J2-14) on the board before the example running. Example will exit stop mode when channel 0(J4-12) is disconnected from GND signal and connect to volatage above half of VDDA, the disconnected time is last for about 1s.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the 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.
FRDM-KE17Z
Hardware requirements
Micro USB cable
FRDM-KE17Z board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel 0(J4-12) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel 0(J4-12) should be connected to GND signal(J2-14) on the board before the example running. Example will exit stop mode when channel 0(J4-2) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a mini USB cable between the PC host and the OpenSDA USB port on the 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.
FRDM-KE17Z512
Hardware requirements
Micro USB cable
FRDM-KE17Z512 board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel 0(J5-1) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel 0(J5-1) should be connected to GND signal(J2-14) on the board before the example running. Example will exit stop mode when channel 0(J5-1) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a USB cable between the PC host and the MCU-LINK USB port on the 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.
FRDM-MCXE247
Hardware requirements
USB-C cable
FRDM-MCXE247 board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel 0 (J4-10) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel 0 (J4-10) should be connected to GND signal(J2-14) on the board before the example running. Example will exit stop mode when channel 0 (J4-10) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a USB cable between the PC host and the MCU-LINK USB port on the 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.
MIMXRT685-AUD-EVK
Hardware requirements
Micro USB cable
MIMXRT685-AUD-EVK board
Personal Computer
Board settings
This example project uses ACMP instance 0 to compare the voltage signal input from channel A(J48-22) with the voltage signal(half of VDDA) output by ACMP’s internal DAC. In order to observe the low power wakeup phenomenon, channel A(J48-22) should be connected to GND signal(J25-1) on the board before the example running. Example will exit deep sleep mode when channel A(J48-22) is disconnected from GND signal and the disconnected time is last for about 1s.
Prepare the Demo
Connect a micro USB cable between the PC host and the CMSIS DAP USB port (J5) on the 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.
Launch the debugger in your IDE to begin running the demo.