Vin and atmega8u2

keda123:
I use Arduino Uno.

Which model? The R3 schematic shows that USBVCC is used for the +5V supply if half the VIN supply is less than 3.3V

Are you using a USB cable for serial I/O? If so, why isn't the host system providing 5V to USBVCC through the USB cable?