• Document: D-16] The pin diagram of 8051 microcon...
  • Size: 1.79 MB
  • Uploaded: 2019-03-14 09:20:21
  • Status: Successfully converted


Some snippets from your converted document:

EC 6504 – MICROPROCESSOR AND MICROCONTROLLER Electronics and Communication Engineering Fifth Semester UNIT-1V Part A 1. Draw the pin diagram of 8051 [N/D-16] The pin diagram of 8051 microcontroller is 2. What is the significance of EA pin? [N/D-16] EA [Low]/Vpp : pin 31  When the microcontroller access program from external memory, then this pin is low. ie. EA [low] is enabled.  When the microcontroller access program from internal memory, then this pin is high. At that time this pin is used to supply programming voltage +12V to EPROM/ROM. 3. What are the different ways of operand addressing in 8051? [M/J-16]  Immediate addressing mode  Register addressing mode  Direct addressing mode  Register indirect addressing mode  Indexed addressing mode 4. What is the function of RS1 and RS0 bits in the flag register of Intel 8051 microcontroller? [M/J-16] The function of RS1 and RS0 bits in the flag register is to select the register bank. RS1, RS0 – Register bank select bits RS1 RS0 Bank Selection Address 0 0 Bank 0 00h – 07h 0 1 Bank 1 08h – 0Fh 1 0 Bank 2 10h – 17h 1 1 Bank 3 18h – 1Fh 5. What is the need for bitwise instructions in microcontroller? [M/J -12] Bitwise instructions are needed in microcontroller for the following reasons: 1. Sometimes only 1 or 2 bits of the port are to be accessed instead of entire 8 bits without altering the rest of the bits in the port. 2. It requires discrete input and output bits, to control or detect the logic state of devices like switches, LEDs, LCD displays and sensors for data such as temperature, humidity, light level etc. 3. Since, microcontrollers are used in automatically controlled products and devices, such as appliances, toys and other embedded systems. 6. What are the operand types used in 8051 microcontroller? [N/D -12] The different operand types used in 8051 microcontroller are: Immediate operand a) Register b) Memory 7. What are the advantages of the register indirect addressing mode in 8051 microcontroller? [N/D -10] The advantages of the register indirect addressing mode in 8051 microcontroller are: a. It makes accessing data dynamic rather than static as in the case of direct addressing mode. b. Looping is possible in register indirect addressing mode. 8. Write an 8051 program to monitor P1 continuously. It should get out of the monitoring only if P1 = 63H. [N/D -10] MOV P1, # 0FFh LABEL: MOV A, P1 CJNE A, # 63, LABEL HERE: SJMP HERE 9. List out the special function registers used for port operation in 8051? [M/J -12] The special function registers used for port operation in 8051 are P0, P1, P2, and P3. Each port are 8 bit wide which are bit addressable i.e. each bit can be set or reset by the bit instructions [SETB for high, CLR for low] independently. The address of 1. Port 0 is 80 2. Port 1 is 90 3. Port 2 is A0 4. Port 3 is B0 10. What are the hardware and software interrupts of 8051 μc? Write its vector address. [N/D -11] The hardware and software interrupts of 8051 μc are: 1. External hardware interrupt 0 [INT0] – 0003H 2. External hardware interrupt 1 [INT1] – 0013H 3. Timer 0 interrupt [TF0] – 000BH 4. Timer 1 interrupt [TF1] – 001BH 5. Serial port interrupt [RI or TI] – 0023H 11. How many ports are bit addressable in 8051 microcontroller? [N/D -11] All the ports [Port 0 to Port 3] are bit addressable in 8051 Microcontroller. Part B 1. Explain in detail about the architecture of 8051 microcontroller with a neat diagram. [N/D - 16] 2. Write an ALP using 8051 instructions to receive bytes of data serially and Put them in P1 set the baud rate at 4800, 8-bit data, and 1 stop bit. [N/D-16] Solution: MOV TMOD,#20H ;timer 1,mode 2(auto reload) MOV TH1,#-6 ;4800 baud rate MOV SCON,#50H ;8-bit, 1 stop, REN enabled SETB TR1 ;start timer 1 HE

Recently converted files (publicly available):