i have been provided with a task and i need a solution to this. I am not sure if this is logical or not.
If not please pardon me ! and do correct me.
I have a voltage regulator ranging from 0 to 10 volts DC which must act as an analog input to a micro-controller (MC) to perform a specific task.
consider a rage of 0 to 2 volts DC
at this range three digital out pins of a micro-controller must be reserved for a task.
*at 0 volts digital pins D0 D1 D2 must be all LOW
* at 1 volts digital pins D0 and D1 must be HIGH and D2 must be LOW
(This is basically the programming logic )
at range 2 to 4 volts other set of digital pins D3 D4 D5 must be reserved.
I want to know how this voltage range of 0 to 10 volts should be minimised in a set of [(0-2), (2-4),(4-6),(6-8),(8-10) volts] so that it can be fed to the MC for getting the desired output.
THANK YOU in advance.