How to calibrate MCP39F511A

Hello,

We have an MCP39F511A interfaced to imx6ull board.We are communicating to energy meter over UART.We have found an sample code for Arduino interfaced with MCP39F511 so that code we have converted to our C application and we are writing the same registers values which we got from the sample.After running the code we are getting output for all like gain,voltage,current,power but we are not able to understand output which we got.Means I want to know how to set my desired range values and to get the auto calibration done.I will be attaching the sample code which I found in net please let us know how to do the range settings and other requried register setting to do the calibrations.

Regards
Kannan.

MCP39F511.txt (14.9 KB)

@DigiKey_Internal

Hello,

Can anyone help on this request?

Thank you.