Depends. Simple would be to use MCO output which is a specific pin alternate which output one of several internal clock source with power of 2 programmable prescaling. Otherwise, simply use a timer pwm generator channel output where frequency and duty cycle is more flexible.
Depends. Simple would be to use MCO output which is a specific pin alternate which output one of several internal clock source with power of 2 programmable prescaling. Otherwise, simply use a timer pwm generator channel output where frequency and duty cycle is more flexible.