tpm_timer#
Overview#
The TPM project is a simple demonstration program of the SDK TPM driver to use TPM as a timer. It sets up the TPM hardware block to trigger an interrupt every 1 millisecond. When the TPM interrupt is triggered 1000 times, a message is printed on the UART terminal.
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.
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 cpu 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.
Launch the debugger in your IDE to begin running the example.
Running the demo
When the example runs successfully, the following message is displayed in the terminal:
IPSYNC trigger signal connected!
start lpit
TPM example to simulate a timer
Press any key to start timer!
You will see a "-" or "|" in terminal every 1 second:
-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-|-
If disable the trigger signal from XBAR, the following message is displayed in the terminal:
TPM example to simulate a timer
Press any key to start timer!
You will see a "-" or "|" in terminal every 1 second: