Documente Academic
Documente Profesional
Documente Cultură
Tri-State Buffer
Bus
Register Files
Memory
Scratch Pad Register
RAM Operation
Non-Volatile Memory (ROM)
PROM
EPROM
EEPROM
Tri-State Buffer
In digital electronics three-state, tri-state, or 3state logic allows an output port to assume a high
impedance state in addition to the 0 and 1 logic
level, effectively removing the output from the
circuit.
b) Using TSB
X1
s
X0
Bus
Set of n signal lines (conducting wires) used together to
carry signal corresponding to address or control or data or
program (code) is known as BUS.
Data
Memory
(512B)
Data
Bus (8)
Program
Memory
(8KW)
Address
Bus (13)
Program Memory
Bus (14)
Fig (2) PIC 16F877A - Program and Data Memory to show DATA, Address and Program Memory Bus
Register Files
A set of registers arranged in an orderly manner is
called a register file.
Types:
a) Serial Data is loaded one behind the other and
read in the similar manner
Reg Conte
Add nt
.
befor
e first
clock
Conte
nt
after
first
clock
I/P
Byte 1
A0
A1
A2
A3
O/P
Byte 0
Byte 0
FIFO
Output
Conten
t after
second
clock
Conten
t after
third
clock
Conten
t after
fourth
clock
Conten
t after
fifth
clock
Byte 2
Byte 3
Byte 4
Byte 5
Byte 1
Byte 2
Byte 3
Byte 4
Byte 0
Byte 1
Byte 2
Byte 3
Byte 0
Byte 1
Byte 2
Byte 0
Byte 1
Byte 0
Input /
Output
LIFO
RAM - Types
DRAM
SRAM
ROM - Types
PROM
EPROM
EEPROM
Example of PROM
Harvard
RISC
Von Neumann
CISC
16F877A
Block - Diagram
RAM file
registers (368 8)
RCLK
RAM address
decoder
RAM address
register
RAMACLK
RAWE
Memory Address (9)
WE
RAM file
registers (368 8)
RCLK
RAM address
decoder
RAM address
register
RAMACLK
RAWE
Memory Address (9)
RE
RAM file
registers (368 8)
RAM address
decoder
RAM address
register
RAMACLK
RAWE
Memory Address (9)
Input Port
Data Bus
IE
Input register
Input
ICLK
Output Port
Output
OE
Output register
OWE
Data Bus
OCLK
Working Register
Output
WR
Working register
WW
WCLK
Input
Data Bus
Working register
WW
WCLK
Input
Data Bus
DTU Operations
Status of control lines
Sl. RAWE RE WE I OWE
E
No.
01
0
0
0
1
0
WW WR
02
03
04
05
06
07
Activity
Transfer data from input port to
working register
Write address into RAM address
register (get ready to select an
address location in the register file)
Transfer data from working register
into the selected RAM location
Transfer data from working register
to the output port
Transfer data from selected RAM
location into the working register
Transfer data from selected RAM
location into the output port
Transfer data from input port to the
selected RAM location
Enhanced DTU
Program Execution
Once an instruction sequence (program) is
prepared and loaded into the PM, the EDTU is
ready for operation: The operational sequence
is as follows:
PC is initialized and points to the location
where the first instruction to be executed is
stored
The instruction is fetched and loaded into the
instruction register; this constitutes the fetch
cycle phase of instruction execution