目 录
一、综合训练目的与要求....................................................................................................................1
1.1 综合训练目的......................................................................................................................................1
1.2 综合训练要求......................................................................................................................................1
1.3 设计环境..............................................................................................................................................1
二、综合训练任务................................................................................................................................ 2
三、总体设计........................................................................................................................................ 2
四、详细设计说明................................................................................................................................ 2
4.1 硬件设计..............................................................................................................................................2
4.2.1 步进电机模块..........................................................................................................................3
4.2.2 LED 模块和 8279 键盘控制模块............................................................................................3
4.2.3 8253 和 8259 中断延时模块....................................................................................................5
4.2.4 8253 和 8251 串行通信模块....................................................................................................6
4.3 软件设计..............................................................................................................................................6
4.3.1 总体设计...................................................................................................................................7
4.3.2 改变方向子程序设计...............................................................................................................8
4.3.3 启动步进电机子程序...............................................................................................................8
4.3.4 增速子程序...............................................................................................................................9
4.3.5 减速子程序.............................................................................................................................10
4.3.6 定时中断程序.........................................................................................................................11
4.3.7 串口通信程序.........................................................................................................................11
五、调试与测试.................................................................................................................................. 12
5.1 硬件测试............................................................................................................................................12
5.2 软件测试............................................................................................................................................12
5.3 最终结果测试....................................................................................................................................13
六、设计中出现的问题以及解决办法..............................................................................................13
七、实习日志...................................................................................................................................... 13
八、实习总结...................................................................................................................................... 15
九、附录:核心代码清单..................................................................................................................16