Altera_Forum
Honored Contributor
12 years agode2 115 board audio codec i2c address
hello everyone,
im trying to access audio codec and i faced a problem. what is the slave address of this audio codec? i looked into the demostration files for getting an idea about i2c bus. i saw these lines: //=========start=========== 6'd1 : begin SD = I2C_DATA; SDO = 0; end 6'd2 : SCLK = 0; //======SLAVE ADDR========= 6'd3 : SDO = SD[23]; 6'd4 : SDO = SD[22]; 6'd5 : SDO = SD[21]; 6'd6 : SDO = SD[20]; 6'd7 : SDO = SD[19]; 6'd8 : SDO = SD[18]; 6'd9 : SDO = SD[17]; 6'd10 : SDO = SD[16]; 6'd11 : SDO = 1'b1;//ACK //========SUB ADDR========== 6'd12 : begin SDO = SD[15]; ACK1 = I2C_SDAT; 6'd13 : SDO = SD[14]; 6'd14 : SDO = SD[13]; 6'd15 : SDO = SD[12]; 6'd16 : SDO = SD[11]; 6'd17 : SDO = SD[10]; 6'd18 : SDO = SD[9]; 6'd19 : SDO = SD[8]; going so far.. etc. but, i couldn't understand difference between sub addr and slave addr. the sub address may be register address. but, what should be slave address? i need your help thanks, can