ÕªÒª£º»ùÓÚDM9000µÄÒÔÌ«Íøµç·£¬µ¥Æ¬»ú¶ËÒÆÖ²¾«¼òTCP£¯IPÐÒéÕ»unIP£¬ÊµÏÖ¼òÒ×µÄTCP·þÎñÆ÷¡£¶Ô¸Ã¼òÒ×µÄTCP·þÎñÆ÷½øÐиÄÔ죬°Ñ²ØÎÄÍøÒ³´æ´¢µ½TCP·þÎñÆ÷ÖУ¬ÀûÓû¥ÁªÍøÖ±½Ó·ÃÎʸòØÎÄTCP·þÎñÆ÷£¬Ö±½Ó¿ØÖƼÒÓõçÆ÷¡£ÕâÖÖСÐÍ»¯µÄ¡¢ÒÔµ¥Æ¬»úΪ»ù´¡µÄTCP·þÎñÆ÷£¬½ÓÈëµ½ÈκÎÓл¥ÁªÍøµÄ¶Ë¿Ú£¬Óû§Í¨¹ý»¥ÁªÍøÇáËÉʵÏÖ¼Òµç¿ØÖÆ¡£¸Ã²ØÎÄÐÅϢƽ̨¸ø²Ø×åͬ°û´øÀ´½ÏΪÈËÐÔ»¯µÄÐÅÏ¢·þÎñ£¬¾ßÓÐÒ»¶¨µÄÍƹãÇ°¾°¡£
¹Ø¼ü´Ê£ºÒÔÌ«Íø£»µ¥Æ¬»ú£»TCP£»IP£»·þÎñÆ÷Ëæ×ÅIT¼¼Êõ£¬ÌرðÊÇÍøÂç¼¼ÊõµÄ·¢Õ¹£¬ÍøÂç¸øÈËÃǵÄÉú»î´øÀ´ÁË·½±ãÓë¿ì½Ý£¬ÕâҲʹµÃ“ÖÇÄÜסլ”¡¢“¼ÒÍ¥×Ô¶¯»¯”µÈ¼¼Êõ±¶ÊܹØ×¢¡£¾¡¹ÜÄ¿Ç°´ÓÊÂÍøÂç¼Òµç¿ØÖÆ·½ÃæÉè¼ÆÈËÔ±½Ï¶à£¬µ«ÒÔÉÙÊýÃñ×åÓïÑÔ¿ª·¢µÄÏà¹ØÉè¼ÆÈ´ºÜÉÙ¡£±¾·½°¸ÕýÊÇ»ùÓÚ²ØÎÄÐÅÏ¢½»Á÷ƽ̨£¬½áºÏÄ¿Ç°ÍøÂçµÄ·¢Õ¹Ç÷ÊÆ£¬Á¢×ã¹ã´ó²Ø×åͬ°ûµÄʵ¼Ê¶øÌá³öµÄ£¬ËüÊÇÒÔSPCE061AΪÖ÷¿ØÖÆÆ÷£¬DM9000ΪÒÔÌ«ÍøMAC¿ØÖÆÆ÷£¬ÅäºÏÒ»¶¨µÄÍâΧµç·¶øʵÏֵĻùÓÚTCP£¯IPÐÒéÕ»µÄ¼òÒ×·þÎñÆ÷¡£µ±Óû§Í¨¹ýä¯ÀÀÆ÷·ÃÎʸ÷þÎñÆ÷´æ´¢µÄ²ØÓïÍøҳʱ£¬·þÎñÆ÷»á½âÎö³öÓû§µÄÏàÓ¦²Ù×÷Ö¸Áî²¢½«Æäת»¯³ÉµçÐźţ¬½èÖú¿ØÖƵç·¶ÔÏàÓ¦¼Òµç½øÐпØÖÆ¡£
¹Ø¼ü´Ê£ºÒÔÌ«Íø£»µ¥Æ¬»ú£»TCP£»IP£»·þÎñÆ÷
1 ϵͳӲ¼þÉè¼Æ
¸ÃϵͳÉè¼ÆÊÇÒ»¸ö¼òµ¥Ò×ÐеÄÍøÂç¼ÒµçÖÕ¶ËÉ豸£¬ÀûÓû¥ÁªÍø×ÊԴʹ¹ã´ó²Ø×åͬ°ûÔÚ¹¤×÷µÄͬʱ¿ÉÇáËÉ×ÔÈçµØ¿ØÖƼҵ硣»ùÓÚÒÔÉÏ¿¼ÂÇ£¬Òò´Ë£¬¸ÃÖÕ¶ËÉ豸Äܹ»ÓëÒòÌØÍøÏ໥ͨÐÅ£»TCP·þÎñÆ÷±ØÐëÌṩ²ØÎÄ·þÎñ£¬·½±ã²Ø×åͬ°û²Ù×÷£»ÖÕ¶ËÉ豸²Ù×÷¼òµ¥Ã÷ÁË£»²ÉÓý»Á÷220 V¹©µç£»¾ßÓÐָʾµÆºÍ²ØÓïÓïÒô²¥±¨µÈ²Ù×÷ָʾ£»¿¼Âǵ½°²È«ÐÔ£¬±ØÐëÃÜÂëµÇ¼£¬Í¬Ê±Äܹ»Í¨¹ý»¥ÁªÍø¼à¿Ø¼Òµç״̬¡£
ͼlΪ¸ÃϵͳӲ¼þÉè¼Æ×é³É¿òͼ£¬Ö÷ÒªÓÉSPCE061AÖ÷¿Ø°å¡¢DM9000¿ØÖÆÄ£¿é¡¢µçÔ´µç·¡¢Íâ½ÓµçÆ÷¿ØÖƵç·¡¢ÑïÉùÆ÷×é³É¡£ÆäÖУ¬DM9000ÒÔÌ«Íø¿ØÖÆÄ£¿éͨ¹ý16λµ¥Æ¬»úSPCE061AÖ±½Ó¿ØÖÆ£¬Íê³ÉÏàÓ¦Êý¾Ý°üµÄÊÕ·¢ºÍ½âÎö£¬½âÎöÍê³Éºó£¬ÔÙÓÉSPCE06iAÏòÍâ½ÓµçÆ÷¿ØÖƵç·¡¢ÑïÉùÆ÷ÒÔ¼°Ö¸Ê¾µÆÄ£¿é·¢³ö²Ù×÷Ö¸Á½ø¶ø¿ØÖƼҵ硣
1£®1 SPCE061AÖ÷¿Ø°å
¸ßÐԼ۱ȡ¢16λµ¥Æ¬»úSPCE061A¿É·½±ãÁé»îʵÏÖÓïÒôµÄ¼·Åϵͳ£¬¸ÃÆ÷¼þÓµÓÐ8·10λ¾«¶ÈµÄA£¯Dת»»Æ÷£¬ÆäÖÐl·ΪÒôƵת»»Í¨µÀ£¬ÄÚÖÃ×Ô¶¯ÔöÒæµç·£¬±ãÓÚʵÏÖÓïÒô¼È룺2·10λ¾«¶ÈµÄA£¯Dת»»Æ÷£¬Ö»ÐèÒªÍâ½Ó¹¦·Å(SPY0030A)¼´¿ÉÍê³ÉÓïÒô²¥·Å¡£ÁíÍ⣬¸ÃÆ÷¼þ»¹¾ßÓÐÒ×ѧÒ×ÓõÄЧÂʽϸߵÄÖ¸ÁîϵͳºÍ¼¯³É¿ª·¢»·¾³¡£ÔÚ´Ë»·¾³ÖУ¬¿ÉʵÏÖCÓïÑÔÓëÁèÑô»ã±àÓïÑԵĻ¥Ïàµ÷Ó㬲¢ÌṩÓïÒô¼·ÅµÄ¿âº¯Êý£¬Ö»ÒªÁ˽â¿âº¯ÊýʹÓ㬾ͺÜÈÝÒ×Íê³ÉÓïÒô¼·Å¡£
SPCE061AÖ÷ÒªÌØÐÔÈçÏ£º16λun’SP΢´¦ÀíÆ÷£ºÄں˹¤×÷µçѹVDDΪ3£®3¡«3£®6 V(CPU)£¬IO¶Ë¿Ú¹¤×÷µçѹVDHΪVDD¡«5£®5 V£»CPUʱÖÓΪ0£®32¡«49£®152 MHz£ºÄÚÖÃ32 K×ÖFlash£»¿É±à³ÌÒôƵ´¦Àí£»32λͨÓÿɱà³ÌÊäÈ룯Êä³ö¶Ë¿Ú£»14¸öÖжÏÔ´À´×ÔÓÚ¶¨Ê±Æ÷A£¯B£¬Ê±»ù£¬2¸öÍⲿʱÖÓÔ´ÊäÈ룬¼ü»½ÐÑ£»Ê¹ÓÃÁèÑôÒôƵ±àÂëSACM S240·½Ê½(2£®4 kbit£¯s)£¬ÄÜ´æ´¢210 sµÄÓïÒôÊý¾Ý£ºËøÏà»·PLLÕñµ´Æ÷ÌṩϵͳʱÖÓÐźš£ÕâÀïÐèҪעÒâµÄÊÇ£ºI£¯OÁ¬Ïß²»Äܽӷ´£¬²ÉÓÃÎÈѹµçÔ´¹©µç£¬ÇÒµçѹΪ5¡«6 V£»Á÷¾I£¯O¶Ë¿ÚµÄµçÁ÷²»Ò˹ý´ó£¬·ÀÖ¹I£¯O¶Ë¿ÚÉÕ»µ¡£
1£®2 ÒÔÌ«ÍøÄ£¿é
ÒÔÌ«ÍøÄ£¿éÊÇÒÔÌ«ÍøÊý¾Ý°üÊÕ·¢¿ØÖÆÄ£¿é£¬¸ÃÄ£¿éÓë¿ØÖÆÆ÷ÅäºÏ£¬³ýÁË¿ÉÍê³ÉÒÔÌ«ÍøÊý¾Ý°üÊÕ·¢Í⣬»¹¾ßÓÐ4 MbitµÄ´®ÐÐFlash´æ´¢Æ÷SPR4096£¬ÎªÓû§Ìṩһ¸ö½Ï´óÈÝÁ¿µÄ´æ´¢¿Õ¼ä¡£ÔÚÍøÂçÖпÉ×Ô¶¯»ñµÃͬÉ趨MACµØÖ·Ò»ÖµÄIP°ü£¬Íê³ÉIP°üµÄÊÕ·¢¡£¸ÃÉè¼Æ·½°¸ÖÐÒÔSPCE06lAµ¥Æ¬»úΪÖ÷¿ØÖÆÆ÷£¬ÓÃÒÔ¿ØÖÆDM9000Íê³ÉÒÔÌ«ÍøÊý¾Ý°üÊÕ·¢ÒÔ¼°TCP£¯IPÐÒéʵÏÖ¡£DM9000Ö÷ÒªÌØÐÔÈçÏ£º¹¤×÷µçѹΪ5 V£¬ÓëMCUÁ¬½ÓģʽÓÐISA 8 bit£¯ISA 16 bitģʽ£¬²¢Ö§³Ö3£®3 VºÍ5 VµÄI£¯O¿ØÖÆ£»Ö§ÇÒ³ÖEEPROM(93C46)£¬¿É¹©´æ·ÅϵͳËùÐèÐÅÏ¢¡£Í¼2¸ø³ö¸ÃÒÔÌ«ÍøÄ£¿éµÄÓ²¼þµç·Á¬½Ó¡£
ÕâÀïÐè×¢ÒâµÄÊÇ£ºSPCE06lAÖ÷¿Ø°åºÍÒÔÌ«ÍøÄ£¿é±ØÐë¹²µØ£¬×îºÃ²ÉÓÃͬһµçÔ´¹©µç£¬¸ÃÒÔÌ«ÍøÄ£¿é¹©µçµçѹ±ØÐëΪ5 V£¬¿ØÖÆI£¯O¶Ë¿ÚµçѹΪ3£®3 V£»SPCE061AÖ÷¿Ø°åºÍÒÔÌ«ÍøÄ£¿éÖ®¼äÓÃÓÚÊý¾Ý´«ÊäµÄ¿ØÖÆÏߵij¤¶ÈÓ¦²»³¬¹ý20 cm£»¹©µçµçÁ÷´óÓÚ200 mA¡£