Homework 7 Solution

Prescalar 1 freq 16 mhz period 1 16 mhz

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

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.

Ask a homework question - tutors are online