Need the reverse logic value between a 74HC85 and 75HC238 - Page 1
Forum section: electronics / projects

author: laxamar
author_rank: Contributor
timestamp: August 31, 2022, 10:50:37 pm
content: I am using a 4 bit comparator (CMOS version) 74HC85. Actually using it to only compare 3 bits and 4th is hard coded to GND (0). I am only interested in Perfect Match (All inputs equal). Signals are coming from another board.My (stupidly simple) issue is that this chip gives a High Value when things are equal. The next chip using this info has 3 input to be activated (G1 - NOT G2A - NOT G2B) - 2 NOT and 1 TRUE. I Obviously need to attach the output of comparator A=B to G1. But that forces my other control signal (STROBE_R1) to be reversed. I need STROBE_R1 to be ON elsewhere. STROBE_R1 is software controlled, so I can chose it's state. But it comes from another board and all the connector pins are accounted for. I don't want to add the complexity of 2 STROBE SIGNALS (on/off) at the source. This has to work on this PCB.My question is this (any of these solutions will do)Are there ICs other then 74HC85 or 75HC238 that can give/accept the proper value (a reversed value comparator seems doubtful, as it needs to cascade)?Is there a very simple circuit that can reverse the state of a signal and reverse it in SMD? (an XOR circuit seems sooo much waste)Any other solution that will take as input 3 bit count, 3 bit compare and ON/OFF signal to binary

author: oPossum
author_rank: Super Contributor
timestamp: August 31, 2022, 10:58:28 pm
content: Quote from: laxamar on August 31, 2022, 10:50:37 pmhttps://www.ti.com/lit/sg/scyt129g/scyt129g.pdf

author: laxamar
author_rank: Contributor
timestamp: August 31, 2022, 11:10:43 pm
content: Quote from: oPossum on August 31, 2022, 10:58:28 pmThe winner seems to be SN74AUP1G04YFPRhttps://www.ti.com/general/docs/suppproductinfo.tsp?distId=10&gotoUrl=https%3A%2F%2Fwww.ti.com%2Flit%2Fgpn%2Fsn74aup1g04Thanks

author: Benta
author_rank: Super Contributor
timestamp: August 31, 2022, 11:31:49 pm
content: Aren't the single-gates great? They used to be called "kludge logic", but I use them all the time.On an aside: why are two of your 'HC85 inputs unconnected? I know they are listed as "don't-cares" in your configuration, but it's an open door to electrical interference problems.

author: laxamar
author_rank: Contributor
timestamp: September 01, 2022, 12:11:38 am
content: Quote from: Benta on August 31, 2022, 11:31:49 pmBecause I was lazy and stupid. And your timing could not have been more spectacular!I've had the PCB for a couple of weeks and have been running tests on them - fixing design issues one by one. The last piece which I did not --- UNTIL NOW --- consider critical was that every once in a while, the comparator would give wrong results. I'm saying after hours and hours of sequencing. I was thinking some sort of connection problems as 4 boards are involved. Literally was going to research it now. This completely explains it and was "caught" before sending the next batch.I have to buy you some beer or something, right?

author: edavid
author_rank: Super Contributor
timestamp: September 01, 2022, 12:32:57 am
content: If I understand the question correctly, you could use a CD74HC688 comparator instead of the 74HC85 + inverter. It's in a 20 pin package, so might not save any space.

author: pgo
author_rank: Regular Contributor
timestamp: September 01, 2022, 12:50:31 am
content: Hi,I might be misunderstanding what you are asking but can you use ~(A>B) & ~(A<B) & strobe?

author: laxamar
author_rank: Contributor
timestamp: September 01, 2022, 12:55:29 am
content: Quote from: edavid on September 01, 2022, 12:32:57 amBrilliant!I do have room for it, simplifies my life as I don't have to deal with anything but equality. Additionally, I can move from 3 bit to 8 bit in the future, once I become rich and famous because my device actually works!And @Benta, yes, I know. All unused inputs to ground!

author: laxamar
author_rank: Contributor
timestamp: September 01, 2022, 01:05:01 am
content: Quote from: pgo on September 01, 2022, 12:50:31 amImpeccable logic. No other change necessary and the pins are literally next to each other on my PCB.I now have 3 completely acceptable solutions!Probably will not use the inverter, as cool as it is because routing PWR and GND on the current PCB might get complex. But great arrow in my quiver.Love the idea of a simpler compare chip. But I'd have to order DIP version, test on my breadboard and redesign. Damn I like it though.Just routing 1 extra line on a validated design sounds great and I can test on the breadboard NOW. I'll see if I can route STROBE around on the PCB.Wow. Thanks everybody!

author: metertech58761
author_rank: Frequent Contributor
timestamp: September 02, 2022, 12:31:09 am
content: 74xx688? Haven't seen that part number in ages. I know it by an older part number - the 25LS2521.One of my employer's past customers used those on a number of their boards for addressing purposes.Just putting that part number out there as a possible alternate if needed.

author: edavid
author_rank: Super Contributor
timestamp: September 02, 2022, 02:09:26 am
content: Quote from: metertech58761 on September 02, 2022, 12:31:09 am1. OP wants a CMOS part2. 74HC688 is actually in production, 25LS2521 is long obsolete

author: laxamar
author_rank: Contributor
timestamp: September 17, 2022, 11:20:47 pm
content: ADDENDUM - JUST FUN STUFFI added small inverter to my circuit where I needed the signal reverse. I'm using KiCad. I downloaded a symbol and footprint from the manufacturer.The Symbol for this smallest component of my design is *literally* the biggest element on there. It only uses 4 pins, but I had to use the 6 pin X2SON footprint which has 6 pins. 2 NC. The symbol dwarfs everything else. The foot print is minuscule... I honestly know how to create my own symbol that's not obnoxious, but it's funny (to me!)

author: Benta
author_rank: Super Contributor
timestamp: September 18, 2022, 10:35:59 am
content: 1: The 74AUP1G04 is already in the KiCAD library, if not, use the 74VHC1G04 instead.2: The 7406/74AUP1G06 has open-collector/open-drain output and will not work here.