4) Setup one or more of the pins (e.g. Port A pin 0) to provide timing signals for measurements. Then, toggle the pin(s) at specific locations in the scheduler code
- Setup one or more of the pins (e.g. Port A pin 0) to provide timing signals for measurements. Then, toggle the pin(s) at specific locations in the scheduler code. Measure the following: a. Execution time for each loop function (inside the FOR loop in scheduler) and the entire FOR loop (inside the “void sch_loop( void )” function). Observe differences in execution time of each function, and jitter in their execution. b. Time between subsequent starts of the “void sch_loop( void )” function (entire period of the main loop). Measure average, and variation of the period.
Edited by jlb83z