Hello
I have a problem with PBP3 compiler.
I make a little program on PIC12F1840 with intern oscillator at 16MHz.
I connect a DS1307 and I use only internal I2C Ram.
I made a first test :

test_ram:
'Writing RAM $08 -> $3F
ram_erreur=0
for l=0 to 255
for k=08 to $3F 'writing ram
i2cwrite sda,scl,$D0,k,[l]
next k
for k=08 to $3F 'reading ram
i2cread sda,scl,$D0,k,[m]
if m<>l then
ram_erreur=1
endif
led2=!ram_erreur
next k
next l
goto test_ram

For values of "L" between $00 to $7F, Iam reading the value writen befor but for values of "L" between $80 to $FF, I am reading the value with the 7's bit=0 so, 80 ->00, $81 ->$01, ... $FF -> $0F.
I dont see error in my little code.
Could you help me ??
Best regards

Marc