Teebos
Newbie level 4

Hi.
I'm trying to program the chip to perform spwm in a low voltage inverter. I need to update the duty cycle register at 50Hz from a sine look up table. It says in the manual that an interrupt is generated every time the timer (PTMR) is zero and the count goes upwards again. Can I use this to update the duty cycle somehow? I'm using 25kHz for my PWM period so would have to scale the interrupt to achieve 50Hz but I don't know if I'm on the right lines or how to call this interrupt.
Any help hugely appreciated.
I'm trying to program the chip to perform spwm in a low voltage inverter. I need to update the duty cycle register at 50Hz from a sine look up table. It says in the manual that an interrupt is generated every time the timer (PTMR) is zero and the count goes upwards again. Can I use this to update the duty cycle somehow? I'm using 25kHz for my PWM period so would have to scale the interrupt to achieve 50Hz but I don't know if I'm on the right lines or how to call this interrupt.
Any help hugely appreciated.