Custom interrupt for comparator for 16F628A
Posted: Fri Oct 20, 2017 10:34 am
Hello,
1) I have searched thru' the above topic in the forum and read thru' Dave Squibb and Jan. Lick forum discussion, back in Feb. 2016 & 2015..
2) My interest on the above comparator is quiet similar to Dave Squibb discussion forum..
3) Anyway, I still cannot figure-out how to put this comparator in my Gas sensor project.. I am seeking help if anyone can add-in the 'c' code and
the custom interrupt code for the comparator application..
4) To brief my gas sensor MQ5 project, I used 7 dip-switch connected to the chip serve as timer select for 17 min. to 24 min. .. The Gas sensor Aout
is connected to RA1 (Vin-) and RA2 is connected to external voltage reference.. The RA4 (C2 OUT) is to flash the gas detection LED.. The buzzer
is connected to RA0 then to the transistor driver..
5) I am attaching my (i) V6 flow-code project and (ii) schematic circuit for your attention.. Thank you, skquah.
1) I have searched thru' the above topic in the forum and read thru' Dave Squibb and Jan. Lick forum discussion, back in Feb. 2016 & 2015..
2) My interest on the above comparator is quiet similar to Dave Squibb discussion forum..
3) Anyway, I still cannot figure-out how to put this comparator in my Gas sensor project.. I am seeking help if anyone can add-in the 'c' code and
the custom interrupt code for the comparator application..
4) To brief my gas sensor MQ5 project, I used 7 dip-switch connected to the chip serve as timer select for 17 min. to 24 min. .. The Gas sensor Aout
is connected to RA1 (Vin-) and RA2 is connected to external voltage reference.. The RA4 (C2 OUT) is to flash the gas detection LED.. The buzzer
is connected to RA0 then to the transistor driver..
5) I am attaching my (i) V6 flow-code project and (ii) schematic circuit for your attention.. Thank you, skquah.