New-Tech Magazine | August 2016 | Digital Edition

Embedded & Microprocessors Ÿ£¡¥ª ¯¡ª

»

1 ʸʥʩʠ

»

2 ʸʥʩʠ

¦¬®Ÿž Timer ž³ š¨ ²›¬ ©¨ ž¨¥ ±Ÿ›ªŸ §£³²®žž ´š Ÿ¨ª ¤¥› ´¨Ÿ±ž §¬®› ¦£¬®¨ Ÿ´Ÿš³ thread ž ´¦Ÿ¬® ´¦£¡´ ¦³ £žŸ §£®Ÿ°² Timer £¬Ÿ²£š ¦¥ ©£› Timer ž ´Ÿ²¡š §£¦£¨› Ÿš latency ž ¦³ ´ŸªŸ³ž jitter ž ´š žš²¨ 1 ²®«¨ ²Ÿ£š› ž¨²œŸ¢«£žž ©Ÿ£¦£¨ ¨ ž¦¬¨¦ ´£¨› jitter ž ²Ÿ £® ¡šž ´Ÿ£ª³Ÿ²±£¨ 50 ¦³ §£³²®ž› §£¬Ÿ²£š Ÿª£ž ¨ª³ jitter ž ž £Ÿ«£ª ²Ÿ›¬ Ÿžª³¨¨ §£ªŸ¨£« žš² ´Ÿ£ª³ Ÿ²±£¨ ¥ ²´Ÿ£› ©¢± £Ÿ¦´ jitter ž ¦³ Ÿ¦Ÿœ ž ¥³ £Ÿ«£ª› ¦Ÿœ£¬› ¦¬ ´Ÿ£Ÿª›³ ´Ÿ¨²Ÿ®¢¦®› ž¨²Ÿ®¢¦®› §£¦¬Ÿ®ž ž¦š¥ Ÿš §£¨Ÿ± ´Ÿ²Ÿ¨ §£›¬¨ ´°±¨› žŸ›œ jitter ž hyperthreading › ©´£ª §š §£±³¨¨ ¦³ ›² ²®«¨ ³£³¥ ¬›¢¨³ £²ž §¦Ÿ¥› ¦®¢¦ ´¡š ž›£¦¦ ž°£²ž ›š³¨ ¦¬ ´Ÿ²¡´ ²°ŸŸ£´ §£²›ž ¤£²°³ §£¬Ÿ²š ¢¬¨ ³£³¥ ž›£¦ž Ÿª£ž³ §£œ²¨ ´£¢«£ª£¨²¢ ž²Ÿ°› §ž£¦š ›£œž¦ §ž¦ §£ª´ŸªŸ §´Ÿ®£¬ £®¦ §£¬Ÿ²šž ´š ž²Ÿ°›³ ž£ž´ žš°Ÿ´ž ´Ÿ¨² 255 ¨ ´¡š ž›Ÿ¢ ´Ÿ¡® ´Ÿ£¢«£ª£¨²¢ ©´ª£´ ´£´œ²ž ²´Ÿ£ ž¥Ÿ¨ª §´Ÿ®£¬³ ž¦š¦ ´Ÿ®£¬› §£¬Ÿ²£šž Ÿ›³ ›°¨¦ §£¬£œ¨ ²³š¥ ´Ÿ£¢«£ª£¨²¢ž ´š §£¦›±¨ š¦ ž¥Ÿ¨ªž INtime ¦³ ´£ ¥²¨ žªŸ¥´ ¦°ª¦ ©´£ª ž³Ÿ²ž £Ÿ›£²› ´¦¬Ÿ®³ ž¦¬®ž ´¥²¬¨ ž´Ÿ£ž Asymmetric Multi Processing œŸ«¨ ´Ÿ›£¦ ´¥²¬¨ ¦³ š¦¨ ±´Ÿ¬ ©¬¢ª ž›£¦ ¦¥¦ ´Ÿ±£«®žŸ ©Ÿ²¥ ž ¦³ ´Ÿ²®žž ¦¥Ÿ ž¦¬®žž ¦Ÿ®£¢¦ ž›£¦ ¦¥ ¦³ ´£š¨°¬ ž°£²¦ ²³®š¨ ¤¥ ž¦ Ÿ°±Ÿž³ ¦Ÿ®£¢ž ´Ÿª¥Ÿ´›Ÿ ´Ÿ±£«®›

©ž£ª£› INtime ©£› ž²®ž¦ §£ª´£ªž §£›š³¨ž §ž Windows ¦ ´Ÿ±£«® ©Ÿ²¥ ´Ÿ›£¦ §£³²Ÿ³ §££ªŸ°£¡ §£ª±´ž ¦³ ´Ÿ±£«®ž §£²²Ÿ¬´¨³ §£¥£¦ž´žŸ ´¨š ©¨ › ¦Ÿ®£¢ ¦Ÿ®£¢ §£³²Ÿ³ §££¨£ª® Timers ££ ¦¬ £´³ ©£› INtime °¦ §£²›¬Ÿ¨ ´¨š ©¨ › ´Ÿ¬Ÿž ¦³ ¦Ÿ±Ÿ¢Ÿ²® §££± ž¦¬®žž ´Ÿ¥²¬¨ IPI Inter Processor Interrupt › ³¨´³¨³ šŸžŸ ²´Ÿ£› ©¢± overhead ³£ ¦Ÿ±Ÿ¢Ÿ²®¦ ¬±²› ©¨ ž ¦¥ ¦¬Ÿ® API ´Ÿš£²± ©ª³£ ´ª¥´¨ž ´¨²› ©¥ Ÿ¨¥ Windows ´›£›« ©£› §£±³¨¨ £œŸ« ž¨¥¦ ´Ÿ£ª¥Ÿ´ ²³®š¦ £¥ INtime ´›£›«¦ ´Ÿ›£›«ž £´³ ´š ´Ÿ›¦³¨³ ďüøùđ û ûćüĉ āĀ÷ ĀđĐă INtime đüĉčą÷ø đą÷ Ćąýă ă ćû đüćüĂđû ĆćĂüđ ÷ă Windows Ćđü÷Đ ĎċĈă ´¥²¬¨¨ 1 ²®«¨ ž³£²ž ²Ÿ¨š¥ ©¢± Ÿ¦£®š ²®«¨ §£±³ š£ž ´£¢«£ª£¨²¢ š£ž ©²Ÿ›¬ ž›Ÿœ´ž³ ž²¨Ÿ¡ £±³¨¨ ¦³ ¬Ÿ›±Ÿ š¨ ©¢± ›Ÿ¥£¬› §š §££ªŸ°£¡ §£ª±´ž¨ ´Ÿ¬£œ¨ ´Ÿ±£«® Ÿ¦³ ´Ÿ±£«®žŸ ž²¨Ÿ¡ž ›£¥² ´š Ÿª²œž ž¦¬®žž ´¥²¬¨ INtime ¨ ¦Ÿ®£¢ ¦›±¦ ž³¡¨ž §³¦ ¦¦¥ ´›²Ÿ¬¨ žª£š Windows ´¦›±´¨³ ´£²Ÿ ¡¨ ž±£«® £²¡š ›Ÿ±¬ª ž±£«®¦ ´¨²Ÿœ³ ´£ª¥´ žª›ª £¨£ª® Timer ¨ ¬Ÿ›± ¡ŸŸ²¨› ¦¬Ÿ®³ Timer £®¦ ž¨Ÿ £

§£ª£¢±¨Ÿ ´Ÿ›£¦ž ©£› §£¬Ÿ²šž ´š §£² ›¨ ž¬£œ®¦ ´¨²Ÿœ³ §£›š³¨ž ¦¬ ´Ÿ²¡´ž ´š ´œ°Ÿ¨ 2 ²®«¨ ²Ÿ£š› ´Ÿ£¢«£ª£¨²¢› ž°²³ 1 ²Ÿ£š¨ ´£ª¥´ž ž´Ÿš ¦³ ž£¨ ž£ž ž Ÿª²¡›³ ž²±¨› ´Ÿ›£¦ 4 ¦¬ ¦£›±¨› ´Ÿ›£¦ž¨ ´¡š ¦¥ hyperthreading Ÿ¨› INtime ´š ž°£²¨ ž¬›²š Ÿ ¥ žš°±ž›³ ´Ÿš²¦ ©´£ª ¦›±¦ §£¦Ÿ¥£ §££Ÿ¦´ £´¦› Timer £¬Ÿ²£š ž¬²®ž ¦¥ š¦¦ ´£¦¨£«±¨ ´Ÿ£¢«£ª£¨²¢ Ÿžª³¨¦ ¡š ¬Ÿ²š ¦³ ¯Ÿ¡¨ ´Ÿ¬£œ¨³ ´Ÿ±£«®¦ š£ž ´®«Ÿª ž¨œŸ £«£¢²¥› ¦Ÿ®£¢ž ´š ©Ÿ¡›¦ Ÿª²¡› .PC ¦ ¦®¢¦ ©´£ª INtime › Ethernet ¦ ´²Ÿ³±´ frame ž ´¨²› Ethernet ž £±³¨¨› ´Ÿ¥²¬¨› IP ž ´¨²› Ÿš ( Mac Layer ž›Ÿœ´¦ ž³£² §£´£¬¦ žª³£ Embedded Jitter Ÿ latency › Ethernet ž £±³¨¨› ©¥¦ §Ÿ± ´Ÿ«ª¦ ©´£ª ²Ÿ¨š¥ §£¥Ÿ¨ª ž´Ÿš ¦¬ §£¥£¦ž´ž ´Ÿ£Ÿ®£¬ §¬ ±¡³ ¦ ´š ¦£¬®¨³ ³Ÿ²ž ¤£¦ž´¦ ´´¦Ÿ ž›£¦ž ²´Ÿ£ žžŸ›œ ´Ÿ®£¬ Ethernet ž ±³¨¨ ´š §£œ£³¨ š¦ ©££¬ §š §¦Ÿš ¬°›¦ ©š¥ §œ ©´£ª ž³Ÿ²ž ´Ÿ£¢«£ª£¨²¢ž «£¢²¥ Ÿ´Ÿš ¤Ÿ´¨ port ¦¥ ´Ÿ›£¦¦ ž²®ž §¦³ ´³² «£¢²¥ Ÿš ports ž›Ÿ²¨ ´³² ²šŸ´¨³ £®¥ ´²¡š ž›£¦¦ ¤££³¦ ©´£ª ²¡š ²Ÿ£šž ¦³ ©Ÿ£¦¬ž Ÿ±¦¡› 3 ²®«¨ ²Ÿ£š› NIC ports ¦³ ´£²³®š žš°±ž ´œ°Ÿ¨ ¦¬ §£°² Windows Ÿ INtime ž› ´¥²¬¨› ´œ°Ÿ¨ ©Ÿ´¡´ž Ÿ±¦¡›Ÿ ž °¦ ž  PC Ÿ´Ÿš INtime ž£Ÿ²±ž ž£°²Ÿœ£®ªŸ± ²Ÿ›¬ ž²®žž ¦¥ ž› ¤³¨ž› ²›«Ÿ´ Distributed RTOS

83 l New-Tech Magazine

Made with