{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

ex1_f09 - EEL 4744C Dr Gugel Fall 2009 Exam#1 NAME UF ID...

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

View Full Document Right Arrow Icon
EEL 4744C – Dr. Gugel NAME____________________________________ Fall 2009 Exam #1 UF ID#____________________________________ Open book and open notes, 90-minute examination to be done in pencil. No electronic devices are permitted. All work and solutions are to be written on the exam where appropriate. Point System (for instructor and TA use only) Page 2 17 points _________________ Page 3 19 points _________________ Page 4 39 points _________________ Page 5 16 points _________________ Page 6 10 points _________________ TOTAL _________________ out of 101 Grade Review Information: ( NOTE: deadline of request for grade review is the day the exam is returned .) ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________ ________________________________________________________________________________________
Background image of page 1

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

View Full Document Right Arrow Icon
Page 2 Page Score = 1.What is the largest signed number number you can subtract from the 16 bit signed number FFFF (i.e. FFFF – X) without creating an overflow? (2 pts.) ________________________________________________________________________________________________ 2. Name two other functions that the pin programmed for GPIO1 can be used for? (2 pt.) _________________________________________________________________________________________________ 3. A student has connect four LEDs (with current limiting resistors) to GPIO35:32. Write the code to initialize the GPIO pins and output 0x7. Assume the watchdog timer has been disabled and EALLOW has also been executed. (6 pts.) _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ 4. In the keypad lab, what was the purpose of the pull-up resistors on the GPIO input pins? (2 pts.) _________________________________________________________________________________________________ _________________________________________________________________________________________________ 5. Name three different ranges of SARAM DSP memory internal to the F28335 DSP? (3 pts.) _________________________________________________________________________________________________ _________________________________________________________________________________________________ _________________________________________________________________________________________________ 6 Name two assembler directives that can be used to alter DSP memory at load time. (2 pts.) _________________________________________________________________________________________________ _________________________________________________________________________________________________
Background image of page 2
Page 3 Page Score = 7. Create a subroutine to perform the following threshold detection. (10 pt.) If N1 > N2, return +1 in register AL. If N1 = N2, return 0 in register AL If N1 < N2, return -1 in register AL N1 .bss 1 ;assume N1 & N2 are 16 bit unsigned words that are written to at run time N2 .bss 1 Sub_Threshold _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ _____________________________________________ 8. A student is given a new uP that has 20 address lines, 16 data lines, DataStrobe ( -DS ) and a R/-W signal. When the processor resets it automatically fetches the first PC value from 0xFFFFF. Assuming that we have 32K x 8 EPROMs and 256K x 8 SRAMs available, answer the following questions: If we would like to have 32K of EPROM (to hold our BIOS) in our system, how many EPROMs are required and what will be the range of the 32K in the uP memory map? (3 pt.) _________________________________________________________________________________________________ What data values (starting address of our BIOS) should be programmed in the highest two bytes of each EPROM(s)?
Background image of page 3

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

View Full Document Right Arrow Icon
Image of page 4
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}