Digital Potentiometer (MCP4162) non-volatile wiper value

Use this section to discuss your embedded Flowcode projects.
Post Reply
deon
Posts: 5
http://meble-kuchenne.info.pl
Joined: Thu Dec 10, 2020 3:38 pm
Has thanked: 1 time
Been thanked: 2 times

Digital Potentiometer (MCP4162) non-volatile wiper value

Post 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.

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

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

Post 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.

deon
Posts: 5
Joined: Thu Dec 10, 2020 3:38 pm
Has thanked: 1 time
Been thanked: 2 times

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

Post 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

BenR
Matrix Staff
Posts: 1726
Joined: Mon Dec 07, 2020 10:06 am
Has thanked: 438 times
Been thanked: 602 times

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

Post 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.

Post Reply