MCUXpresso SDK Documentation

ewm_timer

ewm_timer#

Overview#

The EWM TIMER Example project is to demonstrate usage of the KSDK EWM driver. In the example, EWM counter is continuously refreshed until timer is timeout. Once the timer is timeut, EWM counter will expire and interrupt will be generated.

Supported Boards#

IMX943-EVK
Hardware requirements
  • Micro USB cable

  • IMX943-EVK board

  • J-Link Debug Probe

  • 5V power supply

  • Personal Computer

Board settings

No special settings are required.

Please note this application can’t support running with Linux BSP!
Prepare the Demo
  1. Connect 5V power supply and J-Link Debug Probe to the board, switch SW10 to power on the board.

  2. Connect a micro USB cable between the host PC and the J17 USB port on the target board.

  3. Open a serial terminal with the following settings:

    • 115200 baud rate

    • 8 data bits

    • No parity

    • One stop bit

    • No flow control

  4. Download the program to the target board.

  5. Either press the reset button on your board or launch the debugger in your IDE to begin running the example.

Running the demo

When the example runs successfully, you can see the similar information from the terminal as below.

EWM example
Timeout timer to expire EWM
EWM interrupt is occurred
Timeout timer to expire EWM again
EWM interrupt is occurred
Timeout timer to expire EWM again
...