您好,欢迎访问三七文档
12345678ABCD87654321DCBATitleNumberRevisionSizeA3Date:23-Sep-2012SheetofFile:D:\Explorer99SE\work\Sonic.ddbDrawnBy:R24.7VCCVCCTR2RECEIVERR4200KR510KC4103R3200KVCCDS18B20R111kT1IN1GAIN2FILTER3GND4FCTRL5CAP6OUT7VCC8U5CX20106AC7331C53.3uC63.3uQ19012P3.2C28104C18104C3300C2300VCCCT11.0592MABCDEFGDPCOMLED1ABCDEFGDPCOMLED2ABCDEFGDPCOMLED3K1K2K3K4ABCDEFGDPCOMLED4VCCVCCVCCSUPERSONICDETECTOR1234567891011121314151617181920J320PINP1.0P1.0P1.1P1.1P1.2P1.2P1.3P1.3P1.4P1.4P1.5P1.5P1.6P1.6P1.7P1.7P3.2P3.2P3.3P3.3P3.4P3.4P3.5P3.5P3.6P3.6P3.7P3.7D0D1D2D3D4D5D6D7D0D1D2D3D4D5D6D7VDDR261KR110kVCCP3.5R311KLD1123456789RP1103C24100uP1.5(MOSI/CEX2)7P1.6(MISO/CEX3)8P1.7(SCK/CEX4)9RST10P3.0(RXD)11DNU/RSTOUTL12P3.1(TXD)13P3.2(INT0)14P3.3(INT1)15P3.4(T0)16P3.5(T1)17P3.6(WR)18P3.7(RD)19XTAL220XTAL121VSS22DNU(DISIAPL)23P2.0(A8)24P2.1(A9)25P2.2(A10)26P2.3(A11)27P2.4(A12)28P2.5(A13)29P2.6(A14)30P2.7(A15)31PSEN32ALE/PROG33DNU34EA35P0.7(AD7)36P0.6(AD6)37P0.5(AD5)38P0.4(AD4)39P0.3(AD3)40P0.2(AD2)41P0.1(AD1)42P0.0(AD0)43VDD44DNU1P1.0(T2)2P1.1(T2EX)3P1.2(ECI)4P1.3(CEX0)5P1.4(SS/CEX1)6U189E516RD2VCCC20104VCCTR1SENDERR1010KR251KD14148R201kR191kVCCVCCQ29012Q39012Q49012Q59012A02A13A24A35A46A57A68A79B018B117B216B315B414B513B612B711E19DIR1U374LS245P2.4SQ1P2.5SQ2P2.6SQ3P2.7SQ4R181kR121kR171kR131kR151kR141kR161k123J4J1AUXPOWERP3.4K0VCCR2210KR2310KR2410KR2110KR271KQ6IRFD120R65.1R75.112J5PWMVDDSPSPEAKERQ79012R3010KVCCP1.0C21104C19104321411U7ATL084567U7BTL0841098U7CTL084121314U7DTL084R3210KR3310KR344k7R35100kR361kR37101R381KR39100kR29101C11103C12104C13102C15104C14102C16104C1010uVDDW1200K12J6VCCR2810112J7C23104C22104P1.3A01A12A23VSS4SDA5SCL6WP7VCC8U9AT24C02VCCP1.6P1.7串行EEPROMJ2PROGR8200KR4110KVCCTRIG2Q3R4CVolt5THR6DIS7VCC8GND1U8555C9104C8104RT51KCS1CLK2D3Q4ORG6DNC7U693C4612345678910111213141516J8LCDPORTSTR1D2CLK3OE15Q14Q25Q36Q47Q514Q613Q712Q811QS9QS10U44094VCCLD2LD3LD4LD5LD6LD7LD8LD9Z12.4VD24148D34148C17104C25100uC26104C27104R910K12345678S1SW-DIP412345678S2SW-DIP4SQ4SQ2SQ3RSSQ1R/WCECER/WRSR401k带通滤波器f0=40KHz,W1=180kP1.1P1.2P1.4P1.5DQ0DQ1DQ2DQ3DQ4DQ5DQ6DQ7DQ0DQ1DQ2DQ3DQ4DQ5DQ6DQ7VCCR4210KP3.0P3.1P3.3P3.7R4410KR4310KR4510KP1.1P1.4VCC12J9Q89013R4610KC29100uC110u34U2BHC0412U2AHC041213U2FHC0456U2CHC041011U2EHC0489U2DHC04数码管动态显示程序://已验证可行#includereg52.hcharcodetab[]={0x10,0x7b,0x2c,0x29,0x4b,0x89,0x88,0x3b,0x08,0x09};sbitdp0=P2^4;sbitdp1=P2^5;sbitdp2=P2^6;sbitdp3=P2^7;chardpt;unsignedchardpbuf[4]={1,2,3,4};voidmain(void){unsignedchar;TMOD=0x01;TH0=0xee;TR0=1;ET0=1;EA=1;while(1);}voidtmr0(void)interrupt1{TH0=0xee;TL0=0;if(dpt3)dpt++;elsedpt=0;P0=tab[dpbuf[dpt]];if(dpt==0){dp1=dp2=dp3=1;dp0=0;}if(dpt==1){dp0=dp2=dp3=1;dp1=0;}if(dpt==2){dp0=dp1=dp3=1;dp2=0;}elseif(dpt==3){dp0=dp1=dp2=1;dp3=0;}}
本文标题:数码管动态显示程序
链接地址:https://www.777doc.com/doc-2335916 .html