Separating the Grounds for 2 Chips
In a production design, you would use an isolated DC-DC converter to transfer power from the microprocessor domain to the metering domain. You can purchase these as pre-built modules from any number of vendors. Make sure that the isolation rating of the converter is sufficient for the mains voltages you're dealing with.

For prototyping, two separate AC-input power supplies can be used.