Step 2: Configuration of MCC

Last modified by Microchip on 2026/06/29 11:16

Configuration of MPLAB® Code Configurator (MCC)

Create a new project with PIC32CM LS00 Curiosity Nano+ Touch Evaluation Kit (refer to the Lab 1 Step 2). Once the project is created and MCC is launched, go to Device Resources > Libraries > Harmony > Peripherals > ADC > ADC. (Either double click on ADC or click on the icon near ADC).

Device resources options

 

Click Expand All in Configuration Options to view the ADC configurations.

Configurations for ADC

Configure the ADC as shown in the following image.

ADC configuration options

 

Go to Device Resources > Libraries > Harmony > Peripherals > SERCOM > SERCOM3. Either double click on SERCOM3 or click on the + icon near SERCOM3.

SERCOM3

​​​

Right click on the yellow diamond (UART) in SERCOM3 and click Available Consumers and select STDIO (stdio).

SERCOM3 available consumers

SERCOM3 UART

 

Click Expand All in Configuration Options to view the configurations for SERCOM3.

SERCOM3 configurations

 

Configure SERCOM3 as shown in the accompanying image.

SERCOM3 receive pinout

 

In Project Graph, select System. Enable SysTick and configure the SysTick. Select Enable Interrupt and set Systick Period(Milliseconds) to 5.

Configure SysTick

​​​​

Select Arm TrustZone for Armv8-M from the Plugins dropdown.

Plug-in settings

​​​​

Select Peripheral Configuration and click ADC and SERCOM3 to change them from the Secure region to the Non-Secure region.

Peripheral Configuration

​​​​

ADC and SERCOM3

 

In the Plugins dropdown, select Pin Configuration.

Pin configuration

​​​​

Configure the LED, ADC and SERCOM pins as shown in the accompanying images.

LED and ADC pin

​​​​

SERCOM3 pin

 

Back to Top