Gast
#2028060
Im Datenblatt, auf seite 15, steht Folgendes: The first byte after the START bit is always the address byte of the device, which includes the device code (4 bits), address bits (3 bits), and R/W bit. The device code of the MCP is 1101, which is programmed at the factory. The device code is followed by three address bits (A2, A1, A0) which are also programmed at the factory. The three address bits allow up to eight MCP devices on the same data bus line. http://ww1.microchip.com/downloads/en/DeviceDoc/22072b.pdf Also die ersten 4 sind der Device code, danach die adress bits und am ende das R/W bit. Woher kenne ich die 3 Adress bits?! #define Adr_ADC 0b11010000 i2c_start_wait(Adr_ADC+I2C_READ);