I'm no longer talking to my father

My father is a bad tempered person.  He curses a lot and at everyone, especially my mom. I had to put up with him all my life. And I thought it was the right thing to do. After all, he is my father. He raised me and took care of me. But now that I'm pregnant I really want to be in a good mood and to be in a positive environment. I believe my mood has effects on my baby. I don't want to be depressed! I asked him to stop getting upset every ten minutes and curse but he won't change. I'm very disappointed and hopeless. Now I just try to avoid talking with him. I never initiate any conversation with him. I just don't talk to him anymore. And it makes me feel really bad. I feel sad all the time. But I don't know what to do. We live in the same house by the way. Does anyone have any good advice or has anyone had the same experience?