Step 2: Configure SysTick Timer and LED
Last modified by Microchip on 2026/08/17 15:56
Configure SysTick Timer to Generate Delay
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.
Pin Configuration for LED
Open the Pin Configuration tab by clicking Project Graph > Plugins > Pin Configuration.

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

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.
