
Originally Posted by
thm ov3rkill
I want to be able to test a analog voltage peroid.
Ok you want to test an analog voltage, what are you testing for? Do you mean any value greater than zero ?
And if that analog volatge is in fat true then I want it to pulse low out of the same pin testing that voltage.
edit i dont want to see how much the voltage is i want to see when it read analog
So if I understand correctly . . .
Code:
If voltage is > 0 then
PortA.0 = 0 'set port latch to low status before enabling tris
TRISA.0 = 0 ' Turn input into output enabling port to pull low.
else
TrisA.0 = 1 ' Keep port in high impedance input status
endif
Where PortA.0 in this example is your analog input / output port
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Bookmarks