Grven the following code, org o0h ;start at program location 0000h MainProgram Movf numb1,0 addwf numb2,0 movwf answ goto $
end
;place 1st number in w register ;add 2nd number store in w reg ;store result ;trap program (jump same line) ;end of source program
1. What is the status of the C and Z flag if the following Hex numbers are given under numb1 and num2: a. Numb1 =9 F and numb2 =61 [3] b. Numb1 =82 and numb2 =22 c. Numb1 =67 and numb2 =99 [3] 2. Draw the add routine flowchart. [4] 3. List four oscillator modes and give the frequency range for each mode [4] 4. Show by means of a diagram how a crystal can be connected to the PIC to ensure oscillation. Show typical values. [4] 5. Show by means of a diagram how an external (manual) reset switch can be connected to the PIC microcontroller. 6. Show by means of a diagram how an RC circuit can be connected to the PIC to ensure oscillation. Also show the recommended resistor and capacitor value ranges. 7. Explain under which conditions an external power-on reset circuit connected to the master clear (MCLR) pin of the PIC16F877A, will be required. 8. Explain what the Brown-Out Reset protection circuit of the PIC16F877A micro- [3] controller is used for and describe how it operates. [5]