3.2 SAM E70 Xplained Ultra Evaluation Kit
To add and configure MPLAB Harmony components using MCC, follow these steps:
- In the MCC window, under Device Resources, click and expand the list of options Harmony > Peripherals > SPI.
- Click SPI0 and observe that
the SPI0 Peripheral Library block is added in the Project Graph section.
Figure 3-9. SPI Module - Click SPI0, and to configure SPI0
module, click and expand SP10 and then configure it as shown below.
Figure 3-10. SPI0 Configuration - From the Plugins drop-down list, select Pin Configuration.
Figure 3-11. Plugins - Pin Configuration - From the Order drop-down list,
select Ports to sort the entries.
Figure 3-12. Selecting Ports from the Order Menu - 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 - Configure the pins as shown
below.
Figure 3-15. Configuration of Pins - Click Generate to generate the
code.
Figure 3-16. Generating the Project