REG.NO.: NETTUR TECHNICAL TRAINING FOUNDATION (NEC, RNTC, TTC, DTC) DIPLOMA IN COMPUTER ENGINEERING IV SEMESTER SUPPLEMENTARY EXAMINATION- OCT 2013 SUBJECT: Microprocessor Interfacing Techniques & Microcontroller TOTAL MARKS: 70 SUBJECT CODE: CP08-04-01 TOTAL TIME: 2H 15MIN PART-A MARKS: 15 TIME: 15min 1.0 FILL IN THE BLANKS 1.1 The data transfer between microprocessor and input device is done with the help of ---------------- 1.2 When the 8051 is powered up, the SP register contains the value of ------------------ . 1.3 The 8255 has ----------------------------- I/O ports 1.4 The content of carry flag after the execution of CLR C is ---------------------. The BSR control word to reset bit 5 is ----------------------------. 1.5 5x1=5 2.0 CHOOSE THE MOST APPROPRIATE ANSWER 2.1 The DACK stands for ---------------------a. DMA request 2.2 Synchronous b. 6 d. READY ( ) Asynchronous c. full duplex d. none ( ) b. 4 c. 2 d. 5 ( ) d. 8279 ( ) d. 64 bit ( ) The ------------------ is used to interface the output device. a. 2.5 c. DMA hold The 8253/54 timer can be programmed in ------------------ modes. a. 2.4 b. DMA acknowledge The ---------------- transmission contains start bit and stop bit a. 2.3 5x1=5 buffer b. 8259 c. latch The TMOD register is -------------------------- bit register a. 16 bit b. 8 bit c. 32 bit 3.0 MATCH THE FOLLOWING 5x1=5 A B 3.1 INT 0 a. FIFO /sensor RAM 3.2 AT 89C51 b. ISR 3.3 8279 c. bit addressable 3.4 RETI d. hardware interrupt 3.5 TCON e. Microcontroller f. serial 3.3 3.4 A B 3.1 3.2 3.5 REG.NO.: NETTUR TECHNICAL TRAINING FOUNDATION (NEC, RNTC, TTC, DTC) DIPLOMA IN COMPUTER ENGINEERING IV SEMESTER SUPPLEMENTARY EXAMINATION- OCT 2013 SUBJECT: Microprocessor Interfacing Techniques & Microcontroller TOTAL MARKS: 70 SUBJECT CODE: CP08-04-01 TOTAL TIME: 2H 15 MIN PART B 1.0 ANSWER ANY TEN QUESTIONS 1.1 What are the different functional groups of 8279? 1.2 What is memory mapped I/O? 1.3 W.A.P. to toggle P1.3 continuously 1.4 Write a short note on SCON register. 1.5 What is BSR mode? 1.6 W.A.P to initialize 8255 in the configuration given below 1. Port A : simple output 2. Port B : simple output 3. Port CL : Input 4. Port CU : intput MARKS: 55 TIME: 2H 10x2 = 20 1.7 Draw the TMOD register format and write 8051 timer modes. 1.8 Calculate the number of address lines for 64KB memory 1.9 What is Baud rate? 1.10 Write short notes on (a) DPTR and (b) MOVC 1.11 What is the difference between the instructions RET and RETI? 1.12 What is the difference between synchronous and asynchronous data transmission. 2.0 ANSWER ANY SIX QUESTIONS 6 x 3 = 18 2.1 Write BSR control word subroutine to set bits PC3 &PC4 and reset them after delay. 2.2 Write a program to exchange the nibbles of a byte stored at R4 . Store the result at 14h. 2.3 Write a program to generate the following waveform using DAC and 8255. 5V 0V 2.4 Write the features of 8253 2.5 Draw the block diagram of 8251. 2.6 Explain the RAM memory space allocation of 8051. 2.7 Explain the mode 2 operation of 8253 with timing diagram 2.8 3.0 3.1 3.2 Explain Direct Memory Access ANSWER ANY THREE QUESTIONS 3x 4 =12 Design a memory interfacing circuit of 2KB RAM with 8085 starting from 5000H memory location. Assume XTAL = 11.0592MHz, Write a program to toggle P3.6 continuously with a delay of 20ms. Use timer 1 in mode 1 3.3 Draw the block diagram of 8255 PPI. 3.4 Explain the registers and register banks of 8051 microcontroller 4.0 4.1 ANSWER THE FOLLOWING Draw and explain the block diagram of 8051 microcontroller 1x5=5