Design of single chip reset circuit