User Activity

I am currently designing a program using ST32G070 chip.As a question, I would like to create a program that will change what I was using as a PWM without using Cube Mx into a digital signal LOW or HIGH signal.I'd like to know how to change it.