lpadc_trigger_exception#
Overview#
The lpadc_trigger_exception example demonstrates the usage of trigger exception feature.
This example involves two conversion sequences. The first works in continuous mode, triggered by software to sample external input. The second works in one-shot mode, triggered by an onboard button to sample VDD/4. The second sequence has a higher priority than the first, meaning that if it is triggered, the first sequence will be aborted and the second will begin executing at a specified breakpoint.
Supported Boards#
FRDM-MCXA153
Hardware requirements
Type-C USB cable
FRDM-MCXA153 board
Personal Computer
Board settings
ADC CH0A input signal J4-8(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link port(J15) on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA156
Hardware requirements
Type-C USB cable
FRDM-MCXA156 board
Personal Computer
Board settings
ADC CH0A input signal J8_21(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA346
Hardware requirements
Type-C USB cable
FRDM-MCXA346 board
Personal Computer
Board settings
ADC CH0A input signal SJ6_3(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA174
Hardware requirements
Type-C USB cable
FRDM-MCXA174 board
Personal Computer
Board settings
ADC CH0A input signal J4-9(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA344
Hardware requirements
Type-C USB cable
FRDM-MCXA344 board
Personal Computer
Board settings
ADC CH0A input signal J4-9(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA266
Hardware requirements
Type-C USB cable
FRDM-MCXA266 board
Personal Computer
Board settings
ADC CH0A input signal SJ6_3(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA366
Hardware requirements
Type-C USB cable
FRDM-MCXA366 board
Personal Computer
Board settings
ADC CH0A input signal SJ6_3(PIO2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA577
Hardware requirements
Type-C USB cable
FRDM-MCXA577 board
Personal Computer
Board settings
ADC0 CH0A input signal J8-21(P2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXC162
Hardware requirements
Type-C USB cable
FRDM-MCXC162 board
Personal Computer
Board settings
ADC0 CH0A input signal J1-8(P2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.
FRDM-MCXA287
Hardware requirements
Type-C USB cable
FRDM-MCXA287 board
Personal Computer
Board settings
ADC0 CH0A input signal J8-21(P2_0).
Prepare the Demo
Connect a Type-C USB cable between the host PC and the MCU-Link USB port on the target board.
Open a serial terminal with the following settings (See Appendix A in Getting started guide for description how to determine serial port number):
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
The log below shows the output of this demo in the terminal window:
LPADC Trigger Exception Example!
Please Press any key to start example
Press SW2 to start high priority conversion.