msmax
Full Member level 1
I use a 16F628 & ADC0831 to read analogue value and compare with preset levels to switch an output on/off if value exceeds.
Problem is that de output starts pulsing if the analogue value inreases towards the preset level and if the preset level is reached it switches steady on.
What I need is a kind of hysteresis so the output switches only ON or OFF without pulsing.
Are you familiar with this and how do you program this in assembler?
May be an interval between analogue input scans?
Problem is that de output starts pulsing if the analogue value inreases towards the preset level and if the preset level is reached it switches steady on.
What I need is a kind of hysteresis so the output switches only ON or OFF without pulsing.
Are you familiar with this and how do you program this in assembler?
May be an interval between analogue input scans?