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
* 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