目录
内容要求.........................................................................................................................................................2
1、 系统结构框图........................................................................................................................................2
2、系统硬件设计 ..........................................................................................................................................3
(1)LED 电路图....................................................................................................................................................3
(2)KEY 电路图....................................................................................................................................................3
(3)ADC 输入信号电路图 ................................................................................................................................4
(4)引脚分配表 ...................................................................................................................................................5
3、系统软件设计 ..........................................................................................................................................6
(1)流程图.............................................................................................................................................................6
图 3-1 键盘流程图.................................................................................................................................................6
图 3-2 ADC 流程图 ................................................................................................................................................7
(2)代码清单(包括.C 和.H 文件):LED、KEY、ADC..........................................................................7
LED.C
:................................................................................................................................................................7
KEY.C
:................................................................................................................................................................7
ADC.C
: ...............................................................................................................................................................8
(3)ΜC/OS-II 移植............................................................................................................................................10
(4)MAIN.C 代码清单 ........................................................................................................................................10
4、系统测试 ................................................................................................................................................19
5、总结与展望............................................................................................................................................21