MCUXpresso SDK Documentation

emios_timer

emios_timer#

Overview#

The eMIOS project is a simple demonstration example of the SDK eMIOS driver to use eMIOS as a timer.
It sets up the eMIOS Modulus Counter to trigger an interrupt every 1 millisecond, and print ‘1s elapsed’ every 1 second.

Supported Boards#

FRDM-MCXE31B
Hardware requirements
  • Micro USB cable

  • FRDM-MCXE31B Board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) 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

When the example runs successfully, following information can be seen on the OpenSDA terminal:

eMIOS Timer Example
1s elapsed
1s elapsed
1s elapsed
1s elapsed
1s elapsed
...

FRDM-MCXE32B
Hardware requirements
  • Micro USB cable

  • FRDM-MCXE32B board

  • Personal Computer

Board settings

No special settings are required.

Prepare the Demo
  1. Connect a type-c USB cable between the host PC and the MCU-Link USB port (J13) 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

When the example runs successfully, following information can be seen on the OpenSDA terminal:

eMIOS Timer Example
1s elapsed
1s elapsed
1s elapsed
1s elapsed
1s elapsed
...