The function of the 555 timer is mainly determined by two comparators. The output voltage of the them controls the state of the RS flip-flop and the discharge tube. It also contains 3 working states.