Lets say I want to calculate the actual time taken by my MCU to run 1 of my function or ISR routine. What would be the best approach to find the actual time? provided oscilloscope is available
I did something like this
ISR() { PORTC |= (1<<5); //some stuff PORTC &= ~(1<<5); }
then i checked on oscilloscope I was expecting a square wave and that the duty cycle of that wave would help me to determine the duration of ISR but what I obtained was .. not at all what I expected ... Its a high signal with small ripples ... Can anyone help me understand this ... I have attached the output that i obtained from oscilliscope below
Thanks in advance :)