Page 1 of 1

Digital Potentiometer (MCP4162) non-volatile wiper value

Posted: Wed Jul 06, 2022 6:02 pm
by deon
Hi,

Can writes be performed to all the non-volatile locations in V9 using the MCP4162?
The data sheet shows Data EEPROM addresses 06h to 0Fh. How do I write to, and read from these locations?

I tried using the "WriteAddress" and "ReadAddress" macro's for this component, but it appears that I am unable to store or read back from these locations.

Thanks.

Re: Digital Potentiometer (MCP4162) non-volatile wiper value

Posted: Fri Jul 08, 2022 11:19 am
by BenR
Hello,

Looks like your on the right lines, maybe try waiting for 10ms after each EEPROM value write and hopefully that should help by giving the device time to write the value to the EE location.

Re: Digital Potentiometer (MCP4162) non-volatile wiper value

Posted: Fri Jul 08, 2022 2:27 pm
by deon
Hi,

I am trying this in the simulator first, and I don't get it to work here. I have not tried it in the hardware yet. The 10ms wait should not affect the sim operation.

Thanks

Re: Digital Potentiometer (MCP4162) non-volatile wiper value

Posted: Fri Jul 08, 2022 3:36 pm
by BenR
Aha I see, I don't think the NVM is currently simulated. I'll have a look and see if we can add it.