const char SS[10] {63,6,91,79,102,109,125,7,127,111};
...
I2C_Init(100000);
I2C_Start();
I2C_Wr(0x70); //slave addr
I2C_Wr(0); //instruction byte
I2C_Wr(0x17); //control byte
I2C_Wr(SS[3]); // 4td digit (show 3)
I2C_Wr(SS[2]); // 3rd digit (show 2)
I2C_Wr(SS[1]); // 2nd digit (show 1)
I2C_Wr(SS[0]); // 1st digit (show 0)
I2C_Stop
...
Arhi:
Can you please explain the following:
SAA1064 is 0x70 = the slave address
Thanks.
Four different slave addresses can be chosen by connecting ADR either to VEE, 3/8 VCC, 5/8 VCC or VCC. This results in
the corresponding valid addresses HEX 70, 72, 74 and 76 for writing and 71, 73, 75 and 77 for reading.
const char SS[10] {63,6,91,79,102,109,125,7,127,111};
...
I2C_Init(100000);
I2C_Start();
I2C_Wr(0x76); //slave addr
I2C_Wr(0); //instruction byte
I2C_Wr(0x17); //control byte
I2C_Wr(SS[3]); // 4td digit (show 3)
I2C_Wr(SS[2]); // 3rd digit (show 2)
I2C_Wr(SS[1]); // 2nd digit (show 1)
I2C_Wr(SS[0]); // 1st digit (show 0)
I2C_Stop
...
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?