https://doi.org/10.1351/goldbook.F02421
If effects of surface states are negligible, , the potential drop associated with the space charge in the semiconductor, vanishes as the charge on the semiconductor becomes zero. The potential of the semiconductor corresponding to this condition is the flat band potential, which plays the same role as the potential of zero charge for metals.