΢»úÔÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç
11. 8251·½Ê½¿ØÖÆÆ÷µÄ×÷ÓÃÊÇʲô£¿·½Ê½Ñ¡ÔñÓм¸ÖÖ£¿·Ö±ðÓÐʲôÌص㣿 ´ð£º·½Ê½¼Ä´æÆ÷ÊÇ8251ÔÚ³õʼ»¯Ê±£¬ÓÃÀ´Ð´È뷽ʽѡÔñ×ֵġ£8251µÄ·½Ê½Ñ¡ÔñÓÐÁ½ÖÖ£ºÍ¬²½·½Ê½ºÍÒì²½·½Ê½¡£
Òì²½¹¤×÷·½Ê½Ê±£¬Á½¸ö×Ö·ûÖ®¼äµÄ´«Êä¼ä¸ôÊÇÈÎÒâµÄ£¬ËùÒÔ£¬Ã¿¸ö×Ö·ûµÄÇ°ºó¶¼ÒªÓÃһЩÊýλÀ´×÷Ϊ·Ö¸ôλ¡£ÔÚ²ÉÓÃÒì²½¹¤×÷·½Ê½Ê±£¬·ÇÊý¾ÝÐÅÏ¢±ÈÀý±È½Ï´ó£¬¶øÇÒ£¬ÐÅÏ¢ÓÐЧÂʱÈͬ²½·½Ê½µÍ£¬ÔÚÒì²½·½Ê½Ï£¬½ÓÊÕ·½µÄʱÖÓƵÂʺͷ¢ËÍ·½µÄʱÖÓƵÂʲ»±ØÍêÈ«Ò»Ñù£¬¶øÖ»Òª±È½ÏÏñ½ü£¬¼´²»³¬¹ýÒ»¶¨µÄÔÊÐí·¶Î§¾ÍÐÐÁË¡£
ͬ²½·½Ê½Ê±£¬½«Ðí¶à×Ö·û×é³ÉÒ»¸öÐÅÏ¢×飬ÕâÑù£¬×Ö·û¿ÉÒÔÒ»¸ö½ÓÒ»¸öµØ´«Ê䣬µ«ÊÇ£¬ÔÚÿ×éÐÅÏ¢£¨Í¨³£³ÆΪÐÅÏ¢Ö¡£©µÄ¿ªÊ¼Òª¼ÓÉÏͬ²½×Ö·û£¬ÔÚûÓÐÐÅÏ¢Òª´«Êäʱ£¬ÒªÌîÉÏ¿Õ×Ö·û£¬ÒòΪͬ²½´«Êä²»ÔÊÐíÓмä϶¡£ÔÚͬ²½·½Ê½Ï£¬·ÇÊý¾ÝÐÅÏ¢±ÈÀý±È½ÏС£¬ÒªÇó½øÐÐÐÅÏ¢´«ÊäµÄË«·½±ØÐëÓÃͬһ¸öʱÖÓ½øÐÐе÷£¬ÕýÊÇÕâ¸öʱÖÓÈ·¶¨ÁËͬ²½´®Ðд«Êä¹ý³ÌÖÐÿ1λµÄλÖ㬶øÇÒ£¬ÔÚ´«ÊäÊý¾ÝµÄͬʱ£¬»¹±ØÐë´«ÊäʱÖÓÐźš£
12.ʲôÊÇA/D, D/Aת»»Æ÷£¿
41
΢»úÔÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç
´ð£ºA/DÊǽ«Ä£ÄâÐźÅת»»³ÉÊý×ÖÐźŵĵç·£¬³ÆΪģÊýת»»Æ÷£¨analog to digital converter£©£»
D/AÊǽ«Êý×ÖÐźÅת»»ÎªÄ£ÄâÐźŵĵç·³ÆΪÊýģת»»Æ÷£¨digital to analog converter£©¡£
13. DAC0832ÓÐÄļ¸ÖÖ¹¤×÷·½Ê½£¿Ã¿ÖÖ¹¤×÷·½Ê½ÊÊÓÃÓÚʲô³¡ºÏ£¿Ã¿ÖÖ·½Ê½ÊÇÓÃʲô·½·¨²úÉúµÄ£¿
´ð£ºDAC0832¿ÉʵÏÖË«»º³å¡¢µ¥»º³åºÍֱͨÈýÖÖ¹¤×÷״̬¡£
¢ÙË«»º³å·½Ê½
Ëùν˫»º³å·½Ê½£¬¾ÍÊÇ°ÑDAC0832µÄÊäÈëËø´æÆ÷ºÍDAC¼Ä´æÆ÷¶¼½Ó³ÉÊÜ¿ØËø´æ·½Ê½¡£
ÊÊÓÃÓÚ¶à¸öDAC0832ͬʱÊä³öµÄÇé¿ö¡£²ÉÓõķ½·¨ÊÇÏȱð·Ö±ðÊÇÕâЩDAC0832µÄÊäÈë¼Ä´æÆ÷½ÓÊÜÊý¾Ý£¬ÔÚ¿ØÖÆÕâЩDAC0832ͬʱ´«ËÍÊý¾Ýµ½DAC¼Ä´æÆ÷ÒÔʵÏÖ¶¼¶à¸öDACת»»Í¬²½Êä³ö
¢Úµ¥»º³å·½Ê½
Ëùνµ¥»º³å·½Ê½¾ÍÊÇʹDAC0832µÄÊäÈëËø´æÆ÷ºÍDAC¼Ä´æÆ÷ÓÐÒ»¸ö´¦ÓÚֱͨ·½Ê½£¬ÁíÒ»¸ö´¦ÓÚÊܿصÄËø´æ·½Ê½¡£´Ë·½Ê½Ö»ÊÇÓÃÖ»ÓÐһ·ģÄâÁ¿Êä³ö»ò¼¸Â·Ä£ÄâÁ¿·Çͬ²½Êä³öµÄÇé¿ö¡£²ÉÓõķ½·¨ÊÇ¿ØÖÆÊäÈë¼Ä´æÆ÷ºÍDAC¼Ä´æÆ÷ͬʱ½ÓÊÜÊý¾Ý£¬»òÕßÖ»ÓÐÓÃÊäÈë¼Ä´æÆ÷¶ø°ÑDAC¼Ä´æÆ÷½Ó³Éֱͨ·½Ê½¡£
¢Ûֱͨ·½Ê½
ÊÊÓÃÓÚÁ¬Ðø·´À¡¿ØÖÆÏß·ÖС£·½·¨ÊÇÊý¾Ý²»Í¨¹ý»º³åÆ÷£¬¼´WR1£¬WR2£¬XFER£¬CS¾ùÔȽӵأ¬ILE½Ó¸ßµçƽ¡£´Ëʱ£¬±ØÐëͨ¹ýI/O½Ó¿ÚÓëCPUÁ¬½Ó£¬ÒÔÆ¥ÅäCUPÓëD/AµÄת»»¡£
14. ij8λD/Aת»»Æ÷оƬ£¬Êä³öΪ0~5V£¬µ±CPU·Ö±ðΪ80H£¬40H£¬10Hʱ£¬Æä¶ÔÓ¦µÄÊä³öµçѹ¸÷ÊǶàÉÙ£¿ ´ð£º80Hʱ 128/256*5V=2.5V 40Hʱ 64/256*5V=1.25V 10Hʱ 16/256*5V=0.3123V
15. ADC°ÑÄ£ÄâÁ¿×ª»»ÎªÊý×ÖÁ¿Ðźţ¬×ª»»²½ÖèÊÇʲô£¿×ª»»¹ý³ÌÓõ½Ê²Ã´µç
42
΢»úÔÀíÓë½Ó¿Ú¼¼Êõ£¨µÚ¶þ°æ£© Ç廪´óѧ³ö°æÉç
·£¿
´ð£ºADC°ÑÄ£ÄâÁ¿×ª»»ÎªÊý×ÖÁ¿Ðźţ¬·ÖΪËIJ½À´Íê³É£º²ÉÑù¡¢±£³Ö¡¢Á¿»¯¡¢±àÂ롣ת»¯¹ý³Ì¿ÉÒÔÓÃÖð´Î±Æ½üÐ͵ç·¡¢V/Fת»»Ð͵ç·ºÍË«»ý·ÖÐ͵ç·¡£
16. ADCÓë΢´¦ÀíÆ÷µÄ½Ó¿ÚÈÎÎñÊÇʲô£¿
´ð£ºADCÓë΢´¦ÀíÆ÷½Ó¿ÚµÄ»ù±¾ÈÎÎñÊÇ:ÏòADCת·¢Æô¶¯×ª»»ÐźÅ;ÏòCPUÌṩת»»½áÊøÐźÅ,°Ñת»»ºÃµÄÊý¾ÝËÍÈë΢´¦ÀíÆ÷¡£
17. ADCÖеÄת»»½áÊøÐźţ¨EOC£©Æðʲô×÷Óã¿
´ð£ºÊÇת»¯½áÊøÐźţ¬±íʾµ±Ç°µÄA/Dת»»ÒѾÍê³É£¬¿É×÷Ϊ²éѯÐÅÏ¢£¬Ò²¿É½ÓÖжÏÉêÇëÐźš£
18. Èç¹ûADC0809Óë΢»ú½Ó¿Ú²ÉÓÃÖжϷ½Ê½£¬ÔòEOCÓ¦ÈçºÎÈÃÓë΢´¦ÀíÆ÷Á¬½Ó£¿
´ð£º¿É²ÉÓÃÖ±½ÓÓëCPU INTR½ÅÁ¬½Ó£¬»òͨ¹ý8259A½ÓCPU .
ÉèADC0809µÄ¶Ë¿ÚºÅλPORTAD£¬ÔòÔÚÖ¸ÁîOUT PORTAD£¬ALÖ´Ðкó£¬A/Dת»»Æ÷¿ªÊ¼×ª»»×ª»»EOC·¢Ò»¸ö¸ßµçƽΪת»¯½áÊø£¬´ËÐźŲúÉúÖжÏÇëÇó£¬CPUÏìÓ¦ÖжϺó£¬È¥Ö´ÐÐÖжϴ¦Àí³ÌÐò£¬È¡½á¹ûIN AL£¬PORTAD£¬´Ëʱ£¬M/IO£¬RDÓÐЧ£¬CPU»ñµÃת»»½á¹û¡£
43