Beruflich Dokumente
Kultur Dokumente
PIN Diagram
Pin RST
D Flip-Flop
Edge-Trigger Each
Push-Pull Output
Open Source
Open Drain
Port 0
Open
Drain
Port 0 (1)
Each
Port 0 (2)
Port 0 is configured as an output port upon reset. Port 0.x is configured as an input bit by writing 1 to bit x of port 0. Port 0 is configured as an input port by writing 1 to all bits.
It provides data D0-D7 when ALE=0. It provides address A0-A7 when ALE=1.
Port 0 (3)
Example:
Back:
Port 0 (4)
Example:
Back:
Port 1
It
Port
1 is configured as an output port upon reset. Port 1.x is configured as an input bit by writing 1 to bit x of port 1. Port 1 is configured as an input port by writing 1 to all the bits.
Port 1 (2)
Example:
MOV A, #0FFH MOV P1, A MOV A, P1 MOV R7, A ACALL DELAY MOV A, P1 MOV R6, A ACALL DELAY
Port 2
Port 2 is configured as an output port upon reset. Port 2.x is configured as an input bit by writing 1 to bit x of port 2. Port 2 is configured as an input port by writing 1 to all the bits. Port 2 provides bits A8-A15 of the address. Port 2 is used along with port 0 provide the 16-bit address for the external memory (64K).
Port 3
3.x is configured as an input bit by writing 1 to bit x of port 3. Port 3 is configured as an input port by writing 1 to all the bits. It provides alternate functions.
Port
EA (external access):
EA is connected to VCC if code is stored in onchip ROM such as 8051 family. EA is connected to Ground if code is stored in external ROM such as 8031.
PSEN is connected to OE of external ROM.