2.8其他功能部分...........................................................................................................20
3智能饮水机的软件设计 ..................................................................................................22
3. 1系统分配方式.........................................................................................................22
3.2主程序设计...............................................................................................................22
3.3各模块程序设计.......................................................................................................25
3. 3. 1温度检测程序设计 ........................................................................................25
3. 3.2显示程序设计 .................................................................................................27
3. 3.3键盘扫描程序 .................................................................................................28
3.3.4延时程序 ...........................................................................................................31
4调试及性能分析 ..............................................................................................................32
4. 1软件调试.................................................................................................................32
4. 1. 1新建工程 ........................................................................................................32
4. 1.2新建文本 .........................................................................................................32
4. 1.3添加文本 .........................................................................................................33
4. 1. 4程序编译 .........................................................................................................34
4. 2硬件调试..................................................................................................................34
4.2. 1电源电路的仿真 ..............................................................................................34
4.2.2出水电路模块的仿真 .......................................................................................35
4. 2. 3加热模块电路的仿真 .....................................................................................36
4.2.4显示模块电路的仿真 .......................................................................................36
4.2.5报警电路的仿真 ...............................................................................................37
4.3性能分析...................................................................................................................38
结 论....................................................................................................................................39
致谢 .............................................................................................................40
............................................................................................................................................41