Lab IV Lecture 2: Step 1 Review Introduce Step 2 Course Web Page
Lab IV Lecture 2: Step 1 Review Introduce Step 2 Course Web Page
8 ADC RAM
8
Signal Output
Signal Input
DAC
Control
Ideally we would like to be able to record an audio (voice) message and then play it back. We will see that there are real-world limitations that will limit our success, and some compromises will be needed.
Step by Step
Step 1 Review of ADC and DAC Step 2 Building the ADC Circuit Step 3 Build the DAC Circuit Step 4 Build the On-Board Clock Step 5 Introduce Static RAM Step 6 Introduce Control Logic Step 7 Final Changes
4
Step 2 Prelab
How to decide?
ADC, DAC, and RAM are hardwired on your board Arrange the other subcircuits (timer, address generator, etc.) so that you minimize the overlap of the connections Since you do not know the details of the all the subcircuits yet, take educated guesses - dont try to force all of your circuit into one corner of your board
You MUST have a floorplan drawing checked before beginning circuit construction
5
Step 2 Prelab
Floorplan Elements
Clock DAC RAM
ADC
ADC Display
Address Generator
16 pin header
8 pin header
Hardwired
7
ADC Control
RAM Addresses
Put blocks which interact, such as the memory address generator and the RAM chip, close to one another. Many solutions are possible. Shorter wire lengths will have lower resistance and capacitance and support higher signal speeds. Analog blocks should be kept away from digital blocks if possible. The noise generated by the analog circuits and be picked up by digital lines and corrupt data.
10
8 ADC RAM
8 DAC
Control
11
Step 2 Lab
Self-Clocked ADC
LED Array
Design and build circuit Change dc input and record display output
Verify accuracy and determine ADC voltage resolution Using voltage ramp input, observe binary count Observe operation of ADC internal clock
13
High freq high quality short record time Low freq low quality long record time
Read the ADC data sheet to learn the details of chip operation
Determine values of external R and C to set the internal clock rate of the ADC
R between pins 1 and 8 on socket U18 C between pins 2 and 7 on socket U18
18
19
DC Measurements
Your ADC will output 8 bits, which can be grouped as 4 high (MS) and 4 low (LS) bits Each group of 4 bits can be represented by a hex character The voltage represented by the digital output is:
20
DC Measurements
Lets say your ADC output is 10111001 MS =10112=1110=B16, LS =10012=910=916 The voltage represented by the digital output is:
21
DC Measurements
Put your voltage measurements and calculations into a table (or tables) with all proper labels and discussion
22
There is an HP mixed-signal scope in each rack in 7-208 The digital portion of the scope (logic analyzer) serves the same purpose as the LEDs, but it can do this at high speed
24
You will
Observe ADC output bus (bits 7..0) on analyzer channels 0 to 7 for a ramp input. Add an analyzer connection (channel 8) to the INTR pin, Pin 5 of the ADC0804. Use cursors to measure the period between INTR pulses. Download your scope screens for your report.
25
Step 2 Deliverables
A functioning circuit
26
Step 2 Hints
Do your prelab reading. Always check your circuit input for the proper dc offset and amplitude BEFORE connecting it to the input pin. Apply chip power BEFORE signal, remove signal BEFORE removing chip power. This avoids CMOS latchup problems. Not applying Power/Signals/etc in the proper order can damage the chips, and most importantly the RAM, which is not easily replaced.
27
Step 2 Hints
Write down in each of your notebooks the reasoning behind choosing the components you used Keep a detailed schematic of each component wiring change and addition that is made. If you do not have a schematic available I will not answer your questions when you are debugging your circuit
28
Questions
What is the frequency bandwidth of human speech? What is the minimum sampling rate for digital recording of speech? How many internal clock cycles does this ADC need to take one sample? What is the maximum internal clock rate? What clock rate to you want? Defend this choice. What values of R and C give you this rate?
29
DC Testing
Purpose
How?
High/low or dark/light
Table of Measurements
31
Calculations
Use the equation in your lab notes to calculate the dc voltage, add this to your table, and comment on accuracy Use your data to find the voltage resolution of your system
32
33
Raise the frequency of the function generator to 100 Hz to 1 kHz Observe the status of the data bus on the logic analyzer
34
Tech Notes
The anode side of the LED array is the one with the writing on it, pin 1 is marked with a cut corner Apply dc power before applying input signal remove input signal before removing dc power
35
Tech Notes
The LED display is indicating negative logic - logic 1 appears dark and a logic 0 appears lit Always connect the ground (black) probe of the logic analyzer to your circuit ground
36
Tech Notes
37
Additional Hints
Do not wirewrap to the top of the board Your calculated internal clock frequency will not match your actual measured frequency, why is this true? (Think about the value of the components used) Always ground both leads of the logic analyzer, even if you are not using one of the leads Do not rely on Autoscale to find your signal for you every time, pay close attention to your triggering signals Think through your debugging plan when the circuit does not work. Create a list of things to check, i.e. power supply, inputs, wiring. 99% of problems are due to construction not broken chips Have the functionality of your circuit checked before you leave and be prepared to answer questions about the circuit when 38 asked