Blue Bridge Cup DS1302 low-level program should pay attention

When writing the DS1302 module, the underlying program does not have SCL, SDA, REST pins

You need to define it yourself, turn over the schematic diagram of the microcontroller SDA is on the P21 pin

741fbd5acf5349f5a3ac2381f34674d6.png

 

fc889443f9d74920a6682cef3f7390b9.png

 c3b02cefc8844a36a47cb1ce1c5bc314.png

 

An error will occur when SDA is defined as P21; SDA should be defined as P23

 

Guess you like

Origin blog.csdn.net/qq_56095985/article/details/129888694