Professional Documents
Culture Documents
SEMESTER-IV
YEAR: II
UNIT V
MICROCONTROLLER
PART A
3. What is PSW?
Program Status Word (PSW) is the set of flags contains the status information and
is considered as one of the special function registers.
Stack Pointer (SP) is a 8- bit wide register and is incremented before the data is
stored into the stack using push or call instructions. It contains 8-bit stack top address.
The stack may be defined anywhere in the on-chip 128 byte RAM.
The function of data pointer is a 16-bit register which contains a higher byte
(DPH) and the lower byte (DPL) of a 16-bit external data RAM address. It has been
allotted two addresses in the special function register bank for its two bytes DPH
and DPL.
Timing and control unit is used to drive all the necessary timing and control
signals required for the internal operation of the circuit. It also derives control signals
that are required for controlling the external system bus.
The purpose of address latch enable (ALE/PROG) output pulse indicates that the
valid address bits are available on their respective pins.
Program store enable is an active-low output signal that acts as a strobe to read
the external program memory. This goes low during external program memory
accesses.
In the idle mode, the oscillator continues to run and the interrupt, serial port and
timer blocks are active but the clock to the processor is disabled. The processor status
is preserved. This mode can be terminated with a hardware interrupt or hardware reset
signal. After, this processor resumes program execution from where it left off.
15. What is power down mode and how this mode is terminated?
In power down mode, the on-chip oscillator is stopped. All the functions of the
controller are held maintaining the contents of RAM. The only way to terminate this
mode is hardware reset. The reset redefines all the SFRs but the RAM contents are left
unchanged.
21. Write program to load accumulator, DPH and DPL using 8051.
MOV A,#30
MOV DPH,A
MOV DPL,A
22. Write a program to subtract two 8-bit numbers and exchange the digits
using 8051.
MOV A,#9F
MOV R0,#40
SUBB A,R0
SWAP A
D7 D6 D5 D4 D3 D2 D1 D0
C
Y CY AC F0 RS1 RS0 OV - P –
Carry Flag
AC – Auxiliary Carry Flag
F0 - Flag 0 is available to the user for general purpose.
RS1 – Register bank selector bit 1.
RS0 – Register bank selector bit 0.
OV – Overflow Flag
P - Parity flag
26. How does the status of EA pin affect the access to internal and external
program memory? (AU-APR’08)
27. State the difference between RET and RET1 instruction in 8051. (AU-APR’08)
28. Differentiate RRA and RCA instruction in 8051 microcontroller. (AU-NOV’06)
0 0 Bank 0
0 1 Bank 1
1 0 Bank 2
1 1 Bank 3
31. What are the addressing modes supported by 8051? (AU- NOV’09)
37. How does 8051 differentiate between the external and internal
program memory? (AU-APR’08)
39. State the function of DSR and DTR pins in 8251. (AU-JUN’06)
40. What is jump range in 8051? (AU-JUN’07)
42. Draw the format of timer mode control register. (AU-NOV’07)
PART B
20. Discuss the register set of 8051 and also discuss how memory and I/O
addressing is done in 8051. (AU-APR’08) (16)
21. How do you interface a stepper motor to a controller? Give the necessary
hardware and software functional blocks. (AU-NOV’07) (8)
22. Code a program to rotate stepper motor continuously using 8051.
(AU-NOV’07) (8)
23. Explain the operational features of 8051. (AU-JUN’06) (16)
24. Describe the memory and I/O addressing of 8051. (AU-JUN’06) (16)
25. Explain the interrupt structure of 8051. (AU-JUN’07) (8)
26. Write short notes on SFR and Timers. (AU-JUN’07) (8)