Questions tagged [execution-time]

6 questions
7
votes
2 answers

How to set an oscilloscope for measurement of interrupt service routine execution time

I have been developing control software and I need to know how much time it takes to execute an interrupt service routine (ISR). I have decided to use a dedicated GPIO pin of my microcontroller and an oscilloscope for that purpose. I set the pin to…
Steve
  • 1,061
  • 7
  • 22
2
votes
2 answers

Length of an interrupt

I know that an interrupt should be as short as possible, however, what is short? My routine is quite long, but has quite some if-statements, so the execution time is short. But maybe it still is considered (way too) long. Will my code cause problems…
Michel Keijzers
  • 13,867
  • 18
  • 69
  • 139
1
vote
2 answers

Task Execution time measurement on Keil for STM32F103

Is there any builtin feature available in Keil uVision to measure execution time of a function or task for STM32F103?
alt-rose
  • 1,441
  • 14
  • 29
1
vote
3 answers

Unexpected results when measuring MPU6050 sample rate with RaspberryPi

MPU6050 datasheet says that maximum accelerometer data output is 1Khz, so in theory when measuring time it takes to receive 1000 data samples through I2C, so I should receive all data in no less than 1 second, but somehow i always get sub 0.3…
eimvs
  • 45
  • 10
0
votes
2 answers

Is it possible to pre calculate execution speed of micro controller for a given setup theoretically?

I need to work with 5x MPU9250 sensors, i2c 400kHz, Arduino nano 8MHz also, I have HC-05 Bluetooth device 115200 baud rate serial. is it possible to pre-calculate loop time to gather data from sensors (3x accelerometer,3x gyro, 3x magnetometer) and…
0
votes
1 answer

Could memristors be used to improve speculative execution?

I've been reading about different methods of improving processing speed, and speculative processing stands out to me. My question is, could the integration of memristors that are trained by instructions passed through a processor improve speculative…
mcchucklezz
  • 101
  • 3