Download as pdf
Download as pdf
You are on page 1of 4
Nome___ JAS A Banner 1D Page 1 of 4 BE 3463 Micro I Test #1 S15 Feb 19, 2015 Written Part Part A: Questions on Microprocessor’s versus Microcomputers 1. This question refers to the general principles of embedded design and microcontrollers in general:{1 } check things that are true in gengral for microcontrollers and not true for microcomputers- 5 Have On Chip Flash ROM 1_, The peripheral bus typically requires a dedicated and separate controller chip [24 The program executing is usually not changed once developed 1 Have several high level human interfaced devices like a keyboard, mouse, display 1. Use Disk Drives to store the application software « Have a number of on chip peripheral modules that can be configured by the user 2. You are designing a controller for a toaster oven. ‘The boss wants it to have a complex user interface with a time display, touch panel buttons and accurate timing for the toast cycle, What is the best statement about your choice of a microcontroller for the project. 1 The micro should be an extremely low power device even if this raises the cost of the project. The micro has to have a real time clock as well as other timers, a touch sense module and enough pins to drive a display and other controls (1 The micro must be very compact in size and have a very high speed processor clock 3. What major advantage that microcontrollers have over microcomputers makes them the best choice for embedded designs. Pick all choices that represent an advantage for microcontrollers over microcomputers: )x_ Microcontrollers are much cheaper © Microcontrollers can have larger amounts of RAM )x( Microcontrollers have a much smaller footprint | Microcontrollers are much faster yh Microcontrollers require fewer support parts 4, Youare designing a controller for a washing machine. The prior washing machine used a mechanical timer with many contact switches to trigger the various parts of each wash cycle, This timer was very expensive to replace and had a high failure rate. Is itzgasonable to think that using a microcontroller for the design is likely to reduce the failure rate? circle one: Yes) No 5. Microcontrollers produced now often advertise their key features. Generally producers strive to make micros Circle the best 3 choices out of the list:¢ Smaller > Lower Power (Cheaper Fewer Pins Fewer Bytes of RAM — Use higher Voltage More Complitated Instruction Sets Part B: Questions on PICI6F1829 Programmer’s model 6, Which registers are used for indirect addressing? Circle all correct answers PCLATH PCL BSR( FSROH (/FSROL STATUS (PsR1H~ Wreg( FSRIL / 7. How many bits are used in the BSR register _‘7__and how many different memory banks ean be selected with these bits 8, Whielriegister is involved in the movement of data to and from data memory? __ Name. Banner ID. Page 2 of 4 EE 3463 Micro 1 Test #1 SIS Feb 19,2015. Written Part 9. Some of the core registers can have an immediate (or local) value written into them, Cirele the 2 in this list that have this provision (note: there are actually 3 but only 2 are in this list) PCL(BSR FSROH FSROL STATUS FSRIH(Wreg FSRIL B 2B 10, What is the function of the program counter? Pick the best choice: 1, Points to the next value in data memory \ x Points to the next instru n to execute in program memory 1 Holds to return address when returning from a subroutine Part C: Questions on the instruction set 11, Ifthe “LATA” special function register is in bank 2 what instruction would be generated by the processor | directive: BANKSEL LATA | Circle the correct choice: . movlw 0x02 movip 0x02 moviw LATA GS 0x02) | 12, All instructions take up the same room in program memory Tu False 13. Write the code needed to clear the special function register LATB: Penkgel LAT , Dre — ——Ers— 14, Given that variable A, B and X are all in Bank 0 location 0x20, 0x21, 0x22 write the code to swap the contents of A with B using the extra memory location X in the process. I will get you started with the only BANKSEL needed. I wil also add a label to the first instruction, but itis not needed, just reminder to not write the code starting in the first column BeginCode BANKSEL A ; Note: all are in bank 0 this will set the BSR for the entire code segment 6 mov A,™ >) : yp mover Kt yeh AMAS yt - mev ¢ Be + ¥ uf A | Mov wf = \ 7 move p) moet ® Name, Banner ID. Page 3 of 4 EE 3463 Micro 1 Test #1 S15 Feb 19,2015 Written Part 15. Now write code to set the bit in LATA bit #3 toa 1 ae ee { c ! PdAwewser Lard x + aE } 43 pEBSP LATA, 9 wa 6 5 4 3 2 1 0 ““A\Part D: Questions on the IDE MPLAB X 16. What do we call a debug capability where we can single step through the program and the IDE will show where in the source code is the instruction to execute next? Circle the correct answer: 1D Micro Trace Buffer ' J Source Level Debug : Watch window 11 Break Point Capability 17, Can you set the configuration word in the IDE (Yes) No 18, When you start a new project and use the wizard, check the items on the list that are part of the steps you go through to start the project: 1A. choose the specific microprocessor you ate using for the project, , Pick where the code will be loaded inmemory +h. Chigy Prekyer\ WEvwwer| -Select the programmer to be used [P& Select the compiler toolchain ‘8% Project name and location Create a watch window Select the include files 19, We have use two of the tool chains on labs so far. Check the two from the list: xe Q Se pase 0 HiTech © PicBasic a cw 20. When you build. the code, you have to choose between which two builds? Circle correct: \ (Debug and Production’ Debug and Absolute Object and Boot Loader Relocateable and Production , Part E: Questions about the Blink Labs 3 [ 21. The LED has its cathode connected to: PinRAS Vee Cn | 22. The resistor in the LED circuit has what value? 10KQ 2.4K Q C20 Q) 202 / Reset ) 23. Why do we write-a-value into the. OSE (ON register? | @To clear memory()To set Fose frequency) 'o set the configuration words ) 24. To work the LED fiom pin RAS, what do we put inthe TRISA register, bit s(0 Jor 1 | 25. The directive “ORG” tells the assembler where to start assigning instructions in program. memory TF Name, Banner ID. Page 4 of 4 3463 Micro I Test #1 S15 Feb 19, 2015 Written Part , 148i Opeede 3 Mnamonic, statue | so, x c : Notes Operands Description Cycion Msb Lsb | “ected BYTE-ORIENTED FILE REGISTER OPERATIONS z i ta UT an? FP [ODGE [e ha my ears i ere rer |eoc.z |2 ta 1 x oxen arse cere |2 2 ta ott i ree cerle2 [2 ca 1 x reorerr|az |e ta fn 1 ase cers[ez [2 t 1 fa doer tere ters]2 z - 1 ertar 22 ta 1 nse sere |2 2 ta 1 ine cree |2 2 ta 1 doarse seer |Z 2 ta ye OR i witht 1 rte rere |2 2 ta t 1 2 aeen arse sere |2 2 i or i Brien . ta |R reugn Can i rr e 2 ta igh eau ©: 1 nee eee |e ta tome 1 were cere, e ta crow Yat 1 ine cree 6. 2 ta 1 pare 2 ta 1 ree_cere|2 2 BYTE ORIENTED SKIP OPERATIONS | Ta [oswerert onpre 1 a [att | te fo |ircrementt. ox 0 12 cer [eore 2 SIT-GRENTED FILE REGISTER OPERATIONS i i Soe aaa Eeaaa a te 1 a [ani ferer [> 2 BiT-ORIENTED SKIP OPERATIONS Tia) f Tz tig) fer ase cere on 12 7 . 1 3 i : ee Ae ; ' x 1 2.06.2 Eycusive OF itera with 1 ent z Raat bran z ae 7 2 um from Sucrous 2 o_t300 ef 2RAN

You might also like