s87c751-5a28 NXP Semiconductors, s87c751-5a28 Datasheet - Page 12

no-image

s87c751-5a28

Manufacturer Part Number
s87c751-5a28
Description
80c51 8-bit Microcontroller Family 2k/64 Otp/rom, I2c, Low Pin Count
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
S87C751-5A28
Manufacturer:
Signeti
Quantity:
3
Philips Semiconductors
I/O Port Structure
The 8XC751 has two 8-bit ports (ports 1 and 3) and one 3-bit port
(port 0). All three ports on the 8XC751 are bidirectional. Each
consists of a latch (special function register P0, P1, P3), an output
driver, and an input buffer. Three port 1 pins and two port 0 pins are
multifunctional. In addition to being port pins, these pins serve the
function of special features as follows:
Port PinAlternate Function
P0.0
P0.1
P1.5
P1.6
P1.7
Ports 1 and 3 are identical in structure to the same ports on the
80C51. The structure of port 0 on the 8XC751 is similar to that of the
80C51 but does not include address/data input and output circuitry.
As on the 80C51, ports 1 and 3 are quasi-bidirectional while port 0 is
bidirectional with no internal pullups.
Timer/Counter
The 8XC751 has two timers: a 16-bit timer/counter and a 10-bit
fixed-rate timer. The 16-bit timer/counter’s operation is similar to
mode 2 operation on the 80C51, but is extended to 16 bits. The
timer/counter is clocked by either 1/12 the oscillator frequency or by
transitions on the T0 pin. The C/T pin in special function register
TCON selects between these two modes. When the TCON TR bit is
set, the timer/counter is enabled. Register pair TH and TL are
incremented by the clock source. When the register pair overflows,
the register pair is reloaded with the values in registers RTH and
RTL. The value in the reload registers is left unchanged. See the
83C751 counter/timer block diagram in Figure 4. The TF bit in
special function register TCON is set on counter overflow and, if the
interrupt is enabled, will generate an interrupt.
1998 May 01
80C51 8-bit microcontroller family
2K/64 OTP/ROM, I
I
I
INT0 (external interrupt 0 input)
INT1 (external interrupt 1 input)
T0 (timer 0 external input)
2
2
C clock (SCL)
C data (SDA)
INT0 Pin
T0 Pin
OSC
Gate
TR
12
2
C, low pin count
Figure 4. 83C751 Counter/Timer Block Diagram
C/T = 0
C/T = 1
12
TCON Register
GATE
C/T
TF
TR
IE0
IT0
IE1
IT1
These flags are functionally identical to the corresponding 80C51
flags, except that there is only one timer on the 83C751 and the
flags are therefore combined into one register.
Note that the positions of the IE0/IT0 and IE1/IT1 bits are
transposed from the positions used in the standard 80C51 TCON
register.
Timer I is used to control the timing of the I
a “bus locked” condition, by causing an interrupt when nothing
happens on the I
a transmission is in progress. If the interrupt does not occur, the
program can attempt to correct the fault and allow the last I
transmission to be repeated.
The I
general-purpose fixed-rate timer when the I
used. A clock rate of 1/12 the oscillator frequency forms the input to
the timer. Timer I has a timeout interval of 1024 machine cycles
when used as a fixed-rate timer.
MSB
GATE
RTL
2
TL
C watchdog timer, timer I, is also available as a
1
0
1
0
1
0
1
0
1
1
0
1
1
0
C/T
– Timer/counter is enabled only when INT0 pin is
– Timer/counter is enabled when TR is 1.
– Counter/timer operation from T0 pin.
– Timer operation from internal clock.
– Set on overflow of TH.
– Cleared when processor vectors to interrupt routine
– Timer/counter enabled.
– Timer/counter disabled.
– Edge detected in INT0.
– INT0 is edge triggered.
– INT0 is level sensitive.
– Edge detected on INT1.
– INT1 is edge triggered.
– INT1 is level sensitive.
RTH
TH
high, and TR is 1.
and by reset.
2
C bus for an inordinately long period of time while
TF
Reload
TR
IE0
TF
83C751/87C751
2
2
C bus and also to detect
C interface is not being
IT0
Product specification
SU00300
Int.
IE1
2
C
IT1
LSB

Related parts for s87c751-5a28