40 Pin IC.
4K ROM.
2 Timers (Timer 0 and Timer 1).
1 serial port.
Direct Addressing
Register Addressing
Immediate Addressing
Index Addressing
How much total external data memory that can be interfaced to the
8051?
64K data memory
What is Special Function Registers (SFR)?
The memory addresses from 80H to 0FFH are called SFR. These are 128
bytes registers specially designed for interrupts and few other
operations.
Give example of bit address and byte address?
Example: bit address 87h > byte address 80h, bit #7
What are the types of interrupts in 8051?
Reset.
What are the four distinct types of memory in 8051?
Internal RAM
Program memory
1 MOV A,#55H
2 AGAIN: MOV P1,A
3
ACALL DELAY
4
CPL A
5
SJMP AGAIN
6 DELAY:
7
MOV R5,#9
8 HERE1: MOV R4,#242
9 HERE2: MOV R3,#255
10 HERE3: DJNZ R3,HERE3
11
DJNZ R4,HERE2
12
DJNZ R5,HERE1
13
RET
Here the delay produced is 9*255*4MC*90=199,940 micro seconds.
OPCODE
1 0000
ORG 0H
2 0000
7D25
MOV R5,#25H
3 0002
7F34
MOV R7,#34H
4 0004
2D
ADD A, R5
5 0005
PROGRAM
END
Firstly, 1st opcode 7D is fetched from location 0000 and then the
value 25 is fetched from 0001.
These labels make the program much easier to read and maintain.
Are all the bits of flag register used in 8051?
The flag register also called as the program status word uses only 6
bits.
Carry, auxiliary carry, parity and overflow flags are the conditional
flags used in it.
The push instruction may also take stack to location 0 i.e.it will run
out of space.
Explain JNC.
1 MOV A,#0FFH
2 MOV P0,A
Which 2 ports combine to form the 16 bit address for external
memory access?
Port0 and port2 together form the 16 bit address for external
memory.
Yes, 8051 has the capability of accessing only single bit of a port.
SYNTAX: SETB X. Y.