You need not read any that you do not require.
I2CRead SDApin,SCLpin,$D0,$01,[,RTCMin, RTCHour] ; read DS1307 chip
Will begin reading at register $01 (note change I made to your code) and collect two registers in the variables (RTCMin, RTCHour) you provided. Like that you have BCD minutes and hours.
Also, remove the leading comma in the variable list as: [RTCMin, RTCHour]




Bookmarks