Está en la página 1de 4

CMS COLLEGE OF ENGINEERING DEPARTMENT OF ELECTRICAL AND ELECTRONICS ENGINEERING UNIT-4

01. List the features of 8051 microcontroller?

The features are *single_supply +5 volt operation using HMOS technology. *4096 bytes program memory on chip *128 data memory on chip. *Four register banks. *Two multiple mode, 16-bit timer/counter. *Extensive boolean processing capabilities. *64 KB external RAM size *32 bidirectional individually addressable I/O lines. *8 bit CPU optimized for control applications.

02. Explain the operating mode0 of 8051 serial ports?

In this mode serial enters &exits through RXD, TXD outputs the shift clock.8 bits are transmitted/received:8 data bits(LSB first).The baud rate is fixed at 1/12 the oscillator frequency.

03. Write a program to mask the 0th &7th bit using 8051?
MOV A, data ANL A, #81 MOV DPTR, #4500 MOVX @DPTR, A LOOP SJMP LOOP

04. List the addressing modes of 8051?


Direct addressing Register addressing Register indirect addressing. Implicit addressing Immediate addressing Index addressing Bit addressing

05. Write about CALL statement in 8051?


There are two subroutine CALL instructions. They are *LCALL (Long CALL) *ACALL (Absolute CALL) Each increments the PC to the 1st byte of the instruction & pushes them in to the stack.

06. Define TCON SFR Finally, theres one more SFR controls the two timers and provides valuable information about them. The TCON SFR has the following structure: TCON (88h) SFR
Bit Name Explanation of Function Timer Timer 1 Overflow. This bit is set by the microcontroller when Timer 1 7 TF1 1 overflows. Timer 1 Run. When this bit is set Timer 1 is turned on. When this bit 6 TR1 1 is clear Timer 1 is off. Timer 0 Overflow. This bit is set by the microcontroller when Timer 0 5 TF0 0 overflows. Timer 0 Run. When this bit is set Timer 0 is turned on. When this bit 4 TR0 0 is clear Timer 0 is off. 3 IE1 Interrupt 1 edge flag 1 2 IT1 Interrupt 1 trigger control bit 1 1 IE0 Interrupt 0 edge flag 0 0 IT1 Interrupt 0 trigger control bit 0

07. What is mean by microcontroller?


A device which contains the microprocessor with integrated peripherals like memory, serial ports, parallel ports, timer/counter, interrupt controller, data acquisition interfaces like ADC, DAC is called microcontroller.

08. What is the function of program counter in 8051?


The Program Counter (PC) is a 2-byte address which tells the 8051 where the next instruction to execute is found in memory. When the 8051 is initialized PC always starts at 0000h and is incremented each time an instruction is executed. It is important to note that PC isnt always incremented by one. Since some instructions require 2 or 3 bytes the PC will be incremented by 2 or 3 in these cases.

09. What are the tasks involved in keyboard interface?


The tasks involved in keyboard interfacing are sensing a key actuation, debouncing the key and generating key codes (Decoding the key). These tasks are

10. What is scanning in display and what is the scan time?

performed software if the keyboard is interfaced through ports and they are performed by hardware if the keyboard is interfaced with 8051 In display devices, the process of sending display codes to 7 segment LEDs to display the LEDs one by one is called scanning (or multiplexed display). The scan time is the time taken to display all the 7-segment LEDs one by one, starting from first LED and coming back to the first LED again.

11. Give the format for PSW of 8051.

Bit Symbol Description PSW.7 CY Carry flag PSW.6 AC Auxiliary carry flag PSW.5 F0 Flag 0 PSW.4 RS1 Register bank select 1 PSW.3 RS0 Register bank select 0 PSW.2 OV Overflow flag PSW.1 -Reserved PSW.0 P Even parity flag 12. Give the format for IE of 8051.

13. List out the bitwise instructions of 8051.


SETB: Set Bit ANL: Bitwise AND ORL: Bitwise OR

XRL: Bitwise Exclusive OR CPL: Complement Register CLR: Clear Register

También podría gustarte