欢迎来到天天文库
浏览记录
ID:34183130
大小:279.51 KB
页数:4页
时间:2019-03-04
《嵌入式实验报告》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、定时器应用基础姓名:邙肖杰学号:120908040学院:软件学院班级:12级嵌入式班引脚:p1.1一、发光二极管每隔10ms亮一次,pl.l引脚上输出周期为20ms的方波。如图1-1和1-2所示:J"J•«rl-rr・:::寫::;:::•■■■■tuff丰FF士==:::S:^Y»
2、!►lull」O冊GBOOOBO(DP3扌"】W»0・)580ih图1-1仿真波形截图主01I10#£cT3妙T-丄C3CRYSTAL丄U1•••47蚩iziiXTAL1POa'ADOXTAL2P0.1/AD1POZ^ADPP0.a-AD3RSTP0.4/AD4PD.3AMP0.
3、&AD6P0.7/AD7PSENP?WA8P2.1A9P2.2/A10P2.3/A11ALEP2.4.A12EAP2.5/A13P1.0P2.6/A14P2.7.A15P3.0.RXDP1.1P31/TXDP1.2P32/NT0P1.3P3.3/NT1P1.4P3/4/TQP1.5P35T1P1.6P3&WRP1.7P3.7RDBO(O..7)A8A9A1OAllA12A13A14A15B2
4、0..7]B3
5、0.7]图1-2电路原理图截图源程序1:ORG0000HLJMPMAINORGOOOBHLJMPDVTOORG0100HMAIN:MOVTMOD,#01H
6、MOVTH0,#0D8HMOVTLO,#OFOHSETBETOSETBEASETBTROSJMP$DVTO:CPLPl.lCLREAMOVTHO,#OD8HMOVTLO,#OFOHSETBEARETIEND二、发光二极管每隔0.5s亮一次,pl.l引脚上输出周期为Is的方波。如图2-1和2-2所示S•ISISProfessional(Animating)FileViewEditToohDesignGraphSourceDebugLibraryTemplateSystemHdp3^1鼻⑥色Si场茫+Z£»您y/
7、
8、i电鸽NEl因口lrIbIlbIIII■IAru
9、—xijiHATiiinnnoorQRwniraia#iva图2-1仿真波形截图3才XIIDFCRYSTALDII-LEDYELLOV/C1ICUFicxR347圭±±PO3AD0^XTAL,PO.IAPIP02.AD2PO3ACX)XTAL2P04MXP0SAD5l*DtJAtXJP0.7.AD7P2OiAaP21A9P2Z301•:;1NP2.4.A12P2.5MP2.7.A15PlDP3AHXDP11P3EDPI2l'32ilTDPl3pjaiwYTP14P3.4FPl5PX5Fp"P36WHP17P3.7.AOJ1LAT88C51U1A9AWAllM
10、2Ai3A14At5电0.・71W{0.7]图2-2电路原理图截图源程序2:ORG0000HLJMPMAINORGOOOBHUMPDVTOORG0100HMAIN:MOVTMOD,#01HMOVTHO,#OD8HMOVTLO,#OFOHMOVB,#50SETBETOSETBEASETBTROSJMP$DVTO:MOVTH0,#0D8HMOVTLO,#OFOHDJNZB丄CPLP1.1CLREAMOVTH0,#0D8HMOVTLO,#OFOHMOVB,#50SETBEAL:RETIEND
此文档下载收益归作者所有