w7 SysTick Examples
w7 SysTick Examples
Embedded Systems
Mehmet Bozdal
Agenda
• System Timer – SysTick Aplications
// Disable SysTick
SysTick->CTRL &= ~SysTick_CTRL_ENABLE;
}
while (1) {
// Start measuring the execution time of a specific code segment
start_time = counter;
// The code segment you want to measure
// ...
// Stop measuring the execution time
execution_time = counter - start_time;
}
}
while (1) {
// Start measuring the execution time of a specific code segment
start_time = counter;
// The code segment you want to measure
// ...
// Stop measuring the execution time
execution_time = counter - start_time;
}
}
Any questions?