8051 based thyristor firing circuit