A diode is an electronic component made of semiconductor material that has a single conductivity, allowing only current to pass in one direction. A diode is composed of two different doped semiconductor materials, usually silicon (Si) or germanium (Ge). Among them, the side with high doping concentration is called the P-type region, and the side with low doping concentration is called the N-type region. The materials in the P-type zone mainly use trivalent elements, such as boron (B); The materials in the N-type zone mainly use pentavalent elements, such as phosphorus (P).