MPLAB® Harmony v3 Drivers and System Services on SAM E70/S70/V70/V71: Step 2
Configure the Timer System Service.
Under the bottom left Device Resources tab, expand Harmony > System Services.
Double-click or drag and drop Time to add the Timer System Service to the project graph.

Figure 1
A popup window will appear. Select the options as shown in Figure 2 and 3.

Figure 2

Figure 3

Figure 4
Associate the Timer System service to Timer Instance 0 (TC0) by right-clicking on the red diamond as shown in Figure 5.

Figure 5

Figure 6
Select TC0 Peripheral Library and notice the default configuration by expanding Channel 0.

Figure 7
Configure the Inter-Integrated Circuit (I²C) Driver and I²C pins.
Under the Device Resources tab, expand Harmony > Drivers.
- Select and double-click on I²C to add the I²C driver to the project.

Figure 8
- Associate I²C driver with I²C instance 0 (TWIHS0) peripheral by right clicking on the red diamond.

Figure 9

Figure 10
- Click on Instance 0 under I2C Driver to view the Configuration Options. Change the Number of Clients to 2.

Figure 11

Figure 12
- Select TWIHS0 Peripheral Library and notice the default configuration by expanding the hardware settings.

Figure 13
Open the Pin Configuration tabs by clicking Project Graph > Plugins > Pin Configuration.

Figure 14
Select the Pin Settings tab and sort the entries by Ports, as shown in Figure 15.

Figure 15
Now, select the Pin Settings tab and then scroll down to the TWIHS0 module as follows:
- Enable I²C Clock (TWIHS0_TWCK0) on PA4 (Pin #77)
- Enable I²C Data (TWIHS0_TWD0) on PA3 (Pin #91)

Figure 16
Configure the Universal Synchronous Asynchronous Receiver Transmitter (USART) Driver and USART pins.
Under the Device Resources tab, expand Harmony > Drivers.
- Double-click on USART to add the USART driver to the project.

Figure 16
- Associate USART Driver with USART instance 1 (USART1) peripheral by right clicking on the red diamond.

Figure 17

Figure 18
- Click on Instance 0 under USART Driver to view the Configuration Options. Select the Use DMA for Transmit check box.

Figure 19
- Select the USART1 Peripheral Library and notice the default configuration by expanding USART1 in Configuration Options.

Figure 20
Select the Pin Settings tab and then scroll down to the Pin ID PA21 and PB4 as shown in Figure 21.
- Enable USART1_TXD1 on PB4 (Pin #105)
- Enable USART1_RXD1 on PA21 (Pin #32)

Figure 21