EE454 TEST 3
STARDATE STARFLEET CAPTAIN
042805 ______
1. Design a single bit output port using a “D” transparent latch and any combinational logic.
The port should be designed so that the statement XBYTE[0xD000] = value: will cause a “0” to be written to the port if value is “0” and it will cause a ”1” to be written to the latch if value is “1”. You may use only the upper four address bits for the decoding. Show all 8051 signals needed to interface the port to an 8051.
2. Given the scanned matrix LED display partially shown to the right. Design a typical row driver and a typical column driver that will input signals from an 89c51 port pin and drive the LED with 100 ma of current. Use only the components shown below and any resistors.
Transistor Type
/ Current gain, b / Vce(sat) / Vbe(on) / Ic(max)PNP Q1 / 10 / .1 v / .7 v / 500 ma.
NPN Q2 / 15 / .2 v / .7 v / 500 ma.
Type
/ Description / VOL @ IOL = 30 ma. and Vcc = 5 v / VOH Max voltage at outputUSn7406
/ Open Collector Inverter / .4 v / 30 v3. A single seven segment digit of a liquid crystal display has seg a through seg g connected to P1.0 through P1.6 respectively on an 89c51. The back plane BP is connected to P1.7. There are no logic gates. Explain in words and possibly with a waveform sketch how you would create a software driver that would output the necessary drive signals. Remember you must insure that there is no static direct voltage producing a static electric field in the liquid crystal. You do not have to write the software just explain how the software should function.
4. A small servo motor (like the ones used in class) has its signal wire connected to an 89c51rd2 port pin P1.5. The 89c51rd2 is running with a 6 MHz crystal.
a) Write the initialize routine needed to drive the servo with a PWM signal using the PCA that has an approximate 10ms time period.
b) Assume the high time of the PWM signal ranges from approximately .8ms to 1.4ms. What is the range of the numbers when written to the capture register will cause the range of the high time to be as specified?
5. A temperature transducer has a noisy analog signal output. The noise has a temporal period that is much smaller than the response time of the transducer. Explain how you could “clean up” the signal in software.