The PN Junction

...

From ChatGPT

Doping is the process of intentionally introducing impurities into a semiconductor to change its electrical properties. Group 13 elements, such as boron (B), aluminum (Al), or gallium (Ga), have three valence electrons. When these elements are added to an intrinsic semiconductor like silicon (Si) or germanium (Ge), which have four valence electrons, they create holes (the absence of an electron) in the crystal structure.

These holes act as positive charge carriers, effectively making the semiconductor a p-type semiconductor. The group 13 element is referred to as an acceptor because it accepts electrons from the valence band of the semiconductor, leaving behind a hole.

...