文档详情

51单片机寄存器详解.doc

发布:2017-06-07约7.43千字共5页下载文档
文本预览下载声明
?¨ê±?÷/??êy?÷μ?·?ê???′??÷TMOD TMODê?ò???8??μ?ì?êa1|?ü??′??÷£???ó|μ?μ??·ê?89H£?2??é???°?·?£ TMOD£o1¤×÷·?ê???????′??÷ ??′??÷μ??·89H£?2??é???°?·?£ ??Dò B7 B6 B5 B4 B3 B2 B1 B0 ??·?o? GATE C/T M1 M0 GATE C/T M1 M0 GATE?a?a?????? μ±£?0ê±£?ò???DDTR0£¨?òTR1£????ˉ?ò???1?¨ê±?÷?¢??êy?÷ μ±£?1ê±£?ò?TR0*/INT0£¨?òTR1*/INT1£????ˉ?ò???1?¨ê±?÷?¢??êy?÷ GATE£?0 ò?TR0£¨TR1£????ˉ?¨ê±?÷ GATE£?1 ò?INT0£¨INT1£????ˉ?¨ê±?÷ C/T£?0 ?¨ê±/??êy1¤×÷·?ê??????? M1M0?a?a1¤×÷·?ê??????? T2MOD£o1¤×÷·?ê???????′??÷ ??′??÷μ??·0C9H£?2??é???°?· £- £- £- £- £- £- T2OE DCEN T2OE£o?¨ê±?÷2ê?3??êDí??£?μ±£?1ê±£?P1.0/T2òy??ê?3?á?D???3?D?o? DCEN£oμ±£?1ê±£?T2????3é?òé??ò????êy?÷ A ?÷òaíê3éèy??1|?ü£o è·T0??êyò?3?±ê???? μ±??êy?÷??êyò?3?ê±£????????°1?±?£ê1ó?2é?ˉ·?ê?ê±£?′???×÷?a×′ì???1?cpu 2é?ˉ£?μ?ó|×¢òa?ú2é?ˉ????óDD§oóó|ò?èí?t·?·¨?°ê±?????????°0?±?£ê1ó??D?? ·?ê?ê±£?′???×÷?a?D??éê??±ê????£???è??D?¨?????¨ê±?÷?1ê???êy?÷£? ????o???1¤×÷·?ê?£? ê?·??èó?ía?D???????¨ê±?÷oí??êy?÷μ???í££? B TMODμ?μí4??ê?????T0μ?×???£¨T0--P3.4 ?¨ê±?÷/??êy?÷0ía2?ê??t??3?ê?è???£? TMODμ???4??ê?????T1μ?×???£¨T1--P3.5?¨ê±?÷/??êy?÷1ía2?ê??t??3?ê?è???£? C ????×?μ???ê?oío?ò? a?¢ GATE(TMOD.7) ·??aá????é??£oGATE=0£??¨ê±?÷μ???í£oíINT1?T1?£???è???óúTR0; GATE=1£??¨ê±?÷μ???í£2???òaóéTR0à′????£????òòaINT1òy??μ?????£???óD?t?? ???a??μ???ê±?¨ê±?÷ 2??aê?1¤×÷£? b?¢ C/T(TMOD.6) ·??aá????é??£oC/T=0£?ó?×÷?¨ê±?÷£? C/T=1£?ó?×÷??êy?÷£? d?¢ M1(TMOD.5),M0(TMOD.4) ó?M1,M0à′?????¨ê±?÷/??êy?÷μ?4??1¤×÷·?ê?: *·?ê?0£oM1=0,M0=0.13???¨ê±/??êy·?ê? *·?ê?1£oM1=0,M0=1.16???¨ê±/??êy?÷ *·?ê?2£?M1=1,M0=0.8??3??μ×??ˉ??D?×°è?μ?8???¨ê±/??êy?÷ *·?ê?3£?M1=1,M0=1.??êêó?óúT0£?·??aá???8????êy?÷£?T1í£?1??êy ?¨ê±?÷/??êy?÷??????′??÷TCON TCONê?ò???8??μ?ì?êa1|?ü??′??÷£???ó|μ?μ??·?a88H£??é?a?°?·?£ A ????×?μ???ê?oío?ò? a?¢TF1(TCON.7),TF0(TCON.5)----T1?¢??·t??3ìDòoóóéó2?t×??ˉ??0. b?¢TR1(TCON.6),TR0(TCON.4)----??êy??DD?????? TR1(TR0)=1,???ˉ?¨ê±/??êy?÷1¤×÷μ?±?òaì??t£??1ó?GATE??μ?×′ì?óD1??£ TR1(TR0)=0,í£?1?¨ê±/??êy?÷1¤×÷?£ ?????éóéèí?t??1?ò??0. c?¢ IE1(TCON.3),IE0(TCON.1)----ía2??D??INT1(P3.3)?
显示全部
相似文档