Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
13 views

Microcontroller Technology and Microprocessor Systems Module III July 2019

Good work

Uploaded by

muemamukilya31
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
0% found this document useful (0 votes)
13 views

Microcontroller Technology and Microprocessor Systems Module III July 2019

Good work

Uploaded by

muemamukilya31
Copyright
© © All Rights Reserved
Available Formats
Download as PDF or read online on Scribd
You are on page 1/ 10
2521/302 2602/302 2601/302 2603/302 MICROCONTROLLER TECHNOLOGY AND MICROPROCESSOR SYSTEMS June/July 2019 /o 912 Time: 3 hours 30 AUG 2019 oa AF i Ss S THE KENYA NATIONAL EXAMINATIONS COUNCIL rn DIPLOMA IN ELECTRICAL AND ELECTRONIC ENGINEERING (POWER OPTION) (TELECOMMUNICATION OPTION) (INSTRUMENTATION OPTION) MODULE HI MICROCONTROLLER TECHNOLOGY AND MICROPROCESSOR SYSTEMS 3 hours INSTRUCTIONS TO CANDIDATES You should have the following for this examination Answer booklet; Scientific cateulator; ry Intel 8080/8085 microprocessor instruction set, 8051 Microcontroller instruction set The paper consists of TWO sections; A and B. Answer any THREE questions from Section A and any TWO questions from Section B in the answer booklet provided. All. questions carry equal marks. ‘Maximum marks for each part of a question are as indicated. Candidates should answer all questions in English. This paper consists of 10 printed pages. Candidates should cheek the question paper to ascertain that all the pages are printed as indicated and that no questions are missing, © 2019 The Kenva National Examinations Councit Turn over SECTION A: MICROPROCESSOR SYSTEMS Answer THREE questions from this section. Zi @)__ State three flags of a CPU status register and explain the function of each, (6 marks) zy, (b) Table | shows Intel 8085 machine code program. ‘Table 1 Machine code (Hex) 2 Let Hp 08 20 ira JE. mov Am 23 TN oe Sth 10 30 Sir ay Mov, mB (Decode the program into Intel 8085 mnemoni (ii) State the addressing mode of each instruction. Beg gt er : os; edeete = (©) _ Write assembly language program segments to perform each of the following: €xtteal = @ 10190101, AND 23H; Sp Ort } Gi) 3-6) x2. 3 Ge! (6 marks) bens, 2. (@)__ Describe two modes of direct memory access. (4 marks) (b) State four functions of interface modules of a microprocessor system. (4 marks) 2521/302 2602/302 2 2601/302 2603/302 Sunetduly 2019 © Figure 1 shows a schematic diagram of an Input/Output (1/0) port. EN MAO Fig. 1 (State with reasons, whether the port is I/O - mapped or memory-mapped. memery mapped (i) Determine the range of addresses assigned to the port, in hexadecimal. ii) With the aid of a flowchart, write an assembly language program segment to read the port and branch to location READY when bits Po and P; are both low, else branch to WAIT. (12 marks) With aid of a flowchart, describe a CPU instrument cycle, (6 marks) (6) Write an assembly language program to perform the following: e + sum two BCD numbers located in memory locations 4001 H and 4002 H; + subtract the BCD number 01000111 from the result; "7 + store the final BCD answer in memory location 4003 H; + end. (8 marks) (©) Table 2 shows an Intel 8085 assembly language program listing. Draw trace table for the program. (6 marks) Table 2 hook LX1 H, 4008 H see LX1 D, 3647 H Te ke pecs ioe tt] DADD SHLD 4002 H HLT 2521/302 2602/302 3 Turn over 2601/302 2603/302 ned Suly 2019 4, (a) _Drawa block diagram of a microprogrammed control unit and state the function of each block. (8 marks) (©) @ __ Differentiate between horizontal and vertical micro-operation field with respect to CPU control unit. (i) State one merit of each micro-operation in b(i). (4 marks) (©) With the aid of a flowchart, describe a microcomputer development cycle. _(8 marks) £ (a) __ State two measurements preformed by each of the following equipment while troubleshooting a microprocessor system: @) multimeter; Gi) oscilloscope; ii) logic analyser. 0 (6 marks) (b) Table 3 shows the contents ofa ROM. Table3 [Memory Address (Hex) | ROM contents (Hex) 3000 E7. 3001 3D 3002 FO 3003, 06. 3004 C6 (Determine the checksum for the ROM; (ii) Write an assembly language program to evaluate the checksum. (10 marks) (©) Explain two commands found in the monitor program of amicrocomputer. (4 marks) 2521/302 2602/302 4 2601/302 2603/302 June/July 2019 SECTION B: MICROCONTROLLER TECHNOLOGY Answer TWO questions from this section. 6. (@)___ State four microcontroller on-chip components that are not found in a general purpose microprocessor. (4 marks) (b) Table 4 shows an 8051 microcontroller assembly language program listing. Table 4 : eS MOV66H,#20H |— ° Soe ee MOV A, #66 H D AUG 2019 5) MOV RO,A Y MOVA, @ RO State the addressing mode of each instruction. Draw a trace table for the program. State the contents of register A at the end of the program execution, (9 marks) State the equation of a proportional plus derivative (PD) controller. (i) Derive the transfer function of the controller in (i). (ii) State the effects of the PD controller on a process. (7 marks) JE (a) Figure 2 shows a diagram of a pneumatic time-delay actuator. Describe its operation. (5 marks) Bellows cd Check valve- ‘Solenoid ——- Small hole | ahh Vt Fig.2 2521/302 2602/302 5 ‘Turn over 2601/302 2603/302 Junelduly 2019 (®) A data logging system monitors 15 analog loops. These loops are multiplexed into a microcomputer through an analog-to-digital converter (ADC), The computer requires 5 4S to perform each instruction. 100 instructions afe required to address each multiplexer line, read in and process data in that line. The multiplexer requires $50 0 25 p25 to sclect and capture the value of an input line, The ADC performs the es conversion in 30 £8. Determine the: as . - <————__@ total time required to process all th 15 lines; 55 5 tAS ii) “sampling rate of each line. (7 marks) (©) Figure 3 shows a pick-and-place robot that picks up parts from one conveyer belt and places them om another belf. When a part moving along the lower conveyer belt activates switch SW1, a solenoid-powered gripper picks the part and carries it towards the upper conveyer belt. When the gripper reaches switch SW, it releases the part and moves back to pick another part. When the gripper reaches switch SW3, it ‘5 halts and waits for the next part to start the cycle all over again. Draw a relay logic ladder diagram to control this operation. (8 marks) Motor ss soe = Part ripper a Upper conveyor ‘sW1 Lower convey. ry a @ State: () three merits of using robots in industries; | Fig.3 Gi) three specifications considered when selecting a robot. (6 marks) 2521/302 2602/302 6 2601/302 2603/302 Junetuly 2019 (&) Figure 4 shows a diagram of a robot arm. Identify the parts labelled W, X, ¥ and Z. (4 marks) Wrist bend motion Fig. 4 2521/302 2602/302 1 ‘Turn over 2601/302 2603/302 Junei uly 2019 (©) Figure 5 shows a schematic diagram of a robot gripper mechanism, using friction to grasp an object. The following data relate to the gripper: weight of the part = 40'N coefficient of friction between the gripper pad and object = 0.4 lengths 1 = 75mm, 1p = 50mm, 13= 20 mm, y= 56mm. diameter of piston of the pneumatic cylinder = 80 mm factor of safety = 1.5 If the gripper is accelerating down with acceleration, a ~ 9.81 mv/s?, determine the: (gripping force tohold the part; f= m~ T1973 g gy (i) actuation force required to obtain this gripping force; ¥ ue Gil) pressure required to operate the piston: se | (iv) power required if the discharge is 0.015 m¥s. : (10 marks) ~~) Poses ee cylinder, lp, i Piston —}— Lic out | hk -| b Py eee j AR ‘ D ) K 3 Finger Finger Gripper’s friction ad y Fig. 5 2521/302 2602/302 8 2601/302 2603/302 Junel uly 2019 vancinxs 8080/8085 veMonic o o 200 | amram | eb | aeons wo lwo | a [ocx w : ov ux epi) 2c finn v2 ferax 8 | 20 ocr | 03 |INx 8 2E [avi 108 | oie oe face | an [sw ny te luv 08] 31 Tex oe me | a2 lem aw | a | Rin & co lomo | x lnm | oe |iowc 8 | ae. foe re |e eee le cc lm ¢ | ar lee | @ [mov colon ¢ [um [| ao |wow ce |i cos} 39 lomo @ | et [mow ar |ane | an (ton ae | os | tov fas foe | oe [wow it (i oo oe [wn lot [ov Cee Ee fete ine 6 lose lao ape | ty Jon tin bP oe ewe ol ae tea | 15 ocr o | mov na | oo |e lat ne at lao se | ae ines te lev ne as ce eae cee | 19 [pan 0 | aa [mov ex | oF ta lioax 0 | 45 [mov at | 70 ie oe 0 [us wey om | 11 [ie fine + | a7 \wov oa | oe wo joe © | 4 juov.ce | 1a Oe eee [ae Joon tm tow co | te | wav pois we |nov ce | os Faria iow 4c |uov cx | | mov 22 |sho adr | aD imov cL 7 | MOV |e foo [ae lwov ow | oe | mov ; | [ne on [ae fwov cx | | wow | ms loca «| sw (uy on | 1 | mov (2 a eS | a 52 Mov 0.0 70 | mov 8 53 |wov of | 7¢ | mov [om nw | se fuov om | a | mov 2a Juno au | 35 joy o4 1 eo | A00 L He ta to me ag ‘08 = constant. cr loied/rliimetic apron tat seliies to an BO luster to 4 Tobit de ‘away, Ade = NbUNt aves 2521/302 2602/302 2601/302 2603/302 June/July 2019 30 pA ea wc aD be ar a 8 ° e aoc w | a7 a ¢ paneer MNEMONIC CALL act HSI anc ae our Pus sut dc ade oP ODE | MNeMONIC ca 8 0e pe pc po o€ eo et a 8 & s eo 2 co 8 ec Et Fo 5 Fe Fe .0 re Fe Fo 2 ne ba Pow ‘quant. BY6 ~ constant. of Tsialaeametie sepversion Sot ‘Turn over MCS-51™ instruction Set Summary ‘OPERATIONS: i SRERRRARNARGEEEERAQOEDE ~eagOE Tae PEER LOGICAL OPERATIONS. eee Bis See a oS = aS ae mi Sie DATATRANSFER Se ee. eee, = oe a eee = oa fe eee a = Sieoe a Soe =. Sean a ee ee eee = Se Ss OUDa9 FERREESESBBERBEESEEEEE 3 BOOLEAN VARIABLE MANIPULATION sees om oe =— Sor es a. Se a S% See a 0 Se 2 ae eo .: toe 1s a5 Sea 2s Soe oS 22 Soo a | i ; ‘ : i i THIS IS THE LAST PRINTED PAGE. 252/302 2602/302 2601/302 2603/302 June/July 2019 10

You might also like