MPLAB® Harmony 3.0 Tutorial: Basics 08
MPLAB® Harmony Basics (08)
—— Using Harmony 3 to help
Motor application development
Microchip Technology
32-bit Product Department
To help you use the latest version of MPLAB® Harmony 3 software framework, our 32-bit product department experts have written a series of tutorials . Today, we recommend the eighth tutorial.
This article will list in detail the steps to configure SAME70 using Harmony 3, such as system clock, interrupt, AFEC, PWM, QEI, UART, IO pins. After a simple configuration/automatic code generation, the MCU initialization program, hardware abstraction layer, and hardware driver required for motor control are complete.
According to the configuration of this article:
AFEC sampling is triggered by the PWM module; after all analog channels have been converted, an AFEC interrupt request is generated; and the dual sampling and holding mode can achieve simultaneous sampling of two analog signals.
The PWM module outputs three complementary PWM signals.
The UART module is used to support X2CScope communication. X2CScope is a serial port debugging plug-in in MPLAB X; it can be used to easily track and modify all global variables in the program, and realize functions such as software oscilloscope and real-time numerical display.
Please read the original article and download this article now!
Other articles in this tutorial that have been published:
MPLAB® Harmony 3 Basics (01) -- Setting up the Harmony 3 development environment
MPLAB® Harmony 3 Basics (02) -- Understanding MHC
MPLAB® Harmony 3 Basics (04) -- How to use the debug information system service
MPLAB® Harmony 3 Basics (06) -- Creating a Graphics Project Based on SAME70 LCC
MPLAB® Harmony 3 Basics (07) -- How to use MHGC to design a graphical interface