==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-1== PS7219 ´øÓиßËÙ´®ÐнӿڵÄ8λLED¿ØÖÆÇý¶¯Æ÷ Ò»¡¢¸ÅÊö PS7219ÊÇÒ»¸ö¸ßÐÔÄÜ£¬µÍ¼Û¸ñµÄ¶àλLEDÏÔʾÇý¶¯Æ÷¡£ËüÔÚÐÔÄÜÉÏÍêÈ«¼æÈÝMAX7219£¬²¢ÔöÌíÁËλÉÁµÈ¹¦ ÄÜ¡£Æä½Ó¿Ú²ÉÓÃÁ÷ÐеÄͬ²½´®ÐÐÍâÉè½Ó¿Ú£¨SPI£© £¬¿ÉÓëÈκÎÒ»ÖÖµ¥Æ¬»ú·½±ã½Ó¿Ú£¬²¢¿ÉͬʱÇý¶¯8λLED£¨»ò 64Ö»¶ÀÁ¢LED£© ¡£PS7219AÐÍÄÚÖÃÒ»¸ö¿É¿¿µÄ¦ÌP¼à¿Øµç·£¬¿ÉΪÍⲿÌṩһ¸öÂö¿í´óÓÚ140ms£¬´¥·¢ÃÅÏÞµäÐÍ ÖµÎª4.63VµÄ¸ßµçƽ¸´Î»Ðźš£ PS7219ÄÚ²¿¾ßÓÐ15¡Á8RAM¹¦ÄÜ¿ØÖÆÆ÷¼Ä´æÆ÷£¬¿É·½±ãÑ°Ö·¡¢¶ÔÿλÊý×ֿɵ¥¶À¿ØÖÆ¡¢Ë¢Ð£¬²»ÐèÖØдÕû ¸öÏÔʾÆ÷¡£ÏÔʾÁÁ¶È¿ÉÊý×Ö¿ØÖÆ£¬Ã¿Î»¶¼¾ßÓÐÉÁ˸ʹÄÜ¿ØÖÆ룬Òý½ÅCONÖøߵçƽ£¬¿É½ûÖ¹ËùÓÐÏÔʾ£¬´ïµ½ ½µµÍ¹¦ºÄµÄЧ¹û£¬µ«Í¬Ê±²¢²»Ó°Ïì¶Ô¿ØÖƼĴæÆ÷µÄÐ޸ġ£PS7219»¹ÓÐÒ»¸öµôµçģʽ¡¢Ò»¸öÔÊÐíÓû§´Ó1λÊý ÏÔʾµ½8λÊýÏÔʾѡÔñµÄɨÃè½çÏ޼ĴæÆ÷¡¢ºÍÒ»¸öÇ¿ÆÈËùÓÐLED½ÓͨµÄ²âÊÔģʽ¡£ N¸öPS7219¼¶Áª£¬¿ÉʵÏÖN¡Á8λLEDµÄÏÔʾ¡£ 1.1 Ó¦Óà l ÌõÐÎͼÏÔʾ l 7¶ÎÏÔʾ l ¹¤Òµ¿ØÖÆ l ÒDZí¿ØÖÆÃæ°å l LEDÄ£ÐÍÏÔʾ 1.2 Ìصã * ¿ÉÌṩ¸´Î»Ðźţ¨PS7219AÐÍ£© * 500kHz´®Ðнӿڣ¨16λ¿ØÖÆ×Ö£© * +4.5V¡«+5.5V¹¤×÷µçѹ * Çý¶¯¹²Òõ¼«LEDÏÔʾ * µ¥¸öLED¿ØÖÆ£¬É¨Ãè½çÏÞ¿ØÖÆ * °´Î»½øÐÐBCDÒëÂë/²»ÒëÂëÊý×Ö¿ØÖÆ * 16¼¶ÁÁ¶ÈÊý×Ö¿ØÖÆ * ÉϵçLEDȫϨ * ÌṩλÉÁ¹¦ÄÜ * È«ÁÁ¹¦ÄܲâÊÔ * ÄÚ²¿×Ô´øʱÖӵ緣¬ÎÞÐèÈκÎÍⲿԪ¼þ * ÌṩÓë¸÷ÖÖµ¥Æ¬»ú½Ó¿Ú³ÌÐò * 24½ÅDIP·â×° P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== 1.3 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ Òý½Å½á¹¹ 1.4 ±í1 ¹º»õ×ÊÁÏ Æ÷¼þÐͺŠ²úÆ·ÐͺŠPS7219CHG PS7219EGH PS7219ACHG PS7219AEHG ×¢£º** Ä£¿é·â×° 1.5 ζȲÎÊý 0¡æ¡«70¡æ -40¡æ¡«+85¡æ 0¡æ¡«70¡æ -40¡æ¡«+85¡æ ·â ×° 24½Å¿íË«ÁÐÖ±²å** 24½Å¿íË«ÁÐÖ±²å** 24½Å¿íË«ÁÐÖ±²å** 24½Å¿íË«ÁÐÖ±²å** µäÐÍÓ¦Óà ͼ 1 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-2== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ 1.6 ¼«ÏÞ²ÎÊý V+ ÊäÈëµçѹ£¨ÈÎÒ»½Å£© Á¬Ðø¹¦ºÄ£¨TA=+25¡æ£© ¹¤×÷ζȣºPS7219£¨A£©CHG PS7219£¨A£©EHG ´¢´æÎÂ¶È ÒýÏßζȣ¨º¸½Ó10Ã룩 ==24-3== -0.5VÖÁ+5.5V -0.5VÖÁV++0.5V 0.75W 0¡æ¡«70¡æ -40¡æ¡«+85¡æ -65¡æ¡«150¡æ +300¡æ ¹¤×÷Ìõ¼þ³¬³öËùÁеļ«ÏÞ²ÎÊý¿ÉÄܵ¼ÖÂÆ÷¼þµÄÓÀ¾ÃÐÔË𻵡£ÕâЩ½ö½öÊǼ«ÏÞ²ÎÊý£¬²¢²»Òâζ×ÅÔÚ¼«Ï޲ΠÊýÌõ¼þÏ£¬»òÔÚÈκÎÆäËü³¬³öÍƼö¹¤×÷Ìõ¼þËùʾ²ÎÊýµÄÇé¿öÏ£¬Æ÷¼þÄÜÓÐЧµØ¹¤×÷¡£ÑÓ³¤ÔÚ¼«ÏÞ²ÎÊýÌõ¼þÏ µÄ¹¤×÷ʱ¼ä»áÓ°ÏìÆ÷¼þµÄ¿É¿¿ÐÔ¡£ ¶þ¡¢ÌØÐÔ¼°·½¿éͼ 2.1 ±í2 µçÌØÐÔ£¨V+ =5V¡À10%£¬TA =25¡æ£¬³ý·ÇÁí×÷˵Ã÷£© µçÌØÐÔ²ÎÊý±í ²Î ¹¤×÷µçѹ ¹¤×÷µçÁ÷ ÏÔʾɨÃèËÙ¶È Î»ÎüÊÕµçÁ÷ ÿ¶ÎÌṩµçÁ÷ ÿλÎüÈëµçÁ÷ ÊäÈëÂß¼- Êý ÊäÈëµçÁ÷ Âß¼-¡®1¡¯ÊäÈëµçѹ Âß¼-¡®0¡¯ÊäÈëµçѹ Êä³ö¸ßµçƽ Êä³öµÍµçƽ Êý¾Ý±£³Öʱ¼ä DATAIN µ½ CLOCK Êý¾Ý½¨Á¢Ê±¼ä DATAIN µ½ CLOCK ʱÖӵ͵çƽʱ¼ä ʱÖӸߵçƽʱ¼ä Load ÐźÅΪ¸ßµÄʱ¼ä ÒªÇóÉϵ縴λÐźÅÓÐЧʱ¼ä ¿ÉÌṩµÄÉϵ縴λʱ¼ä ϵͳµôµç»Ö¸´ºó¸´Î»Ê±¼ä ¸´Î»¸ßµçƽ ¸´Î»µÍµçƽ ¸´Î»´¥·¢ÃÅÏÞ ±ê¼Ç·û V+ IOP FOSC IDIGI ISEGO IDIGO IIN VIH VIL VOH VOL ²âÊÔÌõ¼þ ËùÓеĶα»µãÁÁ ISEGO=10mA V+=5V ɨÃè8λLED TA=+25¡æ£¬V+=5V£¬VOUT=0.65V TA=+25¡æ£¬V+=5V£¬VOUT=V+£-1V λϨ VOUT=V+£-0.3V ×îС µäÐÍ ×î´ó 4.5 5.5 60 1.5 80 15 2 DIN CLK and LOAD VIN=OV VIN=V+ 3.5 -0.5 DOUT IOUT=-1mA IOUT=1¦ÌA DOUT IOUT=1.6mA µ¥Î» V mA kHz mA mA mA -1 1 5.5 0.8 ¦ÌA V V 0.4 V V 4.0 V+ TIDH 5 ¦Ìs TIDS TCKL TCKH TLDH TRST TRSA TRSB VREST VRSL VRST 5 2 2 50 50 140 240 140 240 0.9V+ ¦Ìs ¦Ìs ¦Ìs ¦Ìs ms ms ms V V V Éϵç Éϵ磨PS7219ACHG/AEHG£© £¨PS7219ACHG/AEHG£© £¨PS7219ACHG/AEHG£© PS7219£¨A£© PS7219£¨A£© 4.56 4.63 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 560 560 0£®4 4.70 P&S ==98-11-11== 2.2 2 3 LOAD DIN 4 CLK 5-11,14 12 13 23-17,16 24 15 DIG1~8 GND CON SA~G£¬DP V+ DOUT ±í4 D15 × ==24-4== Òý½Å˵Ã÷ ±í3 Òý½Å˵Ã÷ Òý½Å ÃûÄã 1 RST 2.3 Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ¹¦ ÄÜ ¸´Î»Òý½Å ×°ÔØÊý¾ÝÊäÈë¡£µ±LOADΪ¸ßµçƽ£¬´®ÐÐÊäÈëÊý¾ÝµÄ×îºó16λ±»Ëø¶¨ ´®ÐÐÊý¾ÝÊäÈë¡£ÔÚCLKµÄϽµÑØ£¬Êý¾Ý±»¼ÓÔص½ÄÚ²¿16λÒÆλ¼Ä´æÆ÷ÖРʱÖÓÊäÈë¡£×î¸ßƵÂÊΪ500KHz¡£ÔÚCLKµÄϽµÑØ£¬Êý¾Ý±»ÒÆÈëµ½ÄÚ²¿ÒÆ Î»¼Ä´æÆ÷ÖС£ÔÚʱÖÓµÄϽµÑØ£¬Êý¾Ý´ÓDOUTÊä³ö 8λÊý×ÖÇý¶¯Ïߣ¬Ëü´ÓÏÔʾÆ÷ÎüÈëµçÁ÷ µØ ÏÔʾ¿ØÖƶˣ¬µÍµçƽѡͨ£¬¸ßµçƽÏÔʾÎÞЧ 7¶ÎÇý¶¯Æ÷ºÍСÊýµãÏߣ¬Ëü¹©¸øÏÔʾÆ÷Ô´µçÁ÷ µçÔ´µçѹ ´®ÐÍÊý¾ÝÊä³ö¡£ÊäÈëµ½DINµÄÊý¾ÝÔÚ16.5¸öʱÖÓÖÜÆÚºóÔÚDOUT¶ËÓÐЧ ͨѶʱÐòͼ ´®ÐÐÊý¾Ý´«Ë͸ñʽ£¨16룩 D14 × D13 × D12 × D11 D10 D9 µØÖ· D8 D7 ¸ß D6 D5 D4 D3 Êý¾Ý D2 µÚһλ D1 D0 µÍ ×îºóλ ͼ2 ͨѶʱÐòͼ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-5== 2.4 ¸´Î»Ê±Ðò ͼ3-A PS7219ÐèÒªµÄ¸´Î»ÐźŠͼ3-B PS7219AÉϵçʱÌṩµÄ¸´Î»ÐźŠͼ3-C PS7219AµôµçʱÌṩµÄ¸´Î»ÐźŠע£º¾ßÌåÊý¾Ý¼û±í2¡£ Èý¡¢Ïêϸ˵Ã÷ 3.1 ¸´Î»ÐźŠPS7219ÉϵçʱRSTÒý½ÅÒªÇóÍⲿÌṩһ¸öµäÐ͵ĸߵçƽ¸´Î»Ðźţ¬¼ûͼ4¡£ PS7219AÄÚÖÃÒ»¸ö¦ÌP¼à¿Øµç·£¬¿ÉΪϵͳÆäËüICÌṩ¿É¿¿µÄ¸´Î»Ðźţ¬¼ûͼ5¡£Éϵçʱ£¬PS7219A¶ÔÍⲿ Ìṩһ¸ö¿É¿¿µÄ¸ßµçƽ¸´Î»Ðźţ¬Âö¿í´óÓÚ140ms¡£Æä¼à¿ØµçѹµäÐÍֵΪ4.63V¡£ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== ͼ4 3.2 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ÓÉÍⲿÌṩRSTÐźŵĵç· ͼ5 ==24-6== ¶ÔÍⲿÌṩRSTÐźŵĵç· ´®ÐÐÑ°Ö··½Ê½ ÓÉ16λÊý¾Ý°ü·¢Ë͵½DIN¶ËµÄ´®ÐÐÊý¾ÝÔÚÿ¸öCLKµÄϽµÑر»ÒÆÈëµ½ÄÚ²¿16λ¼Ä´æÆ÷ÖС£È»ºó£¬ÔÚLOAD µÄÉÏÉýÑØÊý¾Ý±»Ëø´æµ½Êý×Ö»ò¿ØÖƼĴæÆ÷ÖС£LOAD±ØÐëÔÚµÚ15¸öʱÖÓϽµÑØͬʱ»òÖ®ºó£¬µ«ÔÚÏÂÒ»¸öʱÖÓÏ ½µÑØ֮ǰ±ä¸ß£¬·ñÔòÊý¾Ý½«»á¶ªÊ§¡£DIN¶ËµÄÊý¾Ýͨ¹ýÒÆλ¼Ä´æÆ÷´«ËÍ£¬²¢ÔÚ16.5¸öʱÖÓÖÜÆÚºó³öÏÖÔÚDOUT ¶Ë¡£Êý¾ÝÔÚCLKµÄϽµÑØÊä³ö¡£Êý¾Ýλ±ê¼ÇΪD0-D15£¨±í4£© ¡£D8-D11Ϊ¼Ä´æÆ÷µØÖ·£¬D0-D7ΪÊý¾Ý£¬D12-D15 Ϊ¡°Î޹ء±Î»¡£½ÓÊÕµ½µÄµÚһλΪD15£¬ÊÇ×î¸ß루MSB£© ¡£ 3.3 Êý×ֺͿØÖƼĴæÆ÷ ±í5ÁгöÁË15¸ö¿ÉÑ°Ö·Êý×ֺͿØÖƼĴæÆ÷¡£Êý×ּĴæÆ÷ÓÉÒ»¸öƬÄÚ8¡Á8Ë«¶Ë¿ÚSRAMʵÏÖ¡£ËüÃÇ¿ÉÖ±½ÓÑ° Ö·£¬Òò´Ë¿É¶Ôµ¥¸öÊý½øÐиüв¢ÇÒͨ³£Ö»ÒªV+³¬¹ý3VÊý¾Ý¾Í¿É±£ÁôÏÂÈ¥¡£¿ØÖƼĴæÆ÷°üº¬ÓУºÒëÂ뷽ʽ¡¢ÏÔ Ê¾ÁÁ¶È¡¢É¨Ãè½çÏߣ¨É¨ÃèÊý×ÖµÄÊýÁ¿£© ¡¢Î»ÉÁ¡¢Í£»úºÍÏÔʾ²âÊÔ£¨ËùÓÐLED¾ù½Óͨ£© ¡£ÁíÍ⣬»¹°üº¬ÓÐÒ»¸ö·Ç ²Ù×÷£¨NO-OP£©¼Ä´æÆ÷£¬ÔÚ²»¸Ä±äÏÔʾ»ò²»Ó°ÏìÈÎÒâ¿ØÖƼĴæÆ÷Ìõ¼þÏÂÆ÷¼þ¼¶ÁªÊ±£¬ËüÔÊÐíÊý¾Ý´ÓDIN´«Ë͵½ DOUT¡£ 3.4 µôµçģʽ µ±PS7219¹¤×÷ÓÚµôµçģʽʱ£¬É¨ÃèÕñµ´Æ÷Í£Ö¹¹¤×÷£¬´Ëʱ½«CONÒý½ÅÖøߣ¬ËùÓеÄÊý×ÖÇý¶¯Æ÷±»À-µ½V+£¬ ÏÔʾÆ÷²»ÏÔʾ£¬¹¦ºÄ½µµ½×îµÍ¡£ÔÚÊý¾ÝºÍ¿ØÖƼĴæÆ÷ÖеÄÊý¾Ý±£³Ö²»±ä¡£ ×¢ÒâÍ£»ú·½Ê½¿É±»ÈκοØÖƹ¦ÄÜÈ¡Ïû£¬¼û±í6¡£ 3.5 ÆðʼÉϵç ÔÚÆðʼÉϵçʱ£¬ËùÓпØÖƼĴæÆ÷±»¸´Î»Îª00H£¬ÏÔʾÆ÷²»ÏÔʾ¡£Òò´ËÓû§ÔÚ¿ªÊ¼ÉèÖÃɨÃèÒ»¸öÊý×ÖµÄÏÔ Ê¾Ó¦ÓÃÇ°£¬±ØÐëÏȸøÏÔʾ¿ØÖƼĴæÆ÷±à³Ì£¬Ëü½«¸ù¾Ý¼Ä´æÆ÷ÄÚÈÝ£¬Ñ¡ÔñÊÇ·ñÒëÂëÊý¾Ý¼Ä´æÆ÷ÖеÄÊý¾Ý£¬Ñ¡Ôñ ÁÁ¶ÈµÄ´óС£¬¼°¿ØÖÆÉÁ˸ʹÄÜλ¡£ 3.6 ÒëÂ뷽ʽ¼Ä´æÆ÷ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-7== ÒëÂ뷽ʽ¼Ä´æÆ÷¶Ôÿ¸öÊý×ÖÉèÖÃBCDÂ루0-9¡¢E¡¢H¡¢L¡¢PºÍ¡ª£©»ò·Ç´úÂë²Ù×÷¡£¼Ä´æÆ÷ÖеÄÿһλÓëÒ» ¸öÊý×ÖÏà¶ÔÓ¦¡£Âß¼-¸ßµçƽѡÔñBCDÒëÂ룬¶øÂß¼-µÍµçƽ²»ÒëÂë¡£ÒëÂ뷽ʽ¿ØÖƼĴæÆ÷¸ñʽÈç±í7Ëùʾ¡£ µ±²ÉÓôúÂëBCDÒëÂ뷽ʽʱ£¬ÒëÂëÆ÷½öÕë¶ÔÊý×ּĴæÆ÷ÖÐÊý¾ÝµÄµÍËÄλD0-D3£¬¶ø²»¿¼ÂÇD4-D6λ¡£ÉèÖà СÊýµã£¨SEG DP£©µÄD7ÓëÒëÂëÆ÷Î޹أ¬Á¿ÎªÕýÂß¼-£¨D7=1ʱ½ÓͨСÊýµã£© ¡£´úÂëBCD×ÖÐÍÁÐÓÚ±í8ÖС£ µ±Ñ¡Ôñ²»ÒëÂ뷽ʽʱ£¬Êý¾ÝλD7-D0¶ÔÓ¦ÓÚLEDµÄ¶ÎÏßÈç±í9Ëùʾ¡£ ±í5 ¼Ä´æÆ÷µØÖ·»®·Ö ¼Ä´æÆ÷ D15-D12 ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á NO-OP DIGIT 1 DIGIT 2 DIGIT 3 DIGIT 4 DIGIT 5 DIGIT 6 DIGIT 7 DIGIT 8 DECODE MODE INTENSITY SCAN LIMIT SHUTDOWN FLASH_CON SLEEP_STATE DISPLAY TEST ±í6 µØÖ· D11 D10 0 0 0 0 0 0 0 0 0 1 0 1 0 1 0 1 1 0 1 0 1 0 1 0 1 1 1 1 1 1 1 1 D9 0 0 1 1 0 0 1 1 0 0 1 1 0 0 1 1 16½øÖÆ´úÂë £¨HEX£© ¡Á0 ¡Á1 ¡Á2 ¡Á3 ¡Á4 ¡Á5 ¡Á6 ¡Á7 ¡Á8 ¡Á9 ¡ÁA ¡ÁB ¡ÁC ¡ÁD ¡ÁE ¡ÁF D8 0 1 0 1 0 1 0 1 0 1 0 1 0 1 0 1 µôµç¿ØÖƼĴæÆ÷¸ñʽ£¨µØÖ·£¨Ê®Áù½øÖÆ£©=¡ÁCH£© ¼Ä´æÆ÷Êý¾Ý µØÖ·£¨HEX£© D7 D6 D5 D4 D3 D2 D1 ×¢ÊÍ ¿Õ²Ù×÷¼Ä´æÆ÷ Êý×Ö1¼Ä´æÆ÷ Êý×Ö2¼Ä´æÆ÷ Êý×Ö3¼Ä´æÆ÷ Êý×Ö4¼Ä´æÆ÷ Êý×Ö5¼Ä´æÆ÷ Êý×Ö6¼Ä´æÆ÷ Êý×Ö7¼Ä´æÆ÷ Êý×Ö8¼Ä´æÆ÷ ÒëÂë¿ØÖƼĴæÆ÷ ÁÁ¶È¿ØÖƼĴæÆ÷ ɨÃè½çÏ߼ĴæÆ÷ µôµç¿ØÖƼĴæÆ÷ ÉÁ˸¿ØÖƼĴæÆ÷ δʹÓà ²âÊÔ¿ØÖƼĴæÆ÷ D0 µôµçģʽ ×C × × × × × × × 0 Õý³£²Ù×÷ ¡ÁC ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á 1 ÒëÂ뷽ʽ¿ØÖƼĴæÆ÷¾ÙÀý£¨µØÖ·£¨Ê®Áù½øÖÆ£©=¡Á9H£© ¼Ä´æÆ÷Êý¾Ý D7 D6 D5 D4 D3 D2 D1 ±í7 16½øÖÆ´úÂë (HEX) D0 µÚ1-8λLED²»ÒëÂë 0 0 0 0 0 0 0 0 00 µÚ1λLEDÒëÂë 0 0 0 0 0 0 0 1 01 0 0 0 0 1 1 1 1 0F 1 1 1 1 1 1 1 1 FF µÚ2-8λLED²»ÒëÂë µÚ1-4λLEDÒëÂë µÚ5-8λLED²»ÒëÂë µÚ1-8λLED²»ÒëÂë P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== ±í8 P&S ´úÂëBCD×ÖÐÎ ÏÔʾ ×Ö·û D7* 0 1 2 3 4 5 6 7 8 9 E H L P ¿Õ ¼Ä´æÆ÷Êý¾Ý D6-D4 D3 D2 × 0 0 × 0 0 × 0 0 × 0 0 × 0 1 × 0 1 × 0 1 × 0 1 × 1 0 × 1 0 × 1 0 × 1 0 × 1 1 × 1 1 × 1 1 × 1 1 Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ D1 D0 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 0 0 0 1 1 0 1 1 DP* A 1 0 1 1 0 1 1 1 1 1 0 1 0 0 1 0 ¶ÎÂëµãÁÁ=1 B C D E F G 1 1 1 1 1 0 1 1 0 0 0 0 1 0 1 1 0 1 1 1 1 0 0 1 1 1 0 0 1 1 0 1 1 0 1 1 0 1 1 1 1 1 1 1 0 0 0 0 1 1 1 1 1 1 1 1 1 0 1 1 0 0 0 0 0 1 0 0 1 1 1 1 1 1 0 1 1 1 0 0 1 1 1 0 1 0 0 1 1 1 0 0 0 0 0 0 * СÊýµãÓÉλD7=1ÉèÖà ±í9 ²»ÒëÂ뷽ʽÊý¾ÝλºÍ¶ÔÓ¦¶ÎÏß ±í10 ÁÁ¶È¼Ä´æÆ÷¸ñʽ£¨µØÖ·£¨Ê®Áù½øÖÆÊý£©=×AH£© ¼Ä´æÆ÷Êý¾Ý Õ¼¿Õ±È D7 D6 D5 D4 D3 D2 D1 D0 1/32 £¨×î°µ£© × × × × 0 0 0 0 3/32 × × × × 0 0 0 1 5/32 × × × × 0 0 1 0 7/32 × × × × 0 0 1 1 9/32 × × × × 0 1 0 0 11/32 × × × × 0 1 0 1 13/32 × × × × 0 1 1 0 15/32 × × × × 0 1 1 1 17/32 × × × × 1 0 0 0 19/32 × × × × 1 0 0 1 16½øÖÆ´úÂë (HEX) ¡Á0 ¡Á1 ×2 ×3 ×4 ×5 ×6 ×7 ×8 ×9 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-8== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-9== Ðø±í10 Õ¼¿Õ±È D7 × × × × × 21/32 23/32 25/32 27/32 29/32 31/32 £¨×îÁÁ£© 3.7 ¡Á D6 × × × × × ¼Ä´æÆ÷Êý¾Ý D5 D4 D3 D2 × × 1 0 × × 1 0 × × 1 1 × × 1 1 × × 1 1 ¡Á ¡Á ¡Á 1 1 D1 1 1 0 0 1 16½øÖÆ´úÂë (HEX) ¡ÁA ¡ÁB ¡ÁC ¡ÁD ¡ÁE D0 0 1 0 1 0 1 1 ¡ÁF ÁÁ¶È¿ØÖƺÍÊý×Ö¼ä¿Õ°×ÏÔʾ ÁÁ¶È¼Ä´æÆ÷¸ñʽÁÐÓÚ±í10ÖС£×î´óÁÁ¶È³öÏÖ31/32µÄÕ¼¿Õ±È£¬ÒòÊý×Ö¼ä¿Õ°×ÏÔʾʱ¼äÉèÖÃΪÖÜÆÚµÄ1/32¡£ Êý×Ö¼ä¿Õ°×ÏÔʾʱ¼ä¿Éͨ¹ý¼õСռ¿Õ±ÈÀ´Ôö´ó¡£ 3.8 ɨÃè½çÏ߼ĴæÆ÷ ɨÃè½çÏ߼ĴæÆ÷ÉèÖÃËùÏÔʾÊý¾ÝµÄ¶àÉÙ£¬¿É´Ó1µ½8¡£ËüÃÇÒ»°ãÒÔɨÃèËÙÂÊ1.5kHz¡¢8λÊý¾Ý¡¢¶à·¸´Óà ·½Ê½ÏÔʾ¡£Èç¹ûÏÔʾµÄÊý×Ö½ÏÉÙ£¬É¨ÃèËÙÂÊΪ8fosc/N£¬ÆäÖÐNΪɨÃèÊý×ÖµÄÊýÁ¿¡£ËùɨÃèÊý×ÖµÄÊýÁ¿Ó°ÏìÏÔ Ê¾ÁÁ¶È£¬Èç¹ûɨÃè½çÏ߼ĴæÆ÷±»ÉèÖÃΪ3¸öÊý×Ö»ò¸üÉÙ£¬¸÷¸öÊý×ÖÇý¶¯Æ÷½«ÏûºÄ¹ýÁ¿µÄ¹¦ÂÊ¡£É¨Ãè½çÏ߼Ĵæ Æ÷¸ñʽÁÐÓÚ±í11ÖС£ 3.9 ÏÔʾ²âÊԼĴæÆ÷ ÏÔʾ²âÊԼĴæÆ÷¿ÉÒÔÁ½ÖÖ·½Ê½¹¤×÷£ºÕý³£ºÍÏÔʾ²âÊÔ¡£ÏÔʾ²âÊÔ·½Ê½Í¨¹ý²»¿¼ÂÇ£¨¼´²»¸Ä±ä£©ËùÓпØÖÆ ¼Ä´æÆ÷ºÍÊý×ּĴæÆ÷£¨°üÀ¨Í£»ú¼Ä´æÆ÷£©À´½ÓͨËùÓÐLED¡£ÔÚÏÔʾ²âÊÔ·½Ê½£¬8λÊý×Ö±»É¨Ã裬ռ¿Õ±ÈΪ31/32¡£ ±í12ÁгöÏÔʾ²âÊԼĴæÆ÷µÄ¸ñʽ¡£ ±í11 ɨÃè½çÏ߼ĴæÆ÷¸ñʽ£¨µØÖ·£¨Ê®Áù½øÖÆ£©=¡ÁBH£© ¼Ä´æÆ÷Êý¾Ý D7 D6 D5 D4 D3 D2 D1 D0 ½öÏÔʾλ1 × ¡Á ¡Á ¡Á ¡Á 0 0 0 ÏÔʾλ1ºÍ2 × ¡Á ¡Á ¡Á ¡Á 0 0 1 ÏÔʾλ1.2ºÍ3 ¡Á ¡Á ¡Á ¡Á ¡Á 0 1 0 ÏÔʾλ1.2.3ºÍ4 ¡Á ¡Á ¡Á ¡Á ¡Á 0 1 1 ÏÔʾλ1.2.3.4ºÍ5 ¡Á ¡Á ¡Á ¡Á ¡Á 1 0 0 ÏÔʾλ1.2.3.4.5ºÍ6 ¡Á ¡Á ¡Á ¡Á ¡Á 1 0 1 ÏÔʾλ1.2.3.4.5.6ºÍ7 ¡Á ¡Á ¡Á ¡Á ¡Á 1 1 0 ÏÔʾλ1.2.3.4.5.6.7ºÍ8 ¡Á ¡Á ¡Á ¡Á ¡Á 1 1 1 16½øÖÆ´úÂë (HEX) ¡Á0 ¡Á1 ¡Á2 ¡Á3 ¡Á4 ¡Á5 ¡Á6 ¡Á7 ±í12 ÏÔʾ²âÊԼĴæÆ÷¸ñʽ£¨µØÖ·£¨Ê®Áù½øÖÆ£©=¡ÁFH£© ¼Ä´æÆ÷Êý¾Ý D7 D6 D5 D4 D3 D2 D1 D0 Õý³£²Ù×÷ ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á 0 ²âÊÔģʽ ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á ¡Á 1 ×¢Ò⣺PS7219Òª±£³ÖÏÔʾ²âÊÔ·½Ê½£¨ËùÓÐLED½Óͨ£©Ö±µ½ÏÔʾ²âÊԼĴæÆ÷±»ÖØÐÂÖÃΪÕý³£¹¤×÷Ϊֹ¡£ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-10== ±í13 ÉÁ˸¿ØÖƼĴæÆ÷¸ñʽ£¨µØÖ·£¨Ê®Áù½øÖÆ£©=¡ÁDH£© ¼Ä´æÆ÷Êý¾Ý D7 D6 D5 D4 D3 D2 D1 D0 ¶ÔÓ¦LEDλ DIG8 DIG7 DIG6 DIG5 DIG4 DIG3 DIG2 DIG1 3.10 ÉÁ˸¿ØÖƼĴæÆ÷ ¿ØÖƼĴæÆ÷ÖеÄÿλÓëÊý×ÖλµÄ¶ÔÓ¦¹Øϵ¼û±í13¡£ÉÁ˸ʹÄÜλΪÕýÂß¼-£¨¼´Îª1£¬¶ÔӦλÉÁ˸£© ¡£ÉÁ˸µÄ ƵÂÊÓëɨÃè½çÏÞÓйأ¬Ò»°ãÇé¿öÏ£¬ÏÔʾÊý¾ÝΪ8룬ÉÁ˸ƵÂÊΪ1Hz¡£Èç¹ûÏÔʾµÄÊý×Ö½ÏÉÙ£¬ÉÁ˸ƵÂÊΪ8/N Hz£¬ÆäÖÐNΪɨÃèÊý×ÖµÄÊýÁ¿¡£ 3.11 ·Ç¹¤×÷£¨NO-OP£©¼Ä´æÆ÷ µ±PS7219¼¶ÁªÊ±£¬Ê¹Ó÷ǹ¤×÷¼Ä´æÆ÷¡£°ÑËùÓÐÆ÷¼þµÄLOADÊäÈëÁ¬½ÓÔÚÒ»Æ𡣶ø°ÑDOUTÁ¬½Óµ½ÏàÁÚPS7219 µÄDINÉÏ¡£DOUTΪCMOSÂß¼-µçƽÊä³ö£¬Ò×ÓÚÒÀ´Î¼¶ÁªPS7219µÄDIN¡£Óйش®ÐÍÊäÈë/Êä³öʱÐòµÄÏêϸ×ÊÁÏ£¬Çë ²Î¿´¡°´®ÐÍÑ°Ö··½Ê½¡±²¿·Ö¡£ÀýÈ磬Èç¹û4ƬPS7219¼¶Áª£¬ÄÇôҪ¶ÔµÚ4ƬоƬдÈëʱ£¬ÏÈ·¢ËÍËùÐèµÄ16λ×Ö£¬ Æäºó¸úÓÐÈý¸ö·Ç¹¤×÷´úÂ루ʮÁù½øÖÆÊýX0 XX²Î¿´±í4£© ¡£µ±LOAD±ä¸ßʱÊý¾Ý±»Ëø´æÔÚËùÓÐÆ÷¼þÖС£Ç°Èý¸öо Ƭ½ÓÊշǹ¤×÷Ö¸Á¶øµÚ4¸öоƬ½ÓÊÕÔ¤ÆÚµÄÊý¾Ý¡£ ËÄ¡¢Ó¦ÓÃ×ÊÁÏ 4.1 µçÔ´ÅÔ·¼°²¼Ïß ÒªÊ¹ÓÉ·åÖµÊý×ÖÇý¶¯Æ÷µçÁ÷ÒýÆðµÄÎƲ¨¼õµ½×îС£¬ÐèÔÚV+µ½GND¼ä¾¡¿ÉÄÜ¿¿½üоƬ´¦½ÓÒ»¸ö10¦ÌFµÄµç½â µçÈݺÍÒ»¸ö0.1¦ÌFµÄÌմɵçÈÝ¡£PS7219Ó¦·ÅÖÃÔÚ½ô¿¿½Ó¿Ú¿ØÖƵç·£¨MCU£©µÄµØ·½£¬±£Ö¤¶ÔÍâÒýÏß¾¡Á¿¶Ì£¬ ÒÔ¼õСÒýÏßµç¸ÐºÍµç´Å¸ÉÈÅ¡£ 4.2 ¼ÆË㹦ºÄ PS7219¹¦ºÄ¼ÆË㣨PD£© £º PD=£¨V+¡Á8mA£©+£¨V+-VLED£© £¨DUTY¡ÁISEGA¡ÁN£©+V+¡Á[DUTY¡ÁISEGB¡Á(8-N)] ÆäÖУºV+=µçÔ´µçѹ DUTY=ÓÉÁÁ¶È¿ØÖÆÌṩµÄÕ¼¿Õ±È N=Çý¶¯µÄ¶ÎµÄÊýÁ¿£¨<8¸ö£© VLED=LEDÕýÏòѹ½µ ISEGA=5mA ISEGB=V+/330¦¸ 4.3 ¼¶ÁªÇý¶¯Æ÷ ͼ6µÄÀý×ÓÖÐʹÓÃ3ÏߦÌP½Ó¿ÚÇý¶¯16¸öÊý×Ö¡£Èç¹ûÊý×ÖµÄÁ¿²»×ã8µÄ±¶Êý£¬¿É°ÑÁ½Æ¬Çý¶¯Æ÷µÄɨÃè½çÏᬎ ´æÆ÷ÉèÖÃΪÏàͬµÄÊýÁ¿ÒÔʹÁ½¸öÏÔʾÆ÷µÄÁÁ¶ÈÏàͬ¡£ÀýÈ磬ÈôÐèÒª12¸öÊý×Ö£¬Ôòͨ¹ý°ÑÁ½¸öɨÃè½çÏ߼ĴæÆ÷ ¶¼ÉèÖÃΪ6¸öÊý×Ö£¬Ê¹Ã¿¸öÏÔʾÆ÷ÓÃ6¸öÊý×Ö£¬´Ó¶øʹÁ½¸öÏÔʾÆ÷ÿ¸öÊý×ÖÓÐ1/6Õ¼¿Õ±È¡£Èç¹ûÐèÒª11¸öÊý×Ö£¬ Ôò°ÑÁ½¸öɨÃè½çÏ߼ĴæÆ÷¾ùÉèÖÃΪ6¸öÊý×Ö²¢Áô³öÒ»¸öÊý×ÖÇý¶¯Æ÷²»Á¬½Ó¡£Èç¹ûÒ»¸öÏÔʾÆ÷ÉèÖÃΪ6 ¸öÊý×Ö£¬ ¶øÁíÒ»¸öÉèÖÃΪ5¸öÊý×Ö£¬ÔòµÚ¶þ¸öÏÔʾÆ÷½«½ÏÁÁ£¬ÒòÆäÿ¸öÊý×ÖµÄÕ¼¿Õ±ÈΪ1/5 ¶øµÚÒ»¸öÏÔʾÆ÷µÄÕ¼¿Õ±È P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ Ϊ1/6¡£ÆäËü×ÊÁÏÇë²Î¿´¡°·Ç¹¤×÷¼Ä´æÆ÷¡± ¡£ ͼ6 ¼¶ÁªÓ¦Óà P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-11== ==98-11-11== 4.4 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-12== Íâ¹Û³ß´ç Îå¡¢½Ó¿Ú³ÌÐò PS7219£¨A£©¿É·½±ãµØÓë¸÷ÖÖµ¥Æ¬»ú½Ó¿Ú£¬ÈçMCS-51ϵÁУ¨Intel£¬ATMEL£¬LGµÈ¹«Ë¾µÄ51ϵÁУ© £¬MICROCHIP ¹«Ë¾µÄPIC16CXX£¬PIC17CXX¼°MOTOROLA¹«Ë¾µÄ68HXXµÈ¡£½Ó¿Ú²ÉÓÃ3ÏßSPI·½Ê½¡£ÏÂÃæ¸ø³öLG¹«Ë¾µÄGMS97C2051 ¼°MICROCHIP¹«Ë¾µÄPIC16C711ÓëPS7219£¨A£©Á¬½ÓµÄÓ¦ÓÃʵÀý¡£³ÌÐò¹¦Äܶ¼ÊÇ¿ØÖÆ8λLEDÒÀ´ÎÏÔʾΪ1£¬2£¬3¡8 £¬È»ºó½øÈë²âÊÔģʽ£¬×îºó¿ØÖÆÿλ½øÈëÉÁ˸״̬¡£GMS97C2051ÓëAT89C2051 ¼æÈÝ¡£ 5.1 A. PS7219£¨A£©ÓëGMS97C2051½Ó¿Ú ½Ó¿Ú·½Ê½ Ó²¼þÁ¬½ÓÈçÏÂͼËùʾ¡£GMS97C2051Õñµ´µç·²ÉÓÃ12MHz¾§Ìå¼°30pFµçÈÝ¡£ B. ½Ó¿Ú³ÌÐò ±¾³ÌÐòʹÓÃFranklin A51±àÒëͨ¹ý£¬²¢Í¨¹ýÁËÓ²¼þµç·ÑéÖ¤¹ýµÄ¡£ ;---------------------------------------------------------------------------- P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ; Copyright (c) 1998, P&S Technology Inc ; P&S Proprietary and Confidential ; SCCSID @(#)DISPLAY.ASM ; Author: CHUNRI FENG ; Filename: DISPLAY.ASM ; Release: 1.0 ; Revision History: ; Created JULY-7, 98 7/7/98 ;---------------------------------------------------------------------------;************************************************* LED1 EQU 08H LED2 EQU 09H LED3 EQU 0AH LED4 EQU 0BH LED5 EQU 0CH LED6 EQU 0DH LED7 EQU 0EH LED8 EQU 0FH INT_R1 EQU 10H INT_R0 EQU 11H INT_R2 EQU 12H NO_OP EQU 00H DIGIT0 EQU 01H DIGIT1 EQU 02H DIGIT2 EQU 03H DIGIT3 EQU 04H DIGIT4 EQU 05H DIGIT5 EQU 06H DIGIT6 EQU 07H DIGIT7 EQU 08H DECODE_MODE EQU 09H INTENSITY EQU 0AH SCAN_LIMIT EQU 0BH SHUTDOWN EQU 0CH FLASH_CON EQU 0DH £»¶¨Òå¿ØÖƼĴæÆ÷ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-13== ==98-11-11== P&S SLEEP_STATE EQU 0EH DISPLAY_TEST EQU 0FH DO BIT P1.1 LOAD BIT P1.0 CLK BIT P1.2 STACT_TOP EQU 30H Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ £»Î´Óà £»Í¨Ñ¶Òý½Å¶¨Òå ;************************************************* START: ORG 0000H LJMP START ORG 0040H MOV SP,#STACT_TOP CLR EA CLR LOAD LCALL T1S MOV LED1,#01H MOV LED2,#02H MOV LED3,#03H MOV LED4,#04H MOV LED5,#05H MOV LED6,#06H MOV LED7,#07H MOV LED8,#08H CON_COM: £»³ÌÐò¿ªÊ¼ £»³õʼ»¯PS7219¿ØÖƼĴæÆ÷ LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#0Fh MOV R1,#INTENSITY £»ÉèÖÃÁÁ¶ÈΪ×îÁÁ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T12mS £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#07H MOV R1,#SCAN_LIMIT £»ÉèÖÃɨÃè½çÏßΪ8λ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T12mS £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#0FFH MOV R1,#DECODE_MODE £»ÉèÖÃÿλÒëÂ뷽ʽΪBCDÒëÂë LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-14== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ LCALL T12mS £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#01H MOV R1,#SHUTDOWN £»ÉèÖù¤×÷·½Ê½ÎªÕý³£ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LED_COM: £»¿ØÖÆLED ÏÔʾ LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED1 MOV R1,#DIGIT0 £»LED1ÏÔʾΪ1 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED2 MOV R1,#DIGIT1 £»LED2ÏÔʾΪ2 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED3 MOV R1,#DIGIT2 £»LED3ÏÔʾΪ3 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED4 MOV R1,#DIGIT3 £»LED4ÏÔʾΪ4 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED5 MOV R1,#DIGIT4 £»LED5ÏÔʾΪ5 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED6 MOV R1,#DIGIT5 £»LED6ÏÔʾΪ6 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED7 MOV R1,#DIGIT6 £»LED7ÏÔʾΪ7 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,LED8 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-15== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ MOV R1,#DIGIT7 £»LED8ÏÔʾΪ8 LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T1S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#01H MOV R1,#DISPLAY_TEST £»½øÈë²âÊÔģʽ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T5S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#00H MOV R1,#DISPLAY_TEST £»Í˳ö²âÊÔģʽ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò LCALL T5S £»µ÷ÓÃÑÓʱ×Ó³ÌÐò MOV R0,#0FFH MOV R1,#FLASH_CON £»Ê¹ÄÜ8λLEDÉÁ˸ LCALL TRT £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò FINISH£ºAJMP FINISH TRT: £»´®ÐÐͨѶ×Ó³ÌÐòÈë¿Ú CLR LOAD £»LOADÐźÅΪµÍ NOP £»¿Õ²Ù×÷ MOV R2,#08H £»µÚÒ»´Î´«ËÍ8λÊý¾Ý MOV A,R1 £»µØÖ·´«ËÍ SETB CLK £»CLKÐźÅÖÃ¸ß RLC A £»ÒÆλ´«ËÍ MOV DO,C £» LCALL T88 £»µ÷ÓÃ32ÌõÖ¸ÁîÑÓʱ³ÌÐò CLR CLK LCALL T88 DJNZ R2,T_1 LCALL T88 £»µ÷ÓÃ32ÌõÖ¸ÁîÑÓʱ³ÌÐò MOV R2,#08H £»µÚ¶þ´Î8λÊý¾Ý´«ËÍ MOV A,R0 £»Êý¾Ý´«ËÍ T_2: SETB CLK T2T: LCALL T88 RLC A MOV DO,C LCALL T88 T_1: £»µ÷ÓÃ32ÌõÖ¸ÁîÑÓʱ³ÌÐò P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-16== ==98-11-11== P&S CLR CLK DJNZ R2,T_2 SETB LOAD SETB CLK LCALL T88 Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ £»´«ËÍÍê±Ï RET T88: MOV INT_R1,#01H £»32ÌõÖ¸ÁîÑÓʱ³ÌÐò TSM0: MOV INT_R0,#01FH TSM1: DJNZ INT_R0,TSM1 DJNZ INT_R1,TSM0 RET T12mS: MOV INT_R1,#18H £»12ºÁÃëÑÓʱ³ÌÐò TSM: MOV INT_R0,#0FFH TSM6: DJNZ INT_R0,TSM6 DJNZ INT_R1,TSM RET T1S: MOV INT_R1,#0FFH TSM3: MOV INT_R0,#0FFH TSM4: DJNZ INT_R0,TSM4 DJNZ INT_R1,TSM3 £»1ÃëÑÓʱ³ÌÐò RET T500mS: MOV INT_R2,#04H £»500ºÁÃëÑÓʱ³ÌÐò TSM8: MOV INT_R1,#0FFH TSM5: MOV INT_R0,#0F0H TSM7: DJNZ INT_R0,TSM7 DJNZ INT_R1,TSM5 DJNZ INT_R2,TSM8 RET T5S: MOV INT_R2,#01FH TSM9: MOV INT_R1,#0FFH TSMA: MOV INT_R0,#0FFH TSMB: DJNZ INT_R0,TSMB DJNZ INT_R1,TSMA DJNZ INT_R2,TSM9 £»2ÃëÑÓʱ³ÌÐò RET P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-17== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ ==24-18== END 5.2 PS7219£¨A£©ÓëPIC16C711½Ó¿Ú A. ½Ó¿Úµç· Ó²¼þÁ¬½ÓÈçÉÏͼËùʾ¡£PIC16C711ËùÓÃʱÖÓƵÂÊΪ4MHz¡£ B. ½Ó¿Ú³ÌÐò ÒÔϳÌÐò¹¦ÄÜͬ5.1Àý³Ì¹¦ÄÜÒ»Ñù¡£±¾³ÌÐòÊÇʹÓÃMicrochip¹«Ë¾µÄMPASM±àÒë³ÌÐò±àÒëͨ¹ýµÄ£¬²¢¾-¹ý Ó²¼þÁ¬½ÓÑéÖ¤µÄ¡£Àý³ÌÈç Ï£º ;---------------------------------------------------------------------------; ; Copyright (c) 1998, MICROCHIP Technology Inc ; P&S Proprietary and Confidential ; ; SCCSID @(#)TEST711.asm 1.0 9/28/98 ; ; Author : CHUNRI FENG ; Filename : TEST711.ASM ; Release : 1.0 ; Revision History : ; Created SEP-28,98 ; ;---------------------------------------------------------------------------;************************************************* TITLE "PS7219 TEST" £»±êÌâ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 P&S ==98-11-11== LIST P=16C711 #INCLUDE P16c711.INC £»´¦ÀíÆ÷ΪPIC16C711 TIMER1 EQU H'000C' TIMER2 EQU H'000D' SENT_ADDRESS EQU £»¶¨Òå·¢Ë͵ØÖ·¼Ä´æÆ÷ £»¶¨Òå·¢ËÍÊý¾Ý¼Ä´æÆ÷ EQU H'000F' LED1 EQU H'0010' LED2 EQU H'0011' LED3 EQU H'0012' LED4 EQU H'0013' LED5 EQU H'0014' LED6 EQU H'0015' LED7 EQU H'0016' LED8 EQU H'0017' COUNT EQU H'0018' NO_OP EQU 0X00 DIGIT1 EQU 0X01 DIGIT2 EQU 0X02 DIGIT3 EQU 0X03 DIGIT4 EQU 0X04 DIGIT5 EQU 0X05 DIGIT6 EQU 0X06 EQU 0X07 DIGIT8 EQU 0X08 DECODE EQU 0X09 INTSEN EQU 0X0A SCAN EQU 0X0B SHUT EQU 0X0C FLASH EQU 0X0D DISPLAY EQU 0X0F £»¶¨ÒåÑÓʱ¼Ä´æÆ÷ H'000E' SENT_DATA DIGIT7 Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ LOAD EQU 0 DOUT EQU 1 CLK EQU 2 ORG 0 GOTO START £»¶¨Òå¿ØÖƼĴæÆ÷ £»Í¨Ñ¶Òý½Å¶¨Òå £»³ÌÐò¿ªÊ¼ P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-19== ==98-11-11== P&S ORG Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ H'0010' ;************************* ; ÑÓʱ×Ó³ÌÐò ;************************* T1 MOVLW 33 MOVWF TIMER1 £»ÑÓʱ×Ó³ÌÐòT1 DEL_LOP CLRWDT DECFSZ TIMER1,1 GOTO DEL_LOP RETURN T2 MOVLW 0X04 MOVWF TIMER1 MOVLW 0XFF £»ÑÓʱ×Ó³ÌÐòT2 LOOP2 MOVWF TIMER2 LOOP1 CLRWDT DECFSZ GOTO DECFSZ GOTO TIMER2,1 LOOP1 TIMER1,1 LOOP2 RETURN SEND MOVLW 8 £»Êý¾Ý´«ËÍ×Ó³ÌÐòSEND MOVWF COUNT BCF PORTA,LOAD CALL T1 £»³õʼ»¯LOADÒý½Å SET_LP1 BCF STATUS,C BSF PORTA,CLK RLF SENT_ADDRESS,1 BCF PORTA,DOUT £»·¢ËÍ8λµØÖ· P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-20== ==98-11-11== P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ BTFSC STATUS,C BSF PORTA,DOUT BCF PORTA,CLK CALL T1 £»µ÷ÓÃÑÓʱ×Ó³ÌÐòT1 DECFSZ COUNT,1 £»COUNT¼õһΪ1ÁãÔò½áÊø´«ËÍ GOTO SET_LP1 BSF PORTA,CLK MOVLW 8 MOVWF COUNT BSF PORTA,LOAD SET_LP2 BCF STATUS,C £»·¢ËÍ8λÊý¾Ý BSF PORTA,CLK RLF SENT_DATA,1 BCF PORTA,DOUT BTFSC STATUS,C BSF PORTA,DOUT BCF PORTA,CLK CALL T1 £»µ÷ÓÃÑÓʱ×Ó³ÌÐòT1 DECFSZ COUNT,1 £»COUNT¼õһΪÁãÔò½áÊø´«ËÍ GOTO SET_LP2 BSF PORTA,CLK CALL T1 BSF PORTA,LOAD BSF PORTA,DOUT RETURN £»×Ó³ÌÐò·µ»Ø START BSF STATUS,RP0 MOVLW 0X18 MOVWF TRISA MOVLW 0XFF MOVWF TRISB BCF STATUS,RP0 CALL T1 CALL T1 £»Ö÷³ÌÐò P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-21== ==98-11-11== P&S MOVLW 0X12 MOVWF PORTA BCF PORTA,LOAD Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ CON_COM CALL T1 £»³õʼ»¯PS7219ÄÚ²¿RAM MOVLW 0X0A £»ÉèÖÃÁÁ¶ÈΪ×îÁÁ MOVWF SENT_ADDRESS MOVLW 0X0F MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X0B MOVWF SENT_ADDRESS MOVLW 0X07 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X09 MOVWF SENT_ADDRESS MOVLW 0XFF MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X0C MOVWF SENT_ADDRESS MOVLW 0X01 MOVWF SENT_DATA CALL SEND £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò £»ÉèÖÃɨÃè½çÏßΪ8λ £»µ÷Óô®ÐÐͨѶ×Ó³ÌÐò £»ÉèÖÃÿλÒëÂ뷽ʽΪBCDÒëÂë £»ÉèÖù¤×÷·½Ê½ÎªÕý³£ LED_CON CALL T1 £»LEDÏÔʾ¿ØÖƲ¿·Ö MOVLW 0X01 £»LED1ÏÔʾΪ1 MOVWF SENT_ADDRESS MOVLW 0X01 MOVWF SENT_DATA CALL SEND P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-22== ==98-11-11== P&S CALL T1 MOVLW 0X02 MOVWF SENT_ADDRESS MOVLW 0X02 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X03 MOVWF SENT_ADDRESS MOVLW 0X03 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X04 MOVWF SENT_ADDRESS MOVLW 0X04 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X05 MOVWF SENT_ADDRESS MOVLW 0X05 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X06 MOVWF SENT_ADDRESS MOVLW 0X06 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X07 MOVWF SENT_ADDRESS MOVLW 0X07 MOVWF SENT_DATA Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ £»LED2ÏÔʾΪ2 £»LED3ÏÔʾΪ3 £»LED4ÏÔʾΪ4 £»LED5ÏÔʾΪ5 £»LED6ÏÔʾΪ6 £»LED7ÏÔʾΪ7 P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-23== ==98-11-11== P&S CALL SEND CALL T1 MOVLW 0X08 MOVWF SENT_ADDRESS MOVLW 0X08 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X0F MOVWF SENT_ADDRESS MOVLW 0X01 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X0F MOVWF SENT_ADDRESS MOVLW 0X00 MOVWF SENT_DATA CALL SEND CALL T1 MOVLW 0X0D MOVWF SENT_ADDRESS MOVLW 0XFF MOVWF SENT_DATA CALL SEND FINISH Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ £»LED8ÏÔʾΪ8 £»½øÈë²âÊÔģʽ £»Í˳ö²âÊÔģʽ £»Ê¹ÄÜ8λLEDÉÁ˸ CLRWDT GOTO £»ÇåWatch Dog FINISH END £»½áÊø P&S Î人Á¦Ô´µç×ӹɷÝÓÐÏÞ¹«Ë¾ µØ Ö· :ºþ±±Î人ÊÐ׿µ¶ÈªÂ·15ºÅ ÐÅ Ïä :Î人ÊÐ70020ÐÅÏä µç »° :(86) (027£©87493500¡«87493506 P&SÍø Íø Ö· :http://www.p8s.com ÓÊ ±à :430079 ´« Õæ :(86) (027) 87491166, 87493493 ==24-24==