aoi_io_and#
Overview#
The AOI IO_AND demo application demonstrates the use of IO and AOI peripherals. The example Use the two IO as the input of the aoi function: AOI_OUT = (IO0 & IO1). When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level. The purpose of this demonstration is to show how to use the AOI driver in the SDK software.
Run the demo#
After the demonstration runs successfully, you can see the following information in the terminal window:
aoi_io_and project.
Supported Boards#
FRDM-MCXA153
Hardware requirements
Type-C USB cable
FRDM-MCXA153 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
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:
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 the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA156
Hardware requirements
Type-C USB cable
FRDM-MCXA156 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA346
Hardware requirements
Type-C USB cable
FRDM-MCXA346 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXL255
Hardware requirements
Type-C USB cable
FRDM-MCXL255 board
Personal Computer
Board settings
IO0 = EXT_TRIG_IN1 P1_18 J2 IO1 = EXT_TRIG_IN2 P1_19 J2 AOI_OUT = EXT_TRIG_OUT0 P3_8 J1
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link USB port (J16) 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 IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
The following lines are printed to the serial terminal when the demo program is executed.
aoi_io_and project.
FRDM-MCXA174
Hardware requirements
Type-C USB cable
FRDM-MCXA174 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Short JP7
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA344
Hardware requirements
Type-C USB cable
FRDM-MCXA344 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Short JP7
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA266
Hardware requirements
Type-C USB cable
FRDM-MCXA266 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA366
Hardware requirements
Type-C USB cable
FRDM-MCXA366 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT0 P1_2 J6-5 IO0 = EXT_TRIG_IN0 P1_0 J6-6 IO1 = EXT_TRIG_IN1 P1_1 J6-4
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA577
Hardware requirements
Type-C USB cable
FRDM-MCXA577 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT3 P4_5 J6-5 IO0 = EXT_TRIG_IN10 P5_5 J2-15 IO1 = EXT_TRIG_IN11 P5_7 J6-2
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.
FRDM-MCXA287
Hardware requirements
Type-C USB cable
FRDM-MCXA287 board
Personal Computer
Board settings
AOI_OUT = EXT_TRIG_OUT3 P4_5 J6-5 IO0 = EXT_TRIG_IN10 P5_5 J2-15 IO1 = EXT_TRIG_IN11 P5_7 J6-2
AOI_OUT = IO0 & IO1
Prepare the Demo
Connect a USB Type-C cable between the host PC and the MCU-Link 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
The log below shows the output of the aoi demo in the terminal window:
AOI_io_and project.
When IO0 and IO1 are both high level, the AOI_OUT is high level. When any of IO is low level, the AOI_OUT is low level.