No.Is the difference or gap between these two voltages specified in the image below , the same as hysteresis?
It is likely very low (millivolts) and not specified.if not, then what is the hysteresis voltage of 74HC04 ?
If you want deliberate hysteresis then you need to use a Schmitt-trigger type gate, such as the 74HC14.
1V is a lot of hysteresis. If you need more, then you’ll probably need to use a comparator. What’s your application where you need such large hysteresis?
Hi,
I agree, if you ned more than 1V hysteresis .. it's most probably no logic signal (input).
If you use a non logic (level) signal, you should tell us. (Because it's a special usecase)
HC04 is a logic IC, designed for logic level signals.
How much latency can you live with in the measurement of high and low ? Can you
live with averaging a number of samples ?
In-so-far as the hysteresis problem in a varying amplitude environment, sounds like you
need a lot of gain, minimal hysteresis (if actual noise is small), centered on zero crossing,
eg. ac coupled.......a comparator.
Regards, Dana.
Trying to ‘detect the high and low‘ of a sine wave are quite a different thing than what you’ve initially presented.I am trying to connect a sinusoidal voltage with amplitude of 0.7 - 5V to the microcontroller interrupt
It seems that due to the hysteresis problem, interruptions are happening several times. I am trying to solve this problem
In fact, the high and low of a 50hz sinusoidal signal should be detected
Multiple crossings of 50 Hz detector are typically caused by switching interferences, hysteresis doesn't necesserally help against it. A low pass filter in combination with hysteresis might help, but it also impairs precise phase detection. Another possible solution is a time filter, block timer interrupt for a certain time period after first occurrence.
Trying to ‘detect the high and low‘ of a sine wave are quite a different thing than what you’ve initially presented.
Are you trying to detect the peaks, or the zero crossings? If it’s just zero-crossing then you absolutely need hysteresis.
Hi,
Mind that standard signal flow in a schematic is: left to right. GND and negative supply voltages should point down, positive supply voltage should point up. Thus your schematic is unnecessarily hard to read
Hi,
A paid atttention to your input: So lets see what happened.
* in post#1 you asked about the HC04 and hysteresis. All questions are answered properly in post#2..and post#3. Nothing more to say.
* In post#4 you switched to HC14 and asked about hysteresis and comparator. Barry answered correctly in post#5
****
Now to my post#6:
I tried to help by solving the problem. And here I mean the root problem. The problem is not hysteresis. The hysteresis is to cure the symptom. And hysteresis higher than 1V is unlikely to cure the symptom reliably.
Thus I tried to find out the root cause of the problem. (you know: better remove the root cause than to cure the symptom). The root cause obviously is unusual high noise in the input signal. It´s the almost the only way you can get multiple trigger output from a schmitt trigger circuit.
I asked to show scope pictures - you did not cooperate in this regard.
****
In post#7 you talked about sinusoidal.
I still can´t imagine how the signal should be sinusoidal at all. You failed to prove this.
****
In post#11 I focussed on you saying "hysteresis is the problem". I tried to tell you that hysteresis is not causing the problem but reducing the problem of multiple triggers. I failed in this. Sorry.
****
Posts#8..10 and post#12 gave similar informations. They asked for really important informations. You failed to cooperate on this.
****
Now in post#13:
You provided an non standard, incomplete and poorly designed circuit/schematic.
****
In post#14 I focussed on your given schematic. I told you what it does, and how/why it failes to operate correctly.
But the root cause - the source of noise - and how it enters the trigger circuit is still missing.
So I tried to use my experience (I´ve done 2kV RMS, 3000A RMS SCR switching uints with a precise, noise free trigger down to 20us pp for a silicon production plant) to show you where to look and how to solve your problem.
So from my experience in troubleshooting high power electronic circuits (from 1970 .. now) I´ve learned it´s good to take a step back to get the (whole) better view of the total system. Or just change the point of view to get a better view of the real problem. No need for you to do it the same way - as said, it´s just my experience.
****
In post#15 you complained about my posts. Sorry that I failed to guess what answer you expect.
(And please mind, that I don´t neccessarily give the same answer that others already have given. Also mind, that I simply don´t have the knowledge to answer all questions. Sometimes I still try to give side informations.)
I failed to tell you that 1V is a huge hysteresis (in my eyes 100uV is a small hysteresis). And in my ZCD circuits I never used more than 50mV of hysteresis.
I failed to tell you that the opposite of "Slewrate will decrease and more interruption will be created" is true.
--> As FvM pointed out: proper filtering is the way to go (removing the root cause = noise) , then you may even reduce hysteresis.
So I´ve honestly tried my best to really solve your problem. Tried to give you side informations, tried teach you that hysteresis is not causing multiple triggers. I failed in this.
To avoid to annoy you with more posts I better leave the thread.
Good luck.
Klaus
Wow, yet another jerk.
“Most of the time you don’t pay attention.” How blatantly rude from someone who apparently doesn’t have a clue of what they’re doing, needs a LOT of guidance in performing a simple task, and doesn’t even know what he doesn’t know.
And here’s another bit of information for you, which you would know if you had exerted the minimum effort and actually read the data sheet: maximum allowable input rise time is 500 ns. A 50 Hz sine wave will exceed that.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?