this post was submitted on 01 May 2026
19 points (100.0% liked)
Ask Electronics
4114 readers
26 users here now
For questions about component-level electronic circuits, tools and equipment.
Rules
1: Be nice.
2: Be on-topic (eg: Electronic, not electrical).
3: No commercial stuff, buying, selling or valuations.
4: Be safe.
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments

Would you share your schematic and microcontroller firmware?
If you are properly implementing a PWM DAC, you will not see the PWM period change in accordance with the frequency of the signal you are generating. The PWM period is set per sample to relate to the amplitude of the sample, and then a series of low-pass filters is used to cut off the upper harmonics and the PWM frequency.
Given the set up you describe, it sounds like you've got the microcontroller side right, but don't have any filtering on the output, other than parasitics of the scope probe. Have you tried a sample-and-hold and zooming in? I bet you'll see the PWM period you are expecting between the edges.
edit: yeah, I'm noticing now you've got the time base on the scope set way too coarse for what you are trying to observe. consider the reciprocal of whatever you've got your PWM frequency set to, and that'll guide you as to how stretched your x-axis should be.