Digital logic circuit design

sundar_milo

Apr 25, 2006
20
Joined
Apr 25, 2006
Messages
20
Hi everyone.

Im a new member of this great site.I hope this is the best place for me to improve my knowledge.

Im also a newbie to this electronic world.I have a thought in my mind to design a walkie talkie like circuit .But in my idea i want to design a circuit that can send and receive text messages wirelessly between 2 .im good in digital electrnics design n know about decoders,encoders,multiplexers ,demultiplexers,etc., and also how to design on my own.ive done

View attachment 38902

 

slackjack

Nov 2, 2005
177
Joined
Nov 2, 2005
Messages
177
I do believe that putting an inverter in series with the cathode of LED will fix it.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Hi Sundar,
Welcome to our forum. ;D
I was going to attach clips from the datasheet of a 7408 IC and of an LED, but I think you should find them and read them:
1) You are correct in thinking that when both inputs are high for an AND gate then its output is high, but your circuit doesn't make the disconnected input low. Use a voltmeter to see.
TTL ICs like the 7408 have inputs that need a fairly low resistance to ground to cause the input voltage to be a logic low. The max input current is 1.6mA and a typical logic low voltage is 0.4V, so a resistance of 0.4V/1.6mA= 250 ohms or less to ground at the input will cause a logic low when the switch is opened. Use 220 ohms.
2) The minimum recommended supply voltage for TTL gates like a 7408 is 4.75V. Usually a regulated supply voltage of 5.0V is used.
3) The LED is like a dead short to the output of a TTL logic gate unless a current-limiting resistor is in series with the LED. With a 5V supply and a 2V LED, a 120 ohm resistor would protect the gate's output and LED and the LED might be bright enough.
4) If the LED needs a voltage higher than about 3V like a blue or white LED, then a TTL gate's output voltage might not go high enough. TTL outputs are designed to conduct 16mA to ground, but a much lower current at a fairly low voltage when they go high. 

View attachment 38903

 

windoze killa

Mar 4, 2006
136
Joined
Mar 4, 2006
Messages
136
You may also put a resistor from the anode of the LED to GND to make sure the O/P of the AND gate is pulled low when you don't have both I/Ps high.

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
windoze killa said:
You may also put a resistor from the anode of the LED to GND to make sure the O/P of the AND gate is pulled low when you don't have both I/Ps high.
No. A resistor at the output to ground of a TTL gate is not required. It is guaranteed to sink 16mA to ground with a max voltage of only 0.4V when it is low. The output might not go high enough to light the LED if it had a resistor to ground.
 

sundar_milo

Apr 25, 2006
20
Joined
Apr 25, 2006
Messages
20
Thx for ur replies audioguru.

I was thinking to add a resistor between pin3 and the LED but i dont understand why u want me to add a 220 ohm between the pin2 and ground.

I will test the circuit as u have said and i will tell the result tomorrow.

Thank you very much. :)

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
sundar_milo said:
i dont understand why u want me to add a 220 ohm between the pin2 and ground.
Without the resistor then pin 2 is high all the time. The resistor makes pin 2 a logic low voltage when the switch is opened, because the input of a TTL gate needs 1.6mA to ground to make it low.
 

logan_dslasher

Jul 23, 2004
392
Joined
Jul 23, 2004
Messages
392
i just want to share this. this is from the LOGIC GATES Project http://www.electronics-lab.com/forum/index.php?topic=6022.0

8)
 

sundar_milo

Apr 25, 2006
20
Joined
Apr 25, 2006
Messages
20
Hi again

I've completed making the circuit as said by audioguru and it works PERFECTLY FINE .I also checked a NAND gate (7400) and it also works well.i used a 2 x 3v = 6v supply.i had some resistors with me,a 330 ohm and a 120,didnt use a 220 ohm but i will buy one and see the difference in light intensity.

ive attached the picture of the circuit below.(batteries not included in pic

View attachment 38905

View attachment 38906

 
Last edited by a moderator:

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
Good, it works.
A TTL Nand gate will light an LED brighter than an And gate, because TTL outputs have much more current going low than they have when they are going high.

 

sundar_milo

Apr 25, 2006
20
Joined
Apr 25, 2006
Messages
20
Thx for ur advice audioguru.
can u say something about my idea in that above picture showing a block diagram of my thoughts.

regards

sundar

 

audioguru2

Apr 6, 2004
12,026
Joined
Apr 6, 2004
Messages
12,026
sundar_milo said:
can u say something about my idea
I recommend that you cut the project into pieces:
1) Keyboard to display.
2) Above to transmit and receive the data along a wire.
3) Make FM tx and rx circuits.
 

sundar_milo

Apr 25, 2006
20
Joined
Apr 25, 2006
Messages
20
yes i was thinking about that too.
what im asking is that the theory is feasible or not in your first look .
Also im a little confused with the keyboard thing.is there any specific IC for doing keyboard job ?
i thought of designing the keyboard myself and finally came to demultiplexers(1 input , 2^n outputs,n selection lines).I also think that some ROM chip is available in market for this.

consider an 8 bit number (00000000).as i said that i like designing my own keyboard rather than using EBCDIC and ASCII,i assume the first 2 bits from MSB as a dummy.i plan to use the other 6 bits since 2^6=64.this would  be enough for alphabets,numbers,special characters and control strings .

why im using 8bit is that the other 2 bits may be used for parity , etc.

First designing a custom 6bit binary to 7x5 matrix converter would be the best idea.for that a 6 variable kmap could be used to get the simplified boolean expression .but this somewhat looks like a tiresome process.so i can choose a an IC to do this.i dont know which ic would do this wonder .

help would be appreciated :)

 
Last edited by a moderator:
Top