2016-09-05 11:16 AM
Running an stm32f429-disco board. I need to generate a clock source for another board. The PWM parameters show my expected output of 16 mHz, 50% duty cycle. However, when I look at the output on my scope, not exactly the best square wave. Does this look decent enough to use as an external clock source to another device? I'm thinking it may be a setup issue with my scope/probe. Any thoughts?
2016-09-05 05:30 PM
High-frequency square waves do tend to ring a bit on the edges.
You can add a damping circuit - just an RC filter is quite helpful. I generally put a 68 ohm resistor and a 100pF cap in series to ground on JTAG and SWD clocks for this purpose. You could also try playing with the drive settings on the MCU pin in GPIOx->OSPEEDR.