BC640 is a bipolar junction transistor with a PNP junction that is mostly used for amplification and switching.
The emitter, base, and collector are the three pins that make up this circuit.
The base is the most important terminal in the transistor, as it is responsible for the entire response. The modest current change at the base terminal is utilized to control the enormous current flowing through the remaining terminals. The reason for this is that it's also known as a current-controlled device, as opposed to FETs (field-effect transistors), which are voltage-controlled.
BC640 has three layers, one of which is n-doped and the other two are p-doped.
In a PNP transistor, current flows from the emitter to the collector, whereas in an NPN transistor, current flows from the collector to the emitter.