Hi ,
Please refer to the sketch for the circuit arrangement, I tried to compare two voltages Vin1 and Vin2, whichever greater than Vref (0.4V), will trigger interrupt to stop output, if both voltages lower than Vref interrupt will start output again.
I’m using 16f628A mikroC compiler, any suggestions how I should configure the chip to have 0.4V reference, and what other registers that involve in this task? Thanks
Please refer to the sketch for the circuit arrangement, I tried to compare two voltages Vin1 and Vin2, whichever greater than Vref (0.4V), will trigger interrupt to stop output, if both voltages lower than Vref interrupt will start output again.
I’m using 16f628A mikroC compiler, any suggestions how I should configure the chip to have 0.4V reference, and what other registers that involve in this task? Thanks
Attachments
-
189.9 KB Views: 20