pic prog

emraude2008

Feb 10, 2011
9
Joined
Feb 10, 2011
Messages
9
hi everyone, i want to do a programm with 16f877 and this is the idea :
* if there is an elecrical tension superior of 0.4 V then a signal A will activ the commitator 1 and commitator 2 should be close
*if there is an electrical tension between 0.2V and 0.4V then a signal B will activ the commitator 2 and the commitator 3 and close the commitator 1

it seemes maybe easy but i couldn't do it with pic programation in mplab or mcls-modular
 

(*steve*)

¡sǝpodᴉʇuɐ ǝɥʇ ɹɐǝɥd
Moderator
Jan 21, 2010
25,510
Joined
Jan 21, 2010
Messages
25,510
You can use the ADC inputs to detect a voltage and then take action depending on what it is.
 
Top