<?xml version="1.0" encoding="UTF-8"?><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/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Microcontroller | Student Projects</title>
	<atom:link href="https://studentprojects.in/category/electronics/microcontroller/microcontroller-codes/feed/" rel="self" type="application/rss+xml" />
	<link>https://studentprojects.in</link>
	<description>Microcontroller projects, Circuit Diagrams, Project Ideas</description>
	<lastBuildDate>Sat, 12 Mar 2022 17:02:39 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.1.7</generator>
	<item>
		<title>Interface stepper motor with 8051 Trainer Kit parallel port</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 17:02:09 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<category><![CDATA[Stepper motor]]></category>
		<category><![CDATA[8051 Trainer Kit]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8687</guid>

					<description><![CDATA[<p>AIM: To interface stepper motor with 8051 parallel port and to vary speed of motor, direction of motor. APPARATUS REQUIRED: 8051 Trainer Kit Stepper Motor Interface Board THEORY: A motor in which the rotor is able to assume only discrete stationary angular position is a stepper motor. The rotor motion occurs in a stepwise manner</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/">Interface stepper motor with 8051 Trainer Kit parallel port</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To interface stepper motor with 8051 parallel port and to vary speed of motor, direction of motor.</p>



<p><strong>APPARATUS REQUIRED:</strong></p>



<ul><li>8051 Trainer Kit</li><li>Stepper Motor Interface Board</li></ul>



<p><strong>THEORY:</strong></p>



<p>A motor in which the rotor is able to assume only discrete stationary angular position is a stepper motor. The rotor motion occurs in a stepwise manner from one equilibrium position to next.</p>



<p>The motor under our consideration uses 2 – phase scheme of operation. In this scheme, any two adjacent stator windings are energized. The switching condition for the above said scheme is shown in Table.</p>



<p><strong>Clockwise</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>A1</td><td>B1</td><td>A2</td><td>B2</td></tr><tr><td>1</td><td>0</td><td>0</td><td>1</td></tr><tr><td>0</td><td>1</td><td>0</td><td>0</td></tr><tr><td>0</td><td>1</td><td>0</td><td>1</td></tr><tr><td>1</td><td>0</td><td>1</td><td>0</td></tr></tbody></table></figure>



<p><strong>Anti &#8211; Clockwise</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>A1</td><td>B1</td><td>A2</td><td>B2</td></tr><tr><td>1</td><td>0</td><td>1</td><td>0</td></tr><tr><td>0</td><td>1</td><td>0</td><td>1</td></tr><tr><td>0</td><td>1</td><td>0</td><td>0</td></tr><tr><td>1</td><td>0</td><td>0</td><td>1</td></tr></tbody></table></figure>



<p>In order to vary the speed of the motor, the values stored in the registers R1, R2, R3 can be changed appropriately.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Store the look up table address in DPTR</li><li>Move the count value (04) to one of the register (R0)</li><li>Load the control word for motor rotation in accumulator</li><li>Push the address in DPTR into stack</li><li>Load FFC0 in to DPTR.</li><li>Call the delay program</li><li>Send the control word for motor rotation to the external device.</li><li>Pop up the values in stack and increment it.</li><li>Decrement the count in R0. If zero go to next step else proceed to step 3.</li><li>Perform steps 1 to 9 repeatedly.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">START: ORG 4100
       MOV DPTR,#4500H
       MOV R0,#04
AGAIN: MOVX A,@DPTR
       PUSH DPH
       PUSH PDL
       MOV DPTR,#FFC0H
       MOV R2, 04H
       MOV R1,#FFH
DLY1:  MOV R3, #FFH
DLY:   DJNZ R3,DLY
       DJNZ R1,DLY1
       DJNZ R2,DLY1
       MOVX @DPTR,A
       POP DPL
       POP DPH
       INC DPTR
       DJNZ R0,AGAIN
       SJMP START</code></pre>



<p><strong>DATA:</strong></p>



<p>4500: 09, 05, 06, 0A</p>



<p><strong>RESULT:</strong></p>



<p>Thus the speed and direction of the motor were controlled using 8051 trainer kit.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/">Interface stepper motor with 8051 Trainer Kit parallel port</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/interface-stepper-motor-with-8051-trainer-kit-parallel-port/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to exhibit the RAM direct addressing</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-exhibit-the-ram-direct-addressing/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-exhibit-the-ram-direct-addressing/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 14:48:11 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8685</guid>

					<description><![CDATA[<p>AIM: To exhibit the RAM direct addressing and bit addressing schemes of 8051 microcontroller. ALGORITHM: For Bit addressing, Select Bank 1 of RAM by setting 3rd bit of PSW Using Register 0 of Bank 1 and accumulator perform addition For direct addressing provide the address directly (30 in this case) Use the address and Accumulator</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-exhibit-the-ram-direct-addressing/">ASM program to exhibit the RAM direct addressing</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To exhibit the RAM direct addressing and bit addressing schemes of 8051 microcontroller.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>For Bit addressing, Select Bank 1 of RAM by setting 3<sup>rd</sup> bit of PSW</li><li>Using Register 0 of Bank 1 and accumulator perform addition</li><li>For direct addressing provide the address directly (30 in this case)</li><li>Use the address and Accumulator to perform addition</li><li>Verify the results</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        SETB	PSW.3
        MOV	R0,#data1
        MOV	A,#data2
        ADD	A,R0
        MOV	DPTR,#4500
        MOVX	@DPTR,A
HERE:	SJMP	HERE</code></pre>



<p><strong>Direct Addressing:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        MOV	30,#data1
        MOV	A,#data2
        ADD	A,30
        MOV	DPTR,#4500
        MOVX	@DPTR,A
HERE:   SJMP	HERE</code></pre>



<p><strong>OBSERVATION:</strong></p>



<p><strong>Bit addressing:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>54</td></tr><tr><td><br></td><td>25</td></tr><tr><td>Output:</td><td>79 (4500)</td></tr></tbody></table></figure>



<p><strong>Direct addressing:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>54</td></tr><tr><td><br></td><td>25</td></tr><tr><td>Output:</td><td>79 (4500)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to exhibit the different RAM addressing schemes of 8051 was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-exhibit-the-ram-direct-addressing/">ASM program to exhibit the RAM direct addressing</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-exhibit-the-ram-direct-addressing/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to divide two 8 bit numbers using 8051 instruction set</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-divide-two-8-bit-numbers-using-8051/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-divide-two-8-bit-numbers-using-8051/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 14:20:50 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8683</guid>

					<description><![CDATA[<p>AIM: To perform division of two 8 – bit numbers using 8051 instruction set. ALGORITHM: Get the data in A – reg. Get the value to be divided in B – reg. Divide the two data The quotient is in A – reg. The remainder is in B – reg. Store the results. PROGRAM: OBSERVATION:</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-divide-two-8-bit-numbers-using-8051/">ASM program to divide two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM: </strong>To perform division of two 8 – bit numbers using 8051 instruction set.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Get the data in A – reg.</li><li>Get the value to be divided in B – reg.</li><li>Divide the two data</li><li>The quotient is in A – reg.</li><li>The remainder is in B – reg.</li><li>Store the results.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code class="">        ORG	4100
        CLR	C
        MOV	A,#data1
        MOV	B,#data2
        DIV	AB
        MOV	DPTR,#4500
        MOVX	@DPTR,A
        INC	DPTR
        MOV	A,B
        MOVX	@DPTR,A
HERE:	SJMP	HERE</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>05</td></tr><tr><td><br></td><td>03</td></tr><tr><td>Output:</td><td>01 (4500)</td></tr><tr><td><br></td><td>02 (4501)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to perform multiplication of two 8 – bit numbers using 8051 instruction set was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-divide-two-8-bit-numbers-using-8051/">ASM program to divide two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-divide-two-8-bit-numbers-using-8051/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to multiply two 8 bit numbers using 8051 instruction set</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-multiply-two-8-bit-numbers-using-8051/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-multiply-two-8-bit-numbers-using-8051/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 10:43:10 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8679</guid>

					<description><![CDATA[<p>AIM: To perform multiplication of two 8 – bit numbers using 8051 instruction set. ALGORITHM: Get the data in A – reg. Get the value to be multiplied in B – reg. Multiply the two data The higher order of the result is in B – reg. The lower order of the result is in</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-multiply-two-8-bit-numbers-using-8051/">ASM program to multiply two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To perform multiplication of two 8 – bit numbers using 8051 instruction set.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Get the data in A – reg.</li><li>Get the value to be multiplied in B – reg.</li><li>Multiply the two data</li><li>The higher order of the result is in B – reg.</li><li>The lower order of the result is in A – reg.</li><li>Store the results.</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        ORG	4100
        CLR	C
        MOV	A,#data1
        MOV	B,#data2
        MUL	AB
        MOV	DPTR,#4500
        MOVX	@DPTR,A
        INC	DPTR
        MOV	A,B
        MOVX	@DPTR,A 
HERE:	SJMP	HERE</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>80</td></tr><tr><td><br></td><td>80</td></tr><tr><td>Output:</td><td>00 (4500)</td></tr><tr><td><br></td><td>19 (4501)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to perform multiplication of two 8 – bit numbers using 8051 instruction set was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-multiply-two-8-bit-numbers-using-8051/">ASM program to multiply two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-multiply-two-8-bit-numbers-using-8051/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>ASM program to add two 8 bit numbers using 8051 instruction set</title>
		<link>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-add-two-8-bit-numbers-8051/</link>
					<comments>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-add-two-8-bit-numbers-8051/#respond</comments>
		
		<dc:creator><![CDATA[Editorial Team]]></dc:creator>
		<pubDate>Sat, 12 Mar 2022 04:32:20 +0000</pubDate>
				<category><![CDATA[Microcontroller]]></category>
		<guid isPermaLink="false">https://studentprojects.in/?p=8675</guid>

					<description><![CDATA[<p>AIM: To perform addition of two 8 – bit numbers using 8051 instruction set. ALGORITHM: Clear C – register for Carry Get the data immediately . Add the two data Store the result in memory pointed by DPTR PROGRAM: OBSERVATION: Input: 66 23 Output: 89 (4500) RESULT: Thus the program to perform the addition of</p>
<p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-add-two-8-bit-numbers-8051/">ASM program to add two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></description>
										<content:encoded><![CDATA[<p><strong>AIM:</strong> To perform addition of two 8 – bit numbers using 8051 instruction set.</p>



<p><strong>ALGORITHM:</strong></p>



<ol><li>Clear C – register for Carry</li><li>Get the data immediately .</li><li>Add the two data</li><li>Store the result in memory pointed by DPTR</li></ol>



<p><strong>PROGRAM:</strong></p>



<pre class="wp-block-code"><code lang="wasm" class="language-wasm">        ORG	4100
        CLR	C
        MOV	A,#data1
        ADD	A,#data2
        MOV	DPTR,#4500
        MOVX	@DPTR,A 
HERE:	SJMP	HERE</code></pre>



<p><strong>OBSERVATION:</strong></p>



<figure class="wp-block-table"><table><tbody><tr><td>Input:</td><td>66</td></tr><tr><td><br></td><td>23</td></tr><tr><td>Output:</td><td>89 (4500)</td></tr></tbody></table></figure>



<p><strong>RESULT:</strong></p>



<p>Thus the program to perform the addition of two 8 – bit numbers using 8051 instruction set was executed.</p><p>The post <a href="https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-add-two-8-bit-numbers-8051/">ASM program to add two 8 bit numbers using 8051 instruction set</a> first appeared on <a href="https://studentprojects.in">Student Projects</a>.</p>]]></content:encoded>
					
					<wfw:commentRss>https://studentprojects.in/electronics/microcontroller/microcontroller-codes/asm-program-to-add-two-8-bit-numbers-8051/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
