What is Microcontroller and Microcomputer
What is Microcontroller and Microcomputer
Microcontroller is a device that includes microprocessor, memory and I/O signal lines on a
single chip. Microcomputer is a computer that is designed using microprocessor as its CPU.
It includes microprocessor, memory and I/O.
Since memory and I/O output is to be Since on chip memory and I/O output
3 connected externally. Therefore the circuit component is available. Therefore the
is more complex. circuit is less complex.
8. Explain Jnc.?
This instruction jumps if there isn't a carry following an arithmetic operation. If there is no carry, it is
referred to as a leap (conditional jump instruction). In this case, a choice is made using the carry flag bit in
the PSW register. The processor checks to see if the carry flag is raised or not.
9. When we add two numbers the destination address must always be.
a) some immediate data
b) any register
c) accumulator
d) memory
For addition purposes, the destination address must always be an accumulator. Example- ADD A,R0; ADD A,
@R1; ADD A,@ DPTR
10. If SUBB A,R4 is executed, then actually what operation is being applied?
a) R4+A
b) R4-A
c) A-R4
d) R4+A
SUBB command subtracts with borrow the contents of an accumulator with that of the register or some
immediate value. So A-R4 is being executed.
Each 1 or 0 in a binary number is called a bit.A group of 4 bits is called a nibble, and 8-bits makes a byte.
7. ANL instruction is used _______
a) to AND the contents of the two registers
b) to mask the status of the bits
c) all of the mentioned
d) none of the mentioned
ANL instruction is used to AND the contents of the two registers and is also used to mask the status of the bits of
the register.
8.Explain the contents of the accumulator after the execution of the following program segments :
MOV A, #3CH
MOV R4, #66H
ANL A, R4
Ans :
A = 3C
R4 = 66
A = 24
9. List the 8051 instructions that affect the flags.
ADD, ADDC, DIV, MUL and SUB B