What is the output and how do I measure it in this 74HC04 inverter circuit?

  • Thread starter Thread starter EvLer
  • Start date Start date
  • Tags Tags
    Inverter
Click For Summary

Discussion Overview

The discussion revolves around measuring the output voltage levels (Voh and Vol) in a circuit using a 74HC04 inverter. Participants explore the connections of the inverter, the expected behavior of the circuit, and the proper methods for measurement, including the implications of different load configurations. The scope includes practical application and experimental measurement in electronics.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Experimental/applied

Main Points Raised

  • One participant describes their circuit setup with a 74HC04 inverter and expresses confusion about where to measure the output voltage.
  • Another participant provides a reference to the datasheet and clarifies the pin configuration of the inverter, indicating that pin 2 is the output for pin 1 input.
  • A participant seeks clarification on measuring Voh and Vol, questioning whether to measure across the grounded or source-connected load.
  • There is a discussion about the behavior of current through the LEDs and resistors depending on the switch position, with one participant hypothesizing about sourcing and sinking current.
  • One participant suggests measuring the voltage at pin 2 relative to ground for both high and low states to determine Voh and Vol.
  • Another participant reports measuring Voh and Vol but finds discrepancies with expected values from the datasheet, particularly noting that Voh is equal to the source voltage instead of the expected lower value.
  • A suggestion is made that a misconnection of the green LED could lead to incorrect measurements, proposing to check the orientation of the LED.
  • One participant mentions potential issues with measurement precision due to using an analog multimeter instead of a digital one.

Areas of Agreement / Disagreement

Participants express varying levels of understanding regarding the measurement process and the expected output values. There is no consensus on the exact cause of the discrepancies in measured values, and multiple viewpoints on the correct measurement approach and circuit behavior are present.

Contextual Notes

Participants discuss the importance of not leaving CMOS inputs floating and the implications of load configurations on output measurements. There are unresolved questions about the accuracy of measurements and the impact of circuit component orientation.

Who May Find This Useful

Readers interested in practical electronics, particularly those working with CMOS logic circuits and measurement techniques, may find this discussion relevant.

EvLer
Messages
454
Reaction score
0
This is a prelab i am working on:
we have a 74HC04 inverter, whose pin 1 is connected to the DIP switch (switch connected to 5V source and ground), pin 2 is connected to
1) a load (R + LED) that connects back to the source
2) a load (R + LED) that is properly connected to the ground
pin 7 is connected to the ground.
And the LEDs light up as the prelab describes, so i assume i built the circuit correctly.
So, it asks to measure Voh, Vol...
but i don't know where the output is! I drew the circuit. If pin 7 is output, my multimeter does not detect a thing! what is the output in this case and how do i measure it?
So, generally if you deal with LCs, are pin1 and 2 usually considered inputs or is there no convention?

Thanks sooo much again and again!
 
Engineering news on Phys.org
Check out the datasheet:

http://focus.ti.com/docs/prod/folders/print/sn74hc04.html

The 74HC04 is a hex inverter. Pin 14 is power, pin 7 is GND, and the inverters are like this:

IN --> Out
1 --> 2
3 --> 4
5 --> 6
13 -->12
11 -->10
9 --> 8

(Assuming that I remembered them correctly...I didn't look on the datasheet, but you'll end up memorizing simple logic parts like that if you use them a lot.) If you drive pin 1 high, you should definitely see pin 2 go low. If you drive pin 1 low, you should definitely see pin 2 go high. Since pin 1 is the input for your switch & LED circuit, pin 2 is the output. Measure the Voh and Vol there as you flip your switch. And measure the voltage across the resistor to find the current in both cases (there will be no current when the LED is off...).

BTW, when working with CMOS logic, you should never leave a CMOS input pin floating (unconnected). You should tie it either high or low -- you can either tie with a resistor, or hard tie the input to either 5V or GND. Do leave unused *outputs* open. CMOS inputs are high impedance and not self-biasing, so if you leave a CMOS input floating, it can float near mid-rail, which turns on both the pullup and pulldown FETs inside, which can increase the Idd for the chip a lot. It can also create buzzing noise in your circuit, if the floating input picks up noise and floats up and down near mid-rail. For the circuit as you've described it, just ground the unused inputs on pins 3, 5, 13, 11, and 9.
 
thanks for all your help and the datasheet, now i can check myself.
berkeman said:
Measure the Voh and Vol there as you flip your switch.
sorry if I am too hard-headed (this is my first real lab in electronics) for measuring Voh and Vol, across what do i need to measure it, since pin2 is connected to two different R+LED combinations (one is grounded and the other is hooked up to the source)? edit: across the grounded one?

And measure the voltage across the resistor to find the current in both cases (there will be no current when the LED is off...)
yeah, there is no current across the resistor when the LED is off, but ... there is current across the LED! i am pretty sure my circuit is fine, the lab has a photograph attached showing what it should look like.
with this circuit i don't get the same values as the sheet, although our Vcc is +5V
Attached is the circuit.
green LED is connected to the ground and yellow to the + (source?) and in the picture the input is HIGH (switch is on).

ok: edit#3: here's what i think after looking at it for a while:
when the switch is in Low i have a sourcing current, so I should be measuring V and I across the grounded R+LED (green) and when the switch is High i have a sinking current, so i should be measuring V and I across the R+LED that is hooked up to the source, right? and i should measure it across R+LED, right?
 

Attachments

  • circuit.JPG
    circuit.JPG
    22.3 KB · Views: 590
Last edited:
" for measuring Voh and Vol, across what do i need to measure it..."
Measure voltage at pin 2 (where both resistors come together) relative to the ground pin 7 for the high (Voh) then the low (Vol) state.
 
OK, thanks, that sort of makes sense.
For input H, i get Vol in vicinity of what the datasheet says, but for input L Voh is 5V which is same as the source and supposed to be around 3.84V, since the load is not a CMOS device. I measured voltage between pin 7 and the wire that connects to both resistors.
So ... where am I measuring it wrong?
 
EvLer said:
OK, thanks, that sort of makes sense.
For input H, i get Vol in vicinity of what the datasheet says, but for input L Voh is 5V which is same as the source and supposed to be around 3.84V, since the load is not a CMOS device. I measured voltage between pin 7 and the wire that connects to both resistors.
So ... where am I measuring it wrong?
I think your green LED is backwards. That would make it look like an open circuit when the output of the inverter is high, so that would let the HC04 output go to the 5V rail. Flip the green LED so that its cathode is to ground, and then you should get a Voh that is a little lower.
 
@berkeman: i think it's correctly plugged in, that is: exactly as you say.
What happens i think is that i need a digital multimeter, i can't read analog very precisely it is a tiny bit less than 5V.
Thanks all for help!
 

Similar threads

  • · Replies 18 ·
Replies
18
Views
4K
  • · Replies 41 ·
2
Replies
41
Views
8K
  • · Replies 16 ·
Replies
16
Views
3K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 40 ·
2
Replies
40
Views
13K
  • · Replies 3 ·
Replies
3
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
Replies
3
Views
5K