Understanding the biasing conditions of semiconductor diode