This preview shows page 1. Sign up to view the full content.
Unformatted text preview: between the Earth and the Moon. Given that Input Capture measures time in Timer ticks (i.e. clock cycles), how different can the programs calculation of the Earth Moon distance be from the actual distance? a) Explain what causes the error in the measured distance (5 pts) Input Capture computes time from the number of clocks between events. If an event does not occur exactly on a positive clock edge, then there will be error in the measured time. For example, if the “Sensor Detect” event happens right after a positive clock edge, then this time will be too long by nearly 1 clk cycle. And if the “Laser activated” event happens right after a positive edge, then this time will be too short by nearly 1 clk cycle. Thus a worst case time measurement error will occur when “Laser activated” occurs exactly on a positive edge of the Timers clock, and “Sensor Detect” occurs right...
View
Full
Document
This document was uploaded on 04/07/2014.
 Spring '09

Click to edit the document details