目录 摘要………………………………………………………………………………………1 Abstract ……………………………………………………………………………………2 1 引言……………………………………………………………………………………3 EDA技术…………………………………………………………………………3 步进电机概述………………………………………………………………………4 步进电机简介…………………………………………………………………4 步进电机控制方式…………………………………………………………… 4 步进电机的驱动……………………………………………………………… 5 2 系统设计及说明…………………………………………………………………… 5 系统结构……………………………………………………………………………5 步进电机驱动电路…………………………………………………………………6 步进电机控制板……………………………………………………………………6 数码管显示……………………………………………………………………6 可编程芯片……………………………………………………………… ……7 键盘……………………………………………………………………………8 其他部分………………………………………………………………………8 芯片引脚分配………………………………………………………………………8 3 软件模块………………………………………………………………………………9 硬件描述语言VHDL………………………………………………………………9 VHDL语言的特点………………………………………………………………………9 VHDL的基本结构………………………………………………………………………9 CPLD设计流程…………………………………………………………………………10 电路构成及各模块功能实现……………………………………………………… 10 CPLD设计及电路时序……………………………………………………………11 步进电机控制模块 ……………………………………………………………………11 波形信号发生模块 ……………………………………………………………………12 数码动态显示模块 ……………………………………………………………………14 步进电机方向控制和弹跳消除电路…………………………………………………16 时钟分频………………………………………………………………………………17 4 配置方法及运行………………………………………………………………………………17 5 结论……………………………………………………………………………………19参考文献………………………………………………………………………………… 19 基于CPLD的步进电机控制系统 摘要 本文给出了一种基于CPLD(复杂可编程逻辑器件)构成的步进电机控制系统的设计和实现,以CPLD作为核心器件,极大地减少了分立元件的使用,系统扩展性能好、可靠性高、抗干扰能力强、结构简单、成本低廉,具有可在系统改变功能、不占用CPU时间、易于高速控制等优点,也可用于各种多步进电机控制场合。 关键词: CPLD/FPGA 步进电机 VHDL The control system of stepper motor based on CPLD Abstract This paper introduces a kind of control system of stepper motor based upon CPLD. As the core of the device, CPLD implements the most logic functions and minimizes the number of using ponents. The distinctive advantages of the system are expandable, stable, simple and low-cost, also have the advantages of changing functions on system and doesn’t occupy CPU time, etc. It can be used in contro