Step 2.1 - Configure TIME System Service
- When you launch MCC for the first time, it displays a prompt asking for the mode in which you would like to use MCC.
- Standalone mode (as a separate window)
- Native mode (as an embedded window in MPLAB X)
- Standalone mode is the default mode.
- MCC will launch in the operating mode selected the first time, every time you launch MCC.
For this lab, MCC is configured to operate in Standalone mode.
2
Accept the Core module auto-activation prompt. Since we will not use FreeRTOS™ for our application, defer enabling this component for now. Once you are done, the module should be visible in the Project Graph pane.
3
Add the TC0 Peripheral Library as the timekeeper for the TIME System Service, which will set itself up automatically once this dependency is added. No further configuration is required for our use case of generating a periodic interrupt every second. You can add this by right-clicking on the dependency icon on the module.
The dependency icon on the module is highlighted in red when a direct dependency (i.e., required for a module to function) is not satisfied. Harmony 3 provides you the freedom to pick a module of your choice from a list of compatible modules to satisfy this dependency.
TC stands for Timer Counter and is a peripheral is available in the SAM and UC3 family of devices.
Step 2.2 - Configure I²C Driver
2
Add the TWIHS0 Peripheral Library to satisfy the I²C Driver's direct dependency.
TWIHS stands for Two Wire Interface High Speed and it's the I²C peripheral available in the SAME70/S70/V70/V71 family of devices.
Step 2.3 - Configure USB Device Stack Middleware
Step 2.4 - Configure ADC Peripheral Library
1
Add the AFEC1 Peripheral Library module. You can add this by double clicking the module name under Resource Management[MCC] > Device Resources > Harmony > Peripherals > AFEC > AFEC1.
AFEC stands for Analog Front End Controller and it's the ADC peripheral available in the SAME70/S70/V70/V71 family of devices.
2
Configure the AFEC1 Peripheral Library module by clicking on it in the Project Graph. Under AFEC1 > ADC Configuration, set the Prescaler spinbox to 24 and the Conversion Mode selection to Software Trigger. The TEMT6000 Ambient Light Sensor is connected to the pin PC31, which is connected internally to AFEC1 Channel 6. Enable channel 6 using the checkbox as shown in Figure 22 under AFEC1 > Channel Configuration > Channel 6 > Enable Channel 6.