I changed the DS1302 on the Internet. It's a complete project. Debugging has been completed. If I want to change the IO, I change the macro definition in. H. then if I don't use the B pin, I remember to turn on the clock and change the IO. I didn't test it. It's OK to use it directly.