Using the USB cable that comes with the camera to connect it to a computer's USB port will supply power for charging the battery. If you want to use USB cable power to charge the battery, do not turn on the camera after connecting to a computer. Charging is not performed while the camera is on (green back lamp lit).