To illustrate a basic diode switch, we’ve prepared a couple of simplified circuit diagrams. The first shows the anode tied to ground through R1 and the cathode tied to the Vcc power rail.
Energy band diagram of pn junction under forward bias, Continuity equation, Boundary conditions, Ideal diode equation, Long- and short-base diodes, Recombination and generation in the depletion region ...