ÕªÒª£ºÊ±ÖÓͬ²½ÊÇ·Ö²¼Ê½ÏµÍ³µÄºËÐļ¼ÊõÖ®Ò»£¬ÎªÊµÏÖ»ùÓÚARM-WinCEǶÈëʽϵͳƽ̨µÄ²âÊÔÒÇÆ÷×齨·Ö²¼Ê½²âÊÔϵͳ£¬ÔÚ½éÉÜIEEE1588¾«È·Ê±ÖÓÐÒé»ù±¾ÔÀíµÄ»ù´¡ÉÏ£¬Ìá³öÁËʹÓþßÓÐIEEE1588ÐÒéÓ²¼þÖ§³Ö¹¦ÄܵÄDP83640ÒÔÌ«ÍøÎïÀí²ãÊÕ·¢Æ÷ÔÚ»ùÓÚARM-WinCEµÄǶÈëʽϵͳƽ̨ÉÏʵÏÖʱÖÓͬ²½µÄÉè¼Æ·½°¸£¬¸ø³öÁËÓ²¼þÉè¼ÆµÄ½Ó¿Úµç·ºÍÈí¼þÉè¼Æ¿ò¼Ü¡£¾²âÊԸ÷½°¸¿É´ïµ½²»µÍÓÚ1μsµÄͬ²½¾«¶È¡£
Ëæ׿ÆËã»ú¼¼Êõ¡¢ÍøÂçͨÐż¼ÊõµÄ½ø²½£¬×齨·Ö²¼Ê½ÍøÂ绯²âÊÔϵͳ£¬Ìá¸ß²âÊÔЧÂÊ¡¢¹²ÏíÐÅÏ¢×ÊÔ´£¬ÒѳÉΪÏÖ´ú²âÊÔϵͳ·¢Õ¹µÄ·½Ïò¡£·Ö²¼Ê½²âÊÔϵͳͨ¹ýÍøÂçµÈͨÐÅý½é°Ñ·Ö²¼ÓÚ¸÷²âÊԵ㡢¶ÀÁ¢Íê³ÉÌض¨¹¦ÄܵIJâÊÔÉ豸Á¬½ÓÆðÀ´£¬ÒÔ´ïµ½²âÊÔ×ÊÔ´¹²ÏíºÍÐͬ¹¤×÷µÈÄ¿µÄ¡£Ê±ÖÓͬ²½ÊÇ·Ö²¼Ê½ÏµÍ³µÄºËÐļ¼ÊõÖ®Ò»£¬ÆäÄ¿µÄÊÇά»¤Ò»¸öÈ«¾ÖÒ»ÖµÄÎïÀí»òÂ߼ʱÖÓ£¬Ê¹µÃϵͳÄÚ¸÷¸ö½ÚµãÖÐÓëʱ¼äÓйصÄÐÅÏ¢¡¢Ê¼þ¼°ÐÐΪÓÐÒ»¸öÈ«¾ÖÒ»ÖµĽâÊÍ¡£IEEE1588¾«È·Ê±ÖÓÐÒéÊǵ±Ç°·Ö²¼Ê½²âÊÔϵͳÖÐʱÖÓͬ²½Ñо¿µÄÈȵ㡣²ÉÓÃÓ²¼þÖ§³ÖµÄIEEE1588ÐÒéÄܹ»ÔÚÒÔÌ«ÍøÖв»Í¬½áµãÖ®¼äʵÏÖÄÉÃ뼶µÄʱÖÓͬ²½£¬Îª¹¤³§×Ô¶¯»¯¡¢²âÊԺͲâÁ¿ÒÔ¼°Í¨ÐŵÈÁìÓòÐèÒª¸ß¾«¶ÈʱÖÓͬ²½µÄÓ¦ÓÃÌṩÁËÒ»ÖÖÓÐЧµÄ½â¾ö·½°¸¡£±¾ÎIJÉÓþßÓÐIEEE1588¾«È·Ê±ÖÓÐÒéÓ²¼þÖ§³Ö¹¦ÄÜDP83640оƬÔÚ»ùÓÚARMºÍWinCEµÄǶÈëʽϵͳƽ̨ÉÏʵÏÖIEEE1588ÐÒ飬Ϊ»ùÓÚǶÈëʽϵͳµÄÖÇÄܲâÊÔÒÇÆ÷×é³É·Ö²¼Ê½²âÊÔϵͳµì¶¨ÁË»ù´¡¡£
¡¡¡¡1 IEEE1588ÐÒéÔÀí
IEEE1588µÄÈ«³ÆÊÇ"ÍøÂç²âÁ¿ºÍ¿ØÖÆϵͳµÄ¾«ÃÜʱÖÓͬ²½ÐÒé±ê×¼",¼ò³Æ¾«È·Ê±ÖÓÐÒ飨PrecisiON Time Protocol,PIP£©¡£IEEE1588ÐÒéÊÇͨÓõÄÌáÉýÍøÂçϵͳ¶¨Ê±Í¬²½ÄÜÁ¦µÄ¹æ·¶£¬ÔÚÆð²Ý¹ý³ÌÖÐÖ÷Òª²Î¿¼ÒÔÌ«ÍøÀ´±àÖÆ£¬Ê¹·Ö²¼Ê½Í¨ÐÅÍøÂçÄܹ»¾ßÓÐÑϸñµÄ¶¨Ê±Í¬²½£¬²¢ÇÒÓ¦ÓÃÓÚ¹¤Òµ×Ô¶¯»¯ÏµÍ³¡£»ù±¾¹¹Ë¼ÊÇͨ¹ýÓ²¼þºÍÈí¼þ½«ÍøÂçÉ豸£¨¿Í»§»ú£©µÄÄÚʱÖÓÓëÖ÷¿Ø»úµÄÖ÷ʱÖÓʵÏÖͬ²½£¬Ìṩͬ²½½¨Á¢Ê±¼äСÓÚ10μsµÄÔËÓã¬ÓëδִÐÐIEEE1588ÐÒéµÄÒÔÌ«ÍøÑÓ³Ùʱ¼ä1000μsÏà±È£¬Õû¸öÍøÂçµÄ¶¨Ê±Í¬²½Ö¸±êÓÐÏÔ×ŵĸÄÉÆ¡£
IEEE1588ʱÖÓÐÒéÔÚ½øÐÐʱÖÓͬ²½Ê±£¬Ö÷ʱÖÓÉ豸°´ÕÕÒ»¶¨µÄʱ¼ä¼ä¸ô£¨Ò»°ãΪ2 s£©ÖÜÆÚÐÔµØÒԹ㲥·½Ê½·¢ËÍͬ²½±¨ÎÄ£¨Sync£©ºÍͬ²½¸úË汨ÎÄ£¨FollowUp£©£¬ÇÒÔÚFollowUp±¨ÎÄÖмǼSync±¨Îĵķ¢ËÍʱ¼ä´Át1,¶ø´ÓʱÖÓÉ豸½ÓÊÕSyne±¨ÎļǼ½ÓÊÕʱ¼ä´ÁΪt2;È»ºó£¬´ÓʱÖÓÉ豸½Úµã¶¨ÆÚ·¢ËÍÑÓ³ÙÇëÇó±¨ÎÄ£¨Delay_Req£©£¨Ò»°ã4~60 s·¢ËÍÒ»´Î£©£¬²¢¼Ç¼Æä·¢ËÍʱ¼ä´Át3,Ö÷ʱÖÓÉ豸½ÓÊÕÅÐÑÓ³ÙÇëÇóºó£¬¼Ç¼½ÓÊÕʱ¼ä´Át4,²¢¸øÏàÓ¦´Ó½Úµã·¢ËÍÑÓ³ÙÇëÇóÏìÓ¦±¨ÎÄ£¨Delay_Resp£©£¬¸Ã±¨ÎÄÐÅÏ¢Öаü¹Åʱ¼ä´Át4.ͨ¹ýµÃµ½µÄ4¸öʱ¼ä´Á£¬¿ÉÒÔ¼ÆËã³öÖ÷´ÓʱÖÓÖ®¼äµÄÆ«ÒÆÁ¿ToffsetºÍÍøÂç´«ÊäµÄÏß·ÑÓ³Ùms_delay,Æä¹ý³ÌÈçͼ1Ëùʾ¡£
ͼ1 ʱÖÓͬ²½¹ý³Ì
Sync±¨ÎÄÔÚÖ÷´ÓÉ豸µÄʱ²îΪ£º
Delay_Req±¨ÎÄÔÚÖ÷´ÓÉ豸µÄʱ²îΪ£º
Sync±¨ÎÄ´«ËÍʱÖ÷´ÓÉ豸µÄÏß·ÑÓ³ÙΪ£º
Delay_Req±¨ÎÄ´«ËÍʱÖ÷´ÓÉ豸Ïß·ÑÓ³ÙΪ£º
Toffest ¿ÉÒÔ·Ö±ðÓÃt2-t2m ºÍt3-t3m±íʾ£º
ÓÉ£¨5£©+£¨6£©µÃ£º
ÓÉ£¨5£©-£¨6£©µÃ£º
ÔÚÏß·¶Ô³ÆµÄÇé¿öÏ£¬ÓУº
Æ«ÒÆÁ¿£º
Ïß·ÑÓ³Ù£º
µÃµ½ÁË´ÓʱÖÓÓëÖ÷ʱÖÓÖ®¼äµÄʱ¼äÆ«ÒÆÖµ£¬¾Í¿ÉÒÔ²ÉÓÃÊʵ±µÄµ÷½ÚËã·¨À´µ÷½Ú´ÓʱÖÓ£¬×îÖÕʹµÃ´ÓʱÖÓÓëÖ÷ʱÖÓͬ²½¡£´ÓʱÖÓ²¢²»ÊÇÿ¸öͬ²½ÖÜÆÚ¶¼ÐèÒª½øÐÐʱ¼äͬ²½£¬¶øÊǸù¾Ý´ÓʱÖÓÓëÖ÷ʱÖÓÖ®¼äµÄʱ¼äÆ«ÒÆÖµµÈʱ¼äÐÅÏ¢À´¾ö¶¨ÊÇ·ñÐèÒª½øÐÐʱ¼äͬ²½¡£µ±Ö÷´ÓʱÖÓÖ®¼ä½¨Á¢ÆðÎȶ¨µÄͬ²½¹Øϵºó£¬´ÓʱÖÓ»¹ÐèÖÜÆÚÐԵؼàÌýÀ´×ÔÖ÷ʱÖÓ·¢²¼µÄSync±¨ÎÄ£¬Ò»µ©³öÏÖÖ÷´ÓʱÖÓÖ®¼ä²»´¦ÓÚʱ¼äͬ²½µÄ״̬£¬¾ÍÖØнøÐÐÉÏÊöµÄʱ¼äͬ²½¹ý³Ì£¬Ö±µ½ÖØдﵽÖ÷´ÓʱÖÓÖ®¼äµÄʱ¼äͬ²½¡£
IEEE1588ÐÒéµÄÔËÐÐÊÇÓÉʱ¼ä´ÁÇý¶¯µÄ£¬Ê±ÖÓͬ²½¾«¶ÈÖ÷Òª¹é½áΪʱ¼ä´ÁµÄ¶¨Ê±¾«¶È¡£IEEE1588ʹÓÃUDPÐÒé·¢ËÍÍøÂçͬ²½±¨ÎÄ£¬»ùÓÚUDPÐÒé´«ÊäµÄ¹ý³Ì¶¼ÊÇÔÚTCP/IPÐÒéÄ£ÐÍϽøÐÐÊý¾Ý°üµÄÖð²ã·â×°ºÍ´«µÝµÄ¡£ÒªÊ¹Ê±ÖÓ»ñµÃµÄ±¨ÎÄ·¢ËÍʱ¼äºÍ±¨ÎĽÓÊÕʱ¼äÏà¶Ô¾«È·¡¢Îȶ¨£¬ÇÒ°Ñ·¢ËÍÑӳٺͽÓÊÕÑÓ³Ù²»ÏàµÈÕâÖÖÒòËضԼÆËã´«²¥ÑÓ³Ù²úÉúµÄÓ°Ïì¼õСµ½×îµÍ£¬×îºÃµÄ½â¾ö°ì·¨¾ÍÊÇÔÚTCP/IPÐÒéÕ»µÄµ×²ã¼´ÎïÀí²ã¶Ôͬ²½±¨Îıê¼Çʱ¼ä´Á£¬±ê¼Çʱ¼ä´ÁµÄ²Ù×÷Ô½½Ó½üÎïÀí²ã£¬¼ÆËãµÃµ½µÄÖ÷´ÓʱÖÓµÄʱ¼äÆ«ÒÆÁ¿ºÍ´«²¥Ïß·ÑÓ³Ù¾ÍԽ׼ȷ¡£ÒªÊµÏÖÕâһĿµÄ¾Í±ØÐë¼ÓÈëרÃŵÄÓ²¼þÉ豸¡£ÃÀ¹ú¹ú¼Ò°ëµ¼Ì幫˾£¨National Semiconductor£©ÍƳöµÄDP83640оƬ¾ÍÊÇÒ»¿î¼¯³ÉIEEE1588¾«È·Ê±ÖÓÐÒéÓ²¼þÖ§³Ö¹¦ÄܵÄÒÔÌ«ÍøÊÕ·¢Æ÷¡£Ð¾Æ¬ÄÚÖø߾«¶ÈIEEE1588ʱÖÓ£¬²¢¾ßÓÐÓÉÓ²¼þÖ´ÐеÄʱ¼ä´Á±ê¼Ç¹¦ÄÜ£¬¿ÉΪ½ÓÊÕ¼°·¢ËÍÐÅÏ¢°ü¼ÓÈëʱ¼ä±ê¼Ç¡£²ÉÓÃDP83640µÄͬ²½ÏµÍ³£¬¿É»ñµÃÄÉÃ뼶µÄͬ²½¾«¶È¡£
2 Ó²¼þÉè¼Æ
ÓÉÓÚIEEE1588ÐÒéÔËÐÐÓÚÒÔÌ«Íø£¬ÔÚ»ùÓÚARMµÄǶÈëʽϵͳÉϲÉÓÃDP83640оƬÒÆÖ²IEEE1588ÐÒéµÄÓ²¼þ»ùÈ·ÊÇΪϵͳÔö¼ÓÒÔÌ«Íø½Ó¿Úµç·¡£ÒÔÌ«Íø½Ó¿Úµç·Ö÷ÒªÓÉýÌå·ÃÎÊ¿ØÖÆ£¨Medium Access Control,MAC£©Æ÷ºÍÎïÀí²ã£¨Physical Layer,PHY£©ÊÕ·¢Æ÷Á½²¿·Ö¹¹³É¡£MAC¿ØÖÆÆ÷оƬʵÏÖOSIÄ£ÐÍÊý¾ÝÁ´Â·²ãµÄ¹¦ÄÜ£¬ÌṩѰַ»ú¹¹¡¢Êý¾ÝÖ¡µÄ¹¹½¨¡¢Êý¾Ý²î´í¼ì²é¡¢´«ËÍ¿ØÖÆ¡¢ÏòÍøÂç²ãÌṩ±ê×¼µÄÊý¾Ý½Ó¿ÚµÈ¹¦ÄÜ¡£PHYоƬʵÏÖOSIÄ£ÐÍÎïÀí²ãµÄ¹¦ÄÜ£¬¶¨ÒåÁËÊý¾Ý´«ËÍÓë½ÓÊÕËùÐèÒªµÄµçÓë¹âÐźš¢Ïß·״̬¡¢Ê±ÖÓ»ù×¼¡¢Êý¾Ý±àÂëºÍµç·µÈ£¬²¢ÏòÊý¾ÝÁ´Â·²ãÉ豸Ìṩ±ê×¼½Ó¿Ú¡£ARM´¦ÀíÆ÷¡¢MACоƬÓëPHYоƬÈýÕßÖ®¼äµÄ¹ØϵÊÇMACоƬÏòÉÏͨ¹ýÆä´¦ÀíÆ÷½Ó¿Ú£¨Processor Interface£©ÓëARM´¦ÀíÆ÷µÄ¸ß¼¶ÍâÉè×ÜÏߣ¨APB£©Á¬½Ó£¬ÏòÏÂͨ¹ýÆäýÌå¶ÀÁ¢½Ó¿Ú£¨Media Independent Interface,MII£©½Ó¿ÚÓëPHYоƬÁ¬½Ó¡£×îÖÕ£¬PHYоƬÓëRJ45½Ó¿ÚÁ¬½Ó¡£
±¾ÎÄʹÓÃSAMSUNG¹«Ë¾µÄS3C2440AÐÍARM´¦ÀíÆ÷£¬ÆäÄÚ²¿ÉèÓм¯³ÉMAC¿ØÖÆÆ÷£¬¶øDP83640оƬֻÊÇPHYÊÕ·¢Æ÷£¬Òò´Ë¶þÕßÖ®¼ä»¹ÐèÒªÔö¼ÓMACоƬ¡£ÓÉÓÚÄ¿Ç°³£ÓõÄÒÔÌ«Íø¿ØÖÆÆ÷¶¼¼¯³ÉÁËMAC¿ØÖÆÆ÷ºÍPHYÊÕ·¢Æ÷£¬ÕâÀïÑ¡ÓÃDAVICOM¹«Ë¾µÄDM9000ÒÔÌ«ÍøоƬ£¬ÆäÌصãÊÇ£º¾ßÓÐMII½Ó¿Ú¿ÉÒÔºÍƬÍâPHYоƬÁ¬½Ó£»¼Ä´æÆ÷²Ù×÷¼òµ¥ÓÐЧ£»³É±¾µÍÁ®¡£
ʵÏÖS3C2440AÓëDM9000Á¬½Ó£¬±ØÐë¶ÔÁ½Õß¼äµÄÊý¾Ý¡¢µØÖ·¡¢¿ØÖÆÈý´ó×ÜÏß½øÐÐÁ¬½ÓºÍת»»£¬ÆäÁ¬½Ó¹ØϵÈçͼ2Ëùʾ¡£
ͼ2 ÒÔÌ«Íø½Ó¿Úµç·
S3C2440AµÄÊý¾ÝÏßD[15:0]ÓëDM9000µÄµØÖ·¡¢Êý¾Ý¸´ÓÃÊý¾ÝÏßSD[15:0]Á¬½ÓÓÃÀ´ÊµÏÖS3C2440AÓëDM9000Ö®¼äµÄÊý¾Ý´«Ê䡣оƬѡÔñÐźÅAENÓëS3C2440AµÄƬѡʹÄÜÐźÅnGSC4Á¬½Ó£¬µ±·ÃÎÊ0x20000000-0x27FF FFFFÕâ¸ö·¶Î§µÄµØַʱ»á¼¤»îƬѡʹÄÜÐźÅnGCS4.DM9000ĬÈÏI/O»ùµØַΪ300H.CMDÒý½ÅÓÃÓÚÉèÖÃCOMMANDģʽ£¬ÓëS3C2440AµÄADDR2Á¬½ÓCMDΪ¸ßµçƽʱ£¬Ñ¡ÔñÊý¾Ý¶Ë¿Ú¡£CMDΪµÍµçƽʱ£¬Ñ¡µØÖ·¶Ë¿Ú¡£Êý¾Ý¶Ë¿ÚºÍµØÖ·¶Ë¿ÚµÄµØÖ·ÂëÓÉÏÂʽ¾ö¶¨£º
DM9000µØÖ·¶Ë¿Ú=¸ßλƬѡµØÖ·+300H+0H
DM9000Êý¾Ý¶Ë¿Ú=¸ßλƬѡµØÖ·+300H+4H
¸ßλƬѡµØÖ·ÓÉS3C2440AоƬµÄnGCS4Ìṩ£¬¼´Îª£º0x20000000.Òò´ËDM9000µÄµØÖ·IO»ùַΪ0x20000000,Êý¾ÝIO»ùַΪ0x2000 0004.ÏòµØÖ·IOдÊý¾Ýʱ²»»á¼¤»îADDR2,CMDΪµÍµçƽ£¬ËùÒÔÏòDM9000´«Ë͵ÄÊý¾ÝΪµØÖ·£¬¶øÏòÊý¾ÝIOдÊý¾Ýʱ»á¼¤»îADDR2,CMDΪ¸ßµçƽ£¬ÏòDM9000´«Ë͵ÄÊý¾ÝΪÊý¾Ý¡£S3C2440µÄÊä³öʹÄÜÒý½ÅnOEÁ¬½ÓDM9000µÄ¶ÁÒý½ÅIOR,дʹÄÜÒý½ÅnWEÁ¬½ÓDM9000µÄдÒý½ÅIOW.DM9000µÄÖжÏÇëÇóÒý½ÅINTÁ¬½ÓS3C2440µÄÍⲿÖжÏÇëÇóÒý½ÅEINT7,ʹµÃS3C2440AÄܹ»ÏìÓ¦DM9000µÄÖжϡ£
DM9000ÓëDP83640Ö®¼äͨ¹ý±ê×¼MII½Ó¿ÚÁ¬½Ó£¬RXD[3:0]Ϊ½ÓÊÕÊý¾ÝÏߣ¬TXD[3.0]Ϊ·¢ËÍÊý¾ÝÏߣ¬CRSΪÔز¨¼ì²âÐźţ¬COLΪ³åÍ»¼ì²âÐźţ¬RX_DVΪÊý¾ÝÓÐЧÐźţ¬RX_ERΪ½ÓÊÕ´íÎóÐźţ¬RX_CLKΪ½ÓÊÕʱÖÓÐźţ¬TX_CLKΪ·¢ËÍʱÖÓÐźţ¬TX_ENΪ·¢ËÍʹÄÜÐźţ¬MDIOÊǹÜÀíÊý¾ÝµÄÊäÈëÊä³öË«Ïò½Ó¿Ú£¬MDCΪ¹ÜÀíÊý¾Ý½Ó¿ÚÌṩʱÖÓÐźš£ÐèҪעÒâµÄÊÇDM9000ĬÈÏʹÓÃƬÄÚPHY,Òò´ËÔÚÇý¶¯³ÌÐò³õʼ»¯DM9000ʱ£¬±ØÐëÖ÷¶¯ÖÃλÍøÂç¿ØÖƼĴæÆ÷NCRµÄEXT_PHYλÒÔÑ¡ÔñʹÓÃƬÍâPHY¼´DP83640.
3 Èí¼þÉè¼Æ
Èí¼þÉè¼Æ·ÖΪÁ½¸ö²½Ö裺1£©ÊÇ»ùÓÚDM9000ºÍDP83640½øÐÐÒÔÌ«ÍøͨÐŵÄÇý¶¯³ÌÐòÉè¼Æ£»2£©ÊÇͨ¹ýDP83640½øÐÐʱÖÓͬ²½µÄÓ¦ÓóÌÐòÉè¼Æ¡£
±¾ÎÄʹÓÃWinCE5.0²Ù×÷ϵͳ£¬WinCE5.0ϵͳÏÂÍøÂçÇý¶¯³ÌÐòµÄ±àд±ØÐë·ûºÏÍøÂçÇý¶¯½Ó¿Ú¹æ·¶NDIS£¨Network Driver Interface Stan dard£©¡£NDISµÄ²ã´Î½á¹¹Èçͼ3Ëùʾ£¬ÆäÖÐ×îÉϲãµÄWinsockÊÇÌṩ¸øÓ¦ÓòãµÄ½Ó¿Ú¡£NDISλÓÚÐÒéÇý¶¯²ãÏÂÃ棬Ӳ¼þÇý¶¯Miniport DriverÖ®ÉÏ¡£ÐÒéÇý¶¯²ãͨ¹ýµ÷ÓÃNDIS·â×°µÄ½Ó¿Úº¯Êý£¬ÊµÏÖÓëµ×²ãÓ²¼þÇý¶¯µÄ½»»¥¡£WinCEÏÂÍøÂçÇý¶¯³ÌÐòµÄÉè¼ÆÖ÷ÒªÊÇÔÚNDIS¹¹¼ÜÏ£¬Õë¶Ôʵ¼ÊµÄÓ²¼þ±àд´úÂ룬ʵÏÖÏàÓ¦µÄÖмä²ãMiniport Driver½Ó¿Úº¯Êý¡£ÆäÖ÷ÒªÍê³ÉµÄ¹¦ÄÜÓУºDM9000ÓëDP83640µÄ³õʼ»¯£»ÍøÂçÊý¾Ý°üµÄ·¢ËÍ£»ÍøÂçÊý¾ÝµÄ½ÓÊÕºÍÖжϡ£
ͼ3 NDIS²ã´Î½á¹¹
ʵÏÖÁËÒÔÌ«ÍøͨÐŵÄÇý¶¯³ÌÐòµÄ»ù´¡ÉÏ£¬ÓÃÓÚʱÖÓͬ²½¹¦ÄܵÄÓ¦ÓóÌÐòͨ¹ýUDPÐÒé·¢ËÍ¡¢½ÓÊÕʱÖÓͬ²½±¨ÎÄ£¬²¢½øÐмÓÈë¡¢ÌáÈ¡ºÍ½âÎöʱ¼ä´ÁµÈ²Ù×÷£¬ÕâЩ²Ù×÷ͨ¹ý¶ÁдDP83640ÄÚ²¿µÄ1588»ù±¾¼Ä´æÆ÷×飨PTP 1588 BASEREGISTERS£©ºÍ1588ÅäÖüĴæÆ÷×飨PIP 1588CONFIGURATION REGISTERS£©Íê³É¡£
4 ½áÂÛ
IEEE1588ÐÒéͨ¹ýÔÚÒÔÌ«ÍøÉÏ·¢ËͺͽÓÊÕͬ²½±¨ÎÄÀ´ÊµÏÖʱÖÓͬ²½£¬Í¬²½µÄ¾«¶ÈÈ¡¾öÓڼǼ±¨ÎÄ·¢ËͺͽÓÊÕʱ¼äµÄʱ¼ä´ÁµÄ¾«¶È£¬Òò´ËҪʵÏָ߾«¶ÈµÄʱÖÓͬ²½±ØÐëͨ¹ýÓ²¼þÖ§³ÖÔÚͨÐÅÐÒéµÄµ×²ã¼ÓÈëºÍÌáȡʱ¼ä´Á¡£±¾ÎÄͨ¹ýÔÚARM-WinCEǶÈëʽϵͳƽ̨ÉÏÉè¼ÆÁËʹÓÃDP836 40оƬ×÷ΪPHYÊÕ·¢Æ÷µÄÒÔÌ«Íø½Ó¿Úµç·¼°ÆäÇý¶¯³ÌÐò£¬ÊµÏÖÁËIEEE1588ÐÒéÔÚARM-WinCEƽ̨ÉϵÄÒÆÖ²£¬²¢´ïµ½Á˲»µÍÓÚ1 μsµÄͬ²½¾«¶È£¬Îª»ùÓÚARM-WinCEƽ̨µÄ²âÊÔÒÇÆ÷×齨·Ö²¼Ê½²âÊÔϵͳµì¶¨ÁË»ù´¡¡£
×÷ÕߣºÖÜ·É èï¾üÓ¢ Ñîͨǿ ÕÔ½ð»Ô À´Ô´£º¡¶µç×ÓÉè¼Æ¹¤³Ì¡·