MCUXpresso SDK Documentation

xbar_aoi

xbar_aoi#

Overview#

The XBAR AOI demo application demonstrates the usage of the XBAR, AOI peripheral to combine interrupt from CMP and PIT. If the button is pressed(CMP interrupt) and the PIT periodic interrupt occurs a message is printed.

When there is no CMP/ACMP ip in SoC, AOI combines a high level signal(force the input to be 1) and PIT trigger signal, then the message “PIT periodic interrupt occurs” will be printed when the PIT timer period has timed out.

Supported Boards#

EVKB-IMXRT1050
Hardware requirements
  • Mini/micro USB cable

  • IMXRT1050-EVKB board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J23-5) connected to VCC =3.3V (J24-8): XBAR interrupt occurred
    - CMP1_IN0 (J23-5) connected to GND (J24-7)): XBAT interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1060-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKB board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J33-5) connected to VCC =3.3V (J17-8): XBAR interrupt occurred
    - CMP1_IN0 (J33-5) connected to GND (J17-7)): XBAR interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1170-EVKB
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1170-EVKB board

  • Personal Computer

Board settings

Please note that the input voltage to the CMP1_IN1(J25-13) should in the range of 0V to 1.8V.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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

If CMP1_IN1 (J25-13) connected to the input voltage that in the range of 0.9V to 1.8V then the XBAR interrupt will start. If CMP1_IN1 (J25-13) connected to the input voltage that in the range of 0V to 0.9V then XBAR interrupt will stop. The log below shows the output of the xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN1 (J25-13) connected to the input voltage that in the range of(0.9V to 1.8V): XBAR interrupt started

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1060-EVKC
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1060-EVKC board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J33-5) connected to VCC =3.3V (J17-8): XBAR interrupt occurred
    - CMP1_IN0 (J33-5) connected to GND (J17-7)): XBAR interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
FRDM-IMXRT1152
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1152 board

  • Personal Computer

Board settings

Please note that the input voltage to the CMP3_IN1(GPIO_AD_28,J11-12) should in the range of 0V to 1.8V.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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

If CMP3_IN1 (J11-12) connected to the input voltage that in the range of 0.9V to 1.8V then the XBAR interrupt will start. If CMP3_IN1 (J11-12) connected to the input voltage that in the range of 0V to 0.9V then XBAR interrupt will stop. The log below shows the output of the xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP3_IN1 (J11-12) connected to the input voltage that in the range of(0.9V to 1.8V): XBAR interrupt started

XBAR interrupt occurred

XBAR interrupt occurred
EVK-MIMXRT1020
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1020-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J17-7) connected to VCC =3.3V (J19-8): XBAR interrupt occurred
    - CMP1_IN0 (J17-7) connected to GND (J19-7): XBAT interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1024-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1024-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J17-14) connected to VCC =3.3V (J19-16): XBAR interrupt occurred
    - CMP1_IN0 (J17-14) connected to GND (J19-14): XBAT interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1040-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1040-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J17-9) connected to VCC =3.3V (J32-4): XBAR interrupt occurred
    - CMP1_IN0 (J17-9) connected to GND (J32-6)): XBAR interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
EVK-MIMXRT1064
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1064-EVK board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN0 (J23-5) connected to VCC =3.3V (J24-8): XBAR interrupt occurred
    - CMP1_IN0 (J23-5) connected to GND (J24-7)): XBAR interrupt stopped

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1160-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1160-EVK board

  • Personal Computer

Board settings

Please note that the input voltage to the CMP1_IN1(J25-13) should in the range of 0V to 1.8V.

Prepare the Demo
  1. Connect a USB cable between the host PC and the OpenSDA 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

If CMP1_IN1 (J25-13) connected to the input voltage that in the range of 0.9V to 1.8V then the XBAR interrupt will start. If CMP1_IN1 (J25-13) connected to the input voltage that in the range of 0V to 0.9V then XBAR interrupt will stop. The log below shows the output of the xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN1 (J25-13) connected to the input voltage that in the range of(0.9V to 1.8V): XBAR interrupt started

XBAR interrupt occurred

XBAR interrupt occurred
MIMXRT1180-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1180-EVK board

  • Personal Computer

Board settings

Please note that the input voltage to the CMP1_IN1(J45-13) should in the range of 0V to 1.8V.

Prepare the Demo
  1. Connect a USB 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

If CMP1_IN1 (J45-13) connected to the input voltage that in the range of 0.9V to 1.8V then the XBAR interrupt will start. If CMP1_IN1 (J45-13) connected to the input voltage that in the range of 0V to 0.9V then XBAR interrupt will stop. The log below shows the output of the xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP1_IN1 (J45-13) connected to the input voltage that in the range of(0.9V to 1.8V): XBAR interrupt started

XBAR interrupt occurred

XBAR interrupt occurred
FRDM-IMXRT1186
Hardware requirements
  • Type-C USB cable

  • FRDM-IMXRT1186 board

  • Personal Computer

Board settings

Remove Jumper J29. Please note that the input voltage to the CMP3_IN2(J29-2(GPIO_AD_29)) should in the range of 0V to 1.8V.

Prepare the Demo
  1. Connect a USB 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

If CMP3_IN2 (J29-2) connected to the input voltage that in the range of 0.9V to 1.8V then the XBAR interrupt will start. If CMP3_IN2 (J29-2) connected to the input voltage that in the range of 0V to 0.9V then XBAR interrupt will stop. The log below shows the output of the xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

Then change CMP analog input.
    - CMP3_IN2 (J29-2) connected to the input voltage that in the range of(0.9V to 1.8V): XBAR interrupt started

XBAR interrupt occurred

XBAR interrupt occurred
IMX943-EVK
Hardware requirements
  • Mini/micro USB cable

  • MIMXRT1180-EVK board

  • Personal Computer

Board settings
Prepare the Demo
  1. Connect a USB 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 xbar aoi demo in the terminal window:

XBAR and AOI Demo: Start...

XBAR interrupt occurred

XBAR interrupt occurred