2024-03-29
11:00 AM
- last edited on
2024-04-25
12:50 AM
by
Lina_DABASINSKA
We've developed prototype board with 3 pcs AL1262ZT (https://www.st.com/en/power-management/aled1262zt.html). As a 'fresh device' it has 0x40 I2C address and it's need to specify unique addr (0x42, 0x44, 0x46) by burn OTP register.
Our procedure:
1. enable power supply
2. connect CS to 15V
3. write into device sample code:
#define CHIP_ADDRESS 0x40 //I2C ADDR
#define REGISTER_ADDRESS 0x23 //BA_n_SAM_setting address [4:0]
Wire.beginTransmission(CHIP_ADDRESS);
Wire.write(REGISTER_ADDRESS);
Wire.write(0x08); //add 4-th bit to have 0x48 addr
Wire.endTransmission();
delay(1000);
//do it twice
Wire.beginTransmission(CHIP_ADDRESS);
Wire.write(REGISTER_ADDRESS);
Wire.write(0x08);
Wire.endTransmission();
4. release CS to let it pull down by internal resistor
5. restart device
It still has 0x40 addr, but we need 0x48. There is no clear procedure how to use it other way in datasheet.
Any hints will be much appreciated.