Step 2.1 - Configure TIME System Service
This training module uses MPLAB Harmony Configurator (MHC) in Standalone window mode.
Ensure that MHC is in this mode by navigating to
Tools > Options > Plugins > MPLAB Harmony Configurator 3, then use the Window Manager dropbox to set the window mode to Standalone and click Apply
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 Available Components > 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.