Professional Documents
Culture Documents
Basics of Electrical Measurements Part 2
Basics of Electrical Measurements Part 2
Unit 2
Formative Assessment
Ashesh B Vignesh
110110013
I.C.E. Department
2010 2014 Batch
Memory Classification
Can be classified into two groups
Prime (system or main memory)
Storage
memory
Memory Classification
Storage
This memory is used to store programs and result
Storage
Two main groups of storage memory
Secondary storage
Backup storage
shelf
Back up storage is similar to what one puts in their
attic/basement
Primary feature of these devices are:
High capacity
Low cost
Slow access
Prime memory
Prime memory is memory used in executing and
storing of programs
This memory should be able to respond fast
Fast enough to keep up with execution speed of
microprocessor
The microprocessor should be able to access info from
and register with same speed
Can be divided into
Read/Write Memory (R/WM)
Read Only Memory (ROM)
R/WM
Primarily used for information that is likely to be
altered
Information such as writing programs or receiving
data
The memory in R/WM is volatile
Contents are destroyed once power is turned off
Dynamic
Static Memory
Static Ram is also known as SRAM
Dynamic Memory
Dynamic memory is also known as DRAM
ROM
The ROM is a non volatile memory
Stores information even if power is turned off
need to be altered
As name suggests, information is Read Only
This means that once bit pattern is stored, it is
permanent or semi permanent
Hence there are two types of groups
Permanent
Masked ROM and PROM
Semi permanent
EPROM, EE PROM and Flash Memory
ROM
ROM
The concept underlying ROM has been shown in
Masked ROM
Bit pattern is permanently recorded by the masking
PROM
Programmable Read Only Memory
arranged in a matrix
These wires can be functionally viewed as diodes or
fuses
Can be programmed with a PROM programmer that
burns the fuses to the bit pattern to be stored
Process is known as Burning the PROM and
information stored is permanent
EPROM
Erasable Programmable Read Only Memory
of an FET
Information is stored by using an EPROM programmer
which applies high voltages to charge the gate
All information is erased by exposing chip to
ultraviolet light through its quartz window
This chip can this be reprogrammed
Hence, it is suited for product development,
experimental projects etc.
EE PROM
Electrically Erasable Programmable Read Only
Memory
Functionally similar to EPROM
Difference is that information can be altered by using
electrical signals at register
Hence, no need to erase all information
This memory also includes a Chip Erase mode where
entire chip is erased in 10 m.s.
This memory however is expensive compared to
EPROM
Flash Memory
Popular variation of EE PROM
applications such as
Real time clock
Even Counter
Digital one shot
six modes
V power supply
To operate counter, a 16 bit count is loaded in its
register and, on command, begins to decrement the
count until it reaches 0
At end of count, it generates a pulse that can be used
to interrupt the MPU
The counter can count either in binary or BCD
In addition, count can be read by MPU while counter
is decrementing
It includes:
Three counters (0, 1 and 2)
A data bus buffer
Read/Write control logic
A control register
GATE
Control Logic
Control section has five signals
Read
Write
Chip select
A0
A1
connected to and
In memory mapped I/O, these are connected to
(Memory Read) and (Memory Write)
Control Logic
Address lines A0 and A1 of the MPU are usually
logic 1
It is used to write a command word
This command word specifies the counter to be used,
its mode and either Read or Write operation
This is illustrated in next slide
device
Can be programmed to transfer data under various
conditions, from simple I/O to interrupt I/O
Flexible, versatile and economical, but somewhat
complex
It is an important general purpose I/O device that
can be used with almost any microprocessor
a)
The b) of the figure in next slide shows all functions of
programmable device
Port C performs functions similar to that of the status
Control Logic
The control section has six lines
(Read)
This control signal enables read operation
When signal is low, the MPU reads data from a selected
Control Logic
, A0 and A1
These are device select signals
is connected to a decoded address
A0 and A1 are generally connected to MPU address lines
A0 and A1
The signals is the master Chip Select
A0 and A1 specify one of the I/O ports as given below
Control Word
The control logic figure shows a register called control
register
Contents of this register are called the control word
They specify an I/O function for each port
Control Word
Bit D7 of the control register specifies either the I/O
Control Word
To communicate with peripherals through the 8255A,
Timing Diagrams
Definition
A timing diagram is a representation of a set of signals in
Timing Diagrams
T state
The machine cycle and instruction cycle takes multiple
clock periods.
A portion of an operation carried out in one system clock
period is called as T-state
Instruction cycle
The time required to execute an instruction is called
instruction cycle
Machine cycle
The time required to access the memory or
Timing Diagrams
enable memory
It is during this state, the selected memory location is placed
on D0-D7 of the Address/Data multiplexed bus
T3 State
In the previous state the Opcode is placed in D0-D7 of the A/D
bus
In this state of the cycle, the Opcode of the A/D bus is
transferred to the instruction register of the microprocessor
Now the goes high after this action and thus disables the
memory from A/D bus
T4 State
In this state the Opcode which was fetched from the memory
is decoded
memory
During this state the contents of the register is placed on
the Data bus
T3 State
The data placed on the data bus in the previous state is
Memory Interfacing
Primary function of memory interfacing
The processor should be able to read from and write
Memory Interfacing
The 8085 places a 16 bit address on the address bus
Only one register is to be selected with this address
Memory Interfacing
The 8085 provides two signals / and to
similar steps
In write operation, it places the address and data and
asserts the / signal
After allowing sufficient time for the data to become
stable, it asserts the signal
Memory Interfacing
The / and signals can be combined to
generate