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.
Digital Potentiometer (MCP4162) non-volatile wiper value
-
- Posts: 5
- http://meble-kuchenne.info.pl
- Joined: Thu Dec 10, 2020 3:38 pm
- Has thanked: 1 time
- Been thanked: 2 times
-
- 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
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.
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.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Re: Digital Potentiometer (MCP4162) non-volatile wiper value
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
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
-
- 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
Aha I see, I don't think the NVM is currently simulated. I'll have a look and see if we can add it.
Regards Ben Rowland - MatrixTSL
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel
Flowcode Online Code Viewer (Beta) - Flowcode Product Page - Flowcode Help Wiki - My YouTube Channel