trgmux_lptmr_trigger_lpit#
Overview#
The TRGMUX project is a simple demonstration program of the SDK TRGMUX driver. It generatesa 10KHz PWM by LPIT0 CH0, and clone by TRGMUX to output this PWM to eight TRGMUX_OUTx pins.
Supported Boards#
EVK-MCIMX7ULP
Overview
The lptmr_trigger_lpit project is a simple example of the SDK LPIT,LPTMR and TRGMUX driver which shows how to use the LPTMR and TRGMUX to generate a LPIT trigger. It sets up the LPTMR hardware block to generate the triggerevery 0.5 second, and the LPIT counter will load on the first trigger rising edge and then decrement down to zero on each trigger rising edge. A message would be printed on the serial terminal.
Hardware requirements
Micro USB cable
MCIMX7ULP-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
Connect 5V power supply and J-Link Debug Probe to the board, switch SW1 to power on the board.
Connect a micro USB cable between the host PC and the J6 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 press the reset button on your board or launch the debugger in your IDE to begin running the example.
Running the demo
These instructions are displayed/shown on the terminal window:
Example Starts!
LPIT interrupt No.1
LPIT interrupt No.2
LPIT interrupt No.3
LPIT interrupt No.4
LPIT interrupt No.5
LPIT interrupt No.6
LPIT interrupt No.7
LPIT interrupt No.8
LPIT interrupt No.9
LPIT interrupt No.10
LPIT interrupt No.11
LPIT interrupt No.12
LPIT interrupt No.13
......
~~~~~~~~~~~~~~~~~~~~~~~
FRDM-MCXE247
Overview
The lptmr_trigger_lpit project is a simple example of the SDK LPIT, LPTMR and TRGMUX driver which shows how to use the LPTMR and TRGMUX to generate a LPIT trigger. It sets up the LPTMR hardware block to generate the trigger every 0.5 second, and the LPIT counter will load on the first trigger rising edge and then decrement down to zero on each trigger rising edge. A message would be printed on the serial terminal.
Hardware requirements
USB-C cable
FRDM-MCXE247 board
Personal Computer
Board settings
No special settings are required.
Prepare the Demo
Connect a USB cable between the host PC and the OpenSDA 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 press the reset button on your board or launch the debugger in your IDE to begin running the demo.
Running the demo
These instructions are displayed/shown on the terminal window:
Example Starts!
LPIT interrupt No.1
LPIT interrupt No.2
LPIT interrupt No.3
LPIT interrupt No.4
LPIT interrupt No.5
LPIT interrupt No.6
LPIT interrupt No.7
LPIT interrupt No.8
LPIT interrupt No.9
LPIT interrupt No.10
LPIT interrupt No.11
LPIT interrupt No.12
LPIT interrupt No.13
......
~~~~~~~~~~~~~~~~~~~~~~~