Shogun Method
Shogun Method
Shogun Method
reviewer2@nptel.iitm.ac.in ▼
Unit 9 - Week 8
Course
outline
Week 8 Assignment
The due date for submitting this assignment has passed. Due on 2018-03-21, 23:59 IST.
How to access
the portal Submitted assignment
Week 1 1) Which register bank of R0 - R7 do we have access to when the 8051 is powered up? 1 point
Week 2 Bank 0
Bank 1
Week 3
Bank 2
Week 4 Bank 3
Lecture 40 :
8051 The stack pointer in the 8051 is only eight bits wide.
Programming When the 8051 is powered up, the SP contains the value 07.
Examples
(Contd.) © 2014The storing
NPTEL of a CPU
- Privacy register
& Terms in theCode
- Honor stack -isFAQs
called- a PUSH.
A project of 41 :
Lecture In association
As we push data onto the stack, with is decremented by one.
the stack pointer
ARM
No, the answer is incorrect.
Week 8 :
Score: 0
Lecture Funded by
Material Accepted Answers:
5) How many times the instruction CPL A is executed in the following program of an 8051? 1 point
MOV A, #F0H
MOV R1, #60
NEXT: MOV R6, #10H
AGAIN: CPL A
DJNZ R6, AGAIN
DJNZ R1, NEXT
600 times
900 times
690 times
960 times
6) What is the maximum delay that can be generated with the crystal frequency of 22 MHz, if 1 point
connected to an 8051?
2978.9 s
0.011 ms
11.63 s
2.97 ms
7) Find the roll over value for the timer in Mode 0, Mode 1, and Mode 2 of an 8051. 1 point
8) Which control signal(s) is(are) generated by the timing and control unit of an 8051 1 point
microcontroller in order to access the off-chip devices apart from the internal timings?
ALE
PSEN
RD & WR
9) Which special function register plays a vital role in the timer/counter mode selection process in 1 point
an 8051, by allocating the bits in it?
TMOD
TCON
SCON
PCON
10)Which among the below mentioned program segments represent the code of an 8051? 1 point
SETC ET0
SETC TR1
SETC EA
SJMP $
11)Which among the below mentioned sequence of program instructions represent the correct 1 point
chronological order for the generation of 2 kHz square wave frequency in an 8051?
6, 5, 2, 4, 1, 3
6, 1, 3, 2, 4, 5
6, 5, 4, 3, 2, 1
6, 2, 4, 5, 1, 3
12)How do the status of the Carry (CY), Auxiliary Carry (AC), and Parity (P) flags affected when the 1 point
following instructions are executed in an 8051?
MOV A, #9CH
ADDA, #64H
CY = 0, AC = 0, P = 0
CY = 1, AC = 1, P = 0
CY = 0, AC = 1, P = 0
CY = 1, AC = 1, P = 1
13)On power up, the 8051 uses which RAM locations for the registers R0 - R7? 1 point
00H - 2FH
00H - 07H
00H - 7FH
00H - 0FH
Score: 0
Accepted Answers:
00H - 07H