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

  1. Connect a USB Type-C cable between the host PC and the MCU-Link USB port on the target board.

  2. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  3. Download the program to the target board.

  4. 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.