⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 giaotiep lpt.htm

📁 FM MUDULATION SYSTEM COMUNICATION
💻 HTM
📖 第 1 页 / 共 5 页
字号:
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN"><HTML><HEAD><TITLE>Parallel port output</TITLE><meta name="description" content="Simple circuits and examples to describe how to use PC parallel port as general purpose output port."><meta name="keywords" content="PC,parallel,LPT,port,controlling,programming,circuit,circuits,example,output,relay,LED,controlling"><meta name="distribution" content="global"><meta name="copyright" content="1996-2006 Tomi Engdahl"><meta name="author" contents="Tomi Engdahl"><meta name="GENERATOR" content="Emacs"><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /><title>ePanorama.net - Circuits</title><link href="/css/style.css" rel="stylesheet" type="text/css" /><link href="/css/print.css" rel="stylesheet" type="text/css" media="print"/><script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script><script type="text/javascript">_uacct = "UA-272685-1";urchinTracker();</script><SCRIPT TYPE="text/javascript"><!--function changeImages(elem, changeimg) {	if(document.images){		document.images[elem].src = eval(changeimg + ".src");	}}if (document.images) {	var links_btn  = new Image();	links_btn.src = "/images/links-btn.jpg";	var links_btn_over  = new Image();	links_btn_over.src = "/images/links-btn-over.jpg";	var circuits_btn = new Image();	circuits_btn.src = "/images/circuits-btn.jpg";	var circuits_btn_over = new Image();	circuits_btn_over.src = "/images/circuits-btn-over.jpg";	var documents_btn = new Image();	documents_btn.src = "/images/documents-btn.jpg";	var documents_btn_over = new Image();	documents_btn_over.src = "/images/documents-btn-over.jpg";	var forum_btn = new Image();	forum_btn.src = "/images/forum-btn.jpg";	var forum_btn_over = new Image();	forum_btn_over.src = "/images/forum-btn-over.jpg";	var software_btn = new Image();	software_btn.src = "/images/software-btn.jpg";	var software_btn_over = new Image();	software_btn_over.src = "/images/software-btn-over.jpg";	var rfc_btn = new Image();	rfc_btn.src = "/images/rfc-btn.jpg";	var rfc_btn_over = new Image();	rfc_btn_over.src = "/images/rfc-btn-over.jpg";	var search_btn = new Image();	search_btn.src = "/images/search-btn.jpg";	var search_btn_over = new Image();	search_btn_over.src = "/images/search-btn-over.jpg"; 	var toolbox_btn = new Image();	toolbox_btn.src = "/images/toolbox-btn.jpg";	var toolbox_btn_over = new Image();	toolbox_btn_over.src = "/images/toolbox-btn-over.jpg";}// --></SCRIPT><!-- ValueClick Media POP-UNDER CODE v1.8 for epanorama.net (12 hour) --><script language="javascript"><!--var dc=document; var date_ob=new Date();dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();if(dc.cookie.indexOf ('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net' );dc.write('/w/pop.cgi?sid=6044&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');date_ob.setTime(date_ob.getTime()+43200000);dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // --></script><!-- ValueClick Media POP-UNDER CODE v1.8 for epanorama.net --><!-- FASTCLICK.COM INTERSTITIAL HEAD CODE v1.0 for epanorama.net --><script language="javascript"><!--function FCx(x){  var min=15; // minimum minutes between interstitials (needs to be >15)  if(x.indexOf('get.media')>0){    x=unescape(x.substring(x.indexOf('&url=')+5,x.length));  }else{    if(document.cookie.indexOf('CxIC=1')<=0){      x='http://media.fastclick.net/w/get.media?sid=6044&m=5&url='+escape(x);      var date_ob=new Date();      date_ob.setTime(date_ob.getTime()+min*1000*60);      document.cookie='FCxIC=1; path=/; expires='+date_ob.toGMTString();    }  }  return x}// --></script><!-- FASTCLICK.COM INTERSTITIAL HEAD CODE v1.0 for epanorama.net --></HEAD><BODY><DIV class="fullpage region1" id=wrapper>	<div class="googlebanner">		 <script type="text/javascript"><!--google_ad_client = "pub-3257650267345122";google_ad_width = 728;google_ad_height = 90;google_ad_format = "728x90_as";google_ad_type = "text_image";google_ad_channel ="5495687474";google_color_border = "336699";//--></script><script type="text/javascript"  src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>	</div>		<div class="coname"><a href="/index.php"><img border="0px" src="/images/logo.jpg" name="logo"/></a></div>		<div class="hline"> <hr /> </div>		  <div class="navbtns" id="navbuttons"> <a href="/index.php?index=link" onMouseOver="changeImages('links_btn', 'links_btn_over')" onMouseOut="changeImages('links_btn', 'links_btn')"><img class="imgplain" id="links_btn" src="/images/links-btn.jpg" alt="Links" title="Links"></a> <a href="/index.php?index=circuit" onMouseOver="changeImages('circuits_btn', 'circuits_btn_over')" onMouseOut="changeImages('circuits_btn', 'circuits_btn')"> <img class="imgplain" id="circuits_btn" src="/images/circuits-btn.jpg" alt="Circuits" title="Circuits"></a><a href="/index.php?index=document" onMouseOver="changeImages('documents_btn', 'documents_btn_over')" onMouseOut="changeImages('documents_btn', 'documents_btn')"> <img class="imgplain" id="documents_btn" src="/images/documents-btn.jpg" alt="Documents" title="Documents"></a> <a href="/index.php?index=discussion" onMouseOver="changeImages('forum_btn', 'forum_btn_over')" onMouseOut="changeImages('forum_btn', 'forum_btn')"> <img class="imgplain" id="forum_btn" src="/images/forum-btn.jpg" alt="Forum" title="Forum"></a> <a href="/software-list.php" onMouseOver="changeImages('software_btn', 'software_btn_over')" onMouseOut="changeImages('software_btn', 'software_btn')"> <img class="imgplain" id="software_btn" src="/images/software-btn.jpg" alt="Software" title="Software"></a> <a href="/RFC/rfc_index.html" onMouseOver="changeImages('rfc_btn', 'rfc_btn_over')" onMouseOut="changeImages('rfc_btn', 'rfc_btn')"> <img class="imgplain" id="rfc_btn" src="/images/rfc-btn.jpg" alt="RFC" title="RFC"></a> <a href="/index.php?index=calculator" onMouseOver="changeImages('toolbox_btn', 'toolbox_btn_over');" onMouseOut="changeImages('toolbox_btn', 'toolbox_btn');"> <img class="imgplain" id="toolbox_btn" src="/images/toolbox-btn.jpg" alt="ToolBox" title="ToolBox"></a><a href="/multi.php" onMouseOver="changeImages('search_btn', 'search_btn_over')" onMouseOut="changeImages('search_btn', 'search_btn')"> <img class="imgplain" id="search_btn" src="/images/search-btn.jpg" alt="Search" title="Search"></a> </div>  <div class="navtext" id="nav2">| <a href="/index.php" class="btext">Index</a> |  <a href="/schematicsforfree/index.php" class="btext">Schematics</a> |  <a href="/acronym.html" class="btext">Acronyms</a> |  <a href="/wwwboard/wwwboard.html" class="btext">Discussion</a> |  <a href="/m2f/friendmail.php" class="btext">Mail to a friend</a> |  <a href="/pagediscuss.php" class="btext">Post a message</a> | </div> <div class="searcht" id="searchtop"><form action="http://new.epanorama.net/multi.php" method=GET name="searchfrm">  <select class="btext" name="search">        <option value="">Search this site</option>	<option value="search">Site pages/links</option>	<option value="companysearch">Company</option>	<option value="acro">Acronym info</option>	<option value="semi">Semiconductor info</option>	<option value="wwwboardsearch">Discussion messages</option>	<option value="circuitsitesearch">Circuit sites</option>	<option value="otherlink">Other search engines</option>  </select> <input type="text" name="keyword" size="20">  <a href="#"><img src="/images/search.gif" width=52 height=21 alt="" border="0" align="absbottom" onClick="javascript: document.searchfrm.submit();"></a></form> </div>   <DIV class="midPage" id="mainContent"><H1>Parallel port interfacing made easy: Simple circuits and programs to show how to use PC parallel port output capabilities</H1><P><I>Copyright Tomi Engdahl 1996-2009</I><P><H2>Index</H2><UL>   <LI><A HREF="#intro">Introduction</A>   <LI><A HREF="#circuithow">How to connect circuits to parallel port</A>   <LI><A HREF="#doscontrol">Control program for DOS (and Win9x)</A>   <LI><A HREF="#dosprogramming">Parallelport programming in DOS</A>   <LI><A HREF="#windowsprogramming">Parallel port controlling in Windows programs</A>   <LI><A HREF="#linuxprogramming">Parallel port controlling in Linux</A>   <LI><A HREF="#webcontrol">Controlling parallel port through web</A>   <LI><A HREF="#realworld">Controlling some real world electronics</A>   <LI><A HREF="#relaycontrol">Building your own relay controlling circuits</A>   <LI><A HREF="#mainspower">Mains power controlling with parallel port</A>   <LI><A HREF="#multiout">Compact 8 channel output driver</A>   <LI><A HREF="#circuitlinks">Links to parallel port output circuits</A>   <LI><A HREF="#controlsoftware">Ready made control software</A>   <LI><A HREF="#input">Reading the input pins in parallel port input pins</A>   <LI><A HREF="#registers">Parallel port software registers technical summary</A>   <LI><A HREF="#bootupnotes">Notes on parallel port operation during computer boot-up</A>   <LI><A HREF="#portversions">Notes on different parallel port versions</A>   <LI><A HREF="#pcibus">Notes on PCI bus parallel port cards</A>   <LI><A HREF="#usbnotes">Notes on USB parallel port adapters</A>   <LI><A HREF="#documentlinks">Other documents worth to check</A></UL><P><H2><A NAME="intro">Introduction</A></H2><P>PC parallel port can be very useful I/O channel for connecting yourown circuits to PC. The PC's parallel port can be used to perform some very amusing hardware interfacing experiments. The port is very easy to use when you first understand some basic tricks. This document tries to show those tricks in easy to understand way.<P><B>WARNING: PC parallel port can be damaged quite easily if you make mistakesin the circuits you connect to it. If the parallel port is integrated to themotherboard (like in many new computers) repairing damaged parallel portmay be expensive (in many cases it it is cheaper to replace the wholemotherborard than repair that port).</B>Safest bet is to buy an inexpensive I/O card whichhas an extra parallel port and use it for your experiment. If you manageto damage the parallel port on that card, replacing it is easy and inexpensive.<P>NOTE: The I/O port level controlling details here has proven to work well with parallel ports on the PC motherboard and expansion cards connected to ISA bus. The programming examples might not work with PCI bus based I/O cards (they can use different hardware and/or I/O addresses, their drivers make they just look like parallel ports to "normal" applications). The programming examples do not work with USB to parallel port adapters (they use entirely different hardware, their drivers make them to look like normal parallel port to operating system "normal" applications).<P><B>DISCLAIMER:Every reasonable care has been taken in producing this information.However, the author can accept no responsibility for any effect that thisinformation has on your equipment or any results of the use of thisinformation. It is the responsibly of the end user to determine fitnessfor use for any particular purpose.The circuits and software shown here are for non commercial use withoutconsent from the author. </B><P><H2><A NAME="circuithow">How to connect circuits to parallel port</A></H2><P>PC parallel port is 25 pin D-shaped female connector in the back of thecomputer. It is normally used for connecting computer to printer, but manyother types of hardware for that port is available today.<P>Not all 25 are needed always. Usually you can easily do with only 8output pins (data lines) and signal ground. I have presented thosepins in the table below. Those output pins are adequate for many purposes.<P><PRE>pin function 2   D0 3   D1 4   D2 5   D3 6   D4

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -