//HOST
int I2CUebertragung (void)
{

    I2C1ADB1 = 3;                   // Adresse 1, read

    I2C1CNTH = 0;
    I2C1CNTL = 4;                   // Anzahl der Übertragungen

 
    
    I2C1CON0bits.S = 1;             // Start

  
   while (I2C1STAT1bits.RXBF == 0)
   {   
   }   
   Uebertragung1 = I2C1RXB; 

 
  while (I2C1STAT1bits.RXBF == 0)
  {    
  }         
   Uebertragung2 = I2C1RXB;  

   
  while (I2C1STAT1bits.RXBF == 0) 
  {  
  }         
  Uebergtragung3 = I2C1RXB;  

  Uebertragung4 = I2C1RXB;   

   
      __delay_ms(10);

      
   I2C1ERR = 0;

     
    return 0;
    
}