Introduction

Author: Alec Miller, Microchip Technology Inc.

Computer Numerical Control (CNC) machines are any machines in which programmed instructions are followed by a device to control machining tools, such as lathes, routers or drills. These types of machines have applications ranging from industrial manufacturing to hobbyist 3D printing. This application note describes the implementation of a two-axis CNC gantry that makes use of the Direct Memory Address (DMA), Numerically Controlled Oscillator (NCO) and other Core Independent Peripherals (CIPs) to handle acceleration and movement of the gantry with minimal input from the microcontroller core.