P87C52 PHILIPS [NXP Semiconductors], P87C52 Datasheet - Page 8

no-image

P87C52

Manufacturer Part Number
P87C52
Description
80C51 8-bit microcontrollers 16K/32K, 512 OTP, I2C, watchdog timer
Manufacturer
PHILIPS [NXP Semiconductors]
Datasheets

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87C52
Manufacturer:
PHILIPS
Quantity:
2 060
Part Number:
P87C52
Manufacturer:
PHILIPS
Quantity:
2 060
Part Number:
P87C52
Manufacturer:
INTEL/英特尔
Quantity:
20 000
Part Number:
P87C52-1
Manufacturer:
RENESAS
Quantity:
17
Part Number:
P87C521BLKA
Manufacturer:
S/PHI
Quantity:
16
Part Number:
P87C521BPW
Quantity:
14
Part Number:
P87C528EBFFA
Manufacturer:
S
Quantity:
20 000
Philips Semiconductors
Table 2. Internal and External Program Memory Access with Security Bit Set
INTERNAL DATA MEMORY
The internal data memory is divided into three physically separated
segments: 256 bytes of RAM, 256 bytes of AUX-RAM, and a
128 bytes special function area. These can be addressed each in a
different way.
– RAM 0 to 127 can be addressed directly and indirectly as in the
– RAM 128 to 255 can only be addressed indirectly as in the 80C51.
– AUX-RAM 0 to 255 is indirectly addressed in the same way as
An access to external data memory locations higher than 255 will be
performed with the MOVX DPTR instructions in the same way as in
the 8051 structure, so with P0 and P2 as data/address bus and P3.6
and P3.7 as write and read timing signals. Note that these external
data memory cannot be accessed with R0 and R1 as address
pointer.
TIMER 2
Timer 2 is functionally equal to the Timer 2 of the 8052AH. Timer 2 is
a 16-bit timer/counter. These 16 bits are formed by two special
function registers TL2 and TH2. Another pair of special function
register RCAP2L and RCAP2H form a 16-bit capture register or a
16-bit reload register. Like Timer 0 and 1, it can operate either as a
timer or as an event counter. This is selected by bit C/T2N in the
special function register T2CON. It has three operating modes:
capture, autoload, and baud rate generator mode which are selected
by bits in T2CON.
WATCHDOG TIMER T3
The watchdog timer consists of an 11-bit prescaler and an 8-bit timer
formed by special function register T3. The prescaler is incremented
by an on-chip oscillator with a fixed frequency of 1MHz. The
maximum tolerance on this frequency is –50% and +100%. The 8-bit
timer increments every 2048 cycles of the on-chip oscillator. When a
timer overflow occurs, the microcontroller is reset and a reset output
pulse of 16
RST. The internal RESET signal is not inhibited when the external
RST pin is kept low by, for example, an external reset circuit. The
RESET signal drives port 1, 2, 3 into the high state and port 0 into
the high impedance state.
The watchdog timer is controlled by one special function register
WDCON with the direct address location A5H. WDCON can be read
and written by software. A value of A5H in WDCON halts the
on-chip oscillator and clears both the prescaler and timer T3. After
the RESET signal, WDCON contains A5H. Every value other than
A5H in WDCON enables the watchdog timer. When the watchdog
timer is enabled, it runs independently of the XTAL-clock.
Timer T3 can be read on the fly. Timer T3 can only be written if
WDCON contains the value 5AH. A successful write operation to T3
will clear the prescaler and WDCON, leaving the watchdog enabled
and preventing inadvertent changes of T3. To prevent an overflow of
1999 Jul 23
80C51. Address pointers are R0 and R1 of the selected register
bank.
Address pointers are R0 and R1 of the selected register bank.
external data memory with the MOVX instructions. Address
pointers are R0, R1 of the selected register bank and DPTR. An
access to AUX-RAM 0 to 255 will not affect ports P0, P2, P3.6
and P3.7.
80C51 8-bit microcontrollers
16K/32K, 512 OTP, I
MOVC in internal program memory
MOVC in external program memory
2048 cycles of the on-chip oscillator is generated at pin
INSTRUCTION
2
C, watchdog timer
ACCESS TO INTERNAL
PROGRAM MEMORY
YES
NO
8
the watchdog timer, the user program has to reload the watchdog
timer within periods that are shorter than the programmed watchdog
timer internal. This time interval is determined by an 8-bit value that
has to be loaded in register T3 while at the same time the prescaler
is cleared by hardware.
BIT-LEVEL I
This bit-level serial I/O interface supports the I
P1.7/SDA are the serial I/O pins. These two pins meet the I
specification concerning the input levels and output drive capability.
Consequently, these pins have an open drain output configuration.
All the four modes of the I
– master transmitter
– master receiver
– slave transmitter
– slave receiver
The advantages of the bit-level I
software I
– the hardware can generate the SCL pulse
– Testing a single bit (RBF respectively, WBF) is sufficient as a
The bit-level I
the following functions:
– filtering the incoming serial data and clock signals
– recognizing the START condition
– generating a serial interrupt request SI after reception of a START
– recognizing the STOP condition
– recognizing a serial clock pulse on the SCL line
– latching a serial bit on the SDA line (SDI)
– stretching the SCL LOW period of the serial clock to suspend the
– setting Read Bit Finished (RBF) when the SCL clock pulse has
– setting a serial clock Low-to-High detected (CLH) flag
– setting a Bus Busy (BB) flag on a START condition and clearing
– releasing the SCL line and clearing the CLH, RBF and WBF flags
– generating an automatic clock if the single bit data register S1BIT
The following functions must be done in software:
– handling the I
– converting serial to parallel data when receiving
– converting parallel to serial data when transmitting
– comparing the received slave address with its own
– interpreting the acknowledge information
– guarding the I
check for error free transmission.
condition and the first falling edge of the serial clock
transfer of the next serial data bit
finished and Write Bit Finished (WBF) if there is no arbitration loss
detected (i.e., SDA = 0 while SDO = 1)
this flag on a STOP condition
to resume transfer of the next serial data bit
is used in master mode.
Watchdog timer interval =
2
C implementation are:
2
C hardware operates on serial bit level and performs
2
2
2
C START interrupts
C status if RBF or WBF = 0.
C INTERFACE
2
C-bus are supported:
on * chip oscillator frequency
ACCESS TO EXTERNAL
2
PROGRAM MEMORY
C hardware compared with a full
[256 * (T3)]
87C524/87C528
YES
YES
2
C-bus. P1.6/SCL and
Product specification
2048
2
C

Related parts for P87C52