<?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>Wed, 07 Jan 2009 18:35:51 -0800</pubDate>
				<lastBuildDate>Wed, 07 Jan 2009 18:35:51 -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>query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[i am posting the thread.the logic of the program is that - i want to interface adc and microcontroller and see the output through the ports of microcontroller .say for a voltage of 2volts ,adc is going to read 033h and this data will be displayed through ports of microcontroller . please check the code and correct it so that it works properly.please help,its too urgent.i am using adc0804 with a vref of 1.28 volts.in r3 i am storing the value of the voltage for which adc is going to give the desired output ,like for 2v ,it will display 033h.<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;">setb</span> p2<span style="color: #ff0000;">.5</span><br />&nbsp;<span style="color: #00007f; font-weight:bold;">setb</span> p2<span style="color: #ff0000;">.6</span><br />intr <span style="color: #0000ff;">bit</span> p2<span style="color: #ff0000;">.7</span><br /><span style="color: #00007f; font-weight:bold;">setb</span> intr<br />adc_port <span style="color: #0000ff;">equ</span> <span style="color: #46aa03; font-weight:bold;">p1</span><br />adc_val <span style="color: #0000ff;">equ</span> 30h<br />voltage_val <span style="color: #0000ff;">equ</span> <span style="color: #46aa03; font-weight:bold;">r3</span><br />back: <span style="color: #00007f; font-weight:bold;">clr</span> wr<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">setb</span> wr<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> conversion<br />read: &nbsp;<span style="color: #00007f; font-weight:bold;">clr</span> rd<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">setb</span> rd<br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">00h</span><br />&nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> data_display1<br />&nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">01h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> data_display2<br />&nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> &nbsp;<span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">02h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> data_display3<br />&nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">03h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> data_display4<br />&nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> &nbsp;<span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">04h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> data_display5<br />&nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r3</span>,#<span style="color: #ff0000;">05h</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> data_display6 &nbsp;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">sjmp</span> back<br />data_display1: <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">00h</span><br />conversion: &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />data_display2: &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">033h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">acall</span> delay<br />data_display3: &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">067h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#<span style="color: #ff0000;">10</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />data_display4: &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">097h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp;data_display5: &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">099h</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; data_display6: &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">a</span>,#<span style="color: #ff0000;">0ffh</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r7</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">b</span>,#10h<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">div</span> ab<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r6</span>,<span style="color: #46aa03; font-weight:bold;">b</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">r5</span>,<span style="color: #46aa03; font-weight:bold;">a</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r7</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r6</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">mov</span> <span style="color: #46aa03; font-weight:bold;">p1</span>,<span style="color: #46aa03; font-weight:bold;">r5</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">acall</span> delay<br />&nbsp; &nbsp; delay: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">mov</span> r4,#<span style="color: #ff0000;">200</span><br />&nbsp; &nbsp; here: &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00007f; font-weight:bold;">djnz</span> r4,here<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00007f; font-weight:bold;">ret</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #0000ff;">end</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<br />&nbsp;</div></div>                                                                 <br />  the problem with this code is that it is being emulted but correct result is not displayed, in port1 where i am seing te display its giving all msb first then lsb.suppose for nos.33,67,97, it is reading 3,6,9 then 3,7,7,but it should read 33,67,97.  if i add a ret statement after every data_display function then at the last 2 functions(data_display5,data_display6 an error is occuring stating expression out of range) .i want to see the display through leds connected to ports of microcontroller.please help me to sort this out.               <br />]]></description>
<pubDate>Tue, 15 Apr 2008 18:43:48 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[u must be on a slow internet  and the connection might be getting timed out!!!<br /><br />thats y u r posting multiples/duplicate and we are wasting our time deleting them  <img src='http://www.8051projects.net/e107_images/emotes/yahoo/4.gif' alt='' style='vertical-align:middle; border:0' /> <br /><br />do not click on repost data after a connection times out..<br /><br />restart from the home page .. see if the post has already been posted if not then repost again!!!<br /><br />for the attatchment  give proper time for the files to get atatched<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/103.gif' alt='' style='vertical-align:middle; border:0' />]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 15 Apr 2008 19:07:40 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[<div class='indent'>Please note<br />Allowed file types: | .zip | .gz | .jpg | .png | .gif | .rar | .pdf |<br />Any other file types uploaded will be instantly deleted.<br />Maximum file size: 2M </div> <br />@Priya ...Make sure you're complying to ^^]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 16 Apr 2008 03:40:34 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[If u r finding trouble in attaching the code , why don't u try and just cut paste it in the main window (if the size is not very large.). try converting to pdf if possible and attach]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Wed, 16 Apr 2008 04:02:09 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[<div class='quote_top'>priya123 wrote ...</div><div class='quote'><br />i am posting the thread.the logic of the program is that - i want to interface adc and microcontroller and see the output through the ports of microcontroller .say for a voltage of 2volts ,adc is going to read 033h and this data will be displayed through ports of microcontroller . please check the code and correct it so that it works properly.please help,its too urgent<br /><br /></div><br />Please give details of which ADC you're using,Vref etc......<br /><br />In your code you are making subroutine calls(acall data_display1 etc) without using 'ret' at the end of the subroutine.Only the 'delay' subroutine has a proper ret statement.....Correct this.<br /><br /> <div class='indent'>acall conv</div> <br />where's the 'conv' routine???<br /><br /> <div class='indent'>cjne r3,#00h,check1</div> <br />What does r3 contain?......you haven't put a value in r3 to compare with.<br /><br />If you're using ADC0804 plz go through this tut and understand the program flow and then adapt it to your requirement...<br /> <a class='bbcode' href='http://www.8051projects.net/adc-interfacing/adc0804-8051-programming.php' rel='external'  target='_blank'>http://www.8051projects.net/adc-interfacing/adc0804-8051-programming.php</a>]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Mon, 21 Apr 2008 03:26:45 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[Hi Priya.....<br />First of all whenever you have to write something new,make a new post(in the same thread).Do not edit your original post(unless it's for some correction).<br />Coming to your code,I would suggest you to go through the tutorial I linked above again and again till you understand it.<br />Where are you reading the ADC?<br />What have you done with r3?<br />acall conversion doesn't have a ret.<br /> <img src='http://www.8051projects.net/e107_images/emotes/yahoo/7.gif' alt='' style='vertical-align:middle; border:0' />  <br /><br />As for the display problem you are dividing the value with 10H(ie 16 decimal)...<br />Use 0AH(dec 10) and see....]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Fri, 25 Apr 2008 00:24:21 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[i have another query regarding this project,at first i was getting the display by connecting  pins of port1 to leds on my trainer kit but if i want to see the display through a 7-segment display how should  i connect 7-segment display with the microcontroller port,the program code will remain the same or i have to change it? please tell me what changes i have to make???please send a quick reply ,its too urgent.]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 29 Apr 2008 17:27:01 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[i have another query regarding this project,at first i was getting the display by connecting  pins of port1 to leds on my trainer kit but if i want to see the display through a 7-segment display how should  i connect 7-segment display with the microcontroller port,the program code will remain the same or i have to change it? please tell me what changes i have to make???please send a quick reply ,its too urgent.]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 29 Apr 2008 17:28:57 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
						<item>
						<title>Re: query1</title>
<link>http://www.8051projects.net/forum-t8618.html</link>
<description><![CDATA[<br /> Girl you are too confusing, <br /><br /> First you haven't answered to Shashijoseph's doubts, full details are missing<br /><br />Second you fill the entire forum (including chatbox) with your multiple threads, <br /><br />Third your want solutions to your problems in a jiffy (very desperate)<br /><br />follow a step by step approach while debugging<br /><br />Arun]]></description>
<author>contact@nospam.com (Ajay Bhargav)</author>
<pubDate>Tue, 29 Apr 2008 18:09:27 -0700</pubDate>
<guid isPermaLink="true">http://www.8051projects.net/forum-t8618.html</guid>
</item>
				</channel>
				</rss>