Step 2: Configure SysTick Timer and LED

Last modified by Microchip on 2026/06/26 07:35

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 Expand All, and check Enable SysTick. Next, set the SysTick period to 100 ms.

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