Hi there!
After reading Nigels superb tutorial on analog to digital conversion using the 16F876, I have finaly understood how to setup A2D, but what I dont understand yet is how I can actually use that digital value to do something, like putting a pin high when the digital value reaches f.ex. 500, and go low when it is under 500. Would be neat to be able to turn a fan on and off by connecting a thermistor to the A2D.
Anyone know how to do this? Boolean? Code examples would be greatly appriciated. thanks.
After reading Nigels superb tutorial on analog to digital conversion using the 16F876, I have finaly understood how to setup A2D, but what I dont understand yet is how I can actually use that digital value to do something, like putting a pin high when the digital value reaches f.ex. 500, and go low when it is under 500. Would be neat to be able to turn a fan on and off by connecting a thermistor to the A2D.
Anyone know how to do this? Boolean? Code examples would be greatly appriciated. thanks.