HF_ATL
Newbie level 4
- Joined
- Mar 3, 2014
- Messages
- 6
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1
- Activity points
- 52
Hello all,
I'm a newbie and would like to have some help regarding a project I want to start.
I need to generate a PWM signal from an analog voltage. The analog voltage varies from 0 to 3.3V
The PWM signal should have:
- A period of 1ms for analog voltage = 0V
- A period of 2ms for analog voltage = 3.3V
The entire PWM pulse should be 20ms, which gives a duty cycle of 5% for the first case and 10% for the second case.
What I thought was:
- Use the SG3525A for this project and nothing else more, and:
Since the period is 20ms, that corresponds to 50Hz, so I have to choose the Rt and Ct so that with the formula provided in the datasheet, the oscillator frequency=50Hz, thus switching frequency=25Hz. The amplitude of the sawtooth signal needs to be 3.3V. (Rt and Ct after choosed by me needs to be placed between its respective pins and gnd, right?)
But, in this case, if the V_in=0V I'll not get PWM with 1ms "on" time.
Datasheet: https://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00000958.pdf
Any help will be much appreciated!
Thanks
I'm a newbie and would like to have some help regarding a project I want to start.
I need to generate a PWM signal from an analog voltage. The analog voltage varies from 0 to 3.3V
The PWM signal should have:
- A period of 1ms for analog voltage = 0V
- A period of 2ms for analog voltage = 3.3V
The entire PWM pulse should be 20ms, which gives a duty cycle of 5% for the first case and 10% for the second case.
What I thought was:
- Use the SG3525A for this project and nothing else more, and:
Since the period is 20ms, that corresponds to 50Hz, so I have to choose the Rt and Ct so that with the formula provided in the datasheet, the oscillator frequency=50Hz, thus switching frequency=25Hz. The amplitude of the sawtooth signal needs to be 3.3V. (Rt and Ct after choosed by me needs to be placed between its respective pins and gnd, right?)
But, in this case, if the V_in=0V I'll not get PWM with 1ms "on" time.
Datasheet: https://www.st.com/st-web-ui/static/active/en/resource/technical/document/datasheet/CD00000958.pdf
Any help will be much appreciated!
Thanks
Last edited by a moderator: