Professional Documents
Culture Documents
Figure shows the read (RD) as a control signal for both memory and input devices
Two different RD signals are required one for memory and other for input.
Similarly two separate writing signals must be generated.
Control signals ---------Read signal (memory)
--------- Read signal (I/O)
--------- Write signal (memory)
--------- Write signal (I/O)
If IO/M and RD and WR signals are ANDed connection with 74LS32 OR gate
This will give 0 with 0 and 1 with 1 outputs as per the task. Here both input signals are
low with MEMR and MEMW control signals.
But HEX inverter is used in this circuit, ANDed with RD and WR signals the output
becomes reverse.
ie if 0 input, 1 becomes the output and
if 1 is input the output becomes 0
That means if normal ANDED and OR gates are used with quadruple no change in
output, but inverse is used the output becomes reverse
Microcontroller
The 8051 Basic type of Microcontroller is designed by Intel Co. in 1980’s. This
microcontroller was based on Harvard Architecture and developed primarily for the use
of embedded systems technology.
The 8051 Microcontroller has two buses and two memory spaces of 64K X8 size for
program and data units. It has an 8 bit processing unit and 8 bit accumulator units
4
Comparision between Microprocessor and Microcontrollers
3.: Microprocessors are many operational codes Microcontrollers one or two operational
(op codes) for moving data from external codes specific to task
memory to CPU
4. Microprocessors have one or two types of Microcontrollers have many bit handling
bit handling instructions instructions
5. Microprocessor is concerned with rapid Microcontroller is connected with rapid
movement of code and data from external movement of bits within the chip
addresses to the chip.
6. Microprocessor must have many additional Microcontroller can function as a
parts to be operational. computer with addition of no external
digital parts.
Applications of Microcontrollers :
Home appliances: Telephones,, microwave, door opens systems, TV, VCR, remote control,
video games, cell phones, camera, lighting control, automatic camera..
Automotives : Engine control, ABS (Automatic Braking System), steering control, Airbag,
transmission control, climate control, keyless entry(sensor based)
Microcontroller Arhitecture
The Intel 8051 is an 8-bit microcontroller which means that most available operations are
limited to 8 bits.
There are 3 basic "sizes" of the 8051: Short, Standard, and Extended. The Short and
Standard chips are often available in DIP (Dual In-line package) form, but the Extended
8051 models often have a different form factor, and are not "drop-in compatible".
All these things are called 8051 because they can all be programmed using 8051
assembly language, and they all share certain features (although the different models all
have their own special features).
8
I/O ports , ALE, PSEN, XTAL1, XTAL2, RESET, Serial input /output, Timing,
Interrupts
Input/output Port : Normally Microcontroller is used in embedded system to control
the operation of machines in the microcontroller. Therefore, to connect it to other
machines, devices or peripherals we require I/O interfacing ports.
ALE(Address Latch Enable) : Pin provides an output pulse for latching the low order
byte of the address during access to external memory. This allows 16 bit addresses.
PSEN : program stroke enable : this pin is read signal pin for external program memory
and is active when low. It is connected to output enable pin of external ROM OR
EPROM
EA (External access ) : this pin is used for external program code. it access
automatically
Access internal or external code depending on address. 9
Contd..
XTAL1 , XTAL2 : these are the connecting pins for a external oscillator, used with crystal
Circuit of 12MHz
RESET : used for system to allow startup orderly when high signals on the pin.
Serial I/P and O/P : writing serial data in to buffer at address 99H loads data fro
transmission.
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.
Interrupts : As its name suggests, Interrupt is a subroutine call that interrupts of the
microcontrollers main operations or work and causes it to execute any other program, An
Interrupts gives us a mechanism to put on hold the ongoing operations, execute a subroutine
and then again resumes to another type of Generally five interrupt sources are there in 8051
Microcontroller. There are 5 vectored interrupts are shown in below
INTO
TFO
INT1
TF1
R1/T1Out of these, (INT0) ̅ and (INT1) ̅ are external interrupts that could be negative edge
10
triggered or low level triggered. The memory which is used to store the
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. Hire two types of
buses that are shown in below
Address Bus
Data Bus
Microcontroller 8051 has an on-chip oscillator which works as a clock source for
Central Processing Unit of the microcontroller. The output pulses of oscillator are
stable. Therefore, it enables synchronized work of all parts of the 8051
Microcontroller.
11
Applications of 8051:
12
Harvard architecture
The Harvard architecture is a computer architecture with separate storage and signal
pathways for instructions and data. The term originated from the Harvard Mark I relay-
based computer, which stored instructions on punched tape (24 bits wide) and data
in electro-mechanical counters.
13
Microchip Microcontroller
Peripheral Interface Controller (PIC) microcontrollers are a family of
specialized microcontroller chips produced by Microchip Technology in Chandler,
Arizona. This is called PIC used as single chip microcontroller. The main functions as
follows.
15
Microcontroller Selection factors
16
Interfacing Devices
Interfacing can be defined as transferring data
between microcontrollers and interfacing peripherals such as sensors, keypads,
microprocessors, analog to digital converters or ADC, LCD displays, motors, external
memories, even with other microcontrollers.
Embedded systems : is one that has computer hardware with software embedded with
other devices. Or Hardware (input out put interfaces, user interface, memory and the
display) is built with a microprocessor or microcontroller
19