<?xml version="1.0" encoding="utf-8"?>
				<!-- generator="e107" -->
				<!-- content type="Forum / topic" -->
				<rss  version="2.0">
				<channel>
				<title>8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes : Forum / topic</title>
				<link>http://www.8051projects.net/</link>
				<description>Learn to make simple microcontroller projects, pic, 8051, avr and arm projects. download 8051 projects, tutorials, libraries, sample codes. join the microcontroller discussion forum and ask doubts regarding electronics. the best source for 8051 over internet.</description>

<language>en-gb</language>
				<copyright><a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank"><img alt="Creative Commons License" width="80" height="15" style="border-width:0" src="http://i.creativecommons.org/l/by-nc/2.5/in/80x15.png" target="_blank" /></a>This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc/2.5/in/" target="_blank">Creative Commons Attribution-Noncommercial 2.5 India License</a>.<a href='http://www.8051projects.net/disclaimer.htm' target='_blank' />Rickey's World Disclaimer</a></copyright>
				<managingEditor>Ajay Bhargav - contact@nospam.com</managingEditor>
				<webMaster>contact@nospam.com</webMaster>
				<pubDate>Mon, 01 Dec 2008 11:53:17 -0800</pubDate>
				<lastBuildDate>Mon, 01 Dec 2008 11:53:17 -0800</lastBuildDate>
				<docs>http://backend.userland.com/rss</docs>
				<generator>e107 (http://e107.org)</generator>
				<ttl>60</ttl>
				<textInput>
				<title>Search</title>
				<description>Search 8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes</description>
				<name>query</name>
				<link>http://www.8051projects.net/search.php</link>
				</textInput>
						<item>
						<title>serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[hi, i'm trying to learn how to programme a simple serial interfacing using 8051. I found this programme from a site that uses 8051 and visual basic. before implementing the real hardware i would like to try in a simulator. I'm using EdSim51 simulator to try the programme, but it doesn't look like the programme is working. This programme is used to ON/OFF the LED in port 1.7. This is the programme that i modified a litttle bit to suits the EdSim51 simulator. Can anyone help me with this problem?<br /><br />                     ORG     00H    		<br />      	MOV TMOD,#20H			<br />	MOV TH1,#0FDH			<br />	MOV TL1,#0FDH<br />	MOV SCON,#50H			<br />	SETB TR1<br /><br />READ:	JNB RI,READ				<br />	MOV A,SBUF				<br />	CJNE A,#0FFH,CLEAR				<br />	CLR RI<br />					<br />WAIT:	JNB RI,WAIT				<br />	MOV A,SBUF				<br />	CJNE A,#00H,NXT		<br />	CLR P1.7					<br />	SJMP DOWN	<br />			<br />NXT:	CJNE A,#01H,DOWN		<br />	SETB P1.7<br />				<br />CLEAR:	CLR RI					<br />	SJMP HERE				<br />	END<br />]]></description>
<pubDate>Wed, 25 Jun 2008 08:54:23 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
						<item>
						<title>Re: serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[Hello Oreo, <br /><br />in your program you are comparing the incoming characters to some fixed ones and switching LED on/off. <br /><br /> you have defined some labels/segments  which are not present in your code like :<br /><br />ORG 00H<br />MOV TMOD,#20H<br />MOV TH1,#0FDH<br />MOV TL1,#0FDH<br />MOV SCON,#50H<br />SETB TR1<br /><br />READ: JNB RI,READ<br />MOV A,SBUF<br />CJNE A,#0FFH,CLEAR<br />CLR RI<br /><br />WAIT: JNB RI,WAIT<br />MOV A,SBUF<br />CJNE A,#00H,NXT<br />CLR P1.7<br />SJMP <strong class='bbcode bold'><span style='color:#990000'><span style='color:#0000ff'>DOWN</span></span></strong><br /><br />NXT: CJNE A,#01H,DOWN<br />SETB P1.7<br /><br />CLEAR: CLR RI<br />SJMP <strong class='bbcode bold'><span style='color:#0000ff'>HERE</span></strong><br />END <br /><br /><br />data sent over serial port will be in ASCII format, so its better to compare with known ASCII letters than HEX values  for eg: a b c <br /><br /><br />a modified code looks  like this:<br /><br /><div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><span style="color: #0000ff;">ORG</span> <span style="color: #ff0000;">00H</span><br /><br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">TMOD</span>,#20H<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">TH1</span>,#<span style="color: #ff0000;">0FDH</span><br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">TL1</span>,#<span style="color: #ff0000;">0FDH</span><br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SCON</span>,#50H<br /><span style="color: #00007f; font-weight:bold;">SETB</span> TR1<br /><br /><span style="color: #00007f; font-weight:bold;">SETB</span> P1<span style="color: #ff0000;">.7</span><br /><br />READ: <span style="color: #00007f; font-weight:bold;">JNB</span> RI,READ<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">A</span>,<span style="color: #46aa03; font-weight:bold;">SBUF</span><br /><span style="color: #00007f; font-weight:bold;">CLR</span> RI<br /><span style="color: #00007f; font-weight:bold;">CJNE</span> <span style="color: #46aa03; font-weight:bold;">A</span>,#<span style="color: #7f007f;">'A'</span>,NOTA &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">; &nbsp;if it is &quot;A&quot; then the LED glows</span><br /><span style="color: #00007f; font-weight:bold;">CLR</span> P1<span style="color: #ff0000;">.7</span><br /><span style="color: #00007f; font-weight:bold;">SJMP</span> READ<br /><br />NOTA: <span style="color: #00007f; font-weight:bold;">CJNE</span> <span style="color: #46aa03; font-weight:bold;">A</span>,#<span style="color: #7f007f;">'B'</span>,READ<br /><span style="color: #00007f; font-weight:bold;">SETB</span> P1<span style="color: #ff0000;">.7</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">; if its &quot;B&quot; &nbsp;LED is off </span><br /><span style="color: #00007f; font-weight:bold;">SJMP</span> READ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #adadad; font-style: italic;">; if you enter any other letters/nums it just ignores</span><br /><br /><span style="color: #0000ff;">END</span><br />&nbsp;</div></div>]]></description>
<author>Arun Kumar V&lt;nura1002003@nospam.com&gt;</author>
<pubDate>Wed, 25 Jun 2008 18:13:08 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
						<item>
						<title>Re: serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[thank u so much for replying. one question is, the data transmitted is in ASCII right? So should i send an 'A' or 41H instead? i try it in Edsim51 simulator. It is a free simulator that i downloaded.It has quite an interesting diaplay to use. But it does'nt seem to work in both data that I transmitted in the external UART panel. Am i doing it all wrong?]]></description>
<author>oreo&lt;witchkingx@nospam.com&gt;</author>
<pubDate>Thu, 26 Jun 2008 04:06:49 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
						<item>
						<title>Re: serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[Hello Oreo,<br /><br />you can either use 'A' or 41H, because the compiler ultimately converts all Ascii, Decimal, binary values into hex.<br /><br />i had used Edsim51 last year,it looked good but not very flexible. the code i gave works well and has been tested on some other sim called 80513 Simulator. here are the test results:<br /><br />When 'A' is pressed - P1.7 is 0 <br /><br /><a class='bbcode' href='http://www.8051projects.net/e107_files/public/1214485420_426_FT10320_serial_-a.jpg' rel='external'  target='_blank'><img src='http://www.8051projects.net/e107_files/public/1214485420_426_FT10320_serial_-a_.jpg' class='bbcode' alt='' width='500' height='375'  />	</a><br /><br /><br /><br /><br />When 'B' or any other letter is pressed P1.7 is 1<br /><br /><a class='bbcode' href='http://www.8051projects.net/e107_files/public/1214485420_426_FT10320_serial-b.jpg' rel='external'  target='_blank'><img src='http://www.8051projects.net/e107_files/public/1214485420_426_FT10320_serial-b_.jpg' class='bbcode' alt='' width='500' height='375'  />	</a><br /><br /><br />i'll try it on Edsim51 tonight.......... <br /><br />one more thing, in our forum we have a Thanks giving Button, if you find the replies helpful you can press the Thanks button<br /><br /><br />Arun]]></description>
<author>Arun Kumar V&lt;nura1002003@nospam.com&gt;</author>
<pubDate>Thu, 26 Jun 2008 06:11:37 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
						<item>
						<title>Re: serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[hai arun. i did'nt notice the thanks button. hehehe anyway i have downloaded the simulator u mentioned and i will i try it.  Once again thanks.]]></description>
<author>oreo&lt;witchkingx@nospam.com&gt;</author>
<pubDate>Fri, 27 Jun 2008 20:17:24 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
						<item>
						<title>Re: serial interfacing doubt.</title>
<link>http://www.8051projects.net/forum-t10320.html</link>
<description><![CDATA[hai. this the vb source code that i mentioned before. I have modified  a little bit based on your given code. Do you think it's ok?<br /><br />Private Sub Form_Load()<br />On Error Resume Next<br />    MSComm1.CommPort = 1<br />    MSComm1.Settings = "9600,N,8,1"<br />    MSComm1.DTREnable = False<br />    MSComm1.PortOpen = True<br />End Sub<br /><br />Private Sub cmdsend_Click()<br />Dim LED As Long<br />If opton.Value = True Then<br />    LED = A<br />Else<br />    LED = B<br />End If<br />MSComm1.Output = Char$(LED)<br />End Sub<br /><br />Private Sub Form_Unload(Cancel As Integer)<br />MSComm1.PortOpen = False<br />End Sub<br />]]></description>
<author>oreo&lt;witchkingx@nospam.com&gt;</author>
<pubDate>Mon, 30 Jun 2008 08:49:18 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t10320.html</guid>
</item>
				</channel>
				</rss>