Академический Документы
Профессиональный Документы
Культура Документы
Title
Page
Introduction to Architecture and Programming
No.
Model of 8051.
1.1
Date:
DOC. CODE:GECG/BM/MCI/01
Rev. No. : 2.00 / June 2016
Pin 9 RST
Reset input
Description
They have no dual functions and used as I/O lines. Pins from
1 to 8 serve as port1 bit 0 to port1 bit 7 respectively each
individual pin can be configured as either input or output
line.
It is an active high reset pin. When power is first applied,
reset pin should go high and remain high for some time (At
least for two machine cycles) and then goes low. RC circuit is
used at this pin to incorporate above timing. At a threshold
of 2.5V, the reset input reaches a low level and system
begins to run.
Dual function- can be used as port3 bit 0 or in serial
communication to receive data.
Dual function- can be used as port3 bit 1 or in serial
Subject
Microcontroller & Interfacing
(2150306)
Experiment No: 1
Pin 20 [Vss]
Pin 21 to 28[Port 2 bits 0 to
7/ Address bus A8 to A15]
Pin 32 to
39(Port0/Multiplexed Address
& Data bus AD0 to AD7)
Pin 40(Vcc)
Title
Page
Introduction to Architecture and Programming
No.
Model of 8051.
1.2
Date:
DOC. CODE:GECG/BM/MCI/01
Rev. No. : 2.00 / June 2016
communication to send data.
Dual function- serves as either port3 bit 2 in I/O or used as
external interrupt 0 pin.
Dual function- serves as either port3 bit 3 in I/O or as
external interrupt 1 source.
It serves as I/O pin of port3 bit 4 or alternatively when
timer0 is used as counter, it serves as counter0 input.
Dual function- can be used as port3 bit 5 or acts as input to
counter1 when timer1 is used as counter.
This can be used as port3 bit 6 or alternatively as WR signal
while writing to external RAM.
This can be used as port3 bit 7 or alternatively as RD signal
while interfacing (reading) from external RAM.
These pins are used for connecting crystal as a part of clock
circuit. Crystal frequency is the internal clock frequency and
all internal operations are synchronized with this clock.
Ground connection.
Dual functions - When interfacing external memory is used
these pins serve as higher order address bus A8 to A15
respectively. Alternatively they serve as port2 I/O pins from
port2 bit 0 (P2.0) to port2 bit 7 (P2.7).
When external ROM is used to store program this pin
provides read strobe. Note that PSEN is only used for
external ROM read. While RD or WR signals are used for
external RAM. When internal ROM is used PSEN is not
activated.
Dual function while programming internal EPROM,
programming pulse is given at this pin. Alternatively it
serves as ALE- address latch enable used to demultiplex low
order address and data bus (AD) to AD&)
Dual function-while programming internal ROM,
programming voltage (Vpp) is given at this pin. In run time,
decides whether program has to be fetched from internal
ROM or external ROM. if internal ROM is used should be tied
to VCC and if external ROM is used it should be tied to
ground.
Dual functions - When external memory is used these pins
serve as multiplexed low order address bus AD0 to AD7
respectively. Alternatively they serve as port0 I/O pins from
port0 bit 0 (P0.0) to port2 bit 7 (P0.7).
+5 V power supply is given to this pin.
Subject
Microcontroller & Interfacing
(2150306)
Experiment No: 1
Title
Page
Introduction to Architecture and Programming
No.
Model of 8051.
1.3
Date:
DOC. CODE:GECG/BM/MCI/01
Rev. No. : 2.00 / June 2016
of an 8 bit data bus and a 16 bit address bus and bus control signals. From the figure you can
understand that all other devices like program memory, ports, data memory, serial interface,
interrupt control, timers, and the central processing unit are all interfaced together through
the system bus. RxD and TxD (serial port input and output) are interfaced with port 3.
Subject
Microcontroller & Interfacing
(2150306)
Experiment No: 1
Title
Page
Introduction to Architecture and Programming
No.
Model of 8051.
1.4
Date:
DOC. CODE:GECG/BM/MCI/01
Rev. No. : 2.00 / June 2016
Subject
Microcontroller & Interfacing
(2150306)
Experiment No: 1
Title
Page
Introduction to Architecture and Programming
No.
Model of 8051.
1.5
Date:
DOC. CODE:GECG/BM/MCI/01
Rev. No. : 2.00 / June 2016
Bit Addresses
F7
E7
D7
B7
AF
A7
F6
E6
D6
B6
AE
A6
9F
97
9E
96
8F
8E
87
86
F5
E5
D5
B5
AD
A5
Not
9D
95
Not
Not
Not
Not
Not
8D
Not
Not
Not
Not
85
F4
F3
F2
E4
E3
E2
D4
D3
D2
BC
BB
BA
B4
B3
B2
AC
AB
AA
A4
A3
A2
Bit Addressable
9C
9B
9A
94
93
92
Bit Addressable
Bit Addressable
Bit Addressable
Bit Addressable
Bit Addressable
8C
8B
8A
Bit Addressable
Bit Addressable
Bit Addressable
Bit Addressable
84
83
82
Register
F1
E1
D1
B9
B1
A9
A1
F0
E0
D0
B8
B0
A8
A0
99
91
98
90
89
88
81
80
Register B
Accumulator
Program Status Word (PSW)
Interrupt Priority (IP)
Port 3
Interrupt Enable (IE)
Port 2
Serial Buffer (SBUF)
Serial Control (SCON)
Port 1
Timer 1 Higher Byte (TH1)
Timer 0 Higher Byte (TH0)
Timer 1 Lower Byte (TL1)
Timer 0 Lower Byte (TL0)
Timer Mode Register (TMOD)
Timer Control Register (TCON)
Power Control Register (PCON)
Data Pointer Higher Byte (DPH)
Data Pointer Lower Byte (DPL)
Stack Pointer
Port 0
E0*
F0*
B8*
A8*
89
88*