Philips Semiconductors Product data
P87C554
80C51 8-bit microcontroller – 12 clock operation
16K/512 OTP/RAM, 8 channel 10-bit A/D, I
2
C, PWM,
capture/compare, high I/O
2002 Mar 25
29
ECT0
BIT SYMBOL FUNCTION
IEN1.7 ET2 Enable Timer T2 overflow interrupt(s)
IEN1.6 ECM2 Enable T2 Comparator 2 interrupt
IEN1.5 ECM1 Enable T2 Comparator 1 interrupt
IEN1.4 ECM0 Enable T2 Comparator 0 interrupt
IEN1.3 ECT3 Enable T2 Capture register 3 interrupt
IEN1.2 ECT2 Enable T2 Capture register 2 interrupt
IEN1.1 ECT1 Enable T2 Capture register 1 interrupt
IEN1.0 ECT0 Enable T2 Capture register 0 interrupt
SU00755
ECT1ECT2ECT3ECM0ECM1ECM2ET2
01234567
(LSB)(MSB)
IEN1 (E8H)
In all cases, if the enable bit is 0, then the interrupt is disabled, and if the enable bit is 1, then the interrupt is enabled.
Figure 28. Interrupt Enable Register (IEN1)
PX0
BIT SYMBOL FUNCTION
IP0.7 Unused
IP0.6 PAD ADC interrupt priority level
IP0.5 PS1 SIO1 (I
2
C) interrupt priority level
IP0.4 PS0 SIO0 (UART) interrupt priority level
IP0.3 PT1 Timer 1 interrupt priority level
IP0.2 PX1 External interrupt 1 priority level
IP0.1 PT0 Timer 0 interrupt priority level
IP0.0 PX0 External interrupt 0 priority level
SU00763
PT0PX1PT1PS0PS1PAD
01234567
(LSB)(MSB)
IP0 (B8H)
Figure 29. Interrupt Priority Register (IP0)
PX0H
BIT SYMBOL FUNCTION
IP0H.7 Unused
IP0H.6 PADH ADC interrupt priority level high
IP0H.5 PS1H SIO1 (I
2
C) interrupt priority level high
IP0H.4 PS0H SIO0 (UART) interrupt priority level high
IP0H.3 PT1H Timer 1 interrupt priority level high
IP0H.2 PX1H External interrupt 1 priority level high
IP0H.1 PT0H Timer 0 interrupt priority level high
IP0H.0 PX0H External interrupt 0 priority level high
SU00983
PT0HPX1HPT1HPS0HPS1HPADH
01234567
(LSB)(MSB)
IP0H (B7H)
Figure 30. Interrupt Priority Register High (IP0H)
Philips Semiconductors Product data
P87C554
80C51 8-bit microcontroller – 12 clock operation
16K/512 OTP/RAM, 8 channel 10-bit A/D, I
2
C, PWM,
capture/compare, high I/O
2002 Mar 25
30
PCT0
BIT SYMBOL FUNCTION
IP1.7 PT2 T2 overflow interrupt(s) priority level
IP1.6 PCM2 T2 comparator 2 interrupt priority level
IP1.5 PCM1 T2 comparator 1 interrupt priority level
IP1.4 PCM0 T2 comparator 0 interrupt priority level
IP1.3 PCT3 T2 capture register 3 interrupt priority level
IP1.2 PCT2 T2 capture register 2 interrupt priority level
IP1.1 PCT1 T2 capture register 1 interrupt priority level
IP1.0 PCT0 T2 capture register 0 interrupt priority level
SU00764
PCT1PCT2PCT3PCM0PCM1PCM2PT2
01234567
(LSB)(MSB)
IP1 (F8H)
Figure 31. Interrupt Priority Register (IP1)
PCT0H
BIT SYMBOL FUNCTION
IP1H.7 PT2H T2 overflow interrupt(s) priority level high
IP1H.6 PCM2H T2 comparator 2 interrupt priority level high
IP1H.5 PCM1H T2 comparator 1 interrupt priority level high
IP1H.4 PCM0H T2 comparator 0 interrupt priority level high
IP1H.3 PCT3H T2 capture register 3 interrupt priority level high
IP1H.2 PCT2H T2 capture register 2 interrupt priority level high
IP1H.1 PCT1H T2 capture register 1 interrupt priority level high
IP1H.0 PCT0H T2 capture register 0 interrupt priority level high
SU00984
PCT1HPCT2HPCT3HPCM0HPCM1HPCM2HPT2H
01234567
(LSB)(MSB)
IP1H (F7H)
Figure 32. Interrupt Priority Register High (IP1H)
Table 3. Interrupt Priority Structure
SOURCE NAME PRIORITY WITHIN LEVEL
External interrupt 0 X0
(highest)
SIO1 (I
2
C) S1
ADC completion ADC
Timer 0 overflow T0
T2 capture 0 CT0
T2 compare 0 CM0
External interrupt 1 X1
T2 capture 1 CT1
T2 compare 1 CM1
Timer 1 overflow T1
T2 capture 2 CT2
T2 compare 2 CM2
SIO0 (UART) S0
T2 capture 3 CT3
Timer T2 overflow T2
(lowest)
Table 4. Interrupt Vector Addresses
SOURCE NAME VECTOR ADDRESS
External interrupt 0 X0 0003H
Timer 0 overflow T0 000BH
External interrupt 1 X1 0013H
Timer 1 overflow T1 001BH
SIO0 (UART) S0 0023H
SIO1 (I
2
C) S1 002BH
T2 capture 0 CT0 0033H
T2 capture 1 CT1 003BH
T2 capture 2 CT2 0043H
T2 capture 3 CT3 004BH
ADC completion ADC 0053H
T2 compare 0 CM0 005BH
T2 compare 1 CM1 0063H
T2 compare 2 CM2 006BH
T2 overflow T2 0073H
Philips Semiconductors Product data
P87C554
80C51 8-bit microcontroller – 12 clock operation
16K/512 OTP/RAM, 8 channel 10-bit A/D, I
2
C, PWM,
capture/compare, high I/O
2002 Mar 25
31
SIO1, I
2
C Serial I/O: The I
2
C bus uses two wires (SDA and SCL) to
transfer information between devices connected to the bus. The
main features of the bus are:
Bidirectional data transfer between masters and slaves
Multimaster bus (no central master)
Arbitration between simultaneously transmitting masters without
corruption of serial data on the bus
Serial clock synchronization allows devices with different bit rates
to communicate via one serial bus
Serial clock synchronization can be used as a handshake
mechanism to suspend and resume serial transfer
The I
2
C bus may be used for test and diagnostic purposes
The output latches of P1.6 and P1.7 must be set to logic 1 in order
to enable SIO1.
The P87C554 on-chip I
2
C logic provides a serial interface that
meets the I
2
C bus specification and supports all transfer modes
(other than the low-speed mode) from and to the I
2
C bus. The SIO1
logic handles bytes transfer autonomously. It also keeps track of
serial transfers, and a status register (S1STA) reflects the status of
SIO1 and the I
2
C bus.
The CPU interfaces to the I
2
C logic via the following four special
function registers: S1CON (SIO1 control register), S1STA (SIO1
status register), S1DAT (SIO1 data register), and S1ADR (SIO1
slave address register). The SIO1 logic interfaces to the external I
2
C
bus via two port 1 pins: P1.6/SCL (serial clock line) and P1.7/SDA
(serial data line).
A typical I
2
C bus configuration is shown in Figure 33, and Figure 34
shows how a data transfer is accomplished on the bus. Depending
on the state of the direction bit (R/W), two types of data transfers are
possible on the I
2
C bus:
1. Data transfer from a master transmitter to a slave receiver. The
first byte transmitted by the master is the slave address. Next
follows a number of data bytes. The slave returns an
acknowledge bit after each received byte.
2. Data transfer from a slave transmitter to a master receiver. The
first byte (the slave address) is transmitted by the master. The
slave then returns an acknowledge bit. Next follows the data
bytes transmitted by the slave to the master. The master returns
an acknowledge bit after all received bytes other than the last
byte. At the end of the last received byte, a “not acknowledge” is
returned.
The master device generates all of the serial clock pulses and the
START and STOP conditions. A transfer is ended with a STOP
condition or with a repeated START condition. Since a repeated
START condition is also the beginning of the next serial transfer, the
I
2
C bus will not be released.
Modes of Operation: The on-chip SIO1 logic may operate in the
following four modes:
1. Master Transmitter Mode:
Serial data output through P1.7/SDA while P1.6/SCL outputs the
serial clock. The first byte transmitted contains the slave address
of the receiving device (7 bits) and the data direction bit. In this
case the data direction bit (R/W
) will be logic 0, and we say that
a “W” is transmitted. Thus the first byte transmitted is SLA+W.
Serial data is transmitted 8 bits at a time. After each byte is
transmitted, an acknowledge bit is received. START and STOP
conditions are output to indicate the beginning and the end of a
serial transfer.
2. Master Receiver Mode:
The first byte transmitted contains the slave address of the
transmitting device (7 bits) and the data direction bit. In this case
the data direction bit (R/W
) will be logic 1, and we say that an “R”
is transmitted. Thus the first byte transmitted is SLA+R. Serial
data is received via P1.7/SDA while P1.6/SCL outputs the serial
clock. Serial data is received 8 bits at a time. After each byte is
received, an acknowledge bit is transmitted. START and STOP
conditions are output to indicate the beginning and end of a
serial transfer.
3. Slave Receiver Mode:
Serial data and the serial clock are received through P1.7/SDA
and P1.6/SCL. After each byte is received, an acknowledge bit is
transmitted. START and STOP conditions are recognized as the
beginning and end of a serial transfer. Address recognition is
performed by hardware after reception of the slave address and
direction bit.
4. Slave Transmitter Mode:
The first byte is received and handled as in the slave receiver
mode. However, in this mode, the direction bit will indicate that
the transfer direction is reversed. Serial data is transmitted via
P1.7/SDA while the serial clock is input through P1.6/SCL.
START and STOP conditions are recognized as the beginning
and end of a serial transfer.
In a given application, SIO1 may operate as a master and as a
slave. In the slave mode, the SIO1 hardware looks for its own slave
address and the general call address. If one of these addresses is
detected, an interrupt is requested. When the microcontroller wishes
to become the bus master, the hardware waits until the bus is free
before the master mode is entered so that a possible slave action is
not interrupted. If bus arbitration is lost in the master mode, SIO1
switches to the slave mode immediately and can detect its own
slave address in the same serial transfer.

P87C554SFAA,512

Mfr. #:
Manufacturer:
NXP Semiconductors
Description:
Microcontrollers - MCU 8-bit Microcontrollers - MCU 80C51 16K/512 OTP
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet