8085 Microprocessor Architecture: Dayanand K
8085 Microprocessor Architecture: Dayanand K
Microprocessor
Architecture
Dayanand K
8085
8085
The features of INTEL 8085 are :
• It is an 8 bit processor. (ALU-8-BIT)
• It is a Dual In-line Package (DIP) with 40 pins.
• It has Lower Order-multiplexed 16-Bit Unidirectional
ADDRESS BUS (A0-A15) and 8-Bit Bidirectional DATA
BUS (AD0-AD7).
• It works on 5 Volt dc power supply.
• The maximum clock frequency is 3 MHz while minimum
frequency is 500kHz.
• It provides 74 instructions with 5 different addressing modes.
8085
8085
• It provides 16 address lines so it can access 2^16 =64KBytes of
memory.
• It generates 8 bit I/O address so it can access 2^8=256
input/output ports.
• It provides 5 hardware interrupts: TRAP, RST5.5, RST6.5,
RST7.5, INTR. And an INTA (interrupt Acknowledge)
• It provides ACC (Accumulator) , One FLAG register (F) ,6
General Purpose registers (B, C, D, E, H, L) and two special
purpose registers(SP,PC).
• It provides serial lines SID ,SOD. So serial peripherals can be
interfaced with 8085 directly.
8085
•
8085
8085 ARCHITECTURE
8085
8085 ARCHITECTURE
Arithmetic & Timing & Control Register Unit
Logic Unit (ALU) Unit
Power Supply
2 Pins –
Vcc -(+5 V),
Vss - Ground
8085
14 Pins-
Clock Generation -3 Pins
Ready – 1 Pin
Control – 3 Pins
Status – 3 Pins
DMA- 2 Pins
Reset – 2 pins
***6 MHz Crystal Oscillator connected to pins X1 & X2. Then the frequency is divided by 2.
thus final frequency used by the clock generator in 3 MHz.
** CLOCKOUT signal is given to other Ics connected to the Processor for synchronisation
8085
Ready – 1 Pin
8085
8085 IO/M’
0
1
INPUT OUTPUT
RD’ 0
1 DEVICES
WR’ 0
1
0 S1
1 S0 0
1
8085
8085 IO/M’
0
1
INPUT OUTPUT
RD’ 0
1 DEVICES
WR’ 0
1
0 S1
1 S0 0
1
8085
8085 IO/M’
0
1
INPUT OUTPUT
8 BIT DATA
RD’ 0
1 DEVICES
WR’ 0
1
0 S1
1 S0 0
1
8085
8085 IO/M’
0
1
INPUT OUTPUT
RD’ 0
1 DEVICES
WR’ 0
1
0 S1
1 S0 0
1
8085
Register Unit
8085
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
S: Sign flag is set when result of an operation is negative.
Z:Zero flag is set when result of an operation is 0.
AC:AUXILIARY carry flag is set when there is a carry out of lower
nibble or lower four bits of the operation.
CY:Carry flag is set when there is carry generated by an
operation.
P:Parity flag is set when result contains even number of 1’s.
Rest are don’t care flip flops.
8085
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
S: Sign flag is set when result of an operation is negative.
After any ALU operation, MSB of the Operated Register is
copied into the Sign Flag.
For Example if C register content is incremented,
1 0 0 1 1 1 0 1
Then SIGN flag is SET to ‘1’
For Example if A&B register content is Added and result in A is
0 0 0 1 1 1 0 1
Then SIGN flag is RESET to ‘0’
8085
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
S: Sign flag is set when result of an operation is negative.
After any ALU operation, MSB of the Operated Register is
copied into the Sign Flag.
For Example if C register content is incremented,
1 0 0 1 1 1 0 1
Then SIGN flag is SET to ‘1’
For Example if A&B register content is Added and result in A is
0 0 0 1 1 1 0 1
Then SIGN flag is RESET to ‘0’
8085
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
Z: Zero flag is set when result of an operation is 0.
After any ALU operation, if the result is ’00’, then Zero flag is
SET.
For Example if C register content is decremented,
0 0 0 0 0 0 0 0
Then ZERO flag is SET to ‘1’
For Example if A&B register content is Added and result in A is
0 0 0 1 1 1 0 1
Then ZERO flag is RESET to ‘0’
8085
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
FLAG REGISTER
Flag Register is given by:
S Z X AC X P X CY
8085
FLAG REGISTER
S Z X AC X P X CY
AC: AUXILIARY carry flag is set when there is a carry out of lower
nibble or lower four bits of the operation.
8085
FLAG REGISTER
S Z X AC X P X CY
P: Parity flag is set when result contains even number of 1’s.
Rest are don’t care flip flops.
8085
FLAG REGISTER
S Z X AC X P X CY
0 0 0 0 0 1 0 1
F=05