USB flash drives use transistor-based semiconductors to store information. The way that transistors work is they’re composed of 3 parts:
The source
The gate
The drain
Source, Gate, Drain Diagram
The source is what connects the device to “the outside world”. It’s the part that interfaces with the host device (i.e. desktop, laptop, smartphone, etc). It pulls in information through an exchange of energy, directing that data towards the gate. USB drives have two gates: a “floating” gate and a “control” gate.
The floating gate is where all the data gets recorded. This is where the electric charge from the host device gets sent to from the source. The gate is usually coated with a non-conductive material to protect the data stored on it. The control gate acts as a stop-gap: it keeps the data and energy stored in the floating gate from flowing back out into the source. It seals the “pipeline”, ensuring that the “water” stays in the pipe when it’s not in use.
This is how USB devices retain data: the information stays attached to the floating gate until it needs to be moved or erased. When the information has to be moved, the charge running through the device pushes the data from the floating gate back up through the source.
Excess energy channeled from the host device gets sent to the drain. The drain distributes that excess energy through the rest of the device, keeping the inner workings of the USB device powered on and going strong even when the device is disconnected.
Above info from Shenzhen Dingbohui Tech Engineer dept,if you have any queries,feel free to contact us by 86-0755-23590609 or email info@szusbstick.com