English
Language : 

NOA1312 Datasheet, PDF (14/16 Pages) ON Semiconductor – High-Precision Ambient Light Sensor
NOA1312
To write the DEVICE_ID_MSB value to the EEPROM,
the above sequence must be repeated substituting the MSB
register address values.
To read the DEVICE_ID_LSB value from the EEPROM,
use the following read command sequence:
1. Issue Start command
2. Issue 0x52 (lower seven bits of I2C slave address
0x29 followed by write−bit 0) – the write address
could be 0x52 (0x29), 0x72 (0x39) or 0x92 (0x49)
3. Issue 0x0A for the
EEPROM_RDWR_REG_ADDRESS register
address
4. Issue 0x18 for the EEPROM DEVICE_ID_LSB
register address to be read
5. Issue Stop command
6. Issue Start command
7. Issue 0x52 (lower seven bits of I2C slave address
0x29 followed by write−bit 0) – the write address
could be 0x52 (0x29), 0x72 (0x39) or 0x92 (0x49)
8. Issue 0x0B for the
EEPROM_CONTROL_STATUS register address
9. Issue 0x04 value to initiate an EEPROM read
operation
10. Issue Stop command.
11. Wait 3 ms for the EEPROM read operation to
complete
12. Issue Start command
13. Issue 0x52 (lower seven bits of I2C slave address
0x29 followed by write−bit 0) – the write address
could be 0x52 (0x29), 0x72 (0x39) or 0x92 (0x49)
14. Issue 0x0B for the
EEPROM_CONTROL_STATUS register address
15. Issue Start command
16. Issue 0x53 (lower seven bits of I2C slave address
0x29 followed by read−bit 1) – the read address
could be 0x53 (0x29), 0x73 (0x39) or 0x93 (0x49)
17. Read the EEPROM_CONTROL_STATUS byte
18. Issue Stop command
19. If the EEPROM_CONTROL_STATUS byte
equals 0x08 proceed to the next step, otherwise go
to step 12.
20. Issue Start command
21. Issue 0x52 (lower seven bits of I2C slave address
0x29 followed by write−bit 0) – the write address
could be 0x52 (0x29), 0x72 (0x39) or 0x92 (0x49)
22. Issue 0x18 for the EEPROM DEVICE_ID_LSB
register address
23. Issue Start command
24. Issue 0x53 (lower seven bits of I2C slave address
0x29 followed by read−bit 1) – the read address
could be 0x53 (0x29), 0x73 (0x39) or 0x93 (0x49)
25. Read the DEVICE_ID_LSB byte
26. Issue Stop command
To read the DEVICE_ID_MSB value from the EEPROM,
the above sequence must be repeated substituting the MSB
register address values.
OUTPUT_TRIM Register (0x16)
EEPROM Register Address 0x16 contains 8−bits of
output trim covering the range of 0x00 to 0xFF (0 to 255).
Table 11 shows the minimum, default and maximum trim
available.
Table 11. OUTPUT_TRIM REGISTER VALUES
Input Code
Trim Gain
0000 0000
165%
0101 1101
100%
1111 1111
63%
Changes to the trim register are reflected in real time on
the output value of the device.
http://onsemi.com
14