Step 2: Configure SysTick Timer and LED

Last modified by Microchip on 2026/08/17 15:56

Configure SysTick Timer to Generate Delay

Note: Create an MPLAB® Harmony v3 project using MPLAB X IDE. Refer to Lab 1 Step 2 for detailed project creation instructions. After the project is created, follow these steps to configure the SysTick timer, LED and clock configuration.

After launching MPLAB Code Configurator (MCC), navigate to MCC > Project Graph > System. Select System to open the Configuration Options. Then click Cortex-M23 Configuration > SysTick, and check Enable SysTick.

Next, check Enable Interrupt and set the SysTick Period to 250 ms.

MCC tab Configuration Options                     


Pin Configuration for LED

Open the Pin Configuration tab by clicking Project Graph > Plugins > Pin Configuration.

Project Graph

Select the MCC Pin Settings tab and sort the entries by Ports, as shown in the accompanying image.

Pin Settings

Configure PA15 as a General-Purpose Input/Output (GPIO) pin. Assign the appropriate pin name and specify the direction and latch settings required for LED operation.

Pin Settings

Note: For instructions on selecting pins for LED, refer to Lab 2 Step 2, which provides detailed guidance on choosing GPIO pins.

Back to Top

Next Page