《片机软件开发工具使用入门.ppt》由会员分享,可在线阅读,更多相关《片机软件开发工具使用入门.ppt(14页珍藏版)》请在三一办公上搜索。
1、College of Communication Engineering,Jilin University,第11章 单片机软件开发工具使用入门,College of Communication Engineering,Jilin University,本章提要,11.1 安装11.2 创建工程编写汇编程序11.3用汇编语言编写程序11.4 汇编调试程序*文件管理树介绍*调试窗口介绍*调试方法介绍*Run菜单中control points,College of Communication Engineering,Jilin University,S12DG128,BDM connector,R
2、eset button,Crystal,LED,RS232 DB9,MAX232,Power socket,Power socket,Signal connector,最小系统板,College of Communication Engineering,Jilin University,Signal connector,Signal connector,keypad,Pulse generator,PWM D/A convert,Analog voltage generator,8 LED,switch,I2C,SPI,RS232 driver,7Seg Numeric LED,Connect
3、 points,实验目标板,College of Communication Engineering,Jilin University,build,CodeWarrior IDE,Computer,platform,BDM,RS232 cable用于串行通信,USB cable用于调试,与PC机连接,College of Communication Engineering,Jilin University,11.2 创建工程 Lab tour step by step,创建一个新的工程,按照向导选项的 8个步骤选择。双击桌面快捷图标,进入 Code Warrior集成开发环境窗口。第1步:创建
4、一个新的工程。,next,College of Communication Engineering,Jilin University,11.2 创建工程 Device and Connection,next,第2步:选择CPU类型,选择HCS12X目录下的HCS12X Family,College of Communication Engineering,Jilin University,11.2 创建工程 Device and Connection,next,第3步:选择CPU芯片型号和BDM工具TBDML,College of Communication Engineering,Jilin
5、 University,11.2 创建工程 Project Parameters,next,第4步:选择编程语言,College of Communication Engineering,Jilin University,11.2 创建工程 Add Additional Files,第5步:添加文件到工程,这里直接按“下一步”,College of Communication Engineering,Jilin University,11.2 创建工程 Processor Expert,第6步:快速开发应用程序选择,这里选None,College of Communication Engine
6、ering,Jilin University,第7步:选择V5.0中的用户自定义模式,11.2 创建工程 C/C+Options,College of Communication Engineering,Jilin University,第8步:选择不使用PC-Lint(TM)链接工具软件,点击“完成”按钮,Code Warrior集成开发环境就会自动生成整个工程的文件系统。,11.2 创建工程 PC-Lint,College of Communication Engineering,Jilin University,File process tree,C源文件,汇编源文件,库文件,目标文件,C编译器,汇编编译器,链接器,执行文件,映射文件,列表文件,汇编反编译文件,反编译器,链接配置文件,*.h*.c*.c+,*.asm*.inc,*.prm,*.lib,*.obj,*.lst,*.map,*.sx*.abs,Page 14,