You are on page 1of 2

Q1.( 15 Marks) A heart beat monitor is controlled by 8051.The system starts functioning when switch connected to P2.

7 is closed and logic 1 is supplied to pin. It takes the heart pulses through a transducer connected to wrist. The transducer output is well shaped TTL pulses which are connected to P3.4 i.e. Timer 0 external input. The number of pulses counted in 1 minute are displayed on 3 digit seven segment display (connected in common cathode fashion) in serial mode. Code bits are sent on port line P1.0 and clock is sent on P2.0. If the no. of heart beats in one minute are less than 70 the LED connected to P0.0 glows. If no of heart beats in one minute are greater than 90 then LED connected to P0.1 glows. 8051 is having 18 MHz clock with 12 clock machine cycle. Draw Hardware schematic diagram and write the program for above application with comments to explain the logic at every step. Q2 ( 5 +2 Marks) (a). Code a global descriptor table entry that describes a memory segment that begins at location 00FF 0000H and ends at location 0F05 7FFFH.The privilege level is 01. This memory segment is stack segment which grows downwards. Data may not be written. Describe the steps in coding of descriptor (b) For above descriptor if segment register contains 0100H then will the access be granted or not? Give reason. Q3.(3 Marks) Calculate the physical address of following instructions taking the following values in registers of 8086 microprocessor. DS = 2000H, SS = 3000H, SI = 10CH, BP = 0000H, DI = 300H a. MOV AX,[SI]

b. MOV AX,[BP] c. MOV AL,[DI] d. MOV DX,[SP] e. PUSH AX f. RET

You might also like