Yup is an affirmative that also shows you're paying attention, yep is an affirmative that may or may not mean you're not paying attention. That's how I understand it.
Yup is more Comical and homely, while yep is more serious and is more likely to be used outside of a relationship on in a serious place, such as the workforce?