Hello,
I am writing a driver for the LP55231, and I am facing trouble trying to write to program memory. I am able to read/write the control registers and can read the temperature, Vout ADC values etc and get reasonable values. But when I try to write to the the program memory the I2C transaction succeeds but then when I try to read the same memory location I get a value of 0. So my I2C API seems to work correctly(works for ADC, control registers), so I am not sure if I am missing any configuration settings before writing to program memory. My pseudocode is like this:
set REG_CTRL1 with ENABLE bit
set MISC register with AUTO_INC bit, internal CLK bit
clear interrupt
select page 0 for programming
write one byte to 0x50 program memory location
read byte at 0x50 --> gives a value of zero
Also,
OUTPUT ON/OFF CONTROL MSB and OUTPUT ON/OFF CONTROL LSB says its ON/OFF control. So setting it should turn on the LEDs? But I set 0x05 (ON/OFF CONTROL LSB) to 0xff but the LEDs did not turn on. What am I missing here?