目 录
引言 ......................................................................................................................1
1 ATMEIL AT89 系列编程器的设计.................................................................2
1.1 系统设计方案论证..............................................................................................................2
1.2 硬件结构框图......................................................................................................................2
2 电路模块分析 ..................................................................................................3
2.1 电源部分..............................................................................................................................3
2.1.1 MC34063 芯片介绍 .........................................................................................................5
2.2 串行数据传输电路 ............................................................................................................6
2.2.1 PL2303 芯片介绍.............................................................................................................7
2.3 主控部分电路......................................................................................................................8
2.4 编程器的特点介绍...........................................................................................................11
3 系统软件设计 ................................................................................................12
3.1 上位机软件设计...............................................................................................................12
3.1.1 VC 简介..........................................................................................................................12
3.1.2 上位机软件主流程框图.................................................................................................12
3.1.3 通信初始化....................................................................................................................13
3.2 下位机软件设计................................................................................................................14
3.2.1 下位机软件主流程框图.................................................................................................14
3.2.2 擦除................................................................................................................................14
3.2.3 读操作............................................................................................................................15
3.2.4 写操作............................................................................................................................15
3.2.7 软件部分原代码及解释................................................................................................16
4.系统调试 .........................................................................................................23
4.1 硬件制作与调试...............................................................................................................23
4.2 软件调试...........................................................................................................................26
4.2.1 软件调试方法:............................................................................................................26
4.2.2 调试的原则:................................................................................................................27
4.2.3 串口调试助手简介.........................................................................................................27
4.2.4 串口通信调试.................................................................................................................28
结 论 ................................................................................................................30
谢 辞 ..................................................................................................................31
参考文献 ............................................................................................................32
附 录 1 系统硬件原理图 .............................................................................33
附 录 2:编程器下位机程序代码 .................................................................34