Donor impurities give its excess electrons present in its outermost shell to the other atom of the crystal structure. While acceptor impurity when added to a semiconductor then it accepts the charge from the neighbouring atom of the crystal structure.