<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.1.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	>

<channel>
	<title>Thaiio.com</title>
	<link>http://www.english.thaiio.com</link>
	<description>Thaiio is the best of PC interfacing Electronic Hardware and Devices resource.</description>
	<pubDate>Mon, 05 May 2008 14:38:54 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.1.2</generator>
	<language>en</language>
			<item>
		<title>Programming in Microcontroller to control 8051 through Serial Port</title>
		<link>http://www.english.thaiio.com/programming-in-microcontroller-to-control-8051-through-serial-port/</link>
		<comments>http://www.english.thaiio.com/programming-in-microcontroller-to-control-8051-through-serial-port/#comments</comments>
		<pubDate>Mon, 05 May 2008 14:38:19 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Microcontroller</dc:subject>
	<dc:subject>Assembly</dc:subject>
	<dc:subject>8051</dc:subject>
	<dc:subject>Serial Port</dc:subject>
	<dc:subject>Com Port</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-microcontroller-to-control-8051-through-serial-port/</guid>
		<description><![CDATA[There are fellow programmers that has developed program of Microcontroller inquire about this. It is about the next part of programming for connecting through Serial Port. Either of Visual Basic or C, there are many people inquired about how to control with Microcontroller 8051 that is the family of Microcontroller that has been populating. 
Anywhere, [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">There are fellow programmers that has developed program of <a href="/index.php?tag=microcontroller/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Microcontroller</a> inquire about this. It is about the next <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a> of <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> for connecting through <st1:place w:st="on"><st1:placename w:st="on"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a></st1:placename> <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a>.</st1:placetype></st1:place> Either of <a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> <a href="/tag/basic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Basic</a> or C, there are many people inquired about how to <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> with <a href="/tag/microcontroller/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Microcontroller</a> 8051 that is the family of Microcontroller that has been populating. <o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify; text-indent: 36pt"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Anywhere, I do the experimental board by using circuit of the <a href="/index.php?tag=basic/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >basic</a> Microcontroller in order to carry out this content. Generally, in the side of <a href="/tag/programming/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> with Microcontroller, I will mention the <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a> of programming to <a href="/index.php?tag=connect/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> <st1:place w:st="on"><st1:placename w:st="on"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a></st1:placename>  <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype></st1:place>, but there will be programming to <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> Timer also. Why use Timer? Because we will create Baud Rate, after that we will go to programming to get and send <a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> through Serial Port of Microcontroller<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><a id="more-349"></a><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue"><o:p></o:p>Managing to Timer’s working <o:p></o:p></span></strong></p>
<p class="MsoNormal" style="text-align: justify"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TCON (<a href="/index.php?tag=time/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Time</a> Control Register) and</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TMOD (<a href="/tag/time/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Time</a> Mode Register)</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify" align="right"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">We take the both to do for controlling Timer’s working in order to use as looping to measure time taken of </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Baud Rate, is to set value in TMOD such as</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TMOD=00100000B.<span>  </span>Here, we use getting and sending <a href="/tag/data/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> 11 bit, will have 8 data bit, Start bit, Stop bit, Custom data bit. All we will set Timer to occur</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">interrupt that we will set at IE (Interrupt Enable Register), setting to be zero every bit, for Baud rate of getting and sending data, will use the rate of Timer Overflow together with the value of SMOD(Serial Mode Register). For the value that will set for Timer in order to create the rate of getting and sending of Serial Port in </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Microcontroller can use the below table.</span><br />
<strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""></span></u></strong></p>
<p class="MsoNormal" style="text-align: justify" align="center"><strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">The table of setting value for Timer in order to use for Baud Rate</span></u></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""> </span></p>
<p class="MsoNormal" style="text-align: justify">&nbsp;</p>
<p align="center">
<table class="MsoNormalTable" style="width: 360pt" border="0" cellpadding="0" cellspacing="0" width="480">
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 20%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="20%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Frequency</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH">(</span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">MHz)</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Baud Rate of</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> </span><st1:place w:st="on"><st1:placename w:st="on"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Serial</span></strong></st1:placename><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue"> <st1:placetype w:st="on">Port</st1:placetype></span></strong></st1:place><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">(bit/sec)</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 35%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="35%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">The value of</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Timer   that will be set</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 20%" width="20%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">11.059</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">1200</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 35%" width="35%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">E8H</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 20%" width="20%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">11.059</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">2400</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 35%" width="35%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">F4H</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 20%" width="20%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">11.059</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">4800</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 35%" width="35%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">FAH</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 20%" width="20%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">11.059</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">9600</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 35%" width="35%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">FDH</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
</table>
<p class="MsoNormal" style="text-align: center" align="center"> <strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">    <u>Programming for setting value of working of Timer</u></span></strong></p>
<p class="MsoNormal" style="text-align: center" align="left">&nbsp;</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">We may conclude programming for setting of</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Timer such as</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Baud Rate of</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Serial port=9600 bit/sec </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV TMOD,#00100000B  </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">; setting value in TMOD Register to begin the <a href="/index.php?tag=new/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >new</a> value automatically.    </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV IE,#00000000B  </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> ; setting value not Timer Interrupt</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV TL1,#FDH         </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> ;setting Baud Rate 9600 bit/sec</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV TH1,#FDH        </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p>  <span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SETB TR1                  </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> ; command</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Timer 1 to work </span></p>
<p class="MsoNormal">
<strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Programming to <a href="/tag/connect/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> with Serial Port</span></u></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> </span></p>
<p class="MsoNormal">&nbsp;</p>
<p class="MsoNormal"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Serial Port Control Register named</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SCON</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Doing as controller of process of getting and sending of <st1:place w:st="on"><st1:placename w:st="on">Serial</st1:placename> <st1:placetype w:st="on">Port</st1:placetype></st1:place> in Microcontroller that will be what mode for getting data and sending data. This SCON, will manage, but we have to set the <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> to</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SCON before like the details in the following,</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p>  <strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">The table of showing the component of SCON<br />
</span></u></strong></p>
<p><strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""></span></u></strong></p>
<p align="center">
<table class="MsoNormalTable" style="width: 360pt" border="0" cellpadding="0" cellspacing="0" width="480">
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 12%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">The positions of</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Bit</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 12%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Names</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; background: #ffffcc none repeat scroll 0% 50%; width: 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="50%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Functions</span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">0<o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">RI<o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Interrupt in sending data</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">1</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TI</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Interrupt in getting data</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">2</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TR8</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Getting data if use</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Mode 2,3 will be Bit No. 9</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">3</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">TB8</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Sending data if use</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Mode 2,3 will be</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Bit   No. 9</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">4</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">REN<o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Setting to get data or not</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">5</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SM2</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> If use connect two more   Microcontroller</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">6</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SM1</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Choose</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Mode of parallel port</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">7</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 12%" valign="top" width="12%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SM0</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #9999ff; padding: 0cm; width: 50%" valign="top" width="50%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Choose</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Mode of parallel port</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
</table>
<p class="MsoNormal" style="text-align: center" align="left">&nbsp;</p>
<p class="MsoNormal"><st1:place w:st="on"><st1:placename w:st="on"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Serial</span></strong></st1:placename><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <st1:placetype w:st="on">Port</st1:placetype></span></strong></st1:place><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> Buffer Register named</span></strong><strong><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span></strong><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">SBUF </span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">It is keeper of data for getting or sending data through <st1:place w:st="on"><st1:placename w:st="on">Serial</st1:placename> <st1:placetype w:st="on">Port</st1:placetype></st1:place> in Microcontroller. If we will write program to get data, we have to move data in Buffer to use.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Such as MOV A, SBUF, etc.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">If we will send data out to <st1:place w:st="on"><st1:placename w:st="on">Serial</st1:placename>  <st1:placetype w:st="on">Port</st1:placetype></st1:place> in Microcontroller, we have to move data to</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Buffer the same. </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Such as</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV SBUF,A or</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV SBUF,#31H, etc.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: center" align="center"> <strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Programming to get data</span></u></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"> <st1:place w:st="on"><st1:city w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">JNB</span></st1:city><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <st1:state w:st="on">RI</st1:state></span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">,$            </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">; compare condition until be real when</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Buffer Receive already.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><st1:place w:st="on"><st1:city w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">CLR</span></st1:city><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <st1:state w:st="on">RI</st1:state></span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">         </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">      ; clear value of RI(Receive Interrupt) bit in</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">SCON Register </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p>  <span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV A,SBUF </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> ; keep value from</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Buffer to keep in Register A</span></p>
<p class="MsoNormal" style="text-align: center" align="center">
<strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Programming to send data</span></u></strong></p>
<p class="MsoNormal" style="text-align: center" align="center">&nbsp;</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">MOV SBUF,#43H  </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">; get </span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH">ค่าแอสกี้=</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">43H to keep at</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Buffer in sending data through</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><st1:place w:st="on"><st1:placename w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Serial</span></st1:placename><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc"> <st1:placetype w:st="on">Port</st1:placetype></span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">JNB TI,$              </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">;  compare condition as real when</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">Buffer Send alreay</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">CLR TI                </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">; clear value of</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">TI(Transmit Interrupt) bit in</span><span style="font-size: 10pt; font-family: "Browallia New"; color: #6600cc" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: #6600cc">SCON Register</span></p>
<p class="MsoNormal" style="text-align: center" align="center">&nbsp;</p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">From the content I mention above, I think we may understand and can use to program to connect Serial Port of Microcontroller by yourself. For more understanding, I have the <a href="/tag/project/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >project</a> about this content.<o:p></o:p></span></p>
<p>  <a href="http://www.thaiio.com/prog-cgi/0030_mcs.htm" target="_blank"><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Microcontroller connecting with<span style="font-family: "Browallia New"" lang="TH"> </span>PC as<span style="font-family: "Browallia New"" lang="TH"> </span>RS-232 through<span style="font-family: "Browallia New"" lang="TH"> </span>Serial Port</span></u></a></p>
<p class="MsoNormal"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">The learning outcome of this article<o:p></o:p></span></strong></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">1) To be the fundamental in programming for controlling the </span><st1:place w:st="on"><st1:placename w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Microcontroller</span></st1:placename><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <st1:placename w:st="on">Serial</st1:placename> <st1:placetype w:st="on">Port</st1:placetype></span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">’s working.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">2) To know </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Register for controlling Timer and <st1:place w:st="on"><st1:placename w:st="on">Serial</st1:placename>  <st1:placetype w:st="on">Port.</st1:placetype></st1:place></span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">3) Can apply program </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Microcontroller connecting with program on PC through</span><span style="font-size: 10pt; font-family: "Browallia New"; color: black" lang="TH"> </span><st1:place w:st="on"><st1:placename w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Serial</span></st1:placename><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"> <st1:placetype w:st="on">Port</st1:placetype></span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: white"><o:p></o:p></span></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=349&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_349" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-microcontroller-to-control-8051-through-serial-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Assembly to control IO Printer Port Part 2</title>
		<link>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port-part-2/</link>
		<comments>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port-part-2/#comments</comments>
		<pubDate>Mon, 05 May 2008 14:25:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Assembly</dc:subject>
	<dc:subject>Programming</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port-part-2/</guid>
		<description><![CDATA[    In the part 2, we will learn about controlling program Printer Port and Card 8255 I/O  Port by Assembly that can be changed to be language of computer by using Assembler program like SXA-51, Cross-16, Cross-32 that can program by Editor, and then keep in file name .ASM. When comply have finished, will [...]]]></description>
			<content:encoded><![CDATA[<p><strong>    </strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">In the <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a> 2, we will <a href="/tag/learn/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >learn</a> about controlling program <st1:placename w:st="on">Printer</st1:placename> <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype> and</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Card 8255 <st1:place w:st="on"><st1:placename w:st="on">I/O</st1:placename>  <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype></st1:place> by <a href="/tag/assembly/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Assembly</a> that can be changed to be language of <a href="/tag/computer/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >computer</a> by using Assembler program like SXA-51, Cross-16, Cross-32 that can program by Editor, and then keep in file name .ASM. When comply have finished, will get file .Hex. If we use micro controller like 8051, 8052, 8055, etc. We can take file .Hex to put at CPU by EMULATOR PROGRAM CPU, but I will recommend to use Debug in</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">your PC by typing Debug at C:\&gt; on Dos in order to be learning to use </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">mnemonic </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">code that consist of the main 3 <a href="/tag/parts/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >parts</a> like the followings,<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"><span>1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Operation Code consists of 2-4 alphabets such as MOV, SJMP, etc.<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><span>2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Operand is operated; it will be the set of alphabets that notify operation that will be one set or 2 sets. If there will be 2, it will have comma (,) like A, #20H, etc.</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><span>3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Comment is explanation the meaning of codes that will be preceded by semicolon (;).</span><a id="more-348"></a><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p style="text-align: justify"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">The group of commands of </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">mnemonic </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">code, are divided into 4 main groups,<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 16pt; font-family: "Browallia New""><span>1.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><a href="/tag/logic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Logic</a>, such as AND,OR,XOR,NOT<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 16pt; font-family: "Browallia New""><span>2.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Mathematic<span>  </span>such as INC,DEC,ADD,SUBB,MUL,DIV<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 16pt; font-family: "Browallia New""><span>3.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Control</a> to manage working<o:p></o:p></span></p>
<p style="margin-left: 36pt; text-align: justify; text-indent: -18pt"><!--[if !supportLists]--><span style="font-size: 16pt; font-family: "Browallia New""><span>4.<span style="font-family: "Times New Roman"; font-style: normal; font-variant: normal; font-weight: normal; font-size: 7pt; line-height: normal; font-size-adjust: none; font-stretch: normal">      </span></span></span><!--[endif]--><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Processing as </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black">Boolean</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
<p style="text-align: justify"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: black"><o:p> </o:p></span></p>
<p align="center">
<table class="MsoNormalTable" style="width: 70%" border="0" cellpadding="0" width="70%">
<tr>
<td colspan="2" style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">The   table of writing command doing with <a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a></span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">How   to do with <a href="/tag/data/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a><o:p></o:p></span></strong></p>
</td>
<td style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Examples<o:p></o:p></span></strong></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">1. Directly do at memory position<br />
2. Indirectly do at register position<br />
3. Directly give value with memory<br />
4. According to value of Register<br />
5. According to arrangement<br />
6. Do according condition<o:p></o:p></span></td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">MOV   A,8CH<br />
MOV A,@R1<br />
MOV A,#7FH<br />
MOV A,R7<br />
MOVC A,@A+PC<br />
INC DPTR<o:p></o:p></span></td>
</tr>
</table>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p> </o:p></span></p>
<p align="center">
<table class="MsoNormalTable" style="width: 102.54%; margin-left: -6.75pt" border="0" cellpadding="0" width="100%">
<tr>
<td colspan="3" style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; width: 99.3%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="99%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">The   table of the <a href="/tag/basic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >basic</a> command of <a href="/index.php?tag=assembly/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Assembly</a></span></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Commands<o:p></o:p></span></strong></p>
</td>
<td style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Examples<o:p></o:p></span></strong></p>
</td>
<td style="padding: 0.75pt; background: #3399ff none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Meanings   <o:p></o:p></span></strong></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">MOV<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 28.22%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="28%">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">MOV   A,R1<br />
MOV A,14H<br />
MOV A,#7FH<br />
MOV P1,A<o:p></o:p></span></td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Using for transferring data from start to   terminal.<br />
there will be P1 is using to send value out at</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Output   leg of <a href="/index.php?tag=microcontroller/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >microcontroller</a> such as</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">8051,Z80 <o:p></o:p></span></td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ADD<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ADD   <st1:place w:st="on"><st1:city w:st="on">A</st1:city>,<st1:postalcode w:st="on">R1<br />
ADD</st1:postalcode></st1:place> A,14H<br />
ADD P1,A<o:p></o:p></span></td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Using for adding data that will have A on the   left, if Add R1, A &lt;&#8212;- X wrong. <span> </span><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ANL<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ANL   A,R1<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Is to And value, then keep at the terminal.<br />
&lt;&#8211; This is doing And value in A with R1, then keeps value in A as usual.<o:p></o:p></span></td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">CJNE<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">CJNE   A,#02H,OUT<br />
MOV P1,#01H<br />
END<o:p></o:p></span></td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Is to do comparison, if the value isn’t be equal,   it will skip working &lt;&#8211; such as</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">value A isn’t be equal with 02,   it will skip at the line named OUT, if to be equal, will take value at P1.<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">OUT<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">OUT   <st1:place w:st="on"><st1:city w:st="on">DX</st1:city>,<st1:state w:st="on">AL</st1:state></st1:place><o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">For sending to</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">PC   Port <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">CLR<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">CLR   A<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">For clearing data as zero<br />
&lt;&#8211; A=0 <o:p></o:p></span></td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INC<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INC   R1<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Increasing value</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> &#8211;</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">&gt;   R1=R1+1<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">DEC<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">DEC   R1<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Decreasing value </span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH">&#8211;</span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">&gt;   R1=R1-1<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">JNZ<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ADD   P1,A<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Skipping to other Label, if A(Accumulator) isn’t   be zero<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ROR<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ROR   <st1:state w:st="on"><st1:place w:st="on">AL</st1:place></st1:state>,1<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Moving data bit to the right, 1 bit</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">1 <a href="/index.php?tag=time/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >time</a>   1=0001&#8212;&gt;1000<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ROL<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">ROL   <st1:state w:st="on"><st1:place w:st="on">AL</st1:place></st1:state>,1 <o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Moving data bit to the left, 1 bit</span><span style="font-size: 10pt; font-family: "Browallia New"" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">1 <a href="/tag/time/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >time</a>   1=0001&#8212;&gt;0010<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><st1:place w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">LOOP</span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><st1:place w:st="on"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">LOOP</span></st1:place><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">   0123<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">For looping working at Address 0123 <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INT20<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INT   20<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Show output on screen. <o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; width: 13.14%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial" width="13%">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INT21<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">INT   21<o:p></o:p></span></p>
</td>
<td style="padding: 0.75pt; background: #c9e2fc none repeat scroll 0% 50%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial">
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"">Getting value from keyboard. <o:p></o:p></span></p>
</td>
</tr>
</table>
<p class="MsoNormal"><strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue"><o:p><span style="text-decoration: none"><br />
</span></o:p></span></u></strong></p>
<p class="MsoNormal"><strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue"><a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Programming</a> to <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> Card I/O 8255 port in</span></u></strong><strong><u><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span></u></strong><strong><u><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Debug</span></u></strong><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""> <span style="color: blue"><o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-indent: 36pt"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">1. Type the word, Debug at</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">C:\ then will get</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">–</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">on the below line.<br />
<span>      </span>2. then, type a, that will get data.<br />
<span>      </span>3. Type</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Code like this,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent: 36pt"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""><o:p> <img src="http://www.thaiio.com/image/assempig.jpg" align="middle" height="525" width="231" />  </o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt; text-indent: 36pt"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">4. <a href="/index.php?tag=press/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Press</a></span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Enter 1 time, then type</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">P or</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">R, you will get for running program that continuously Enter, it will have result like this, <o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue"><o:p> <img src="http://www.thaiio.com/image/assempig2.jpg" align="middle" height="459" width="652" /></o:p></span></p>
<p class="MsoNormal"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">     </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif""> <o:p></o:p></span></p>
<p class="MsoNormal" style="margin-bottom: 12pt"><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">      From the <a href="/index.php?tag=method/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >method</a> I mentioned is experiment to easily program, but writing for real using, you have to write</span><span style="font-size: 10pt; font-family: "Browallia New"; color: blue" lang="TH"> </span><span style="font-size: 10pt; font-family: "MS Reference Sans Serif"; color: blue">Editor so that you can keep and edit in the next time.<o:p></o:p></span></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=348&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_348" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port-part-2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Assembly to control IO Printer Port</title>
		<link>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port/</link>
		<comments>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port/#comments</comments>
		<pubDate>Mon, 05 May 2008 14:13:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Assembly</dc:subject>
	<dc:subject>Programming</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port/</guid>
		<description><![CDATA[From the article of Assembly, I introduced controlling port  of Card I/O 8255 that is card that extends parallel port. Many people might not try to do because there is no card. This article is another method that uses controlling I/O through Printer port getting and sending signal.
The command used to control I/O Printer [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">From the article of <a href="/tag/assembly/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Assembly</a>, I introduced controlling <st1:place w:st="on"><st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a></st1:placetype>  of <st1:placename w:st="on">Card I/O</st1:placename></st1:place> 8255 that is card that extends parallel <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a>. Many people might not try to do because there is no card. This article is another <a href="/index.php?tag=method/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >method</a> that uses controlling I/O through Printer port getting and sending signal.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent: 36pt"><span style="font-size: 10pt">The command <a href="/tag/used/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >used</a> to <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> <st1:placename w:st="on"><strong>I/O</strong></st1:placename><strong> <st1:placename w:st="on">Printer</st1:placename> <st1:placename w:st="on"><a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Data</a></st1:placename> <st1:placetype w:st="on">Port</st1:placetype></strong><br />
send signal out <st1:place w:st="on"><st1:placename w:st="on">Printer</st1:placename> <st1:placetype w:st="on">Port</st1:placetype></st1:place>, we use the form of command like this,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent: 36pt"><strong><span style="font-size: 10pt">OUT Address <a href="/tag/data/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> port, Value</span></strong><span style="font-size: 10pt"><br />
Address data port of</span><span style="font-size: 10pt" lang="TH"> </span><span style="font-size: 10pt">printer=0378<br />
Value that will send to</span><span style="font-size: 10pt" lang="TH"> </span><span style="font-size: 10pt">printer data port, the number that <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> 8 bit is</span><span style="font-size: 10pt" lang="TH"> </span><span style="font-size: 10pt">00-FF.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-indent: 36pt"><strong><span style="font-size: 10pt">OUT DX,AL</span></strong></p>
<p class="MsoNormal" style="text-indent: 36pt"> <a href="http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port/#more-347" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=347&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_347" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-assembly-to-control-io-printer-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Pascal to connect Parallel Port</title>
		<link>http://www.english.thaiio.com/programming-in-pascal-to-connect-parallel-port/</link>
		<comments>http://www.english.thaiio.com/programming-in-pascal-to-connect-parallel-port/#comments</comments>
		<pubDate>Sun, 04 May 2008 14:01:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Programming</dc:subject>
	<dc:subject>Delphi</dc:subject>
	<dc:subject>Pascal</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-pascal-to-connect-parallel-port/</guid>
		<description><![CDATA[Pascal is the another language that can program to connect controlling out of computer‘s port, such as Serial Port, RS-232, Parallel Port, Printer Port. Generally, many languages will have function for sending value and reading value from port. 
Although, there is no language, it can be programmed to directly connect along port. So, you have [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">Pascal is the another language that can program to <a href="/index.php?tag=connect/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> controlling out of <a href="/tag/computer/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >computer</a>‘s <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a>, such as <span style="color: black"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a> <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a>, RS-232, Parallel Port, Printer Port</span>. Generally, many languages will have <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> for sending value and reading value from port. <o:p></o:p></span></p>
<p style="text-align: justify; text-indent: 36pt"><span style="font-size: 10pt">Although, there is no language, it can be programmed to directly <a href="/tag/connect/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> along port. So, you have to use the <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> from DLL file for sending the function that send and read value from <st1:place w:st="on"><st1:placetype w:st="on">port</st1:placetype>  of <st1:placename w:st="on">Pascal</st1:placename></st1:place> like the following,</span> <a href="http://www.english.thaiio.com/programming-in-pascal-to-connect-parallel-port/#more-346" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=346&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_346" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-pascal-to-connect-parallel-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Visual C++ to connect through IO Serial Port Part#2</title>
		<link>http://www.english.thaiio.com/20-programming-in-visual-c-to-connect-through-io-serial-port-part2/</link>
		<comments>http://www.english.thaiio.com/20-programming-in-visual-c-to-connect-through-io-serial-port-part2/#comments</comments>
		<pubDate>Sun, 04 May 2008 13:14:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Programming</dc:subject>
	<dc:subject>Visual C++</dc:subject>
	<dc:subject>Serial Port</dc:subject>
	<dc:subject>Com Port</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/20-programming-in-visual-c-to-connect-through-io-serial-port-part2/</guid>
		<description><![CDATA[From programming in visual c++ to connect through i/o serial port #1 for send and receive data with serial port , In this section ,We will learn controllering program communication with serial port by programming in vc++ 6 to create simple program using basic in the part 1 .
1. New project Microsoft VC++ 6
No TagsShare [...]]]></description>
			<content:encoded><![CDATA[<p>From <a href="http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/">programming in visual c++ to connect through i/o serial port #1</a> for send and receive <a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> with <a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >serial</a> <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> , In this section ,<span style="font-size: 16pt">We will <a href="/tag/learn/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >learn</a></span> controllering program communication with <a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >serial</a> <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> by <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> in <a href="/tag/vc/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >vc</a>++ 6 to create simple program using <a href="/tag/basic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >basic</a> in the <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a> 1 .</p>
<p><span style="font-weight: bold">1. <a href="/index.php?tag=new/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >New</a> <a href="/tag/project/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >project</a> Microsoft <a href="/index.php?tag=vc/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VC</a>++ 6<img src="http://www.thaiio.com/image/NewVc6.JPG" align="bottom" height="426" width="561" /></span> <a href="http://www.english.thaiio.com/20-programming-in-visual-c-to-connect-through-io-serial-port-part2/#more-345" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=345&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_345" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/20-programming-in-visual-c-to-connect-through-io-serial-port-part2/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Visual C++ to connect through IO Serial Port1</title>
		<link>http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/</link>
		<comments>http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/#comments</comments>
		<pubDate>Sun, 04 May 2008 13:07:32 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Visual C++</dc:subject>
	<dc:subject>Serial Port</dc:subject>
	<dc:subject>Com Port</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/</guid>
		<description><![CDATA[The context is the fundamental of programming principle by MS Visual C++ 6 connecting through Serial  Port of the computer in sending and getting alphabet. For the form of how to programming that will not have ready-made control that will be used like Visual Basic. In this section, you have to use programming principle [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt"><img src="http://www.thaiio.com/image/vc_banner.jpg" align="left" height="36" width="150" />The context is the fundamental of <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> principle by <span style="color: black">MS <a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> C++ 6 connecting through <st1:place w:st="on"><st1:placename w:st="on"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a></st1:placename>  <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype></st1:place> of the <a href="/tag/computer/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >computer</a> in sending and getting alphabet. For the form of how to <a href="/tag/programming/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> </span>that will not have ready-made <a href="/tag/control/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >control</a> that will be <a href="/tag/used/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >used</a> like <span style="color: black"><a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> <a href="/tag/basic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Basic</a></span>. In this section, you have to use programming principle as reading and writing <a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> file. Anyhow, the <a href="/tag/data/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> that will be got and sent out to <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> is like reading and writing data on file. I prepare the step for understanding in programming like this,<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><strong><u><span style="font-size: 10pt">4 <a href="/index.php?tag=steps/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >steps</a> for connecting <st1:place w:st="on"><st1:placename w:st="on"><span style="color: black"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a></span></st1:placename><span style="color: black"> <st1:placetype w:st="on">Port</st1:placetype></span></st1:place><o:p></o:p></span></u></strong></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><strong>1. Set variable for keeping <span style="color: black">file names, data read (Buffer),file handles</span>, value of getting and sending data.</strong><o:p></o:p></span></p>
<p class="MsoNormal" style="margin-left: 36pt"><span style="font-size: 10pt">HANDLE hComm;      </span><span style="font-size: 10pt">// handle for</span><span style="font-size: 10pt" lang="TH"> </span><span style="font-size: 10pt">COM port</span><span style="font-size: 10pt"><br />
DCB dcb;                 </span><span style="font-size: 10pt">// data structure that keep value for connecting serial port</span><span style="font-size: 10pt"><br />
</span><span style="font-size: 10pt">char</span><span style="font-size: 10pt"> * chCommPort = &#8220;COM1&#8243;; </span><span style="font-size: 10pt">// we use com port 1</span><span style="font-size: 10pt"><br />
</span><span style="font-size: 10pt">int </span><span style="font-size: 10pt">valReturn;                    </span><span style="font-size: 10pt">// keep returning value back in some <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a></span><span style="font-size: 10pt">.<br />
</span><span style="font-size: 10pt">char </span><span style="font-size: 10pt">chBuffer;                  </span><span style="font-size: 10pt">// keep alphabet in getting and sending data.</span><span style="font-size: 10pt"><br />
</span><span style="font-size: 10pt">unsigned long</span><span style="font-size: 10pt"> nReadPort;  </span><span style="font-size: 10pt"> //keep returning value back in <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a>, ReadFile</span><span style="font-size: 10pt"><br />
</span><span style="font-size: 10pt">unsigned long</span><span style="font-size: 10pt"> nWrittenPort;  </span><span style="font-size: 10pt">// keep returning value back in function, WriteFile</span> <a href="http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/#more-344" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=344&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_344" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-visual-c-to-connect-through-io-serial-port1/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using Borland C++ Builder to program connection with IO Parallel Port</title>
		<link>http://www.english.thaiio.com/using-borland-c-builder-to-program-connection-with-io-parallel-port/</link>
		<comments>http://www.english.thaiio.com/using-borland-c-builder-to-program-connection-with-io-parallel-port/#comments</comments>
		<pubDate>Sat, 03 May 2008 12:57:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Programming</dc:subject>
	<dc:subject>C++ Builder</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/using-borland-c-builder-to-program-connection-with-io-parallel-port/</guid>
		<description><![CDATA[The fellow programmer that program to connect with computer’s port on Window by using Borland C++ Builder that use the method that I suggested in programming connect to port that is run on DOS. Also, present how to program by MS VC++ 6 for running on Window that is using function of dos.h file, but [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">The fellow programmer that program to <a href="/index.php?tag=connect/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> with <a href="/tag/computer/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >computer</a>’s <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> on Window by using Borland C++ Builder that use the <a href="/index.php?tag=method/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >method</a> that I suggested in <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> <a href="/tag/connect/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >connect</a> to <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> that is run on DOS. Also, present how to program by MS <a href="/tag/vc/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VC</a>++ 6 for running on Window that is using <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> of dos.h file, but cannot be <a href="/tag/used/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >used</a>, despite declare #include at the top of program.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><span>      </span>First of all, I want to disclaim that I don’t use Borland C++ Builder in <a href="/tag/programming/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> because I practice just MS <a href="/index.php?tag=vc/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VC</a>++ 6 , but trying to search <a href="/index.php?tag=information/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >information</a> in the internet , then I find the answer that we have to use in writing <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> to connect to I/O Port<span>  </span>by helping of <a href="/tag/assembly/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >assembly</a>. I reminded that I <a href="/tag/used/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >used</a> the <a href="/tag/method/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >method</a> of writing in <st1:place w:st="on">Delphi</st1:place> that you will use it to write within your program or will write as function in binary file. It will be more convenient in using that has how to write like the following,</span> <a href="http://www.english.thaiio.com/using-borland-c-builder-to-program-connection-with-io-parallel-port/#more-343" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=343&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_343" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/using-borland-c-builder-to-program-connection-with-io-parallel-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>C++ communicate Parallel Port and Serial Port</title>
		<link>http://www.english.thaiio.com/c-communicate-parallel-port-and-serial-port/</link>
		<comments>http://www.english.thaiio.com/c-communicate-parallel-port-and-serial-port/#comments</comments>
		<pubDate>Sat, 03 May 2008 11:59:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Programming</dc:subject>
	<dc:subject>Visual C++</dc:subject>
	<dc:subject>Serial Port</dc:subject>
	<dc:subject>Com Port</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/c-communicate-parallel-port-and-serial-port/</guid>
		<description><![CDATA[C language is the one of good complier for interface program via Serial Port,Parallel Port,Card I/O 8255 with output devices.
 
Programming Microsoft Visual C++ 6 communicating Parallel Port
 




Outp(port,bytedata) 


 Send value out port as byte


  




 Outpw(port,worddata) 


 Send value out port as word


 Such as Outp(0&#215;378,0xF1) 




 Outpd(port,worddata) 


 Send value out [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt">C language is the one of good complier for <a href="/tag/interface/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >interface</a> program via <st1:placename w:st="on"><span style="color: black"><a href="/tag/serial/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Serial</a></span></st1:placename><span style="color: black"> <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype>,<st1:place w:st="on"><st1:placename w:st="on">Parallel</st1:placename> <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype></st1:place>,Card I/O 8255 with output <a href="/index.php?tag=devices/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >devices</a></span>.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align: center" align="center"><u><span style="font-size: 10pt"><a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Programming</a> <a href="http://www.english.thaiio.com/prog-cgi/VCport2.htm">Microsoft <a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> C++ 6 communicating<span lang="TH"> </span>Parallel Port</a><o:p></o:p></span></u></p>
<p class="MsoNormal" style="text-align: center" align="center"><u><span style="font-size: 10pt"><o:p><span style="text-decoration: none"> </span></o:p></span></u></p>
<p align="center">
<table class="MsoNormalTable" style="width: 364.5pt" border="0" cellpadding="0" cellspacing="0" width="486">
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt">Outp(port,bytedata)</span></strong><strong><span style="font-size: 10pt"> </span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Send value out port as byte</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 94.5pt" width="126">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt">  </span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt"> Outpw(port,worddata)</span></strong><strong><span style="font-size: 10pt"> </span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Send value out port as word</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 94.5pt" width="126">
<p class="MsoNormal"><span style="font-size: 10pt"> Such as Outp(0&#215;378,0xF1) </span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt"> Outpd(port,worddata) </span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Send value out port as byte double words.</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 94.5pt" width="126">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt">  </span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt"> inp(port)</span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Read value as byte from port</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 94.5pt" width="126">
<p class="MsoNormal" style="text-align: center" align="center"><span style="font-size: 10pt">  </span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt"> inpw(port)</span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Read value as word from port.</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 94.5pt" width="126">
<p class="MsoNormal"><span style="font-size: 10pt">Such as inpw(0&#215;378)</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 124.5pt" width="166">
<p class="MsoNormal"><strong><span style="font-size: 10pt"> inpd(port)</span></strong><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="border: 1pt solid #ffcc00; padding: 0cm; width: 139.5pt" width="186">
<p class="MsoNormal"><span style="font-size: 10pt"> Read value as double words from port.</span><span style="font-size: 10pt"><o:p></o:p></span></p>
</td>
<td style="padding: 0cm">
<p class="MsoNormal"><span style="font-size: 10pt"><o:p> </o:p></span></p>
</td>
</tr>
</table>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><o:p> </o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><span>          </span>You can notice that the structure of <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> is like <a href="/tag/programming/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> by <a href="/tag/vb/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VB</a> because <span style="color: black">Dll File</span> that is <a href="/tag/used/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >used</a> in <a href="/tag/vb/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VB</a> that is written from C. I will not mention the fundamental of communicating port.</span> <a href="http://www.english.thaiio.com/c-communicate-parallel-port-and-serial-port/#more-340" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=340&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_340" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/c-communicate-parallel-port-and-serial-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Programming in Visual C++ 6 to connect with I/O Parallel Port</title>
		<link>http://www.english.thaiio.com/programming-in-visual-c-6-to-connect-with-io-parallel-port/</link>
		<comments>http://www.english.thaiio.com/programming-in-visual-c-6-to-connect-with-io-parallel-port/#comments</comments>
		<pubDate>Fri, 02 May 2008 14:30:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>PC Interfacing</dc:subject>
	<dc:subject>Parallel Port</dc:subject>
	<dc:subject>Printer Port</dc:subject>
	<dc:subject>Programming</dc:subject>
	<dc:subject>Visual C++</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/programming-in-visual-c-6-to-connect-with-io-parallel-port/</guid>
		<description><![CDATA[I have already mentioned the content about C, C++, connecting with PC  Port. It’s not too hard. It’s hard at graphics that we write to put together with using, especially program ran on DOS. In this present, programming as Visual is populating because it can be GUI conveniently and not too hard. So, I [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-size: 10pt">I have already mentioned the content about <span style="color: black">C, C++, connecting with <st1:place w:st="on"><st1:placename w:st="on">PC</st1:placename>  <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a>.</st1:placetype></st1:place> It’s not too hard</span>. It’s hard at graphics that we write to put together with using, especially program ran on DOS. In this present, <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> as <span style="color: black"><a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> is populating because it can be GUI </span>conveniently and not too hard. So, I try to use <span style="color: black">Microsoft <a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Visual</a> <a href="/tag/basic/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Basic</a> 6 that is in Microsoft Visual Studio 6, for <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> and step of </span><a href="/tag/programming/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> code for connecting <a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >port</a> is not much because wizard program of <span style="color: black">MS <a href="/tag/vc/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VC</a>++6, is created all for us. <o:p></o:p></span></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><span>          </span>In this program, we will use file conio.h that is include file for using <a href="/tag/function/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >function</a> _outp() and </span><span style="font-size: 10pt" lang="TH"><span> </span></span><span style="font-size: 10pt">_inp()</span><span style="font-size: 10pt"><o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><span>        </span>In this section, I will do as explanation with pictures (</span><span style="font-size: 10pt">Visual Learning)</span><span style="font-size: 10pt">, controlling with messages and the arrange of number shown because if you write explanation as the last contexts, you will be hard to understand.</span> <a href="http://www.english.thaiio.com/programming-in-visual-c-6-to-connect-with-io-parallel-port/#more-337" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=337&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_337" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/programming-in-visual-c-6-to-connect-with-io-parallel-port/feed/</wfw:commentRss>
		</item>
		<item>
		<title>C++ communicate Serial Port as polling</title>
		<link>http://www.english.thaiio.com/c-communicate-serial-port-as-polling/</link>
		<comments>http://www.english.thaiio.com/c-communicate-serial-port-as-polling/#comments</comments>
		<pubDate>Fri, 02 May 2008 11:50:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
	<dc:subject>Programming</dc:subject>
	<dc:subject>Visual C++</dc:subject>
	<dc:subject>Serial Port</dc:subject>
	<dc:subject>Com Port</dc:subject>
		<guid isPermaLink="false">http://www.english.thaiio.com/c-communicate-serial-port-as-polling/</guid>
		<description><![CDATA[I present you about programming by C, version that runs on DOS because there is easier explanation than program as visual that runs on Window that you can notice the article about MS VC++ 6 communicating with Parallel Port and also you can write and try to do by yourself. You can use TurboC because [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt">I present you about <a href="/index.php?tag=programming/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >programming</a> by C, version that runs on DOS because there is easier explanation than program as <a href="/tag/visual/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >visual</a> that runs on Window that you can notice the article about <span style="color: black">MS <a href="/tag/vc/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >VC</a>++ 6 communicating with</span></span><span style="font-size: 10pt" lang="TH"> </span><st1:place w:st="on"><st1:placename w:st="on"><span style="font-size: 10pt">Parallel</span></st1:placename><span style="font-size: 10pt"> <st1:placetype w:st="on"><a href="/tag/port/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >Port</a></st1:placetype></span></st1:place><span style="font-size: 10pt"> and also you can write and try to do by yourself. You can use <span style="color: black">TurboC because </span>just 1 Mb compiler.<o:p></o:p></span></p>
<p class="MsoNormal" style="text-align: justify"><span style="font-size: 10pt"><span>          </span>From the <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a> 1, I mentioned about communication as interrupt. In this <a href="/tag/part/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >part</a>, I will present you about communication as polling. The working like this, the flow of <a href="/index.php?tag=data/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> will not be smooth. CPU cannot anticipate that when the <a href="/index.php?tag=new/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >new</a> <a href="/tag/data/?PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >data</a> arrive. It will verify the <a href="/index.php?tag=time/&PHPSESSID=87f43f6da0c5765063d9b5259201a85b"  class="alinks_links" onclick="return alinks_click(this);" title=""  >time</a> with getting and sending data by speed rate that is higher than speed rate that send through keyboard.</span> <a href="http://www.english.thaiio.com/c-communicate-serial-port-as-polling/#more-339" class="more-link">(more&#8230;)</a></p>
No Tags<p class="akst_link"><a href="http://www.english.thaiio.com/?p=339&amp;akst_action=share-this"  title="E-mail this, post to del.icio.us, etc." id="akst_link_339" class="akst_share_link" rel="nofollow">Share This</a>
</p>]]></content:encoded>
			<wfw:commentRss>http://www.english.thaiio.com/c-communicate-serial-port-as-polling/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
