Re: help with hysteresis
Posted: Sun Sep 18, 2016 12:24 pm
I am using the ad of a pic 12F683 converter to read a sine wave.
At the bottom of senoid have 0,263 volts equals 54 bits, the upper part of senoid have 0,293 volts equals 60 bits.
Must have an exit in that when I have 0,263 volts equals 1 and when I have 0,293 volts equals 0. I made flowchart attached partially works responding between 0 and 1. However in a part of senoid he is cycling between 0 and 1.
I know that half of the wave is 0.278 volts equals 57 bits.
Then I have a minimum of senoid = 54; through the senoid = 57 and 60 = maximum senoid.
How do I create a hysteresis so that it recognizes approximately the minimum = 1 and max = 0 and let it be cycling in the state of change interval.
I have attached the code if someone can help demonstrating that the attached code appreciate.
Grateful;
Ricardo.
At the bottom of senoid have 0,263 volts equals 54 bits, the upper part of senoid have 0,293 volts equals 60 bits.
Must have an exit in that when I have 0,263 volts equals 1 and when I have 0,293 volts equals 0. I made flowchart attached partially works responding between 0 and 1. However in a part of senoid he is cycling between 0 and 1.
I know that half of the wave is 0.278 volts equals 57 bits.
Then I have a minimum of senoid = 54; through the senoid = 57 and 60 = maximum senoid.
How do I create a hysteresis so that it recognizes approximately the minimum = 1 and max = 0 and let it be cycling in the state of change interval.
I have attached the code if someone can help demonstrating that the attached code appreciate.
Grateful;
Ricardo.