ÐÅÏ¢¹¤³ÌѧԺʵÑ鱨¸æ
¿Î³ÌÃû³Æ£ºÎ¢»úÔÀíÓë½Ó¿Ú¼¼Êõ
³É ¼¨£º ʵÑéÏîÄ¿Ãû³Æ£º¶¨Ê±Æ÷/¼ÆÊýÆ÷ʵÑé ʵÑéʱ¼ä£º2016.12.6 °à¼¶£º ÐÕÃû£º ѧºÅ£º
Ö¸µ¼ÀÏʦ(Ç©Ãû)£º Ò»¡¢Êµ Ñé Ä¿ µÄ
1. ÕÆÎÕ 8254 µÄ¹¤×÷·½Ê½¼°Ó¦Óñà³Ì¡£ 2. ÕÆÎÕ 8254 µäÐÍÓ¦Óõ緵Ľӷ¨¡£ ¶þ¡¢Êµ Ñé Éè ±¸
PC »úһ̨¡¢TD-PITD+ʵÑéϵͳһÌס£ Èý¡¢Êµ Ñé Ô Àí
8254 ÊÇ Intel ¹«Ë¾Éú²úµÄ¿É±à³Ì¼ä¸ô¶¨Ê±Æ÷¡£ÊÇ 8253 µÄ¸Ä½øÐÍ£¬±È 8253 ¾ßÓиüÓÅÁ¼µÄÐÔÄÜ¡£8254 ¾ßÓÐÒÔÏ»ù±¾¹¦ÄÜ£º
£¨1£©ÓÐ 3 ¸ö¶ÀÁ¢µÄ 16 λ¼ÆÊýÆ÷¡£
£¨2£©Ã¿¸ö¼ÆÊýÆ÷¿É°´¶þ½øÖÆ»òÊ®½øÖÆ£¨BCD£©¼ÆÊý¡£ £¨3£©Ã¿¸ö¼ÆÊýÆ÷¿É±à³Ì¹¤×÷ÓÚ 6 ÖÖ²»Í¬¹¤×÷·½Ê½¡£
£¨4£©8254 ÿ¸ö¼ÆÊýÆ÷ÔÊÐíµÄ×î¸ß¼ÆÊýƵÂÊΪ 10MHz£¨8253 Ϊ 2MHz£©¡£
£¨5£©8254 ÓжÁ»ØÃüÁ8253 ûÓУ©£¬³ýÁË¿ÉÒÔ¶Á³öµ±Ç°¼ÆÊýµ¥ÔªµÄÄÚÈÝÍ⣬»¹¿ÉÒÔ¶Á³ö״̬¼Ä´æÆ÷µÄÄÚÈÝ¡£
£¨6£©¼ÆÊýÂö³å¿ÉÒÔÊÇÓйæÂɵÄʱÖÓÐźţ¬Ò²¿ÉÒÔÊÇËæ»úÐźš£¼ÆÊý³õÖµ¹«Ê½Îª£º n=f CLKi ¡Âf OUTi¡¢ ÆäÖÐf CLKi ÊÇÊäÈëʱÖÓÂö³åµÄƵÂÊ£¬f OUTi ÊÇÊä³ö²¨ÐÎµÄÆµÂÊ¡£
ͼ 5-1 ÊÇ 8254 µÄÄÚ²¿½á¹¹¿òͼºÍÒý½Åͼ£¬ËüÊÇÓÉÓë CPU µÄ½Ó¿Ú¡¢ÄÚ²¿¿ØÖƵç·ºÍÈý¸ö¼ÆÊýÆ÷×é³É¡£8254 µÄ¹¤×÷·½Ê½ÈçÏÂÊö£º
£¨1£©·½Ê½ 0£º¼ÆÊýµ½ 0 ½áÊøÊä³öÕýÔ¾±äÐźŷ½Ê½¡£ £¨2£©·½Ê½ 1£ºÓ²¼þ¿ÉÖØ´¥·¢µ¥ÎÈ·½Ê½¡£ £¨3£©·½Ê½ 2£ºÆµÂÊ·¢ÉúÆ÷·½Ê½¡£ £¨4£©·½Ê½ 3£º·½²¨·¢ÉúÆ÷¡£ £¨5£©·½Ê½ 4£ºÈí¼þ´¥·¢Ñ¡Í¨·½Ê½¡£ £¨6£©·½Ê½ 5£ºÓ²¼þ´¥·¢Ñ¡Í¨·½Ê½¡£
µÚ 1 Ò³ ¹² 12 Ò³
ͼ 5-1 8254 µÄÄÚ²¿½Ó¿ÚºÍÒý½Å
8254 µÄ¿ØÖÆ×ÖÓÐÁ½¸ö£ºÒ»¸öÓÃÀ´ÉèÖüÆÊýÆ÷µÄ¹¤×÷·½Ê½£¬³ÆÎª·½Ê½¿ØÖÆ×Ö£»ÁíÒ»¸öÓÃÀ´ÉèÖöÁ»ØÃüÁ³ÆÎª¶Á»Ø¿ØÖÆ×Ö¡£ÕâÁ½¸ö¿ØÖÆ×Ö¹²ÓÃÒ»¸öµØÖ·£¬ÓɱêʶλÀ´Çø·Ö¡£¿ØÖÆ×Ö¸ñʽÈç±í 5-1~5-3 Ëùʾ¡£
±í5-1 8254 µÄ·½Ê½¿ØÖÆ×Ö¸ñʽ
±í5-2 8254 ¶Á³ö¿ØÖÆ×Ö¸ñʽ
±í5-3 8254 ״̬×Ö¸ñʽ
8254 ʵÑéµ¥Ôªµç·ͼÈçÏÂͼËùʾ£º
µÚ 2 Ò³ ¹² 12 Ò³
ͼ5-2 8254 ʵÑéµç·ÔÀíͼ
ËÄ¡¢Êµ Ñé ÄÚ ÈÝ Óë ²½ Öè
1. ¼ÆÊýÓ¦ÓÃʵÑé
±àд³ÌÐò£¬½« 8254 µÄ¼ÆÊýÆ÷ 0 ÉèÖÃΪ·½Ê½ 3£¬¼ÆÊýֵΪʮ½øÖÆÊý 4£¬Óõ¥´ÎÂö³å KK1£«×÷Ϊ CLK0 ʱÖÓ£¬OUT0 Á¬½Ó INTR1£¬Ã¿µ± KK1£«°´¶¯ 5 ´Îºó²úÉúÖжÏÇëÇó£¬ÔÚÆÁÄ»ÉÏÏÔʾ×Ö·û¡°5¡±¡£
ʵÑé²½Ö裺
(1) ʵÑé½ÓÏßÈçͼ 5-3 Ëùʾ¡£
ͼ5-3 (a) 8254 ¼ÆÊýÓ¦ÓÃʵÑé½ÓÏßͼ
µÚ 3 Ò³ ¹² 12 Ò³
ͼ5-3(b) 8259¼ÆÊýÓ¦ÓÃʵÑéʵÎï½ÓÏßͼ
(2) ÔËÐÐ Tdpit ¼¯³É²Ù×÷Èí¼þ£¬½øÈë±à¼µ÷ÊÔ¼¯³É»·¾³¡£
(3) ¸ù¾Ý³ÌÐòÉè¼ÆÊ¹ÓÃÓïÑÔ²»Í¬£¬ÔÚ¡°ÓïÑÔÉèÖᱲ˵¥ÏîÖÐÉèÖÃËùʹÓõÄÓïÑÔ¡£Èçͼ 5-4Ëùʾ¡£¸ÃÏîÒ»¾ÉèÖ㬻áÔÙÏÂ´ÎÆô¶¯ºóÈÔ±£³Ö²»±ä¡£
ͼ 5-4 ÉèÖÃÓïÑÔ»·¾³
(4) ¿ªÊ¼Ð½¨Îļþ½øÐбà³Ì¡£µã»÷¡°Îļþ¡±²Ëµ¥ÏîÖеġ°Ð½¨¡±£¬¿ÉÒÔн¨Ò»¸ö¿Õ°×Îĵµ¡£Ä¬ÈÏÃûΪ Td-pit1¡£Èçͼ 5-5Ëùʾ¡£
ͼ 5-5 н¨¿Õ°×Îĵµ
(5) ±àд³ÌÐò£¬Èçͼ 5-6 Ëùʾ£¬²¢±£´æ£¬´ËʱÈí¼þ»áÌáʾÊäÈëеÄÎļþÃû£¬ÊäÈëÎļþÃûºóµã»÷±£´æ¡£
µÚ 4 Ò³ ¹² 12 Ò³
ͼ 5-6 8254¼ÆÊýÓ¦ÓÃʵÑé³ÌÐò±à¼½çÃæ
(6) µã»÷
£¬±àÒëÎļþ£¬Èô³ÌÐò±àÒëÎÞÎó£¬È»ºóÔÙµã»÷
£¬Á¬½Ó³ÌÐò¡£±àÒëÁ¬½Ó³É¹¦»áÔÚÊä³öÐÅÏ¢
À¸ÏÔʾÊä³öÐÅÏ¢£¬Èçͼ 5-7 Ëùʾ¡£
ͼ 5-7 ±àÒëÁ¬½ÓÊä³öÐÅÏ¢
(7) ±àÒëÁ¬½Ó³É¹¦ºó¿ÉÒÔµã»÷
£¬ÔËÐгÌÐò£¬°´¶¯ KK1£«²úÉúµ¥´ÎÂö³å£¬¹Û²ìʵÑéÏÖÏó¡£
(8) ¿É¸Ä±ä¼ÆÊýÖµ£¬ÑéÖ¤ 8254 µÄ¼ÆÊý¹¦ÄÜ¡£ 2. ¼ÆÊýÓ¦ÓÃʵÑé
±àд³ÌÐò£¬½« 8254 µÄ¼ÆÊýÆ÷ 2 ÉèÖÃΪ·½Ê½ 3£¬ÓÃÐźÅÔ´ 1.8432MHz ×÷Ϊ CLK2 ʱÖÓ£¬¼ÆÊý³õֵΪ 100£¬Ï൱¶Ô CLK2 ½øÐÐ 100 ·ÖƵ¡£ÔÚ OUT2 Êä³öƵÂÊΪ 18.432KHz µÄʱÖÓ¡£½« OUT2 Á¬½Óµ½¼ÆÊýÆ÷ 0 µÄ CLK0£¬ÉèÖüÆÊýÆ÷ 0 Ò²¹¤×÷ÔÚ·½Ê½ 3£¬¼ÆÊý³õֵΪ 18432£¬Ï൱ÊǽøÐÐ 18432 ·ÖƵ¡£ÔòÔÚ OUT0 µÃµ½ 1Hz µÄÊä³ö¡£
ʵÑé²½Ö裺
(1) ½ÓÏßͼÈçͼ 5-8 Ëùʾ£¬°´Í¼½ÓÏß¡£
µÚ 5 Ò³ ¹² 12 Ò³