Electrical Engineering & Electronics Design

Created by Xgentec Jason on 11 April, 2018

Hello everyone.


I have created a frequency output delay formula from scratch.

I told the Arduino IDE to output a PWM signal from 0 to 500KHz using a STM32 microcontroller.

As you go up higher in frequency the output delay time on the microcontroller output gets higher. For instance if you request 500 KHz you get a delay time and the actual output is 380 KHz etc...

I have attached a picture of my oscilloscope data readings on an Excel graph with a formula to predict this delay time.

This formula matches the output data response from the (real world) oscilloscope readings virtually exactly.

Yes I know my math skills are not the best on the planet in fact I know they are my worst area so I thought I would reach out to get others to double check my formula.


Orange line is oscilloscope readings reading the delay in output.


Green Line is the delay time prediction formula.