欢迎来到天天文库
浏览记录
ID:37113889
大小:11.43 MB
页数:60页
时间:2019-05-17
《微控制器原理与接口技术实验指导书》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、中国石油大学(华东)嵌入式信息技术研究所微控制器原理与接口技术实验指导书机电工程学院机电系二〇一七年九月十六日59中国石油大学(华东)嵌入式信息技术研究所目录实验1熟悉实验设备和CW6.3·················································································2实验2并行口实验··········································································
2、··················8实验3键盘中断KBI/IRQ电路及程序设计················································································11实验4定时器实验························································································································29实验5AD转
3、换器实验·································································································37实验6用C语言程序显示“HelloWorld!”·································································45附录AS08Monitor用户手册···············································
4、·························································48附录BMC9S08AW60资料···········································································································49附录CPRM文件分析·································································
5、··················································5559中国石油大学(华东)嵌入式信息技术研究所实验1熟悉实验设备和CW6.3一、实验目的1、熟悉实验设备;2、熟悉Codewarrior6.3软件的安装和使用。二、实验步骤(一)实验设备图1实验板(二)Codewarrior6.3软件1、安装Codewarrior6.3软件;2、启动Codewarrior6.3软件,如图2所示。图2Codewarrior6.3软件启动59中国石油大学(华东)嵌入式信息技术研究所
6、3、选择“CreateNewProject”,如图3所示。图3选择“CreateNewProject”4、选择“HCS08>HCS08AFamily>MC9S08AW60”,如图4所示。图4选择“HCS08>HCS08AFamily>MC9S08AW60”5、选择“HCS08OpenSourceBDM”,单击“下一步”,结果如图5所示。6、单击“下一步”,结果如图6所示。7、单击“下一步”,结果如图7所示。8、单击“下一步”,结果如图8所示。9、单击“下一步”,结果如图9所示。10、双击“main.c”,结果如
7、图10所示。59中国石油大学(华东)嵌入式信息技术研究所图5图6图759中国石油大学(华东)嵌入式信息技术研究所图8图9图1059中国石油大学(华东)嵌入式信息技术研究所11、插入BDM仿真头,连接USB连线至计算机,再连接电源。然后,单击“绿色小虫箭头”,结果如图11所示,单击“确定”按钮,进入下一步。图1112、单击“确定”按钮,进入下一步,如图12所示。图1259中国石油大学(华东)嵌入式信息技术研究所13、单击“OK”按钮,执行程序下载。程序下载完毕后,进入下一步,如图13所示。图1314、依次把鼠标箭
8、头指向各窗口,然后右键,出现下拉菜单,如图14所示。了解主要的功能。图1459中国石油大学(华东)嵌入式信息技术研究所实验2并行口实验一、实验目的1、熟悉S08单片机的并行接口;2、学会用Codewarrior6.3调试并行口。二、实验步骤(一)所用并行口1、B口:方向寄存器:$03;数据寄存器:$022、D口:方向寄存器:$07;数据寄存器:$063、C口:方向寄存器:$05;数据寄
此文档下载收益归作者所有