How does a bond issuer decide on the appropriate coupon rate to set on its bonds?

Explain the difference between the coupon rate and the required return on a bond.