Core
Core
CPU is the brain of any processing device of the microcontroller. It monitors and controls all
operations that are performed on the Microcontroller units.
Interrupts
When an interrupt occurs, it causes the CPU to stop executing the current program. The
control then passes to a special piece of code called an Interrupt Handler or Interrupt
Service Routine. The interrupt handler will process the interrupt and resume the
interrupted program.
Memory
The memory which is used to store the program of the microcontroller is known as ROM
memory of microcontroller also requires a memory to store data or operands temporarily
is known RAM memory. 8051 has 4KB ROM and also 128 bytes of RAM.
BUS
Basically Bus is a collection of wires which work as a communication channel or medium for
transfer of Data. These buses consists of 8, 16 or more wires of the microcontroller. Thus,
these can carry 8 bits,16 bits simultaneously. two types of buses that are shown in below
Address Bus
Data Bus
Address Bus: Microcontroller 8051 has a 16 bit address bus for transferring the data.
It is used to address memory locations and to transfer the address from CPU to
Memory of the microcontroller.
Data Bus: Microcontroller 8051 has 8 bits of the data bus, which is used to carry data
of particular applications.
Oscillator
it requires clock pulses for its operation of microcontroller applications and enables
synchronized work of all parts of the 8051 microcontroller.
Input/Output Port
Timers/Counters
8051 microcontroller has two 16 bit timers and counters. These counters are again divided
into a 8 bit register. The timers are used for measurement of intervals to determine the
pulse width of pulses.
3) What are Von Neumann and Harvard classifications, which does 8051 belong to?
Modern processors have data bus widths of 32 to 512 bits, the address buses are
generally of 36 bits.
2^n bytes memory, n address lines.
5) Where is the location of the current line of execution stored when there is an
interrupt?
This happens by means of a context switch, which forms a vital part of interrupt
handling. A context switch is the process of storing and restoring state (the context)
of a CPU, so that execution can be resumed from the same point at a later time.
S = a⊕b ; C = a*b
Full Adder
Diode-transistor logic
Diode-Transistor Logic (DTL) is a class of digital circuits built from bipolar junction
transistors (BJT), diodes and resistors; it is the direct ancestor of transistor-transistor logic.
It is called diode-transistor logic because the logic gating function (e.g., AND) is performed
by a diode network and the amplifying function is performed by a transistor
Transistor-Transistor Logic
Transistor-transistor logic (TTL) is a class of digital circuits built from bipolar junction
transistors (BJT) and resistors. It is called transistor-transistor logic because both the logic
gating function (e.g., AND) and the amplifying function are performed by transistors
SR Flip Flop
S R Q Q’
0 0 0 1
0 1 0 1
1 0 1 0
1 1 ∞ ∞
JK Flip-flop
D Flip Flop
T Flip Flop
T Q Q (t+1)
0 0 0
1 0 1
0 1 1
1 1 0
Applications of Flip-Flops
Counters
Frequency Dividers
Shift Registers
Storage Registers