Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Forums > Electronic Projects Design/Ideas/Reviews


Electronic Projects Design/Ideas/Reviews Are you building an electronic project or want to? Maybe you need some assistance? Come and submit your electronic questions here and let our experienced members find a solution.

Reply
 
LinkBack Thread Tools Display Modes
Old 7th July 2008, 03:33 AM   (permalink)
Default Multiple logic IC

Hi,

Are there any chips out there that have all the following on 1 chip?

AND gate
NAND gate
2 AND gates with inverted inputs.

The reason I ask is I need to free up a couple of pins on my PIC chip. I am currently outputing 4 different values on 4 pins. What I want to do is output the 4 different values on 2 pins and use these gates to get the 4 results...i.e.
0 + 0 = 1
0 + 1 = 2
1 + 0 = 3
1 + 1 = 4

NAND is the first, AND with 2nd inverted input is second, AND with first inverted input is third, and AND is fourth.

I suppose I could do it with 2 NOT gates and 4 AND gates.

Cheers,

Craig

Last edited by richacm; 7th July 2008 at 03:38 AM.
richacm is offline  
Old 7th July 2008, 03:39 AM   (permalink)
Default

Funny you should ask...

http://www.electro-tech-online.com/g...es-one-ic.html
Mikebits is offline  
Old 7th July 2008, 03:49 AM   (permalink)
Default

Quite interesting but I would probably still need a few of these to do the job I want. I would rather do it with 1 extra chip.
richacm is offline  
Old 7th July 2008, 03:53 AM   (permalink)
Default

Then perhaps.
http://www.ee.ctu.edu.tw/material/da...et/16v8mil.pdf

Last edited by Mikebits; 7th July 2008 at 03:54 AM.
Mikebits is offline  
Old 7th July 2008, 04:04 AM   (permalink)
Default

Now thats a pretty nice chip! Bit of an over kill for what I'm doing though - it kinds of also leads to the point of why not just by another cheap as PIC chip and program that.

What I am going to do though is remove 6 other pins I used for a 8bit wide bus and instead use a shift register to store this. I will then only need 2 pins to do this.

Thanks for the info though.
richacm is offline  
Old 7th July 2008, 04:04 AM   (permalink)
Default

@Mike: I have not seen any PAL's or GALs for a long time. My HS uses them, but I am going to persuade the teachers and the school board to stop using GALs, as they are completely left behind as compared to microcontrollers.

I would go for the 74xx08 and the 74xx04, as it is small and not a GAL, as then you would have to get a programmer, etc.
Krumlink is offline  
Old 7th July 2008, 04:18 AM   (permalink)
Default

An ISP Gal device eliminates the need for any fancy programmer. Only a PC is needed.

Quote:
My HS uses them, but I am going to persuade the teachers and the school board to stop using GALs, as they are completely left behind as compared to microcontrollers.
I would like to hear the response you get after making this proposal.
Mikebits is offline  
Old 7th July 2008, 05:03 AM   (permalink)
Default

Looks like a 74HC238 might do the trick for you:
http://focus.ti.com/lit/ds/symlink/cd74hc138.pdf
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Old 7th July 2008, 05:10 AM   (permalink)
Default

Quote:
Originally Posted by kchriste View Post
Looks like a 74HC238 might do the trick for you:
http://focus.ti.com/lit/ds/symlink/cd74hc138.pdf
0 + 0 = 1
0 + 1 = 2
1 + 0 = 3
1 + 1 = 4

Heck, that would work. Nice
Mikebits is offline  
Old 7th July 2008, 05:17 AM   (permalink)
Default

Quote:
Originally Posted by Mikebits View Post
An ISP Gal device eliminates the need for any fancy programmer. Only a PC is needed.



I would like to hear the response you get after making this proposal.
Its middle of summer vacation, so I have some time to wait
Krumlink is offline  
Old 7th July 2008, 05:46 AM   (permalink)
Default

Quote:
Looks like a 74HC238 might do the trick for you:
you beat me to it. I just saw the demux chips. I'm going to use the HCF4028 instead though as I want High states.

Cheers,

Craig
richacm is offline  
Old 7th July 2008, 10:25 AM   (permalink)
Default

Quote:
Originally Posted by richacm View Post
2 AND gates with inverted inputs.
That's equivalent to a NOR gate, it sounds like you haven't tried to use boolean algebra to simplify your expression.
__________________
I also post at the following sites:
http://www.stop-microsoft.org http://www.heated-debates.com
Screen name: Aloone_Jonez
And http://www.silicontronics.com, same screen name as here.
Hero999 is offline  
Old 8th July 2008, 01:19 AM   (permalink)
Default

If you use a shift register such as:-

http://www.fairchildsemi.com/ds/74/74VHC164.pdf

you can output basically independently on as many outputs you want, using two pins on the PIC. There is some more code to be written and the outputs will go to the wrong state briefly while all the outputs are changing.
Diver300 is offline  
Old 8th July 2008, 03:15 AM   (permalink)
Default

Quote:
Originally Posted by richacm View Post
you beat me to it. I just saw the demux chips. I'm going to use the HCF4028 instead though as I want High states.
Cheers,
Craig
The 74HC238 will give you active high outputs. The 74HC138 will give active low outputs. The HCF4028 is also a good choice. Have fun.
__________________
--- The days of the digital watch are numbered. ---
kchriste is offline  
Reply

Bookmarks

Thread Tools
Display Modes



Similar Threads
Title Starter Forum Replies Latest
multiple sounds from a pc Gaston Chit-Chat 39 25th January 2008 07:37 PM
multiple regulators, 1 pot technogeek Electronic Projects Design/Ideas/Reviews 10 17th June 2007 02:32 AM
Help with multiple switching nickname Electronic Projects Design/Ideas/Reviews 11 14th August 2005 03:22 AM
Multiple PWM using PICBasic or C need help!!! picBasic_Freak Micro Controllers 6 1st March 2004 07:36 AM
Multiple LED flashlight? LifeForce4 Electronic Projects Design/Ideas/Reviews 3 22nd September 2003 06:43 PM



All times are GMT. The time now is 05:56 AM.


Electronic Circuits  |  Learning Electronics
Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.

eXTReMe Tracker