Thank you all for your support, I've found the error.
The error is in another part of the code. With regard to the i2c bus so there everything is OK. It's a part that converts the format to hexadecimal numbers to decimal and vice versa.
[code:1:ee5a1fcfcd]
Dim Str1 As String * 7 ´ temporary
Dim Tempword As Word
Dim Cas As Word
Dim Tm(7) As Byte
Dim M As Byte At Tm(2) Overlay
Dim H As Byte At Tm(3) Overlay
...
Str1 = Hex(h) ´bad
Cas = Val(str1) ´bad
Tempword = W * 1440
Cas = Cas * 60
Cas = Cas + Tempword
Str1 = Hex(m) ´bad
Tempword = Val(str1) ´bad
Cas = Cas + Tempword
...
[/code:1:ee5a1fcfcd]
I don't know exactly what's going on here. When I pulled out the values on the lcd's step by step, so it seemed that everything works, but always in the 47 minute off lcd backlight. When I canceled the conversion and simulate the values so all was ok.
↧