单片机课程设计报告——单片机控制步进电机
单单片片机机课课程程设设计计报报告告—— ——单单片片机机控控制制步步进进电电机机 -CAL-FENGHAI.-(YICAI)-Company One1 江西农大江西农大 单片机原理及应用单片机原理及应用 课程设计报告课程设计报告 设计课题: 单片机控制步进电机单片机控制步进电机 专业班级:信工信工 091091 班班 学生姓名:崔崔**** 指导教师: 20122012 年年 5 5 月月 目 录 目 录··················································································································································1 1 设计任务书····································································································································2 1.1 基本设计要求····················································································································2 1.2 选作项目····························································································································2 2 设计阐明······································································································ 3 2.1 设计内容 ···························································································· 3 2.2 设计要求 ···························································································· 3 2.3 设备及工作环境 ··················································································· 4 3 系统方案整体设计·························································································· 4 3.1 设计思路···························································································· 4 4 硬件设计······································································································ 7 4.1 系统硬件设计······················································································ 7 4.1.1 最小单片机系统········································································· 7 4.1.2 键盘设计·················································································· 8 4.2 系统工作原理论述················································································ 8 5 软件设计·····································································································11 5.1 分析论证···························································································11 5.1.1 步进电机运行驱动模块·······························································11 5.1.2 温度采集模块···········································································12 5.1.3 主函数模块··············································································12 5.1.4 整体功效·················································································12 5.2 程序流程图························································································12 5.3 程序清单 ···························································································13 6 调试过程及分析····························································································21 7 设计总结·····································································································23 参 考 文 献 ···································································································24 1 设计任务书 1.1 基本设计要求 (1)用万能板、主芯片 AT89