单片机控制数码管动态显示过程
分析
定性数据统计分析pdf销售业绩分析模板建筑结构震害分析销售进度分析表京东商城竞争战略分析
2010???{5?s
???G?j???=???2?????2?w?j???N?(??*
???6??
(???W?H?=???r???f?????y?????8???C???W430050) ???????????G?j???=???2?????2?????????2?????????????8?{???????M?????h?????2?
w?j?????N?????8?(???????G
?j?N?????=???2?????2???8???s?w?j???????????????8?????????????????????????8??
?>?????c?????????????????!??
???(??b0
???x?????2???o???2?w?j?o???G?j?o???2 ?O???(????TN873?P5?oTP368?P1???x?4???2A?????9??1671KE8100(2010)05KE00
25--04
?>???G?j???=?????2?????2?w?j???N?O?8?} ???w?j?N???????2???2???????2?????2???i???7 ???F?8?L???s?????????8???r????[1Kl21?_???T???) ?????????1?N???8?U???}?????[?2???2?P???2?i ?????????2?????????)?????(???8?>?????????? ?)???_???T???a?N?b?????????????????(???8?{ ???????????????????E??b0
1????
?}?????a?y?????????7?Y?8?E?5???(?????? ???8?>?????????O?1???(??LED?w?j?y?????(?) ???h?????8???7?a????b0???????????9?????=?? ???a?P???w?j???(???8???y???8?>???????????1 ??LED?w?j?y??b0
?????y??????1?!?j?8?}???G?j???=??8??
???2??b0???G?jAT89C51??P0???r???+???? ????74LS244???????2???????2?8P2?P2??P2?P0 ?r???b?!???2??74LSl38???????2????8?a?? ?2b0?X???>???s?k???8???s?????)?>Proteus?8?? ???????r???T?4?a?^???????s?i?????8?*??8?? ???G?j8051???Cb0???2?????????N???>KeilC ?N?9??b2????b0
???????2?????w?j?N?????N?r
#include<re951?Ph>
?6?6???v???2??0KE9?????2
??1???2?????2?w?j?y??
??2???2???w?j???2
unsignedcharcodelist[]??{Ox3f?80x06?8 0x5b?8Ox4f?80x66?80x6d?80x7d?80x07?8Ox7f?80x6f}?o ?6?6???w?j??????
unsignedchardatadispel??{0?88?83?83?82?80?8 3b06)?o
*?{???j2007?????C?2?????????E????Kt?????????r???N???=????????Ke(?9???rB200
753001)?E??????b0
?=?V???s?r2010KE09??08
???*?????r???6???8?F?8???3?8?E???-?r?r??b2?????6???fb0
25
2010???{5?s
?6f?w?j???N??
voiddisplay(unsignedchari)
{
P0=list[dispFi-]]?o?6?6?2?w?j???2
P2=i?o?6?6?2?w?j???2
?6?6?????O???N???8??5ms?O?????i?8?????w voidtimerlKE?Pint(void)interrupt3
{
THl=??5000?6256?o
TLl=??5000?*256?o
j++?o
if(j>7)
j=O?o
display(j)?o
)
?6?6?+?N???8?e???9???????8?W???O?? main()
{
TMOD=0x10?r
THl=??5000?6256?o
TLl=??5000?*256?o
EA??1?r
ETlKE1?r
TRlKE1?r
while(1)?o
}
?????-??
3?????2??
?N???????A????5ms???i???????????2???8 ???2?????????2?w?jb0?{?8?o8?????2?????w?j ?X??????1?!?j?8?U?f???J?w?j???X????????2 ?!?j?8?j???2b0??2?O?f?r??Proteus???s???? ???b???????8?j???????(???8?=???????J???????y ???8?U?X?????f????b0
2?????(??
???>???G?j???s????Proteus?P???G?j?9?? ?(??????KeilC???1?????6b0?>Proteus?????O
?+??????1?!?j?????s?y?????8???(???+?????1
??KtDebugKe?????jKtuseremotedebugmonitorKe?8 ?????N?1???i?6?8?r??KeilC?O???N?????1??b0
?>KeilC?????N???????T???N???8?(???+?????? KtProjectKe?N??KtOptionforTargetKe?)?????O???1 ????KtDebugKe?)???jKtuseProteusVSMSimulaKE
torKe?8?????>Proteus???1??b0???F?>KeilC?O ?9?????N???P?8?)???+????KtDebugKe?N??KtStart?6 StopDebugsessionKe?}???f?????s?8?>Proteus?O ?????8?????????s??????b0
?j???????????s???2???????8?>KeilC?O??
?>???????????6?8???????bKtP0=list[disp[i]]?oKe ???8???w?j???????7?????>???w?j???????8?f?> ?????????????T?8???????N????KtP2??i?oKe???8???? ?????b?????w?j???{??????b0
?>???T?M?????s???2
l??!????????!??!??!?r?r???)?r??????????!!???)??!?r!?r????!?rI ??KE]???5?????????m????I?j?{l??I#?#?#?#?#?#?l?j?{2??l?j?{2??l#?#?#?#?#?#?l?j?{
3??I?j?{3??I
ll????II????I????Il????j?D??I
[Y^??_YJ??b2?8?6LY_??_YJb2?8LY_??????
?????????????7?y?{??????YKb
?????{??
??3???s???2?????(??
???2?w?j?f?g?>???M???W?j?????????X???8?2?????W?8?-???}?????N?b8?????2
??Kt?8??Ke?w
?W???D???????P?r?>?????????????O???N???j???X??b0?>?T?????w?j?N???O
?8?X?2???f???2?8
0?P24s??????????b0?>?2?????2?w?j?O?8???????????+???2?????)?H???8?J?!?2??
???=?w?j
?????????????s???8???=?>???a???+???)?????>??1???Tb0????3?!?j?8?>3??
???????2??
26
1?????2???8?2????
?{1???????2?????2?P?8?{???????2???w?j?{?? ?????????8?????>5ms?????8?>???M?T???????? ????0?P24S????b0?k?P?8???G?j?????b???2???? ?{2???8?}???f?X?2???2?8???2???)?H???8?{???? ???w?j???(?w?j?8?U?????f?w?j?{???f?{2???? ?2?????w?j???????8Kt????Ke?>???M?T????????0?P 24S?8???F?}???{???????????w?j?P?k?>???M?T ?????8???w?j?????2b0???????2?????w?j?????? ?f???F???8?w?j???2b0?>??2?O?{3?????2???? ?w?j?????P???????(??b0?}???{3?????{4???? ?f?w?j??????Kt3Ke?8?????P???=???w?jKt3Ke?8?8???? ???2???}?????????????7?8?8?l???????2b0 3????????
???=?w?j?f?}?????2???)?????8?c?i?w?j?? ???K?A???8?j?????????b?w?j?8?H?????????f?>?? ?i???????????8?X?????w?j???8???>?w?j?N?????? ???TKtPO--Ox00?oKe????b0???????????[?T???w?j 4????
?????-??
3?????2??
?N???O?2???2?P?2???2???i???8?X?2???2?8???2?? ?2?8???7?r?w?j???2?8????1?!?jb0?8?F???>???G ?j???s????Proteus?P???G?j?9???(??????Keil C???1?????6b0?>KeilC?O?????????8?????b KtP2??i?oKe?????8???i?w?j???????????>?????w?j ??????b0?????b?N????KtP0=listFdispEi]]?oKe???8?{
?i???w?j?????????????8???????{?????????????8 ?M???????????s???????8?????s???2?8?U???J???? ?????N???????7???s???2b0???{???????w?j?j??
?????P?????8????4?!?jb0???G?j?????b?{????
???8?X?2???2?8?}?????2???)?????8???f?{?????? ???2?8?{?????w?j???????r?>?{?????????????? ????????????(?????f?????2???2????????????
??)?8?>???M?T??Kt????Ke?X?????}b0?U?k?P?2???? ?{?????????2???k?????????8?{???????w?j?{??
??????????????5ms?8???E???>???M?T???????? ?r???????8????????0?P24ms?????8?J?-???N?b?? ?X???f?{???????????w?j?8?8?7?f?{???????w?j
?2b0
?-?I?f?P??????????????
?j?{1???8b2
?????)?????????)?)?)?)?)?)?)?)?)?)?)?)?)???????)?3 ?M?T????I?{2???w?j?{2???????>???M?T????????????o?P24??????b0I ??j?U1?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?
P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P
?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?P?? ??KEKE??????KE?R?UKE????KE?R??KE?R??
I?PI???P?r??I#?#?#?#?#?#?l???P?r??I???P?r??I#?#?#?#?#?#?l???N?r??l?????r!??l
L-b2KEb0KEYKE7LKEvKEKEJb01KEb0KEYKEb0LKEvKEKE?6L_b27#rKEKEY^??????
?7?????????m???????????????i
??4???????2?????j?6??
?>???>???G?j?W?????=?????=LED???2??
?????????2???w?j???8???????>???2?w?j?8?}???? ?????????2?8???????8?7???>?w?j???????????8?w ?j???????8?X????b0?U???2?????????a???2???}
???a???G?j???????????????8?9?*???>??BCD?2 ?????I???=???2?????2?????????8???>?????r?8?? ?J???>?????????????2???????????????8?????? ?????y?????7?Y?hb0???2?????f?(?!?)???2???? ?w?j?E?[???8?7?????>?????8???9?j???a???2?? ???????????????)?r???=?y???8???2?}?5?????? ???????=?8?????G?j?????????2???8?!?)?2???? ???=?b???8???????2b0???G?j?r???(?????????= ?5?a???2???????????8?}???5?a???2?????I???? ?w?jb0???2?w?j?????2?w?j???X?????{???8?8?U ???s???2?h????I?60?????8?8?E???C?????8?>?? ?J?O???>??????b0
???G?j???=???2?????2???????8???=?N???X
?2???2???2???2?8?}?????M??Kt????Ke?X???8?r???s ???2b0?j?????w?j???7?w?j???2?8?????=?N???? ?X?>???i?w?j???????X?????w?j?????2???????? ?2?8???X?X?2???2???2???2?8???F?}?7?r???s???2 ????b0
???1???x
1?????P???G?j???(?P??121???f[M]?P?C???r???????y???X?w?8 2008?r156KE158?P
2?v???8?v?????P51???G?jC???????>?N??????????[M]?P?C 27
3
4
???W?H?=???r???f????????2010???{5?sKEKE???r?y?????r???X?w?82007?r108KE1
lO?P
???????P???????G?j?????????????k????[J]?P???????f?P?K ?s???82004?P256(6)?r8KE10?P
???????P???????P?>AT89C2051???????????k????EJ]?P???9
?y???^?????82000?8124(12)?r31KE35?P
5?S???8???J?P????LED?w?j?????=??????????[J]?P?????P?w
?j?82008?823(6)?r744KE750?P
6???????8?2???]?8???????8?S???u?P?h????LED?w?j???=????
??????[J]?P?????P?w?j?82005?820(6)?r564--569?P
TheAnalysisofLEDDynamicDisplayControlledbyMCU
GUoXiao-Jun
(WuhanInstituteofShipbuildingTechnology?8Wuhan430050?8China)
Abstract?rTheissueofmessycodeisanalyzedwhentheLEDdynamicdisplayiscontrolledby theMCU?PThispaperproceedsfromthecharacteristicofoureyesandtheprocessofLED dynamicdisplay?8thecauseisanalyzedthatitwillbringtheconfusiondisplaywhenLEDconKE
trolledbyprogramoftheMCU?8andalsothemethodstosolveithavebeengivenout?PBydoKE
ingexperimentsbasedontheprosandcons?8theanalyzeisprovedtoberight?P Keywords?rLED?odynamicDisplay?oMCU?omessycode
(?n???9???r?O???^)
(?T???{21??)
Abstract?rThistextuses
GermanySiemensS7KE200typeprogrammablelogiccontroller(PLC)
asthecontrolcoreoftheenginetelegraph?oToachievetransmissionofinformationbetween themachinerycontrolroomangthebridge?8Beapplicabletovariousmodernizationships?8Use
PLCascontrollerto
mainlymakeuseofitscommunicationfunction?PCanwelldevelopPLC
superiority?8Thepromisingthesafetyofshipcommunicationisunimpeded?P Keywords?rProgrammablelogiccontroller(PLC)?oEnginetelegraph
(?n???9???r?O???^)
(?T???{24??)
theA1_-SialloywithTiNcoatinghasbetterabrasiveperformancethanthatwithoutTiNcoat?
?KE
ing?8andunderthesameabrasivecondition?8thesurfaceofthesamplewithoutcoatingresults
insevereabrasioninmicrocutting?PTheadhesivewearisthemainformforTiNcoatingand thewidthofabrasionforsamplewithoutcoatingistwiceas
largeasTiNabrasion?P
Keywords?rA1??Sialloy?omultiKEarcionplating?oTiNfilm?owearresistance (?n???9???r????)
28