<?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>electrofriends.com &#187; 7-segment</title>
	<atom:link href="http://electrofriends.com/tag/7-segment/feed/" rel="self" type="application/rss+xml" />
	<link>http://electrofriends.com</link>
	<description>...bringing innovative minds together</description>
	<lastBuildDate>Fri, 11 May 2012 08:44:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Interfacing 7-segment display using 7447 decoder</title>
		<link>http://electrofriends.com/articles/electronics/microcontroller-electronics-articles/8051-8951/interfacing-7-segment-display-using-7447-decoder/</link>
		<comments>http://electrofriends.com/articles/electronics/microcontroller-electronics-articles/8051-8951/interfacing-7-segment-display-using-7447-decoder/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 13:32:44 +0000</pubDate>
		<dc:creator>Ranjith</dc:creator>
				<category><![CDATA[8051/8951]]></category>
		<category><![CDATA[7-segment]]></category>
		<category><![CDATA[7447 decoder]]></category>
		<category><![CDATA[8951 Microcontroller]]></category>
		<category><![CDATA[Interfacing using microcontroller]]></category>
		<category><![CDATA[lookup table]]></category>
		<category><![CDATA[pin configuration]]></category>
		<category><![CDATA[program to interface]]></category>
		<category><![CDATA[Seven Segment]]></category>

		<guid isPermaLink="false">http://electrofriends.com/?p=673</guid>
		<description><![CDATA[The Light Emitting Diode (LED), finds its place in many applications in this modern electronic fields. One of them is the Seven Segment Display. Seven-segment displays contains the arrangement of the LEDs in “Eight” (8) passion, and a Dot (.) with a common electrode, lead (Anode or Cathode). The purpose of arranging it in that [...]]]></description>
			<content:encoded><![CDATA[<p>The Light Emitting Diode (LED), finds its place in many applications in this modern electronic fields. One of them is the Seven Segment Display. Seven-segment displays contains the arrangement of the LEDs in “Eight” (8) passion, and a Dot (.) with a common electrode, lead (Anode or Cathode). The purpose of arranging it in that passion is that we can make any number out of that by switching ON and OFF the particular LED&#8217;s. Here is the block diagram of the Seven Segment LED arrangement.<span id="more-673"></span></p>
<p style="text-align: center;"><strong>Pin configuration of a seven segment display:</strong><br />
<img class="size-medium wp-image-475 aligncenter" title="7 segment pin configuration" src="http://electrofriends.com/wp-content/uploads/2009/04/7_seg_pin_config-300x266.gif" alt="7 segment pin configuration" width="300" height="266" /></p>
<p><strong>LED’s are basically of two types:</strong></p>
<ol>
<li>Common Cathode (CC)<br />
All the 8 anode legs uses only one cathode,  which is common.</li>
<li>Common Anode (CA)<br />
The common leg for all the cathode is of Anode type.</li>
</ol>
<p>For the discussion purpose, we use CC LED, where by just reversing the logical voltages we can implement the same for CA LED also.</p>
<p>In a CC LED, all the 8 legs (&#8216;a&#8217; through &#8216;h&#8217;) are of anode type and the common cathode will be connected to the GND of the supply. By energizing any of the legs with +5 Volts will lead to switch the correspondent segment ON. In the microprocessor binary system, 0Volts will be considered as Binary 0, and 5Volts will be considered as Binary1. Considering these two condition, we can make an arrangement as the microcontroller gives OUT the 0s and 1s through its ports, which is connected to the 8 legs of the LED. Of course, we can control the Port Output; implicitly we can Switch-ON required legs of the display.</p>
<p>There 2 methods of interfacing LED with the Microcontroller Intel 8051/8951.</p>
<ol>
<li><a href="http://electrofriends.com/articles/electronics/microcontroller-electronics-articles/8051-8951/interfacing-7-segment-display-with-microcontroller-using-lookup-table/">Using lookup table. This uses 7 output pins of microcontroller</a></li>
<li>Using 7447 decoder. This method uses 4 output pins of microcontroller</li>
</ol>
<p>The difference between the two main methods is simple and clear. In both the cases, microcontroller communicates with external world through its ports. But, in the 1st case, we connect all the 8 pins of the port directly to the LED and control the voltage through the ports manually to display the desired number.  But, in the second case, we send the BCD of the number that we wanted to display to a middleware IC 7447, the BCD to LED code converter, which by itself gives out the correspondent 7 segment codes to the LED.</p>
<p>Here we explain using lookup table. Click here for the method &#8220;using 7447 decoder&#8221;</p>
<p><strong>Using 7447 decoder:</strong></p>
<p>The IC7447 is a BCD to 7-segment pattern converter. This setup is the advanced form of the &lt;previous&gt; setup where we entered the patterns manually to display the desired character. Here in this case, the IC7447 takes the Binary Coded Decimal (BCD) as the input and outputs the relevant 7 segment code. We connect first four pins of the microcontroller Port 2  to the 7447 and the Output 8 pins of 7447 to the 8 legs of the LED as shown in the figure. Te circuit diagrams are shown below, the first figure is interfacing the CA LED where as the second is of CC LED. The number required to display is sent as the lower nibble of the Port 2 of the Microcontroller. The 7447 converts the four input bits (BCD) to their corresponding 7-segment codes. The outputs of the 7447 are connected to the 7-segment display.</p>
<div id="attachment_674" class="wp-caption aligncenter" style="width: 517px"><img class="size-full wp-image-674" title="Circuit diagram for interfacing Common Anode 7-Segment Display " src="http://electrofriends.com/wp-content/uploads/2009/08/7_seg_circuit_ca_7447.gif" alt="Circuit diagram for interfacing Common Anode 7-Segment Display" width="507" height="326" /><p class="wp-caption-text">Circuit diagram for interfacing Common Anode 7-Segment Display</p></div>
<div id="attachment_675" class="wp-caption aligncenter" style="width: 517px"><img class="size-full wp-image-675" title="Circuit diagram for Common Cathode 7-Segment Display" src="http://electrofriends.com/wp-content/uploads/2009/08/7_seg_circuit_cc_7447.gif" alt="Circuit diagram for Common Cathode 7-Segment Display" width="507" height="326" /><p class="wp-caption-text">Circuit diagram for Common Cathode 7-Segment Display</p></div>
<p><strong>Program:</strong></p>

<div class="wp_syntax"><div class="code"><pre class="asm" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">This</span> program displays characters <span style="color: #0000ff;">0</span> through <span style="color: #0000ff;">9</span> on seven<span style="color: #339933;">-</span><span style="color: #000000; font-weight: bold;">segment</span> display 
using IC <span style="color: #0000ff;">7447</span> as the middle wear<span style="color: #339933;">.</span>
&nbsp;
  again<span style="color: #339933;">:</span> <span style="color: #00007f; font-weight: bold;">mov</span> a<span style="color: #339933;">,</span>#<span style="color: #0000ff;">00h</span>                  <span style="color: #666666; font-style: italic;">; Start form zero</span>
     up<span style="color: #339933;">:</span>  <span style="color: #00007f; font-weight: bold;">mov</span> p2<span style="color: #339933;">,</span> a                  <span style="color: #666666; font-style: italic;">; Move to Port 2</span>
          <span style="color: #00007f; font-weight: bold;">mov</span> r3<span style="color: #339933;">,</span>#<span style="color: #0000ff;">255</span>                <span style="color: #666666; font-style: italic;">; Delay</span>
     D1<span style="color: #339933;">:</span>  <span style="color: #00007f; font-weight: bold;">mov</span> r1<span style="color: #339933;">,</span>#<span style="color: #0000ff;">255</span>
      D<span style="color: #339933;">:</span>  djnz r1<span style="color: #339933;">,</span>D
          djnz r3<span style="color: #339933;">,</span>D1
          <span style="color: #00007f; font-weight: bold;">inc</span> a
          cjne a<span style="color: #339933;">,</span>#<span style="color: #0000ff;">0ah</span><span style="color: #339933;">,</span>up
          sjmp again</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://electrofriends.com/articles/electronics/microcontroller-electronics-articles/8051-8951/interfacing-7-segment-display-using-7447-decoder/feed/</wfw:commentRss>
		<slash:comments>38</slash:comments>
		</item>
		<item>
		<title>Digital IC Tester</title>
		<link>http://electrofriends.com/projects/microcontrollers/digital-ic-tester/</link>
		<comments>http://electrofriends.com/projects/microcontrollers/digital-ic-tester/#comments</comments>
		<pubDate>Thu, 20 Nov 2008 14:38:32 +0000</pubDate>
		<dc:creator>Ranjith</dc:creator>
				<category><![CDATA[Microcontrollers]]></category>
		<category><![CDATA[7-segment]]></category>
		<category><![CDATA[8051]]></category>
		<category><![CDATA[8951]]></category>
		<category><![CDATA[Digital IC Tester]]></category>
		<category><![CDATA[IC 74194]]></category>
		<category><![CDATA[IC 7447]]></category>
		<category><![CDATA[Keyboard Interface]]></category>
		<category><![CDATA[Microcontroller project]]></category>

		<guid isPermaLink="false">http://electrofriends.com/?p=15</guid>
		<description><![CDATA[Unlike the IC testers available in the market today which are usually expensive, this IC tester is affordable and user-friendly. This IC tester is constructed using 8951 microcontroller along with a keyboard and a display unit. It can test digital ICs having a maximum of 24 pins.]]></description>
			<content:encoded><![CDATA[<p>An Integrated Circuit tester (IC tester) is used to test Integrated Circuits (ICs). We can easily test any digital IC using this kind of an IC tester. For testing an IC, we need to use different hardware circuits for different ICs; like we need a particular kind of tester for testing a logic gate and another for testing flip flops or shift registers which involves more complication and time involved will also be more. So here’s an IC tester to overcome this problem. <span id="more-15"></span>Unlike other IC testers, this is more reliable and easier since we don’t need to rig up different kind of circuits for different kind of ICs, each time we need to test them.</p>
<p>Unlike the IC testers available in the market today which are usually expensive, this IC tester is affordable and user-friendly. This IC tester is constructed using 8951 microcontroller along with a keyboard and a display unit. It can test digital ICs having a maximum of 24 pins. Since it is programmable, any number of ICs can be tested within the constraint of the memory available. This IC tester can be used to test a wide variety of ICs which includes simple logic gates and also sequential and combinational ICs like flip-flops, counters, shift registers etc. It is portable and easy to use.</p>
<p>The block diagram of the programmable digital IC tester is as shown in below. It consists of two 8951 microcontroller ICs, a 24-pin IC socket, a keyboard unit, a display unit and indicators.</p>
<p>To test a particular digital IC, one needs to insert the IC into the IC socket and enter the IC number using the keyboard and then press the “ENTER” key. The IC number gets displayed in the 7-segment display unit.</p>
<p>Four LEDs are provided as indicators. If the IC being tested is a logic gate, then each of the 4 indicator LEDs correspond to the 4 gates of the IC. In any other case wherein the inserted IC is not a logic gate, all the 4 LEDs work as a single indicator.</p>
<div id="attachment_1408" class="wp-caption aligncenter" style="width: 310px"><img class="size-medium wp-image-1408" title="Digital IC Tester" src="http://electrofriends.com/wp-content/uploads/2008/11/circuit1_ic1-300x227.jpg" alt="Digital IC Tester" width="300" height="227" /><p class="wp-caption-text">Digital IC Tester</p></div>
<div id="attachment_24" class="wp-caption aligncenter" style="width: 285px"><img class="size-medium wp-image-24" title="Digital IC Tester" src="http://electrofriends.com/wp-content/uploads/2008/11/circuit2_ic-275x300.jpg" alt="Digital IC Tester" width="275" height="300" /><p class="wp-caption-text">Digital IC Tester</p></div>
<p>Block diagram of Programmable Digital IC Tester:</p>
<div id="attachment_25" class="wp-caption aligncenter" style="width: 509px"><img class="size-full wp-image-25" title="Block diagram" src="http://electrofriends.com/wp-content/uploads/2008/11/block.jpg" alt="Block diagram" width="499" height="387" /><p class="wp-caption-text">Block diagram</p></div>
]]></content:encoded>
			<wfw:commentRss>http://electrofriends.com/projects/microcontrollers/digital-ic-tester/feed/</wfw:commentRss>
		<slash:comments>237</slash:comments>
		</item>
	</channel>
</rss>

