Hi, welcome to the forum.
You are correct about the overload protection but that wouldn't be a problem in this particular case because your CR2032 power source doesn't exceed the supply voltage of the opamp in the uCurrent.
Your problem comes from the burden voltage on the 1mV/nA range. I believe this uses a 10k shunt resistor, meaning that on the 20mA peaks the entire supply voltage would be dropped across the shunt resistor and your device wouldn't work. (20mA * 10k = 200V).
This is a problem with such low drain devices with such widely varying current ratios. A few alternatives I can think of:
1. Change your software to disable the peaks so that you can just measure the quiescent current (undesirable as it changes the operating conditions).
2. Use a much lower current shunt resistor and accept that you need a much higher resolution meter to measure the voltage drop across it (inaccurate).
3. Try to integrate the current draw so that you can read the average current consumption, which is the figure you're probably trying to obtain anyway (for battery life calculation)....
You can probably do this by buffering the supply to your device with a large value capacitor. You would need to pick a capacitor big enough that its voltage wouldn't drop significantly during the 20mA current pulses. To be large enough it will need to be an electrolytic in practice, which will have its own leakage current. So:
- Connect the uCurrent between the CR2032 and the Capacitor
- Wait for the capacitor to charge and it's leakage current to settle. Depending how long it is since the capacitor was last used, it could take a considerable time for the leakage current to settle. There probably isn't a sensible way to speed this up, but it will hopefully end up stable in the 10s of uA region.
- Then connect your device across the capacitor, being very careful not to interrupt the supply to the capacitor or short it.
- The difference between the capacitor leakage current and your new measured current level should be average current draw of your device.
- To be on the safe side, disconnect your device again and check that the leakage current of the capacitor again to make sure it hasn't changed due to the current pulses drawn by your device.
That's as near to a practical measurement as I can think of. . Ideally (to be realistic as possible) you want to size the capacitor so that the voltage drops by about the same amount as the CR2032 does under the same current peaks, (check on a scope). So some experementation would be needed.
P.S. You might be able to get away with a low voltage Tantalum capacitor, in which case its leakage current and settling time would be much lower.