ÄÚÈÝ·¢²¼¸üÐÂʱ¼ä : 2024/12/23 9:45:09ÐÇÆÚÒ» ÏÂÃæÊÇÎÄÕµÄÈ«²¿ÄÚÈÝÇëÈÏÕæÔĶÁ¡£
µ¥Æ¬»úÊý×Öµçѹ±í-------------------------------------------------------------------Î÷ÄϿƼ¼´óѧ³ÇÊÐѧԺ ¿ªÊ¼ Æô¶¯×ª»» A/Dת»»½áÊä³öת»»½á¹û Êýֵת»» ÏÔʾ ½áÊø 4.2.3 ÏÔʾ×Ó³ÌÐò
ͼ4.2 A/Dת»»Á÷³Ìͼ
ÏÔʾ×Ó³ÌÐò²ÉÓö¯Ì¬É¨ÃèʵÏÖËÄλÊýÂë¹ÜµÄÊýÖµÏÔʾ£¬ÔÚ²ÉÓö¯Ì¬É¨ÃèÏÔʾ·½Ê½Ê±£¬ÒªÊ¹µÃLEDÏÔʾµÄ±È½Ï¾ùÔÈ£¬ÓÖÓÐ×ã¹»µÄÁÁ¶È£¬ÐèÒªÉèÖÃÊʵ±µÄɨÃèƵÂÊ£¬µ±É¨ÃèƵÂÊÔÚ70HZ×óÓÒʱ£¬Äܹ»²úÉú±È½ÏºÃµÄÏÔʾЧ¹û£¬Ò»°ã¿ÉÒÔ²ÉÓüä¸ô10ms¶ÔLED½øÐж¯Ì¬É¨ÃèÒ»´Î£¬Ã¿Ò»Î»LEDµÄÏÔʾʱ¼äΪ1ms¡£
ÔÚ±¾Éè¼ÆÖУ¬ÎªÁ˼ò»¯Ó²¼þÉè¼Æ£¬Ö÷Òª²ÉÓÃÈí¼þ¶¨Ê±µÄ·½Ê½£¬¼´Óö¨Ê±Æ÷0Òç³öÖжϹ¦ÄÜʵÏÖ11¦Ìs¶¨Ê±£¬Í¨¹ýÈí¼þÑÓʱ³ÌÐòÀ´ÊµÏÖ5msµÄÑÓʱ¡£
4.3 ·ÂÕæ
4.3.1 Èí¼þµ÷ÊÔ
Èí¼þµ÷ÊÔµÄÖ÷ÒªÈÎÎñÊÇÅŲé´íÎ󣬴íÎóÖ÷Òª°üÀ¨Âß¼ºÍ¹¦ÄÜ´íÎó£¬ÕâЩ´íÎóÓÐЩÊÇÏÔÐԵģ¬¶øÓÐЩÊÇÒþÐεģ¬¿ÉÒÔͨ¹ý·ÂÕ濪·¢ÏµÍ³·¢ÏÖÖ𲽸ÄÕý¡£ProteusÈí¼þ¿ÉÒÔ¶Ô»ùÓÚ΢¿ØÖÆÆ÷µÄÉè¼ÆÁ¬Í¬ËùÓеÄÖÜΧµç×ÓÆ÷¼þÒ»Æð·ÂÕ棬Óû§ÉõÖÁ¿ÉÒÔʵʱ²ÉÓÃÖîÈç
Ò³ µÚ 17
µ¥Æ¬»úÊý×Öµçѹ±í-------------------------------------------------------------------Î÷ÄϿƼ¼´óѧ³ÇÊÐѧԺ
LED/LCD¡¢¼üÅÌ¡¢RS232Öն˵ȶ¯Ì¬ÍâÉèÄ£ÐÍÀ´¶ÔÉè¼Æ½øÐн»»¥·ÂÕæ¡£ProteusÖ§³ÖµÄ΢´¦ÀíоƬ°üÀ¨8051ϵÁС¢AVRϵÁС¢PICϵÁС¢HC11ϵÁм°Z80µÈµÈ¡£Proteus¿ÉÒÔÍê³Éµ¥Æ¬»úϵͳÔÀíͼµç·»æÖÆ¡¢PCBÉè¼Æ£¬¸üΪÏÔÖøµãµÄÌصãÊÇ¿ÉÒÔÓëu Visions3 IDE¹¤¾ßÈí¼þ½áºÏ½øÐбà³Ì·ÂÕæµ÷ÊÔ[8]¡£
±¾ÏµÍ³µÄµ÷ÊÔÖ÷ÒªÒÔÈí¼þΪÖ÷£¬ÆäÖУ¬ÏµÍ³µç·ͼµÄ»æÖƺͷÂÕæÎÒ²ÉÓõÄÊÇProteusÈí¼þ£¬¶ø³ÌÐò·½Ã棬²ÉÓõÄÊÇ»ã±àÓïÑÔ£¬ÓÃKeilÈí¼þ½«³ÌÐòдÈ뵥Ƭ»ú¡£ 4.3.2 ÏÔʾ½á¹û¼°Îó²î·ÖÎö
ÏÔʾ½á¹û
1.µ±IN0ÊäÈëµçѹֵΪ3.50Vʱ£¬ÏÔʾ½á¹ûÈçͼ4.3Ëùʾ¡£²âÁ¿Îó²îΪ0.02V¡£
ͼ4.3
Ò³ µÚ 18
µ¥Æ¬»úÊý×Öµçѹ±í-------------------------------------------------------------------Î÷ÄϿƼ¼´óѧ³ÇÊÐѧԺ
ͼ4.4
2. µ±IN0¿ÚÊäÈëµçѹֵΪ2.50Vʱ£¬ÏÔʾ½á¹ûÈçͼ4.4¡£²âÁ¿Îó²îΪ0.02V¡£ÊäÈëµçѹΪ3.50Vʱ£¬LEDµÄÏÔʾ½á¹ûΪ3.48V£¬ÊäÈëµçѹΪ3.50Vʱ£¬LEDµÄÏÔʾ½á¹ûΪ3.48V£¬ÔÚ¶à´ÎÊÔÑéÖУ¬µç·ÖÐÒDZíµÄÖµ×ÜÓëLEDÆÁÏÔʾµÄÖµÓÐÒ»¶¨µÄ²îÖµ£¬ÒòΪÔÚÊýģת»»¼°LEDÆÁÏÞÁ÷µç×èÉϵĵçѹËðºÄ£¬Ê¹µ½´ï×îÖÕLEDµÄµçѹÓÐÂÔ΢½µµÍÊÇÕý³£µÄ£¬ÔÚÎó²î·¶Î§Ö®ÄÚ¡£
ʵÎïÔËÐÐͼ£ºÏµÍ³Í¨µçºó£¬Á½¸öµçѹÊý¾Ý½»ÌæÑ»·ÏÔʾ£¬Ê±¼ä¼ä¸ôΪ1s¡£
Ò³ µÚ 19
µ¥Æ¬»úÊý×Öµçѹ±í-------------------------------------------------------------------Î÷ÄϿƼ¼´óѧ³ÇÊÐѧԺ
½áÊøÓï
¾¹ýÕâÒ»¶Îʱ¼äµÄŬÁ¦£¬¿Î³ÌÉè¼Æ»ùÓÚµ¥Æ¬»úµÄÊý×Öµçѹ±í»ù±¾Íê³É¡£µ«Éè¼ÆÖеÄһЩϸ΢֮´¦²»ÊǺÜÍêÉÆ¡£ÔÚµç·ÖÐÓÃProteusÈí¼þʵÏÖÁË·ÂÕ棬ÔÚÕâ¹ý³ÌÖУ¬Ê¹ÎÒ¶Ôµç·Éè¼ÆºÍµ¥Æ¬»úµÄʹÓõȶ¼ÓÐÁËеÄÈÏʶ¡£Í¨¹ýÕâ´ÎÉè¼Æѧ»áÁËProteusºÍKeilÈí¼þµÄʹÓ÷½·¨£¬ÕÆÎÕÁË´ÓϵͳµÄÐèÒª¡¢·½°¸µÄÉè¼Æ¡¢¹¦ÄÜÄ£¿éµÄ»®·Ö¡¢ÔÀíͼµÄÉè¼ÆºÍµç·ͼµÄ·ÂÕæµÄÉè¼ÆÁ÷³Ì£¬»ýÀÛÁ˲»ÉÙ¾Ñé¡£
»ùÓÚµ¥Æ¬»úµÄÊý×Öµçѹ±íʹÓÃÐÔÇ¿¡¢½á¹¹¼òµ¥¡¢³É±¾µÍ¡¢Íâ½ÓÔª¼þÉÙ¡£ÔÚʵ¼ÊÓ¦Óù¤×÷Ó¦Äܺ㬲âÁ¿µçѹ׼ȷ£¬¾«¶È¸ß¡£ÏµÍ³¹¦ÄÜ¡¢Ö¸±ê´ïµ½ÁË¿ÎÌâµÄÔ¤ÆÚÒªÇó¡¢ÏµÍ³ÔÚÓ²¼þÉè¼ÆÉϳä·Ö¿¼ÂÇÁË¿ÉÀ©Õ¹ÐÔ£¬¾¹ýÒ»¶¨µÄ¸ÄÔ죬¿ÉÒÔÔö¼Ó¹¦ÄÜ¡£±¾ÎÄÉè¼ÆÖ÷ҪʵÏÖÁËÊý×Öµçѹ±í²âÁ¿Ò»Â·µçѹµÄ¹¦ÄÜ£¬Ïêϸ˵Ã÷ÁË´ÓÔÀíͼµÄÉè¼Æ¡¢µç·ͼµÄ·ÂÕæÔÙµ½Èí¼þµÄµ÷ÊÔ¡£
ͨ¹ý±¾´ÎÉè¼Æ£¬ÎÒ¶Ôµ¥Æ¬»úÕâÃÅ¿ÎÓÐÁ˽øÒ»²½µÄÁ˽⡣ÎÞÂÛÊÇÔÚÓ²¼þÁ¬½Ó·½Ã滹ÊÇÔÚÈí¼þ±à³Ì·½Ãæ¡£±¾´ÎÉè¼Æ²ÉÓÃÁËAT89C51µ¥Æ¬»úоƬ£¬ÓëÒÔÍùµÄµ¥Æ¬»úÏà±ÈÔö¼ÓÁËÐí¶àÐµĹ¦ÄÜ£¬Ê¹Æ书ÄܸüΪÍêÉÆ£¬Ó¦ÓÃÁìÓòÒ²¸üΪ¹ã·º¡£Éè¼ÆÖл¹Óõ½ÁËÄ£/Êýת»»Ð¾Æ¬ADC0808£¬ÒÔÇ°ÔÚѧµ¥Æ¬»ú¿Î³ÌʱֻÊǶÔÆäÀíÂÛ֪ʶÓÐÁ˳õ²½µÄÀí½â¡£Í¨¹ýÕâ´ÎÉè¼Æ£¬¶ÔËüµÄ¹¤×÷ÔÀíÓÐÁ˸üÉîµÄÀí½â¡£ÔÚµ÷ÊÔ¹ý³ÌÖÐÓöµ½ºÜ¶àÎÊÌ⣬×îºóºÍÀÏʦͬѧһ²½Ò»¸ö½ÅÓ¡½â¾öÁËÒ»¸öÓÖÒ»¸öÎÊÌâ¡£
Õâ´Îµç·µÄÉè¼ÆºÍ·ÂÕ棬»ù±¾ÉÏ´ïµ½Á˿γÌÉè¼ÆµÄ¹¦ÄÜÒªÇó¡£ÔÚÒÔºóµÄʵ¼ùÖУ¬ÎÒ½«¼ÌÐøŬÁ¦Ñ§Ï°µç·Éè¼Æ·½ÃæµÄÀíÂÛ֪ʶ£¬²¢ÀíÂÛÁªÏµÊµ¼Ê£¬ÕùÈ¡ÔÚµç·Éè¼Æ·½ÃæÄÜÓÐËùÌáÉý¡£
Ò³ µÚ 20
µ¥Æ¬»úÊý×Öµçѹ±í-------------------------------------------------------------------Î÷ÄϿƼ¼´óѧ³ÇÊÐѧԺ
²Î¿¼ÎÄÏ×
[1] ºú½¡.µ¥Æ¬»úÔÀí¼°½Ó¿Ú¼¼Êõ.±±¾©£º»úе¹¤Òµ³ö°æÉ磬2004Äê10ÔÂ
[2] ÓÚµîãü.µ¥Æ¬»úÔÀíÓë³ÌÐòÉè¼ÆʵÑé½Ì³Ì.Î÷°²µç×ӿƼ¼´óѧ³ö°æÉ磬2007Äê5Ô [3] лά³É¡¢Ñî¼Ó¹ú.µ¥Æ¬»úÔÀíÓëÓ¦Óü°C51³ÌÐòÉè¼ÆʵÀý.µç×Ó¹¤Òµ³ö°æÉ磬2006Äê3Ô [4] ½ªÖ¾º£,»ÆÓñÇåµÈÖø.µ¥Æ¬»úÔÀí¼°Ó¦ÓÃ[M] .±±¾©:µç×Ó¹¤Òµ³ö°æÉç.2005Äê7Ô [5] κÁ¢·å.µ¥Æ¬»úÔÀí¼°Ó¦Óü¼Êõ.±±¾©´óѧ³ö°æÉ磬2005Äê8ÔÂ
¸½Â¼
CÓïÑÔ³ÌÐò£º #include
#define uchar unsigned char #define uint unsigned int sbit OE =P2^6; sbit EOC =P2^5; sbit START=P2^4; sbit ADDC=P2^0; sbit ADDB=P2^1; sbit ADDA=P2^2; sbit bell=P2^3; sbit light=P2^7; sbit clk=P1^4;
ucharcodetable[10]= {0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f}; //ÊýÂë¹Ü¹²Òõ¼«
ucharcodetable_d[16]=
{0xbf,0x86,0xdb,0xcf,0xe6,0xed,0xfd,0x87,0xff,0xef,0xf7,0xfc,0xb9,0xde,0xf9,0xf1};
uint shuju[4] ; uint getdata;
Ò³ µÚ 21