Wie kann man eigentlich überprüfen ob eine datenübertragung (lesen/schreiben) geklappt hat?
Man kann ja nicht grundsätzlich davon ausgehen daß alles funktioniert, oder doch?
Ich hab das err byte abgefragt aber das gibt öfters 1 zurück:
Code:
Lesebyte:
   Err = 0
   Waitus 5
   I2cstart
      If Err <> 0 Then
   Locate 1 , 1
   Lcd "111EEEEELERstar1"
   Wait 1
   End If

   I2cwbyte Ees
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERees"
   Wait 1
   End If

   I2cwbyte Epromoffset
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERoff"
   Wait 1
   End If

   I2cwbyte Epromadresse
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELEReadr"
   Wait 1
   End If

   Waitus 5
   I2cstart

      If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERstar"
   Wait 1
   End If


   Waitus 4
   I2cwbyte Eel
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELEReel"
   Wait 1
   End If


   I2crbyte Eprombytea , Ack
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERebytea"
   Wait 1
   End If
   
   I2crbyte Eprombyteb , Nack
   If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERebyteb"
   Wait 1
   End If

   I2cstop
      If Err <> 0 Then
   Locate 1 , 1
   Lcd "FEEEEEEELERstop"
   Wait 1
   End If

gruß Werner...