NetBurner 3.5.6
PDF Version
Periodic Interrupt Timer (PIT)

Location: examples/PlatformSpecific/SOMRT1061/PIT

Warning
The NetBurner IntervalTimer is the preferred and safe method to use for Periodic Interrupts, as it will allocate and free timers without interfering with system operation. Although the FSL PIT timer example works, if an application uses it on a PIT timer used by the system, the device may halt or crash.

Overview

The PIT project is a simple demonstration program of the SDK PIT driver. It sets up the PIT hardware block to trigger a periodic interrupt after every 1 second. When the PIT interrupt is triggered a message a printed on the UART terminal and an LED is toggled on the board.

This has been ported from the NXP Freescale Software Library (FSL).

SDK version

  • Version: 2.16.000

Toolchain supported

  • MCUXpresso 11.10.0

Hardware requirements

  • NetBurner DEV-SOMRT1061 Development board
  • Personal Computer
  • Serial terminal program with RS-232 connection

Board settings

No special settings are required.

Prepare the Demo

  1. Connect a USB cable between the PC host and the USB port on the board.
  2. Open a serial terminal with these settings:
    • 115200 baud rate
    • 8 data bits
    • No parity
    • One stop bit
    • No flow control
  3. Download the program to the target board.
  4. Example will automatically start

Running the demo

These instructions are displayed/shown on the terminal window:

Starting channel No.0 ...
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
....................
....................

And you will find the user LED is taking turns to shine.