Microcontroler: chip: F28M35H52C
I'm using a buck converter that has two inputs, high input and low input. it outputs 5v.
inputs take up to 3.3v
when the high input is connected to 3.3v the output starts to increase from 0 till it reaches 5v then it stopped at 5 volts.
when the low input is connected to 3.3v, output starts to decrease till it reached 0v.
the two inputs can't be connected at the same time.
can someone help me write a code that uses pwm to send different signals, using duty cycle and period.
I'm trying to be able to control the output, like if I want to get 3.5 voltas as an output how much voltage should I put. because I will add a rotary encoder once I understand how the pwm works.
I have checked this code "adc_soc" from the controlsuite but it doesn't support pwm
pins I'm using are:
PB0_GPIO8_PWM5A
PB1_GPIO9_PWM5B
any help would be appreciated
Thanks
All of the ePWM examples in controlSUITE begin with the epwm prefix. I suggest looking at epwm_updown_aq.
Kris