lpit_single_channel_trigger#
Overview#
The LPIT single channel trigger project is a simple example of the SDK LPIT driver. It sets up the LPIT hardware block to trigger a periodic interrupt after every 1 second. When the LPIT interrupt is triggered a message a printed on the serial terminal and an LED is toggled on the board.
Running the demo#
When the example runs successfully, you can see an LED is toggled on the board and see the similar information from the terminal as below.
Starting channel No.0 … Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred ! Channel No.0 interrupt is occurred !
Supported Boards#
IMX943-EVK
Hardware requirements
Micro USB cable
IMX943-EVK board
J-Link Debug Probe
12V~20V 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
Connect 12V~20V power supply and J-Link Debug Probe to the board, switch SW1(SYS_PWR) to power on the board.
Connect a micro USB cable between the host PC and the J15(FTDI_DEBUG) USB port on the target board.
Open a serial terminal with the following settings:
115200 baud rate
8 data bits
No parity
One stop bit
No flow control
Download the program to the target board.
Either re-power up 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 but you can’t see LED toggled on the board because there is no led connected on the IMX943-EVK board .
IPSYNC trigger signal connected!
Starting lpit example
Starting channel No.0 ...
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
Channel No.0 interrupt is occurred !
........................
If disable the trigger signal from XBAR, you can see the similar information from the terminal as below
Starting lpit example
Starting channel No.0 ...