User Activity

I want to make 3 pwm with the timer1 on an stm32f103c8t6 and when the timer reaches its reset value an interrupt should be generated. I tried a lot but nothing worked. Can someone please tell me how I do this?