FQ_sol_f09 - Print Your Last Name I Print Your First Name...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 2
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Background image of page 4
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Print Your Last Name I Print Your First Name EEL 4744C — Dr. Gugel Fall Semester 2009 Final Quiz ' Open book/open notes, 60 minute examination. Calculators are permitted. No laptops or cell phones. iPods optional. Pagel 18 points , 'Ix) (Coll met) Hagan ! Ev Wt” Page 2 20 points Page 3 12 points TOTAL 50 points 50 ND & D/A Conversion A student has a vibration sensor where the output swings between +I- 4V. Assuming they use standard 9V batteries and voltage regulators to generate +I-5V references for a 14 bit Signed AID, answer the following questions: 1. What is the smallest voltage change that can be measured by the A/D converter assuming zero noise? (2 pt.) , 9' ,lo , . fl , A“ if, mewtfiwv - imazsw 2. What is the expected accuracy of the analog conversion system? (2 pt.) ‘A News 'Whioefis .oo7é3% étawmfifimfi 3 3. What is the digital value (in Hex) expected for a +3V analog signal? (3 pt.) 2% _5 .000ch 4. If the analog sensor output has significant energy in the band from 1-10K Hz. what should the sampling frequency be if no low pass filter is used before A/D conversion? (2 pt.) 2 “2.0 Kit—e 5. What is the digital value (in Hex) expected for +3V if it was an unsigned ND? (3 pt.) 5 N 4/ 3FFF' L3 .3;— : (3)305 :. 0X§33Z 0 .swaio‘f “2 o —s 6. What is the ideal theoretical dynamic range of the A/D in st? (2 pt.) Qty” 3 fi‘édgd‘ 7. The student connects an oscilloscope to the A/D reference pins and observes +/- 100 mV of noise superimposed on the DC values. How many bits will be corrupted by this noise and what is the new dynamic range? (4 pt.) i VMWF “ 200” £92; £0: 3 32.3 closest’pmwtz 5) 53‘s 83"? 1‘5 mam 6K- / - : Q*%="$Oo\l$s New “(0106;36J/95 Pagei O( A, $9dl§58core= i l i 8. You are given an unsigned 10 bit BIA with VRH & VRL set to +5V & 0V,respectively. What is the expected output voltage for 235 Hex? (3 pt.) - __, , A~ £— - mom v 235 “fr 5" 235m:- mzy O 0 figmwvazs 3* 2% V l 9. In #8 above, if we have 250mV peak to peak of noise on the BIA power supply rails, what is the possible output voltage range for the binary input given in #8? (3 pt.) l Zl7él/i‘.l25l( r> 216,34”! ere 218251/ OXZIB 7L0 Ole/E 10. If the digital value sent to the AID is $0, what is the expected range of the output voltage assuming the 250 mV of specified in #9? (2 pt.) ‘— 0425 0v 0...»- .250v I/flb as 11,2519 EES'T For the following problems, assume you are now using the TL5615 D/A that you received in lab as the D/A converter. Also assume that ou will be usin SPI A on our DSP to drive the D/A. , . y g y 42’” us yaw Wag 11. We would like to send out triangle waves that are created with 100 samples per period. What should the digital values in memory (in Hex) be for the following samples. Note: SampleO = 0 digital (0V) and we want to produce a triangle wave l i i i l i l l with a maximum peak of 4V. (4 pt.) . ,l w? /o, A¢%> lV/A Z V/fi L" l V/A 0V 25‘h Sample = 2 05 50th Sample = 4 I 0 75th Sample = Z 0 g 100'h Sample I: O OXCD OX/ 0X CD 12. We would like to create a triangle waveform period that ranges from 0.01 seconds to 0.0005 seconds. What is the highest frequency that the Timer interrupt needs to run at to support this range? (2 pt.) (00 +3 we lie. zeoogeicces were: sttfmfli- A / 14. If we assume that we will use a Pot connected to the onboard DSP NO to vary the triangle frequency, as was done in l Lab #9, what triangle waveform frequency corresponds to a 1.5V A/D input? (2 pt.) All .5 0W. ‘5‘; 1» l, H; mg 360mlch Has In W 1 \ a S e. ‘ Well 5:: mm It; iqeo ezeage . DSP SCI Peripheral Code Related ‘ _//L fix no 4400 15. You are given a given a DSP with an external crystal such that the low speed clock (LOSPCLK) is 10 MHz. Assume all other clock enables have been set; write the assembly code to initialize the Baud Rate Registers for 4800 Baud. <4pt.) 3,2,2: (lemllekG/looxcapvl : 251 I 0x/03 (luv Xflk! lfi6x3 M «l , \Pbaz Page 2 l / I Score = TlmmG {pxnennm ‘ 9 Pl ,3 H“ M (9 gf... BX 3 UMM 6§1LD ._ l5 _._, l 313 I CURRENT WORD B12 311 BX men) 313 00‘" PREVIOUS WORD 16. You are given an LTC1658 14 bit DAC with SPI (serial peripheral interface) communication. The timing diagram for the device is found above. Write PSEUDO code to initialize the SPI peripheral for this device on our board at the maximum frequency allowed by our board. Note: Although this is a 14 bit D/A, it requires 16 bits of data to be written to “- <8 P” 5mm Aswan l a l 9/0/9th 24/ 0x6’5' Glow/4% 7% “705; Q Ffi MMXZ . 53f $467326 Sf’I CCK Jet Ox 701/5) _ ,- SP/cae e W W» snmggi‘u/z ml W“ 53/5;er “mt Q>(75‘W grow: “(at w 7W; —————7——-———7rnz—— .— y 5117/ C12, 4’ 0x0é clack M59 infilsz 51%!ch 5M Bflfl ‘ use?" 0% 70 717! sp/fl/z/ 543% 0x 70 VF - , was <— OXFFJ 4/eav all 1%; t—p gF/gg/a e: pm; 3 Shaw;me ‘ 5W WEI? 0x /0‘ free View moxie l g,” cue, <9“ 66th 74/ ' winder mega? 17. Write PSEUDO code to read a digital value from GPIO13:0 and continuously echo it to your above D/A. Assume that [Pl013zo is already set up for input and does not need to be initialized. (4 pt.) 1; (ml axérw (am/5:0) (9mm ll) 5AM? p/Mi EAL/MR 75:21“- asgfl/aer MM”? 0%/¢ l, Limb 0/4112» {2 0wng (SP/Wm?) flab/Z 0x 70512 [am 57? figs) ________—.__—._————————-————-— Lzm7zazzzmmamawfi wswflfl,wwflr ‘ C w: CY CAeo I“; @195“ e/Q (OW , a i Page3 field 0X 7él/7CEX g” h) C e”; F/flj iii/wk and Score: . x y \. f _ i From: Mike Pridgen <mp@digitalcontrollab.com> Subject: Re: qulz Date: December 8, 2009 4:48:56 PM EST t To: Karl Gugel <karlgugel@me.com> Reply-To: mp@digitalcontrollab.com Solutions for the last 3 problems: 15: MOV @0x7052, #0x01 ;set upper 8 bits to 0x01 MOV @0x7053. #0x03 ;set lower 8 bits to 0x03 BRR = 259. 10000000/((259+1)*8) = 4808 (close enough) E 16: t MOV @0x6F86, #0x55 ;in GPAMUX2 set GPIO 16-19 to MOSI, MISO, SPICLK, and ISTEA MOV @0x7040, #Ox4F ;in SPlCCR put SPl in reset, set CLK polarity, and 16 data bits MOV @0x7041, #0x06 ;in SPlCTL, set clock phase, select Master, Talk enable in MOV @0x7042, #OxFF ;in SPSTS, clear all flags MOV @0x7044, #0x03 ;in SPIBRR, set to SPICLK to LOSPCLK/4 MOV @0x704F, #0x10 ;in SPlPRl, set to free run mode (regardless of debug) ‘ TSET @0x7040, #7 ;in SPlCCR, set bit 7 (pull SPl out of reset) l 17: 1 Repeat: ' l MOV AL, *(0x6FCO) ;read 14 bits of data into AL LSL AL, #2 ;shift left twice to put into upper 14 bits MOV @0x7048, AL ;put word on SPITXBUF for transmission Wait: MOV AL, *(0x7042) ;read SPISTS flags into AL AND AL, #0x40 ;clear all but SPI lNT RX flag CMP AL, #0x40 ;check if llag set B Wait, NEQ ;if not set, wait MOV AL, *(Ox7047) ;read FtX buff (garbage data) to clear flag B Repeat, UNC MP Karl Gugel wrote: I fina one i hope l sfi. :5 3" > 3215 we /\/)Z\/) (V O SQ ‘ l, 3!? - {V 1.004543 l/' 5 25V A‘; ,00‘7‘583 ' ’ O ...
View Full Document

This document was uploaded on 11/24/2010.

Page1 / 4

FQ_sol_f09 - Print Your Last Name I Print Your First Name...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online