Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

MSP430 1. You want to measure the time between a LED 1 being lit up and button 1 being pressed. The maximum time you want

MSP430

1. You want to measure the time between a LED 1 being lit up and button 1 being pressed. The maximum time you want to give a user to react is 2 seconds.

(a) What should be the period of the timer to avoid having to deal with timer overflows, yet yielding the finest resolution.

(b) What is the resulting timer resolution.

(c) Write the one line timer configuration code for TA0CTL. Use ACLK as clock source

2. You again want to measure the time between a LED 1 being lit up and button 1 being pressed. However, this time you want the resolution to be better or equal to 1 100 th of a second.

(a) What resolution can actually be achieved?

(b) What would be the maximum time a user has to react if you ignore timer overflows, i.e. what is now the timer period.

(c) Can the ACLK still be used as clock source?

(d) Write the one line timer configuration code for TA0CTL.

3. You have two sensors installed in a road. When a car drives across a sensor, the sensor will output a 1, else a 0. The sensors are placed 1 m apart. Cars can go between 1 to 100 km/h (Note: m = Meter, km/h = kilometers per hour).

(a) What is the maximum time that passes between button presses when one car drives over the sensors.

(b) What is the minimum time that passes between button presses when one car drives over the sensors.

(c) What period would you set the timer to.

(d) What is the timers resolution.

(e) (3 points) Please write the formula for converting timer ticks to km/h.

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Driven Web Sites

Authors: Mike Morrison, Joline Morrison

1st Edition

061901556X, 978-0619015565

More Books

Students also viewed these Databases questions