power management for USB charging using 32u4