51单片机经典入门教程(非常棒的教程)

整理文档很辛苦,赏杯茶钱您下走!

免费阅读已结束,点击下载阅读编辑剩下 ...

阅读已结束,您可以下载文档离线阅读编辑

资源描述

—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715373*^*IAPInApplicationsProgram,*^*ROMRAMA/DD/AKELLC51—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153746911151820242729323538424751556468/73/7881879094—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E71537526812I2C1620252832/3641D/A45D/A50A/D54A/D5862667075798386919496—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715376—MicroControllerUnit()INTELMCS-48MCS-5151MCS-51microcontrollersystem88INTEL/5187LPCW78DS87GSM97ATMEL89C51FlashROMFlashROM8031805189C51(,89C5189S5189S5289C52)8051518051,AVRPICAVRATMEL8RISC5151100000000085151AVRAVR--PICMICROCHIP8RISC515151MOTOROLAMC68HTIMSP430CSIEMENS5151DDWORDPROTEL—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715377CPURAMROM89S5110----PLC128P2KEILC51KeilSoftwareMCS-51—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715378FLASHROM10008241A/DTLC0831D/AMAX517RAM6264ROM29F02016*16I2C24C01DS18B20DS1302T6963240*128MCS-51112—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715379MCS-51CPUROMRAM89C511VCC40+5V2VSS20GND3XTAL119XATL218XTL24PSEN29ROM5ALE/PROG30/EPROM----6RST/VPD9/7EA/VPP31/ROM309/—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E71537108P039-32I/O9P11-8I/010P221-28I/011P310-17I/OIN/OUT/32I/OLEDLED1LED1P1.011LED11LED111CLRP1.01SETBP1.0—16—CLRP1.0;(☺)--CLRP1.0C2H,90HINTEL00—P1.01LED1SETBP1.0;LED1—————2189C512—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153711ROMROM1ROMReadOnlyMemory110000110110001101100000001001000110100010101100111100010011010101111001101111011112—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715371201BIT825688BYTE21(4)212348811111100011010245D7-D0—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153713D7-D0/312243825684888811111111000000008BUS165116—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153714589C51FlashROMFlashROMROMROMROM--FlashROMPROMEPROMEEPROMPROMOTPEPROM—BIOSEEPROMFLASHFLASH----ROMRAMRandomAccessMemory—ROMRAM312ROM348256589C51ROM—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153715ROMRAMLEDLED1LED1P1.0CLRP1.0SETBP1.01LED12LED12112LED11MAIN:SETBP1.0;LCALLDELAY;CLRP1.0;LCALLDELAY;LJMPMAIN;DELAY:MOVR7,#250;D1:MOVR6,#250;D2:DJNZR6,D2;DJNZR7,D1;RET;END.PDF*^*1.2.3.☺12342511LED1245LJMPMAINLJMP—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153716LJMPMAINMAIN1MAIN5MAIN1MAINJIGUOCHINA☺24LCALLDELAYLCALLLCALL--DELAYDELAY6LCALLRETRETLCALL39RET26.7.8.910RET3P1.0LED146.7.8.9.105LJMPMAIN1P1.0LED1LED1DELAY6RETENDDELAYR7RAM123+456579123+456+789123+456579579+789=13681368579ROMROM—RAMR7RAMR7LED6MOVR7#250R7250250R7250R7R7250DBG8051MOVR7#01MOVR6#02F8/R6R701H02H250##250MOV—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153717R7#250MOVR6#2508DJNZR6D2DJNZR6D2R6D2D2R61000250R609DJNZR7D1MOVR6#250R71DJNZR6#250250*250=62500MOVR6#250☺255LED1DJNZR6#250250*250=62500DBG80518051MON5151KEILC51MON51DBG805141234ROMRAM5RET6LCALLLJMPDJNZ7DBG8051—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153718DJNZR6#250250*250=625001ROM21212MT=1/f1/1212M12*1/121S89C514—INTELDJNZ2S12M62500*2S=125000S125mS0.125SLED11—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153719MCS-51XTAL119XTAL21810-30PPCB2XTAL2XTAL163AX31C156S51234—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153720I/O1LOOP:MOVP1,#0FFH;LCALLDELAY;MOVP1,#00H;LCALLDELAY;LJMPLOOP;DELAY:MOVR7,#250;D1:MOVR6,#250;D2:DJNZR6,D2;DJNZR7,D1;RET;END8LEDLED21SETBP1.0MOVP1#0FFH3CLRP1MOVP1#00H8LEDP1P1.7-P1.0MOVP1P1.7-P1.0LEDP1P0P2P32I/O1MAIN:MOVP3,#0FFH;LOOP:MOVA,P3;MOVP1,A;LJMPLOOP;END.11LED22LED24P3.2P3.3P3.4P3.51P3P3.7-P3.0MOVP3#0FFHP32MOVAP3MOVP3AAR73AP14—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153721P3.2#0FFHAP1P1.2LED3P3.3-P3.5LED4-LED6LEDP2.0-P2.7P0.0-P0.7P3P89C5132SFRP0P1P2P31I/OCPU110Q0Q^11,1111I/O89C51P0P1P2P3P1P0P2P3—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E715372221P0P0P021I/O1—//88P0/I/O/P0P12P1P0P1I/OP1P2P33P2P2I/OP08P016(851816)1664KP288I/OP04P3P3I/OP3P3.0RXDP3.1TXDP3.2INTO0P3.3INT11P3.4T00P3.5T11P3.6WRRAMP3.7RDRAMCPUCPUI/OI/OI/OI/ODATASHEET20mA1I/O20mA—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E71537234N25PC814P1.0Q1VDDVCC,2I/O1A/250V10-P1.0SSRTTLCMOSI/O61P0P1P2P323D—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153724MOVP3#0FFHP3LEDR7MOVR7#250#250#0FFH1DecimalNumber01234567895847=5*1000+8*100+4*10+7*11000100101012BinaryNumber011100=1*23+1*22+0*21+0*20010+0=01+0=0+1=11+1=100*0=01*0=0*1=01*1=13HexadecimalNumber0123456789ABCDEF#0FFH#--HBD0FFH0FFH=F*161+F*1602550A-F0#0FFH111011B1*23+0*22+1*21+1*20=8+2+1=11DFFH255D2—LED/:13564769866E-mail:jiguo@citiz.netQQ180625111875110579990E7153725053D53D=110101B253226121302612302110121616164440440441101011BD6HF0FH111100001111B000000100011200102300113401004501015601106701117810008910019101010A111011

1 / 100
下载文档,编辑使用

©2015-2020 m.777doc.com 三七文档.

备案号:鲁ICP备2024069028号-1 客服联系 QQ:2149211541

×
保存成功