Melanie,
you are absolutely right in:

Originally Posted by
Melanie
there is no need to change between $D0 and $D1 when reading or writing, because PBP manipulates bit zero for you automatically. You only need to concern yourself with the upper seven bits of the address.
However,
all variants listed should work:
(I would always prefer the first one)
Code:
RTC CON $D0
I2CWRITE DPIN,CPIN,RTC,0,[0,0,0,0,0]
Code:
RTC var Byte
RTC=$D0
I2CWRITE DPIN,CPIN,RTC,0,[0,0,0,0,0]
Code:
I2CWRITE DPIN,CPIN,$D0,0,[0,0,0,0,0]
and even this one
(Bit0 set with I2CWRITE)
works since PBP takes care of Bit0:
Code:
I2CWRITE DPIN,CPIN,$D1,0,[0,0,0,0,0]
Bookmarks