The invention involves a kind of power protection industry counter and the counting methods, including
microcontroller, counting
signal acquisition and conditioning circuit, power protection circuits, timing
clock, and
relay driver output circuit, LCD modules and restart and reset circuit; the
relay driver output circuit is used for driving
relay; the timing
clock is used for power off interruption and saving the interruption data; the counting
signal acquisition and conditioning circuit is used to the trigger of external interrupt of
chip; the interrupt
signal through the non-door, resistance R1,
triode and external interrupt of
chip, the output
voltage pulse from the sensor through
signal conditioning circuit to implement the jump of
high and low level voltage of external interrupt INT0; external interrupt mode is set to falling edge triggering, when the external interrupt is triggered, enter the interrupt service procedures and process count. The beneficial effect of this invention is: a relay output function, easy and convenient operation, safe and reliable, low cost, and a wide application range.