Originally posted by Melanie
I2CRead SDApin,SCLpin,$D0,$00,[RTCSec,RTCMin,RTCHour,RTCWDay,RTCDay,RTCMonth,RTCY ear,RTCCtrl]
ok, so this is basicly just a multibyte read... all the named variables were declared as bytes ?

$d0 is the device's address, with the read / write bit set to read 1101000 + 0 ?

$00 is the location (register?) the read starts at?

I assume then that a write to that device would be similar, but the address would be $D1 (1101000 + 1) and the variables would be loaded with bytes properly formatted as per the datasheet?

sorry to ask such a novice question, but, how do I take apart a byte and figure out what the individual bits are, like reading the RTCCtrl byte?