ÕªÒª£º½éÉÜÁËCC2430оƬµÄ»ù±¾ÌØÐÔºÍZigBee2006ÐÒéÕ»µÄ»ù±¾ÄÚÈÝ¡£ÂÛÊöÁËÒÔCC22430оƬΪºËÐĵÄÎÞÏßͨÐÅÄ£¿éµÄÓ²¼þÉè¼Æ£¬ºÍÒÔZigB-ee2006ÐÒéջΪ»ù´¡µÄÈí¼þÉè¼Æ¡£ÔÚʵÏֶ̾àÀë¶àÍøÂç½Úµã¼äµÄÎÞÏßͨÐŵÄͬʱ£¬Ê¹Óô®¿ÚʵÏÖÎÞÏßͨÐÅÄ£¿éÓëÖն˲ɼ¯²¿·ÖºÍ±¾µØ¿ØÖƲ¿·ÖµÄÊý¾Ý´«Êä¡£
¹Ø¼ü´Ê£ºCC2430£»´®¿Ú£»ZigBee2006ÐÒé
ÒýÑÔ
Ëæ×Å΢µç×Ó¼¼Êõ¡¢ÖËã¼¼ÊõºÍÎÞÏßͨÐŵȼ¼ÊõµÄ½ø²½£¬ÎÞÏß´«¸ÐÆ÷ÍøÂç±»ÁÐΪ21ÊÀ¼Í×îÓÐÓ°ÏìµÄ21Ïî¼¼ÊõºÍ¸Ä±äÊÀ½çµÄ10´ó¼¼ÊõÖ®Ò»¡£ËüÄܹ»ÊµÊ±¼à²â¡¢¸ÐÖªºÍ²É¼¯¸÷ÖÖ»·¾³»ò¼à²â¶ÔÏóµÄÐÅÏ¢£¬²¢¶ÔÆä½øÐд¦Àí¡£´«¸ÐÆ÷½ÚµãÊÇ×é³ÉÎÞÏß´«¸ÐÆ÷ÍøÂçµÄ»ù±¾µ¥Î»£¬Êǹ¹³ÉÎÞÏß´«¸ÐÆ÷ÍøÂçµÄ»ù´¡Æ½Ì¨¡£
ZigBeeÊÇÒ»ÖÖÐÂÐ˵Ķ̾àÀë¡¢µÍËÙÂÊÎÞÏßÍøÂç¼¼Êõ£¬ÊÇÒ»×é»ùÓÚIEEE 802.15.4ÎÞÏß±ê×¼ÑÐÖÆ¿ª·¢µÄ£¬ÓйØ×éÍø¡¢°²È«ºÍÓ¦ÓÃÈí¼þµÄ¼¼Êõ±ê×¼¡£Ëü¾ßÓй¦ºÄµÍ¡¢³É±¾µÍ¡¢°²È«¡¢¹¤×÷Ƶ¶ÎÁé»îµÈÓŵ㣬ͨ¹ýºÍ´«¸ÐÆ÷×é³ÉÎÞÏß´«¸ÐÆ÷ZigBeeÍøÂ磬ʹµÃÊý¾ÝµÄ×Ô¶¯²É¼¯¡¢·ÖÎöºÍ´¦Àí±äµÃ¸ü¼ÓÈÝÒ×£¬¿ÉÒÔ×÷Ϊ¾ö²ß¸¨ÖúϵͳµÄÖØÒª×é³É²¿·Ö¡£
1 CC2430¼°ZigBeeÐÒéÕ»Ìåϵ½á¹¹
CC2430ÊÇÕæÕýµÄϵͳоƬ(SoC)CMOS½â¾ö·½°¸£¬Äܹ»Ìá¸ßÐÔÄܲ¢Âú×ãÒÔZigBeeΪ»ù´¡µÄ2£®4 GHz ISM²¨¶ÎÓ¦ÓöԵͳɱ¾¡¢µÍ¹¦ºÄµÄÒªÇó¡£Ëü½áºÏÁ˸ßÐÔÄܵÄ2£®4GHz DSSS(Ö±½ÓÐòÁÐÀ©Æµ)ÉäƵÊÕ·¢Æ÷ºËÐĺÍ1¿Å¹¤Òµ¼¶Ð¡ÇɸßЧµÄ8051¿ØÖÆÆ÷¡£CC22430ÔÚµ¥¸öƬÉϼ¯³ÉÁËZigBeeÉäƵ(RF)Ç°¶Ë¡¢ÄÚ´æºÍ΢¿ØÖÆÆ÷£¬Ê¹ÓÃ1¸ö8λMCU(8051)£¬¾ßÓÐ32£¯64£¯128 KBµÄ±à³ÌÉÁ´æºÍ8 KBµÄRAM£¬»¹°üº¬Ä££¯Êýת»»Æ÷(ADC)¡¢¶¨Ê±Æ÷(Timer)¡¢AES128°²È«Ð´¦ÀíÆ÷¡¢¿´ÃŹ·¶¨Ê±Æ÷(watchdog timer)¡¢32 kHz¾§ÕñµÄÐÝÃßģʽ¶¨Ê±Æ÷¡¢Éϵ縴λµç·¡¢µôµç¼ì²âµç·ÒÔ¼°21¸ö¿É±à³ÌI£¯0Òý½Å¡£CC2430µÄ8051Äں˵ÄÄ¿±ê´úÂë¼æÈݱê×¼8051΢´¦ÀíÆ÷£¬¿ÉÒÔʹÓñê×¼8051µÄ»ã±àÆ÷ºÍ±àÒëÆ÷½øÐÐÈí¼þ¿ª·¢¡£Æä21¸ö¿É±à³ÌI£¯OÒý½Å¾ù¿ÉÒÔͨ¹ýÈí¼þÉ趨1×éSFR¼Ä´æÆ÷µÄλºÍ×Ö½Ú£¬Ê¹ÕâЩÒý½Å×÷Ϊͨ³£µÄI£¯O¿Ú»òÕß×÷Ϊ½ÓADC¡¢¶¨Ê±Æ÷»òUSART²¿¼þµÄÍâΧÉ豸I£¯O¿ÚʹÓá£
ZigBeeÐÒéÕ»ÓÉÒ»×é×Ӳ㹹³É£¬Ã¿²ãΪÆäÉϲãÌṩһ×éÌض¨µÄ·þÎñ£ºÊý¾ÝʵÌåÌṩÊý¾Ý´«Êä·þÎñ£¬¹ÜÀíʵÌåÌṩȫ²¿ÆäËû·þÎñ¡£Ã¿¸ö·þÎñʵÌåͨ¹ýÒ»¸ö·þÎñ½ÓÈëµã(SAP)ΪÉϲãÌṩ·þÎñ½Ó¿Ú£¬²¢ÇÒÿ¸öSAPÌṩһϵÁеĻù±¾·þÎñÖ¸ÁîÀ´Íê³ÉÏàÓ¦µÄ¹¦ÄÜ¡£ZigBeeÐÒéÕ»µÄÌåϵ½á¹¹Ä£ÐÍÈçͼ1Ëùʾ£¬IEEE 802£®15£®4±ê×¼¶¨ÒåÁËÎïÀí²ã(PHY)ºÍ½éÖʽÓÈë¿ØÖÆ×Ó²ã(MAC)£»ZigBeeÁªÃ˶¨ÒåÁËÍøÂç²ãºÍÓ¦Óòã(APL)¿ò¼ÜµÄÉè¼Æ¡£
ZigBeeÐÒéÕ»ÓÚ2004Äê·¢²¼µÚ1°æ£¬³ÆΪZigBee2004¡£ZigBee2004ÊÇÈ«Ô´´úÂëµÄÐÒéÕ»£¬Õâ¸öÐÒéÕ»ÒѾÓÐÁËÍøÂçµÄ¸ÅÄ²¢ÄÜÍê³ÉһЩ¼òµ¥µÄͨÐÅ¡£µ«ËüÖ»ÄÜ×齨´®×´ÍøÂçºÍÐÇ×´ÍøÂ磬Èç¹ûÐèÒª×齨Íø×´ÍøÂç±ØÐëÍâ¼Ó³ÌÐò£¬ÁíÍâÔÚ°²È«ºÍ·ÓÉ·½ÃæÒ²×öµÃ²»ÊǺÜÀíÏë¡£ZigB-ee2006ÐÒéÕ»ºÜºÃµØ½â¾öÁËÍøÂç×éÍøÎÊÌ⣬Õû¸öÐÒéÕ»µÄ°²È«ÐÔ¸üºÃ£¬²ã´ÎÐÔ¸üÇ¿£¬¹¦ºÄ·½ÃæÒ²ÓÐÁ˽ø²½£¬²¢ÊµÏÖÁËÍø×´ÍøÂç¡£ÔÚZigBee-2006ÐÒéÕ»ÖÐÒѾ½«CC2430µÄµ×²ãÇý¶¯È«²¿¹Ì»¯ÔÚÐÒéÕ»ÖУ¬¿ÉÒÔÖ±½Óµ÷Óá£
×ÛÉÏËùÊö£¬Ñ¡ÓÃCC2430оƬ×÷ΪÎÞÏßͨÐÅÄ£¿éÓ²¼þºËÐÄоƬ£¬Èí¼þ²¿·ÖÑ¡ÓÃZigBee2006ÐÒéÕ»À´ÊµÏÖÎÞÏßÄ£¿éÖ®¼äµÄͨÐŹ¦ÄÜ¡£
2 Ó²¼þÉè¼Æ
ÎÞÏßͨÐŲ¿·Ö×÷Ϊ¼à²âϵͳÖÐÖØÒªµÄÊý¾Ý´«ÊäͨµÀ£¬²»½öÐèҪʵÏÖÎÞÏßͨÐÅÄ£¿éÖ®¼äµÄÊý¾Ý½ÓÊպͷ¢Ë͹¦ÄÜ£¬Í¬Ê±»¹ÐèÒªÌṩÊý¾Ý½Ó¿ÚÓëÖÕ¶ËÊý¾Ý²É¼¯²¿·Ö¼°±¾µØÖ÷¿ØÖÆϵͳÒÔ½øÐÐÁ¬½Ó¡£ÏµÍ³½á¹¹Èçͼ2Ëùʾ¡£
ͼ3ËùʾΪÎÞÏßÄ£¿éÓ²¼þÔÀíͼ¡£µç·ѡÓÃCC2430оƬ×÷ΪÎÞÏß´«¸ÐÆ÷ÍøÂç½ÚµãµÄºËÐÄCPU¡£Ñ¡ÓÃ1¸ö32£®768 kHzµÄʯӢгÕñÆ÷(X2)ºÍ2¸öµçÈÝ(C441ºÍC431)×é³É32£®768 kHzµÄ¾§Õñµç·£»Ñ¡ÓÃ1¸ö32 MHzµÄʯӢгÕñÆ÷(X1)ºÍ2¸öµçÈÝ(C191ºÍC211)×é³É32 MHzµÄ¾§Õñµç·¡£µçѹµ÷½ÚÆ÷¿ÉΪËùÓÐÒªÇó1£®8 VµçѹµÄÄÚ²¿µçÔ´¹©µç£¬µçÈÝC241ºÍC421ÊÇÓÃÀ´×÷ΪµçÔ´Â˲¨µÄÈ¥ñîºÏµçÈÝ£¬ÒÔÌá¸ßоƬ¹¤×÷µÄÎȶ¨ÐÔ¡£µç·ÖÐJ1ÊÇ10Òý½ÅJTAG·ÂÕæÆ÷½Ó¿Ú£¬J2ÊÇ3£®3 VµçÔ´½Ó¿Ú£¬J3ÊÇCC2430оƬÀ©Õ¹Êä³ö¿Ú£¬ÔÚÀ©Õ¹Êä³ö¿ÚÉÏÖ÷ÒªÔ¤ÁôÁËSPI¿ÚºÍÕû¸öPO I£¯O¿Ú¡£Éè¼ÆÁË2¸ö·¢¹â¶þ¼«¹ÜָʾµÆ£¬×÷Ϊµç·µ÷ÊÔָʾµÆ¡£Ê¹ÓÃ1¸ö·ÇƽºâÌìÏߣ¬ÎªÁËʹÌìÏßÐÔÄܸüºÃ£¬ÔÚÌìÏßÓëCC2430Ö®¼äÁ¬½ÓÁË1¸ö·Çƽºâ±äѹÆ÷¡£·Çƽºâ±äѹÆ÷ÓɵçÈÝC341ºÍµç¸ÐL321¡¢L331¡¢L341ÒÔ¼°1¸öPCB΢²¨´«ÊäÏß×é³É£¬Õû¸ö½á¹¹Âú×ãRFÊäÈ룯Êä³öÆ¥Åäµç×è(50 Ω)µÄÒªÇó¡£
3 ÐÒéÕ»Èí¼þÉè¼Æ
Èí¼þ¿ª·¢µÄÈí¼þ»·¾³£ºIAR 7£®30B¡¢Êý¾Ý·ÖÎöÒÇ¡¢´®¿Úµ÷ÊÔ¹¤¾ßÒÔ¼°¸÷Ó²¼þÇý¶¯Èí¼þµÈ£»Ó²¼þ»·¾³£º¼ÆËã»ú¡¢CC2430¿ª·¢°åµÈ¡£
ϵͳÈí¼þ»ùÓÚTI£¯Chipcon¹«Ë¾Ãâ·ÑÌṩµÄZigBee2006ÐÒéÕ»£¬ÒÔZStack-1£®4£®3-1£®2£®1°æ±¾ÖÐGenericAppÀý³ÌΪ»ù´¡¡£GenericAppÀý×Ó»ù±¾¹¦ÄܺÜÆëÈ«£¬¶øÇÒÔÚZStackÉÏʵÏÖÁËÎÞÏßÍøÂçÊý¾Ý´«Êä¡£Àý³ÌûÓжàÓàµÄ¹¦ÄÜ£¬ËùÒÔÊǵäÐ͵ÄZStackÄ£°å£¬¼´ÎªÓû§ÌṩÁËÒ»¸öͨÓÃÄ£°å£¬¿ÉÒÔͨ¹ýËü½¨Á¢×Ô¼ºµÄÓ¦ÓóÌÐò¡£Òò´Ë£¬½¨Á¢Ò»¸öÏîÄ¿µÄ·½·¨Ö÷ÒªÊǸĶ¯Ó¦Óòã(APP)³ÌÐò¡£