ΪʲôҪʹÓÃÀµç×è
ʱ¼ä£º10-02
ÕûÀí£º3721RD
µã»÷£º
ΪʲôҪʹÓÃÀµç×裺
1¡¢Ò»°ã×÷µ¥¼ü´¥·¢Ê¹ÓÃʱ£¬Èç¹ûIC±¾ÉíûÓÐÄÚ½Óµç×裬ΪÁËʹµ¥¼üά³ÖÔÚ²»±»´¥·¢µÄ״̬»òÊÇ´¥·¢ºó»Øµ½Ô״̬£¬±ØÐëÔÚICÍâ
²¿Áí½ÓÒ»µç×è¡£
2¡¢Êý×Öµç·ÓÐÈýÖÖ״̬£º¸ßµçƽ¡¢µÍµçƽ¡¢ºÍ¸ß×è״̬£¬ÓÐЩӦÓó¡ºÏ²»Ï£Íû³öÏÖ¸ß×è״̬£¬¿ÉÒÔͨ¹ýÉÏÀµç×è»òÏÂÀµç×èµÄ
·½Ê½Ê¹´¦ÓÚÎȶ¨×´Ì¬£¬¾ßÌåÊÓÉè¼ÆÒªÇó¶ø¶¨£¡
3¡¢Ò»°ã˵µÄÊÇI/O¶Ë¿Ú£¬ÓеĿÉÒÔÉèÖã¬ÓеIJ»¿ÉÒÔÉèÖã¬ÓеÄÊÇÄÚÖã¬ÓеÄÊÇÐèÒªÍâ½Ó£¬I/O¶Ë¿ÚµÄÊä³öÀàËÆÓëÒ»¸öÈý¼«¹ÜµÄ
C£¬µ±C½Óͨ¹ýÒ»¸öµç×èºÍµçÔ´Á¬½ÓÔÚÒ»ÆðµÄʱºò£¬¸Ãµç×è³ÉΪÉÏCÀµç×裬Ҳ¾ÍÊÇ˵£¬Èç¹û¸Ã¶Ë¿ÚÕý³£Ê±Îª¸ßµçƽ£¬Cͨ¹ýÒ»
¸öµç×èºÍµØÁ¬½ÓÔÚÒ»ÆðµÄʱºò£¬¸Ãµç×è³ÆΪÏÂÀµç×裬ʹ¸Ã¶Ë¿ÚƽʱΪµÍµçƽ£¬×÷ÓÃÂð¡£
±ÈÈ磺µ±Ò»¸ö½ÓÓÐÉÏÀµç×èµÄ¶Ë¿ÚÉèΪÊäÈç״̬ʱ£¬ËûµÄ³£Ì¬¾ÍΪ¸ßµçƽ£¬ÓÃÓÚ¼ì²âµÍµçƽµÄÊäÈë¡£
4¡¢ÉÏÀµç×èÊÇÓÃÀ´½â¾ö×ÜÏßÇý¶¯ÄÜÁ¦²»×ãʱÌṩµçÁ÷µÄ¡£Ò»°ã˵·¨ÊÇÀµçÁ÷£¬ÏÂÀµç×èÊÇÓÃÀ´ÎüÊÕµçÁ÷µÄ£¬Ò²¾ÍÊǹàµçÁ÷-¡£
.......
1¡¢Ò»°ã×÷µ¥¼ü´¥·¢Ê¹ÓÃʱ£¬Èç¹ûIC±¾ÉíûÓÐÄÚ½Óµç×裬ΪÁËʹµ¥¼üά³ÖÔÚ²»±»´¥·¢µÄ״̬»òÊÇ´¥·¢ºó»Øµ½Ô״̬£¬±ØÐëÔÚICÍâ
²¿Áí½ÓÒ»µç×è¡£
2¡¢Êý×Öµç·ÓÐÈýÖÖ״̬£º¸ßµçƽ¡¢µÍµçƽ¡¢ºÍ¸ß×è״̬£¬ÓÐЩӦÓó¡ºÏ²»Ï£Íû³öÏÖ¸ß×è״̬£¬¿ÉÒÔͨ¹ýÉÏÀµç×è»òÏÂÀµç×èµÄ
·½Ê½Ê¹´¦ÓÚÎȶ¨×´Ì¬£¬¾ßÌåÊÓÉè¼ÆÒªÇó¶ø¶¨£¡
3¡¢Ò»°ã˵µÄÊÇI/O¶Ë¿Ú£¬ÓеĿÉÒÔÉèÖã¬ÓеIJ»¿ÉÒÔÉèÖã¬ÓеÄÊÇÄÚÖã¬ÓеÄÊÇÐèÒªÍâ½Ó£¬I/O¶Ë¿ÚµÄÊä³öÀàËÆÓëÒ»¸öÈý¼«¹ÜµÄ
C£¬µ±C½Óͨ¹ýÒ»¸öµç×èºÍµçÔ´Á¬½ÓÔÚÒ»ÆðµÄʱºò£¬¸Ãµç×è³ÉΪÉÏCÀµç×裬Ҳ¾ÍÊÇ˵£¬Èç¹û¸Ã¶Ë¿ÚÕý³£Ê±Îª¸ßµçƽ£¬Cͨ¹ýÒ»
¸öµç×èºÍµØÁ¬½ÓÔÚÒ»ÆðµÄʱºò£¬¸Ãµç×è³ÆΪÏÂÀµç×裬ʹ¸Ã¶Ë¿ÚƽʱΪµÍµçƽ£¬×÷ÓÃÂð¡£
±ÈÈ磺µ±Ò»¸ö½ÓÓÐÉÏÀµç×èµÄ¶Ë¿ÚÉèΪÊäÈç״̬ʱ£¬ËûµÄ³£Ì¬¾ÍΪ¸ßµçƽ£¬ÓÃÓÚ¼ì²âµÍµçƽµÄÊäÈë¡£
4¡¢ÉÏÀµç×èÊÇÓÃÀ´½â¾ö×ÜÏßÇý¶¯ÄÜÁ¦²»×ãʱÌṩµçÁ÷µÄ¡£Ò»°ã˵·¨ÊÇÀµçÁ÷£¬ÏÂÀµç×èÊÇÓÃÀ´ÎüÊÕµçÁ÷µÄ£¬Ò²¾ÍÊǹàµçÁ÷-¡£
.......
ºÇºÇ ²»´í Ö§³ÖÁË
STC51µ¥Æ¬»úP0¿Ú×öIOʱҪ¼ÇµÃ½ÓÉÏÀµç×è ²¿·Ömsp430ͨ¹ýPxRENÖÃλ¿ÉÒÔÖÃIOÄÚ²¿ÉÏÀ