User Activity

I am working on a project that I aim to control a boost converter using a stm32 f407 disc kit. I want to control pwm duty cycle with two different integers which are x and y. I want my duty cycle equal to (1-(x/y)) how can I do it