Perpetual calendar simulation based on AT89C51 single chip