3.2 SAM E70 Xplained Ultra Evaluation Kit

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

  1. In the MCC window, under Device Resources, click and expand the list of options Harmony > Peripherals > SPI.
  2. Click SPI0 and observe that the SPI0 Peripheral Library block is added in the Project Graph section.
    Figure 3-9. SPI Module
  3. Click SPI0, and to configure SPI0 module, click and expand SP10 and then configure it as shown below.
    Figure 3-10. SPI0 Configuration
  4. From the Plugins drop-down list, select Pin Configuration.
    Figure 3-11. Plugins - Pin Configuration
  5. From the Order drop-down list, select Ports to sort the entries.
    Figure 3-12. Selecting Ports from the Order Menu
  6. From the Plugins drop-down list, select DMA Configuration. In the DMA Configuration property page, click Add Channel to add DMAC Channel 0, and set the trigger to SPI0_Transmit. Repeat the same steps, but for DMAC Channel 1, set the trigger to SPI0_Receive.
    Figure 3-13. Plugins - DMA Configuration
    Figure 3-14. DMA Configuration
  7. Configure the pins as shown below.
    Figure 3-15. Configuration of Pins
  8. Click Generate to generate the code.
    Figure 3-16. Generating the Project