2025-11-21 10:02 PM
Hello,
I am currently wor
king on connecting an MT9M001 camera module to the STM32F429I-Discovery board and displaying the captured image on a PC.
During this process, I am testing PWM output on the board, but I am experiencing an issue where the output voltage does not swing between 0 V and 3.3 V as expected.
Environment
Board: STM32F429I-Discovery
IDE / Firmware: STM32CubeIDE + HAL (STM32CubeF4 package)
Pin used: PB0 / TIM3_CH3 (Alternate Function, Push-Pull, no pull-up/down)
PWM: Generated with TIM3 (frequency and duty cycle shown in attached code/images)
Measurement: Oscilloscope (×10 probe, GND connected to board GND)
Issue
The PWM waveform output from PB0 shows the following problems:
The low level does not go down to 0 V
The high level does not reach 3.3 V
Before switching to PB0, I was using PA8 (TIM1_CH1), but I observed the same issue—
the voltage could not drop to 0 V.
I received advice that PA8 might be loaded by other on-board circuitry,
so I moved the PWM output to PB0 (TIM3_CH3).
However, the same reduced voltage swing occurs on PB0 as well.
If anyone knows possible causes or has experienced a similar issue,
I would appreciate any guidance.
Solved! Go to Solution.
2025-11-26 2:42 AM
>the maximum voltage still does not reach 3.3 V.
Right, but thats fine now. Your probe loads > 12PF to the pin, at 22MHz this is about 800 ohms , so you cannot expect it better.
Try a high speed signal generator, if you have, and check its output at 20MHz, 0...3 V ;
to see, what your probe and scope can show at all here !
Because probe (and scope?) is 100MHz type, so looking at a 22MHz square, you can see 3. harmonic good, 5. harmonic is 22x5= 110 Mhz and will show still, but reduced level; and all higher harmonics your scope cannot show.
So all you can see from a perfect 22M square wave, is what you see now. (on 100M scope).
here 3. + 5. :
2025-11-22 1:37 AM
@chachamaru wrote:I received advice that PA8 might be loaded by other on-board circuitry,
so I moved the PWM output to PB0 (TIM3_CH3).
However, the same reduced voltage swing occurs on PB0 as well.
So did you check if PB0 is also loaded by other on-board circuitry ?
See the User Manual for the board, and/or its schematics - as always, both can be found on the Product Page for the board:
2025-11-22 2:18 AM
Hi,
see circuit of your board, pins pb0 + pa8 used for...
So first find free , unused pins to do something...
https://www.st.com/resource/en/schematic_pack/mb1075-f429i-d02_schematic.pdf
2025-11-22 6:09 AM - edited 2025-11-22 6:11 AM
Why are you reposting this after accepting a solution?
Solved: PWM output on PA8 (TIM1_CH1) does not reach 0V — w... - STMicroelectronics Community
Slow down the waveform by a factor of 10. Still occuring?
2025-11-23 5:24 AM
Thank you for your reply.
I was able to solve the issue where PWM on PA8 did not output at all by changing the pin from PA8 to PB0. At that time, PWM worked correctly.
However today, without changing any settings or code related to PB0, the PWM output on PB0 suddenly stopped working properly.
Moreover, after I reset some unrelated pin configurations, the PWM waveform disappeared entirely.
(Before resetting those unrelated pins, I could at least see the degraded waveform like the one posted this time.)
The situation where PA8 still cannot output a clean PWM also remains unchanged.
Therefore, I posted again to report the updated situation and seek further advice.
Yes, the same phenomenon still occurs even when I slow down the waveform by a factor of 10.
2025-11-23 6:20 AM
>the same phenomenon still occurs even
Did you read my post ?
These pins are not free, they are used on this board. So you cannot use them, like free pins.
2025-11-23 6:31 AM
Yes.
So now I'm trying PF6, which as far as I checked is not used on this board.
I don't have access to the oscilloscope right now, so I will check the waveform tomorrow.
2025-11-23 6:33 AM
Pins are already in use, but it works fine here:
I suspect a measurement setup issue. Post pictures of your setup and show the scope plot of a significantly slowed down PWM, say 100 kHz.
2025-11-23 11:43 PM
I used PF6 and I was able to output PWM.
However, the voltage did not reach 0–3.3 V.
When I lowered the frequency, the waveform became close to 0–3.3 V, but I need a 20–24 MHz clock.
Fig.1 PF6 PWM 22.5MHz
Fig.2 PF6 PWM 9MHz
2025-11-24 12:47 AM
PF6 seems to be free. + signal looks ok.
1. set pin speed high for PF6
2. use 10:1 low capacitance probe
3. set it to 10:1 .