MICROPROCESSORS AND MICROCONTROLLERS - 2 (MPMC) MAY 2010 [EXTC] ELECTRONICS AND TELECOMMUNICATION SEMESTER 6
Con.3514-10. (REVISED COURSE) AN-4528(3 Hours) [Total Marks:-100]
N.B: (1) Question No.1 is compulsory.
(2) Attempt any four questions out of remaining six questions.
(3) Assume suitable data, wherever required with justification.
(4) Figures to the right indicate full marks.
1. (a) Draw the internal states of program memory, data register and flags of RIC18 microcontroller
after executing the following set of instructions. In the interrupt vector table at address
000000H a jump instruction is stored and the main program begins at location 000020H.
Assume that the program execution starts when the microcontroller is power on
reset. [10 Marks]
MOVLW 0x89
ADDLW 0x77
(b) Explain the pipeline fetch and execution process with respect to the above
program. [5 Marks]
(c) Design an 8-bit serial input/output port interfaced at 0x08000 address in minimum mode
of 8086 microprocessor. Show interface diagram and absolute memory map. [5 Marks]
2. (a) With neat diagram compare and explain different synchronizing methods for data transfer
between 8086 microprocessor, and I/O devices. Clearly indicate the handshake
signals. [10 Marks]
(b) Explain the interrupt structure of 8086 microprocessor with respect to 8259 Programmable
interrupt controller. [10 Marks]
3. (a) Draw the interface diagram of 8086 microprocessor and 8087 NDP, also explain various
interface signals and co-processor working with host processor. [10 Marks]
(b) Convert the decimal number - 187.625 into short real, long real and temporary real data
types of 8087 NDP. [10 Marks]
4. (a) With neat diagram explain the different instruction formats of PIC18 controller. Also give
the comparison of bit size of opcode for different instructions. [10 Marks]
(b) Explain the working of following instruction of PIC18.
(i) BTFSC F,b,a (ii) BTG F,b,a (iii) RRNCF F,d,a (iv) IORWF F,d,a
Specify the significance of each field in every instruction. [10 Marks]
5. (a) Write an assembly language program for an interface shown in Figure-1. Read an 8-bit data
through DIP switch connected on PORTB and output the data to bit-0 of PORTC where an
LED is connected. The clock frequency of the controller is 40 MHz and the data transfer rate
at PORTC is 100 milliseconds. [10 Marks]
(b) Draw the flow chart and write the an assembly language program for PIC18 controller to
read and write five bytes from program memory to data memory. Assume the starting address
of the program, data memory. [10 Marks]
6. (a) Write an assembly language program for an interface shown in figure-2. the interface is to
implement a 3x3 bit calculator. The calculator has a two bit command interpreter as given in
Table-1 to select different arithmetic operations. Display the result on LEDs connected on
PORTC. [15 Marks]
(b) Explain in brief various addressing modes of PIC 18 controller. [5 Marks]
7. Write a short notes on four of the following: [20 Marks]
(a) Various assembly language directives and Macro functions.
(b) String instructions of 8086.
(c) Harvard architecture.
(d) Dual functionality of parallel ports of PIC 18.
(e) Stack related instructions of PIC 18.
(f) What do you mean by object code compatibility in processor? How it is achieved in x86
processor.
No comments:
Post a Comment