jaypee institute of information technology...

5
/ JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY UNIVERSITY NOIDA TEST-1 ODD SEMESTER 2007 COURSE CODE 07B41Cll 05 MAXM. TIME: 1 hr. COURSE NAME MICROPROCESSOR AND CONTROLLER COURSE CREDIT: 5 MAXM. MARKS: 100 DATE : 5/09/2007 TIME: 4PM -5 PM ANSWER ALL THE QUESTIONS 1. a. A customer is required to purchase certain processor for his embedded system which involves specific controlling of systems. Suggest the customer to choose between Microcontroller and Microprocessor. Mention reasons and advantages for your choice. [8] b. For an Intel based Microcontroller system, the control program is already burned in EPROM. The system does not need any other code. Suggest the 'suitable micro controller for this system. Give reasons for your choice. Explain the method to access external memory access in 8051. [8] c. In 8051, there are certain registers named special function registers, explain their purpose. Why they are absent in 8086. [8] d. State differences between Stack memory access in 8051 and 8086 with examples. [8] e. Differentiate PORT 0 and PORT 3 with other ports of 8051 microcontroller. [8] 2. a. Mention the possible overlapping segment and offset values to map the physical address location 021ABH in 8086, Show your calculations. Suggest methods to avoid overlapping of memory segments? (l0] '. b. Code a descriptor that describes a memory segment that begins at location 03000000H and ends at location 05FFFFFFH. This memory segment is a data segment that grows upwards in the memory system and can be written. The descriptor is for an 80386 microprocessor. [15] c. Explain the role of clock generator in 8086. In 8086, for given crystal frequency of 18MHz calculate the peripheral clock frequency, clock frequency, oscillator frequency. [5] 3. An educational tool based on lntel 8086 embedded system has to be designed for the character recognition in facilitating the pedagogical of primary alphabets under age group 3 - 5 years. Develop a program (i) to count the number of vowels, (ii) count the number of alphabets for given input string. Display the outputs. Comment your code properly. [30] =

Upload: doandiep

Post on 25-Mar-2018

219 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY …jiitsm.weebly.com/uploads/5/7/4/5/57450127/scan0005.pdf · jaypee institute of information technology university noida test-1 odd semester

/

JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY UNIVERSITYNOIDA

TEST-1ODD SEMESTER 2007

COURSE CODE 07B41Cll 05 MAXM. TIME: 1 hr.COURSE NAME MICROPROCESSOR AND CONTROLLERCOURSE CREDIT: 5 MAXM. MARKS: 100DATE : 5/09/2007 TIME: 4PM -5 PM

ANSWER ALL THE QUESTIONS

1.

a. A customer is required to purchase certain processor for his embedded system whichinvolves specific controlling of systems. Suggest the customer to choose betweenMicrocontroller and Microprocessor. Mention reasons and advantages for your choice.

[8]

b. For an Intel based Microcontroller system, the control program is already burned inEPROM. The system does not need any other code. Suggest the 'suitable micro controllerfor this system. Give reasons for your choice. Explain the method to access externalmemory access in 8051. [8]

c. In 8051, there are certain registers named special function registers, explain theirpurpose. Why they are absent in 8086. [8]

d. State differences between Stack memory access in 8051 and 8086 with examples. [8]

e. Differentiate PORT 0 and PORT 3 with other ports of 8051 microcontroller. [8]

2.a. Mention the possible overlapping segment and offset values to map the physical address

location 021ABH in 8086, Show your calculations. Suggest methods to avoidoverlapping of memory segments? (l0]

'.

b. Code a descriptor that describes a memory segment that begins at location 03000000Hand ends at location 05FFFFFFH. This memory segment is a data segment that growsupwards in the memory system and can be written. The descriptor is for an 80386microprocessor. [15]

c. Explain the role of clock generator in 8086. In 8086, for given crystal frequency of18MHz calculate the peripheral clock frequency, clock frequency, oscillator frequency.

[5]

3. An educational tool based on lntel 8086 embedded system has to be designed for the characterrecognition in facilitating the pedagogical of primary alphabets under age group 3 - 5 years.Develop a program (i) to count the number of vowels, (ii) count the number of alphabets for giveninput string. Display the outputs. Comment your code properly. [30]

=

Page 2: JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY …jiitsm.weebly.com/uploads/5/7/4/5/57450127/scan0005.pdf · jaypee institute of information technology university noida test-1 odd semester

JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY UNIVERSITY, NOIDATEST-1

IVSEM CSE, EVEN SEMESTER 2009COURSE CODE : 07B41CIl05

.COURSE NANIE : MICROPROCESSOR AND CONTROLLERCOURSE CREDIT: 4DATE : 1810212008

MAX TIME: 1hr.

MAX. MARKS: 100TIME: 2:30 -3:30 PM

ANSWER ALL THE OUESTIONSI. [60 Marks) An aircraft cabin display unit accepts information from a plurality of sources

such as the petot static tube, a static air pressure source, a temperature source, cabin pressuresource and the like and converts the data to corresponding electrical valves. The valves aremultiplexed and converted to a digital value and applied to a micro-controller whichcalculates, from the data, the aircraft's true air speed, outside temperature, altitude, etc., anddisplays the calculated information on a cabin display unit.

In the above cabin display unit assume 8-Digit Seven Segment Display (with commoncathode) unit is interfaced with 8051 microcontroller to display temperature and altitude.To display level of air speed as VERY LOW, LOW, NORMAL, HIGH and VERYHIGH, microcontroller is interfaced with 5- bit Logic Controller (with common anode).Where bit BO is used for VERY LOW, B I is used for LOW, B2 is used forNORMAL, B3 used for HIGH and B4 used for VERY HIGH.

Now write an 8051 generalized interfacing program to display temperature, altitude and air speedassuming PO of microcontroller has temperature value, PI has altitude and P2 has air speed in thefollowing format. .

If PO = -24H then display "NEG 24DC"If P 1 = ISH then display" 15000 FT"If P2 = 10H then display" I0000"

2. [lxlOMarks)Calculate the physical address of below instructions taking following set values in register of8086 processor.CS = 2000H ; SS=3400H; DS= 1000H; ES= 4900H & BP= 0005H; IP=1002H;Dl= 0003H;BX= OOIOH;AX= OIOOH ;CX=1100H;ARRAY=0012H

a. MOV AX,[BP][DI] f. MOV AX,[BX][SI]b. MOV AX, [BX][SI] g. MOV [CX]+4,BXc. MOV CX,[Dl+4] h. MOV [IOOH],DLd. MOV [SI+ 100H],BX i. MOV AX,ARRA Y[BX]e. MOV DL,[BX+IOOH] j. JMP [AX]

3. [5+5Marks)a. Which type of JMP instruction (short, near or far) assembles for the following?

i. If the distance is 0210H bytesii. If the distance is 0020H bytes

iii. If the distance is 10000H bytesb. Bring out architecture difference used in Intel 8051 and Intel 8086, how it is

reflected in the instruction set for accessing DATA and CODE?

4. [6+6+8 Marks)With respect to DOS and Windows XP operating system, compute the following parameters byassuming following data given.Offset = 1234, G=I, Base address= 10200000H, Limit is OOIFEH, DS=0105Ha) Find the end address of data segment memory for both the OS.b) If descriptor corresponding to selector has access privilege levels 01 & segment register has

the value 01 OOH, will the access be granted or not.c) Which descriptor entry, table type & requested privilege level are selected in the above OS .

..•.

Page 3: JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY …jiitsm.weebly.com/uploads/5/7/4/5/57450127/scan0005.pdf · jaypee institute of information technology university noida test-1 odd semester

r

Jaypee Institute ofInformation Technology University, NOIDATest-l Odd Semester 2009

V SemECE

Course Code: 07B4l Cll 05Course Name: Microprocessor and controller

Date :27 Aug 09Time: 3:45PM to 4:45PM

._-- ._- ._-_ ..- - ... _._. __ .------- _.__ .•.._--I. A microcontroller based Tachometer uses proximity IR sensor for measuring the. RPM

(revolution per minute) of rotating shaft. The circuit employs AT89C51 microcontroller asthe main controller. This tachometer has IR transmitter and receiver, the counted pluseswill come from proximity IR sensor, wliich will detect any reflective element passinginfront of it, and thus, will give-an output pulse for each and every rotation of the shaft.Those pulses will be fed to the microcontroller and counted. Theses counted pulses areused to calculate RPM of rotating shaft and displayed on four digit 7-segment. :When evermeasured RPM exceeds 9999 then output. of LCD (Logic Controller Display) will be all·high (ON). . .Assuming that microcontroller isinterfaced with PPI for these display purpose. Write anKeil C program with psedocode to display the measured RPM on "four digit 7-segmentdisplay and also to display condition where RPM is greater then 9999.

[8Marks]

·2. "In 8086' Fetch cycle overlap's with Execute cycle but under certain circumstance thisoverlap is not possible, explain what are those condition where overlapping is not possible.

[4Marks]

3. In 80x86 processor having segment value as 3145H and offset value as E089H works with. both real mode as well as protected mode, calculate the physical address generated by thesemode assuming that descriptor index 628H is having base address 00100000-,limit OIFFh

.and assess rights as D2H. .[4Marks]

4. Give the architectural difference between 8086 and 8051.[2Marks]

5. What is role of program invisible register during protected mode operation in 80286 andit's above family.

[2Marks]

'.'

Page 4: JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY …jiitsm.weebly.com/uploads/5/7/4/5/57450127/scan0005.pdf · jaypee institute of information technology university noida test-1 odd semester

Jaypee Institute of Information Technology, NoidaEven Semester 2011- Test!

Course Code: lOB11CI40 1Course Title: Microprocessor and Controller

Duration: IHrMax Marks: 15.... --

Note: Open Book Test (only text books to be carried, no other materials are allowed)

Q1.(a) [5 Marks] In .abank there-are 16 counters. Under each counter, near the right lag a switch isplaced. If there is attempted robbery at the counter then the employee must press the switch. Pressingthe switch will initiate the following actions:

a. Outside door of the bank is closed automatically.h. In Central Security Room, alarm is displayed identifying the counter -c. An automatic call is placed to 100 for informing the police,

A' It,:-r··0.'~ :.::..:.:ity system-is controlled Id [,:)51 n.icrocor.trollcr. l-ort fG':L'1dPI lines •.•.re connectco -~.) "'I, aswitches under the counters (when switch is close particular line will be 1). Writing Of'FH to P2 willclose the outside door automatically, ~aking bit locations 20H to 27H as 1 places automatic call to100 with message" Robbery - Bank Name - Branch Name-Counter No-"( copy of themessage canalso found at starting RPJA location 40)1). You may select bank name and branch name as per yourchoice.P0l1 3 lines are connected to security control room. Bit 0 to Bit 4 identify the counter code 1 to 16. Bit7 and Bit 6 if 1 annunciate the alarm by sendingmessage " ALAR.t\.1ON" at starting RAM location75H .

. Develop a 8051 program for the above system. Program should have comments to illustrate the logic.

(b) [3 Marks] To avoid spurious action and wrong alarms. Switch closure must be checked 5 timesafter a g".p of 1 second each. Consider that 8051 has 12 clock machine cycle with clock frequency as20 MHz. Rewrite the above program to incorporate the above modification.

Q2.

(a) [4 Marks] Simulate the traffic light operation on a road cross section using ports of 8051(clock frequency = 16 MHz, 12 clock machine cycle).Develop 8051 program for trafficoperation. Consider that making port bit =1 wiil glow the light connected to port line. Traffic inany direction is allowed only for 1 minute. Lights available for each direction are RED,GREEN FORWARD and GREEN RIGHT.

(b) [: Marks] Incorporate AMBER light as well as lights for pedestrian traffic in the above. designi.nd program. AMBER light must blink 3 times before RED light.

Note: You may use port.O =1 for RED, port.1 =1 for GREEN FORWARD, port.2 =1 for GREENRIGHT ra~1port.3=1 for AMBER. Any' other assumption made should be clearly mentioned a;beginning of the program.

'..'

Page 5: JAYPEE INSTITUTE OF INFORMATION TECHNOLOGY …jiitsm.weebly.com/uploads/5/7/4/5/57450127/scan0005.pdf · jaypee institute of information technology university noida test-1 odd semester

Jaypee Institute of Information Technology, NoidaODD Semester 2012

V SEM. ECE T 1Examination

?\ame of the student: Enrolment no.:

Course Code: 07B41CIl05110BIICl401Course Name: Microprocessor and Controllers

Max Marks: 15Max Duration: 1 Hr •

Q.l) The 8051(16 MHz clock frequency, 12 clock machine cycle) is monitoring a Rocket LaunchingSystem. The Rocket is cleared for launch if it satisfies all three conditions: a) the temperature insiderocket is below 30 degree centigrade, b) the pressure in the rocket is below 100 PSI, and c) the motorattains 200 RPM in 30 secon.s!§. . .

The 8051 can start the motor by making PO.O=HIGH.Port PI, P2 and P3 have the RPM of motor,temperature and pressure inside the rocket respectively. The 8051 starts testing when it receivesHIGH signal at PO.1. It can stop the motor by making PO.2= HIGH.

If the temperature is more than 30°C then LED at PO.3glows. /If the pressure is more than 100 PSI then LED at PO.4glows.If the motor is not able to attain 200 RPM in 30 sec then LED at PO.5glows.

The 8051 glows LED at PO.6 for testing complete indication. If all the testing is successful thenmessage" TESTIl\G IS OK" is written at RAM location 40H and LED at PO.7 glows else"TESTI~G FAILED" is written at RAM location 40H. Note that all LED's are connected inCommon Cathode fashion.

1. Draw Hardware Schematic diagram of complete system.11. Develop flow chart of the system.Ill. Develop strategy for delay calculationIV. Develop software using 8051 assembly language

[2 Marks][2 Marks][1 Marks]{5 Marks]

Q.2) Analyse the below code and mention how many times Xl, X2 and X3 will be executed.IS Marks]

ORGO\<IOV A,#O\<IOV RO, #02H\<IOV RI, #02HCJ1'iE@Rl,#03H.X3BACK:CALL XlCALL X2DJ:'\Z RO, BACKXl:RETX2:CALLX3RETX3:(:,\C R2PCSHACCCJ:'\E @RG, #CFFH. REPEA TSJ\,1P EXITREPEATR'XlT:E:'\D

.,

',i'