Code first: the first is the error code, the second is the correct code. This is a function used to write commands or data to the DS1302 chip. The 8-bit data dat is written to the IO port of DS1302 one by one. Among them, ACC0 is the 0th place of ACC.