8XC51GB
ALTERNATE PORT FUNCTIONS
Ports 0, 1, 2, 3, 4 and 5 have alternate functions as well as their I/O function as described below.
Port Pin Alternate Function
P0.0/ADO–P0.7/AD7 Multiplexed Address/Data for External Memory
P1.0/T2 Timer 2 External Clock Input/Clock-Out
P1.1/T2EX Timer 2 Reload/Capture/Direction Control
P1.2/ECI PCA External Clock Input
P1.3/CEXO–P1.7/CEX4 PCA Capture Input, Compare/PWM Output
P2.0/A8–P2.7/A15 High Byte of Address for External Memory
P3.0/RXD Serial Port Input
P3.1/TXD Serial Port Output
P3.2/INT0 External Interrupt 0
P3.3/INT1 External Interrupt 1
P3.4/T0 Timer 0 External Clock Input
P3.5/T1 Timer 1 External Clock Input
P3.6/WR Write Strobe for External Memory
P3.7/RD Read Strobe for External Memory
P4.0/SEPCLK Clock Source for Serial Expansion Port
P4.1/SEPDAT Data I/O for the Serial Expansion Port
P4.2/ECI1 PCA1 External Clock Input
P4.3/C1EX0–P4.7/C1EX4 PCA1 Capture Input, Compare/PWM Output
P5.2/INT2–P5.6/INT6 External Interrupt INT2 – INT6
RST: Reset input. A low on this pin for two machine
cycles while the oscillator is running resets the device. The port pins will be driven to their reset condition when a voltage below V
IL
max voltage is applied, whether the oscillator is running or not. An
internal pullup resistor permits a power-on reset with
only a capacitor connected to V
SS
.
ALE/PROG
: Address Latch Enable output pulse for
latching the low byte of the address during accesses
to external memory. This pin (ALE/PROG
) is also
the program pulse input during programming of the
87C51GB.
In normal operation ALE is emitted at a constant
rate of (/6 the oscillator frequency, and may be used
for external timing or clocking purposes. Note, however, that one ALE pulse is skipped during each access to external Data Memory.
If desired, ALE operation can be disabled by setting
bit 0 of SFR location 8EH. With this bit set, the pin is
weakly pulled high. However, the ALE disable feature will be suspended during a MOVX or MOVC instruction, idle mode, power down mode and ICE
mode. The ALE disable feature will be terminated by
reset. When the ALE disable feature is suspended or
terminated, the ALE pin will no longer be pulled up
weakly. Setting the ALE-disable bit has no affect if
the microcontroller is in external execution mode.
Throughout the remainder of this data sheet, ALE
will refer to the signal coming out of the ALE/PROG
pin, and the pin will be referred to as the ALE/PROG
pin.
PSEN
: Program Store Enable is the read strobe to
external Program Memory.
When the 8XC51GB is executing code from external
Program Memory, PSEN is activated twice each machine cycle, except that two PSEN
activations are
skipped during each access to external Data Memory.
EA
/VPP: External Access enable. EA must be
strapped to V
SS
in order to enable the device to
fetch code from external Program Memory locations
0000H to 1FFFH. Note, however, that if either of the
Program Lock bits are programmed, EA
will be inter-
nally latched on reset.
EA
should be strapped to VCCfor internal program
executions.
4