A sample picture of how the output should be is given below(in figure top square pulse has 50 percent duty and bottom one has 60 percent duty, 50 kHz is frequency).
Where should I start looking or which controller can be used to achieve this? (Can I code these output directly?)(should I include more info?)