In the circuit above, the function of resistor R and diod...