hjl4
Member
Ok so I need opinion on how to implement this.
I am reading an analogue voltage (GP0) on 12f675, and I need to trigger an LED if the results in ADRESH or ADRESL, are >greater then 3volts, LED turns off if in between 2.99v and 1.70v, but if it is less then 1.70volts, the LED must turn on again.
I have setup my ports to be GP0 and GP1 as Analogue input, and GP3 as digital.
I turned Comparators off etc...
I'm no math wizard, but I just wondered if this is possible without reading thru a table.
Maybe interrupt??
I am reading an analogue voltage (GP0) on 12f675, and I need to trigger an LED if the results in ADRESH or ADRESL, are >greater then 3volts, LED turns off if in between 2.99v and 1.70v, but if it is less then 1.70volts, the LED must turn on again.
I have setup my ports to be GP0 and GP1 as Analogue input, and GP3 as digital.
I turned Comparators off etc...
I'm no math wizard, but I just wondered if this is possible without reading thru a table.
Maybe interrupt??