2016-01-18 11:07 PM
I am trying to generate the PWM from STM32F4 micrcontroller. The PWM output was done but it is 0-3.3V range. May I possible to configure the PWM voltage range (0-5V) if so, can someone guide me the way to proceed it.
Thank you.
2016-01-19 12:14 AM
Dear farhan.musthafa,
For 0-5V output you will have to use a level shifter(using transistor).On base give input(0-3.3v).2016-01-19 12:44 AM
BTW, most Cortex M devices from Cypress / former Spansion / former Fujitsu work with 5.0V directly, i.e. have a VDD of up to 5V.
Software support for hobbyists is another topic ...2016-01-19 10:06 AM
[DEAD LINK /public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/Flat.aspx?RootFolder=/public/STe2ecommunities/mcu/Lists/cortex_mx_stm32/set%20voltage%20for%20GPIO%20PINS&FolderCTID=0x01200200770978C69A1141439FE559EB459D7580009C4E14902C3CDE46A77F0FFD06506F5B¤tviews=44]Earlier Duplicate Thread
Can we please stop asking the same question over and over, stick to one threadAre there current driving requirements too? Perhaps you can use some buffering chip to provide suitable voltage and current for your application?2016-01-19 11:12 PM
2016-01-20 04:51 AM
Yes, most of the pins are 5V Tolerant, but they are not capable of generating 5V or other arbitrary voltages. You can change the VDD used by the processor/IO, but not to the levels you are requesting.
Also the pins have limited current sink/source capabilities, check the pin/device maximums. These will be insufficient to drive/brake motors.