单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw

单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw

ID:5270485

大小:803.69 KB

页数:7页

时间:2017-12-07

单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw_第1页
单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw_第2页
单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw_第3页
单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw_第4页
单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw_第5页
资源描述:

《单片机原理与应用及c51程序设计_第二版_谢维成_课后答案.khdaw》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、1MCS-51RAMRAMRAMRAM2RAMRiDPTRRi256DPTR64K3100H~0FFH20H220H.320H33P0.1P014TR0/T041R0R1MOVAR0MOVR1A2RAM20HRAM40HMOV40H20H3RAM30H30HRAM50HMOVA30HMOVR0#50HMOVX@R0A4RAM50HRAM3000HMOVA50HMOVDPTR#3000HMOVX@DPTRA5RAM2000HRAM20HMOVDPTR#2000HMOVXA@DPTRMOV20HA6RA

2、M1000HRAM4000HMOVDPTR#1000H1MOVXA@DPTRMOVDPTR#4000HMOV@DPTRA7ROM1000HRAM50HMOVA#0MOVDPTR#1000HMOVCA@A+DPTRMOV50HA8ROM1000HRAM1000HMOVA#0MOVDPTR#1000HMOVCA@A+DPTRMOVX@DPTRA51MOVA20HMOVA#20H2MOVA@R1MOVXA@R12563MOVAR1MOVA@R14MOVXA@R1MOVXA@DPTR25664K5MOVXA

3、@DPTRMOVCA@A+DPTR6RAM20H=40H40H=10H10H=50HP1=0CAHRAM20H40H10HP1P2MOVR0#20HR0=20HMOVA@R0A=40HMOVR1AR1=40HMOVA@R1A=10HMOV@R0P140H=0CAHMOVP2P1P2=0CAHMOV10HA10H=10HMOV20H10H20H=10H20H=10H10H=10H40H=0CAHP2=0CAHP1=0CAH7A=02HR1=7FHDPTR=2FFCHRAM7FH=70HRAM2FFEH

4、=11HROM2FFEH=64H21MOVA@R1A70H2MOVX@DPTRARAM2FFCH02H3MOVCA@A+DPTRA64H4XCHDA@R1A00HRAM7FH72H8A=78HR1=78HB=04HCY=1RAM78H=0DDH80H=6CH1ADDA@R1A55HCY12SUBBA#77HA00HCY03MULABAE0HB01HCY1OV04DIVABA1EHB00HCYOV05ANL78H#78HRAM78H58H6ORLA#0FHA7FH7XRL80HARAM80H14H9A

5、=83HR0=17H17H=34HAR017HANLA#17HA=03HORL17HA17H=37HXRLA@R0A=34HCPLAA=CBHA=CBHR0=17H17H=37H101A2ANLA#11111100B2A21ORLA#11000000B34XRLA#11110000B40246XRLA#01010101B11LJMPAJMPLJMP1664KBAJMP11PC2211addr11PC1152K12CJNEA#12H10H0FFEHA10H3PCA12HPC1011HA12HPC100

6、1H13P1.4=P1.0P1.1P1.2/P1.3MOVCP1.1ORLCP1.2ANLCP1.0ORLC/P1.3MOVP1.4C141000HORG1000HTABDB12H34HDS3DW5567H87H1000H=12H1001H=34H1002H=00H1003H=001004H=001005H=67H1006H=55H1007H=87H1008H=00H15RAM20H21H22HRAM20H21H22HMOVR0#20HMOVR2#03HLOOPMOVA@R0MOVX@R0AINCR

7、0DJNZR2LOOPSJMP$16RAM2000H~2030HRAM20HMOVR0#20HMOVDPTR#2000HMOVR2#31HLOOPMOVXA@DPTRMOV@R0AMOVA#00MOVX@DPTRAINCDPTRINCR04DJNZR2LOOPSJMP$17RAM1000H100R7R6MOVDPTR#1000HMOVR2#100MOVR7#00MOVR6#00LOOPMOVXA@DPTRADDAR6MOVR6AMOVAR7ADDCA#0MOVR7AINCDPTRDJNZR2LOOP

8、SJMP$18R4R3R2R7R6R5ORG0100HMUL1MOVAR2MOVBR3MULABR2R3R5MOVR5AR6MOVR6BMUL2MOVAR2MOVBR4MULABR2R4R6R6ADDAR6MOVR6AMOVABR7ADDCA#00MOVR7ASJMP$19RAM20H0121H2322H4523H67R2MOVC20H.0MOVA.0C5MOVC20H.1MOVA.1CMOVC21H.2MOVA.2CMOVC21H.3MOVA.3CMOVC22H.4

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。