<?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>2008 Rickey's World</copyright>
				<managingEditor>contact@nospam.com (Ajay Bhargav)</managingEditor>
				<webMaster>contact@nospam.com (Ajay Bhargav)</webMaster>
				<pubDate>Thu, 08 Jan 2009 22:59:50 -0800</pubDate>
				<lastBuildDate>Thu, 08 Jan 2009 22:59:50 -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>8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[I want to send characters to Hyperterminal from 8051. Please let me know if my connections and code are right.<br /><br />8051 TX -> MAX232 T1in.... MAX232 T1out -> PC RX<br /><br />=====<br /><br />9600 baud. 11.0592 MHz. 8 bits. 1 stopbit. No parity.<br /><div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><br /><span style="color: #00007f; font-weight:bold;">clr</span> sm0<br /><span style="color: #00007f; font-weight:bold;">setb</span> sm1<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;">253</span><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;">PCON</span>&nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #00007f; font-weight:bold;">clr</span> ACC<span style="color: #ff0000;">.7</span>&nbsp; &nbsp; &nbsp; &nbsp;&nbsp; &nbsp; &nbsp; &nbsp;<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">PCON</span>, <span style="color: #46aa03; font-weight:bold;">A</span>&nbsp; &nbsp; &nbsp;<br /><span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">SCON</span>, #50H <span style="color: #adadad; font-style: italic;">;8b, 1stop, 1start, REN enabled</span><br />GAIN: <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">SBUF</span>, #<span style="color: #7f007f;">'A'</span> <span style="color: #adadad; font-style: italic;">;letter A is transmitted</span><br />HERE: <span style="color: #00007f; font-weight:bold;">jnb</span> TI, HERE<br /><span style="color: #00007f; font-weight:bold;">clr</span> TI<br /><span style="color: #00007f; font-weight:bold;">sjmp</span> GAIN<br /><span style="color: #0000ff;">end</span></div></div><br />Thanks]]></description>
<pubDate>Mon, 28 Jul 2008 14:47:25 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[<br />  Hi Mac,<br /><br /> the max232 connection seems to be correct, the code doesn't work bcoz you haven't started the timer1, here's the modified code:<br /><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: #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;">253</span><br /><span style="color: #00007f; font-weight:bold;">ANL</span> <span style="color: #46aa03; font-weight:bold;">PCON</span>,#7FH &nbsp;<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SCON</span>, #50H <span style="color: #adadad; font-style: italic;">;8b, 1stop, 1start, REN enabled</span><br /><span style="color: #00007f; font-weight:bold;">SETB</span> TR1<br /><br />GAIN: <span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SBUF</span>, #<span style="color: #7f007f;">'A'</span> <span style="color: #adadad; font-style: italic;">;letter A is transmitted</span><br />HERE: <span style="color: #00007f; font-weight:bold;">jnb</span> TI, HERE<br /><span style="color: #00007f; font-weight:bold;">clr</span> TI<br /><span style="color: #00007f; font-weight:bold;">sjmp</span> GAIN<br /><span style="color: #0000ff;">end</span></div></div><br /><br />all the best !<br /><br /><br />Arun]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 28 Jul 2008 19:32:31 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[Connections are OK.<br />In the code you've forgotten to start the timer (setb TR1).<br />Some lines are superfluous...since you've already set SCON to 50H there's no need to explicitly clr and set smo and sm1.<br />On reset,the PCON D7 bit is cleared automatically,so you can do away with those 3 lines as well.<br /><br />EDIT : Seems Arun and I posted at the same time..]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 28 Jul 2008 19:32:34 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[ok thanks a lot guys]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 28 Jul 2008 20:54:51 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[That worked. Now I'm trying to send 'A' from one micro to another to turn on a led. Can you let me know if you see a problem? <br /><div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><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;">244</span> <span style="color: #adadad; font-style: italic;">;2400</span><br /><span style="color: #00007f; font-weight:bold;">ANL</span> <span style="color: #46aa03; font-weight:bold;">PCON</span>,#7FH &nbsp;<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SCON</span>, #50H <span style="color: #adadad; font-style: italic;">;8b, 1stop, 1start, </span><br /><span style="color: #00007f; font-weight:bold;">SETB</span> TR1<br /><br />send:<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SBUF</span>, #<span style="color: #7f007f;">'A'</span> <span style="color: #adadad; font-style: italic;">;letter A is transmitted</span><br /><span style="color: #00007f; font-weight:bold;">jnb</span> TI, $<br /><span style="color: #00007f; font-weight:bold;">clr</span> TI<br /><span style="color: #00007f; font-weight:bold;">jmp</span> send<br /><span style="color: #0000ff;">end</span></div></div><br /><div class='code_asm'>CODE:</div><div class='code_highlight' style='unicode-bidi: embed; direction: ltr'><div class="asm" style="font-family: monospace;"><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>, &nbsp;#<span style="color: #ff0000;">244</span> &nbsp;<span style="color: #adadad; font-style: italic;">;2400</span><br /><span style="color: #00007f; font-weight:bold;">ANL</span> <span style="color: #46aa03; font-weight:bold;">PCON</span>, #7FH &nbsp;<br /><span style="color: #00007f; font-weight:bold;">MOV</span> <span style="color: #46aa03; font-weight:bold;">SCON</span>, #50H <span style="color: #adadad; font-style: italic;">;8b, 1stop, 1start, REN enabled</span><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 />start:<br /><span style="color: #00007f; font-weight:bold;">JNB</span> RI, $ <span style="color: #adadad; font-style: italic;">; wait for an entire byte to be received</span><br /><span style="color: #00007f; font-weight:bold;">CLR</span> RI <span style="color: #adadad; font-style: italic;">; the receive interrupt flag is set by hardware but must be cleared by software</span><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><span style="color: #adadad; font-style: italic;">; </span><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>, start<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;">jmp</span> $<br /><span style="color: #0000ff;">end</span><br />&nbsp;</div></div><br />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 03 Aug 2008 10:49:57 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[seems ok....]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Sun, 03 Aug 2008 20:45:34 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
						<item>
						<title>Re: 8051 serial port</title>
<link>http://www.8051projects.net/forum-t11188.html</link>
<description><![CDATA[I think it's working now. Cheers.<br />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 04 Aug 2008 07:18:21 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t11188.html</guid>
</item>
				</channel>
				</rss>