Very basic input question

tegwin

New Member
Im getting a bit confused with the datasheet for the 28X PIC16f872

Provided I use a suitable resistor to tie the input pins to 0v can I then use a 1.5V input logic?

Or should I seriously be considering using transistors to step the 1.5V logic up to 5V?

Is it possible to step up the voltage with some form or reverse potential divider trickery?
 

moxhamj

New Member
Not all inputs have ADCs on them, but for the ones that do, you can read in a voltage. 0-255 is 0-5V so 1.5V is equal to 76 so just test if higher or lower than this value.

There are other clever options using resistors but they depend on the source impedence of your circuit. Transistors are certainly another option.
 
Top