I am trying to get the NVM configured for setting GPIO2 when BUCK1_PG is good. Currently this is not working properly, and seemssample_template.txt to come up before VOUT has reached the correct voltage. I have attached the JSON file (but renamed .txt),. Please can someone help me:
I have the following code in the assembly, with the intention: when BUCK1_PG is high -> set GPIO2, otherwise set GPIO2=0 after a timeout of 6ms.
ENABLE:
REG_WRITE_VCTRL_IMM REGULATOR=BUCK1 VCTRL=0x01 MASK=0xFE DELAY_MODE=ALWAYS DELAY=0us
WAIT COND=BUCK1_PG TYPE=HIGH TIMEOUT=6.55ms DEST=TIMEOUT
REG_WRITE_MASK_IMM ADDR=0x3D DATA=0x02 MASK=0xFD
TRIG_MASK 0xFFFFFB5
END
TIMEOUT:
REG_WRITE_MASK_IMM ADDR=0x3D DATA=0x00 MASK=0xFD
TRIG_MASK 0xFFFFFB5
END
I am using LP876411B5-Q1 with a custom NVM.