I know this is old thread but have a need fro RTC and its using the ds1302
i did have a quick question in relation to how the I/O port is set on the PIC for I/O the interface to the DS1302 , in that the sample code does not change TRIS bits on the PIC from an output to an input for when it doing a read ( shiftin command ) of the DS1302 -
does issuing the shiftin command automatically change the tris bits for that port to allow input ???
cheers
Sheldon
Bookmarks