5.2.2 SAM E70 Xplained Ultra Evaluation Kit

Two SAM E70 Xplained Ultra Evaluation Kits are interconnected by SERCOM USART lines (TxD, RxD) through the EXT1 connector, and connected to the PC terminal through the EDBG port. The following figure illustrates the block diagram.

Note: Click here to access the source code for this application configuration. Alternatively, it is also available in the GitHub reference_apps repository.
Figure 5-22. Block Diagram - SAM E70 Xplained Ultra Evaluation Kit

To add and configure the MPLAB Harmony components using the MCC, follow these steps:

  1. To create the project, see Creating the Project.
  2. In the MCC window, click Project Graph.
  3. Under Device Resources, click and expand the list of options Harmony > Peripherals > USART.
    Figure 5-23. Device Resources
  4. Click USART0 and USART1.
  5. Observe that the USART0 and USART1 Peripheral Library blocks are added in the Project Graph window.
    Figure 5-24. Addition of USART0 and USART1 Modules
  6. From the Plugins drop-down list, select Pin Configuration, and then click Pin Settings (see Figure 5-26).
    Figure 5-25. Select the Plugin
  7. From the Order drop-down list, select Ports. Build configurations according to the application as shown below.

    Configure the following pins PA21, PB0, PB1, and PB4 as USART1_RXD1, USART0_RXD0, USART0_TXD0, and USART1_TXD1, respectively.

    Figure 5-26. Pin Configuration
  8. In the Project Graph window, in the left Navigation bar, select USART0 Peripheral Library and in the right Configuration Options property page, configure it as shown below to print the data on the Serial Console at 9600 baud rate.
    Figure 5-27. Altering the Baud Rate for USART0
  9. Select USART1 Peripheral Library and in the right Configuration Options property page, configure it as follows to print the data on the Serial Console at 9600 baud rate.
    Figure 5-28. Altering the Baud Rate for USART1
  10. After configuring the peripherals, as shown in the following figure, click Generate under Project Resources.
    Figure 5-29. Generation of Code
    Note: USART1 is connected to EDBG USART lines through which the SAM E70 Xplained Ultra Evaluation Kit will communicate to the PC terminal application.
  11. The main.c file will be generated and the logic of the application can be implemented.