






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!







Scores:
sensor that can be used to compute altitude. It outputs 3 volts at sea-level and 1 volt if 4,000m above sea level. Its response is linear within that range (so 2 volts at 2,000m above sea level) and you can assume it has infinite resolution. Your company wants your device to output the current altitude with a resolution of 10 meters and shouldn’t be off by more than 10 meters from the actual value at any given time. It need only be correct from sea-level to 4,000 feet above sea level. It is solely for use by hikers to judge altitude. In addition, for cost reasons, you are restricted to supplying 5V for power and 0V for ground (you can’t use voltage dividers or something else and thus the Vref must be 5V and ground must be 0V). The following A2D devices are on the market: The Bob. This converter features an 8-bit output, no more than ± 1/8 LSB absolute non- linearity and can do 5000 conversions per second. It costs $1.00 per unit The Tom. This converter features a 14-bit output, no more than ± 1/3 LSB relative non- linearity, and the ability to do 50,000 conversions per second. It costs $2.00 per unit The Mary. This converter features a 12-bit output, no more than ± 1/2 LSB absolute non- linearity and can do 500 conversions per second. It costs $1.10 per unit. The Linda. This converter features a 16-bit output, no more than ± 1/8 LSB absolute non- linearity and can do 2000 conversions per second. It costs $1.30 per unit. The Bob version 2. This converter features a 16-bit output, no more than ± 1/8 LSB absolute non-linearity and can do 10,000 conversions per second. It costs $2.50 per unit. Assuming that there are no other relevant differences between the converters, which of these would meet the requirements? Which would you recommend? Explain your reasoning. [12]
register (CNT) which holds the count value of the timer, a reference register (REF), and a control register (CTL). The CTL register consists of the following fields (0 is most significant bit) EN (bit 0): Must be set to 1 for the timer to be enabled. RST (bit 1): If this bit is set to 1, CNT will reset to 0 every time the count value reaches the reference value. Otherwise, the timer will continue to increment when the reference value is reached. DIV (bit 2): Setting this bit to 1 divides the system clock by 16 to produce the input clock frequency. If DIV = 0, then the input clock frequency equals the system clock frequency. PRE (bits 3-7, 3 is MSB): A 5-bit prescaler which works like the prescalar in the MPC823 (divides the clock by PRE+1). The system clock runs at 1 MHz. a) What is the maximum range of this timer? What is the resolution in that case? [6] Max range: _______________ Resolution: ______________ b) Say you want to generate an interrupt every 64ms. Find values of the CTL register and the REF register that will cause that to happen. [6] CTL register (in binary ): ______________________________ REF register (in decimal ): _____________________________
Design Problem – Fanning the Flames in 373 – 40 points Once again the air circulation in the 373 lab has stopped. This time we’ve decided to take matters in to our own hands. We’ve determined that the room thermostat is broken. When we look up the fan specs on the Internet we discover that it is switched on and off by writing a control bit to a 1-bit latch in the fan’s controller. The controller takes two inputs: one is the data and the other is a “pulse” signal. The data is written to the control register on the rising edge of the pulse. If a one is written to the controller, the fan will turn on. If a zero is written to the controller, the fan will turn off. The timing spec for the fan’s controller interface follows: FAN DATA FAN PULSE We will use one of the lab kits to control the fan. You have been given permission to write the fan control bits directly from the kit test points. Assume the following: Writing a byte to the memory location 0x2600000 specifies that you wish to write the fan’s controller. The least-significant bit of the data written specifies the value desired for FAN DATA. Also, the bus clock is 10 Mhz (100ns). thold 100ns (min) tsetup 100ns (min) 100ns (min pulse width)
Complete the PPC external bus-timing diagram (on the next page) to write the fan controller’s DATA bit. Provide a minimum wait state solution. Complete all incomplete signals. [8] Label any wait states on the timing diagram What are the setup and hold times for FAN DATA that YOUR solution is providing? [3] FAN DATA setup time__________________________ FAN DATA hold time___________________________
(This page left blank for your answer to part III)