Microprocessors & Microcontrollers
Microprocessors & Microcontrollers
Microcontrollers
Lecture 2
17/01/2022
Microprocessor 8085
• 8 bit NMOS microprocessor
• 40 pin IC package
• Uses +5 Vdc supply for its operation
• Clock speed 3 MHz and clock cycle of 320 ns
• 80 basic instructions and 246 opcodes
• Stack Pointer
• Works on LIFO
• Used for saving the content of registers
Registers
• Instruction Register
• Hold the opcode of the instruction which is being
decoded or executed
• Temporary Register
• Associated with ALU
• Holds the data during an arithmetic/ logic operation
• Used by microprocessor
• Not accessible to programmer
Status Flag Register
• 8085 microprocessor contains 5 flip flops to serve as status
flags
• Flip flops sets or resets according to condition
• Program Status Word (PSW)- combination of 8 bits
Status Flag Register
• Example ADD B
A A +B
A 1100 1011
B 1110 1001
After addition
1011 0100
AC=1, Z = 0, P= 1, CY=1, S=1
Data and Address Bus
• Data bus is 8-bit wide
• Address bus is 16 bit wide
• Eight MSB of address bus are transmitted through
(A8-A15)
• Eight LSB of the address are transmitted by
address/data bus (AD0-AD7)
• Transmits address/data at different moments
PIN Configuration
PIN Configuration
Status signals (S0,S1)
• Sent by microprocessor to distinguish the various types of
operation
S1 S0 Operation
0 0 Halt
0 1 Write
1 0 Read
1 1 Fetch