P89C51UBAA Philips Semiconductors, P89C51UBAA Datasheet

no-image

P89C51UBAA

Manufacturer Part Number
P89C51UBAA
Description
80C51 8-bit microcontroller family 4K/8K/16K/32K Flash
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89C51UBAA
Manufacturer:
TFK
Quantity:
69
Part Number:
P89C51UBAA
Manufacturer:
PHILIPS
Quantity:
130
Part Number:
P89C51UBAA
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Philips
Semiconductors
Product data
Supersedes data of 1999 Oct 27
IC28 Data Handbook
89C51/89C52/89C54/89C58
80C51 8-bit microcontroller family
4K/8K/16K/32K Flash
INTEGRATED CIRCUITS
2002 Jan 15

Related parts for P89C51UBAA

P89C51UBAA Summary of contents

Page 1

Flash Product data Supersedes data of 1999 Oct 27 IC28 Data Handbook Philips Semiconductors INTEGRATED CIRCUITS 2002 Jan 15 ...

Page 2

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash DESCRIPTION The 89C51/89C52/89C54/89C58 contain a non-volatile FLASH program memory that is parallel programmable. For devices that are serial programmable (In-System Programmable (ISP) and In-Application Programmable (IAP) with a boot loader), see the 89C51Rx2 or 89C66x datasheets. SELECTION TABLE FOR FLASH DEVICES ...

Page 3

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash FEATURES 80C51 Central Processing Unit On-chip FLASH Program Memory Speed MHz Fully static operation RAM expandable externally kbytes 4 interrupt priority levels 6 interrupt sources Four 8-bit I/O ports Full-duplex enhanced UART – Framing error detection – ...

Page 4

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash BLOCK DIAGRAM 1 4K – 32K Byte Code Flash 128 / 256 Byte Data RAM Port 3 Configurable I/Os Port 2 Configurable I/Os Port 1 Configurable I/Os Port 0 Configurable I/Os Crystal or Oscillator Resonator 2002 Jan 15 89C51/89C52/89C54/89C58 Standard 80C51+ ...

Page 5

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash BLOCK DIAGRAM 2 (CPU ORIENTED RAM ADDR RAM REGISTER B ACC REGISTER PSEN ALE TIMING AND EAV PP CONTROL RST PD OSCILLATOR XTAL1 XTAL2 2002 Jan 15 89C51/89C52/89C54/89C58 P0.0–P0.7 P2.0–P2.7 PORT 0 PORT 2 DRIVERS DRIVERS PORT 0 PORT 2 ...

Page 6

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash LOGIC SYMBOL XTAL1 XTAL2 RST EA/V PP PSEN ALE/PROG RxD TxD INT0 INT1 PIN CONFIGURATIONS Dual In-Line Package Pin Functions T2/P1 T2EX/P1 P0.0/AD0 P1 P0.1/AD1 P1 P0.2/AD2 P1 P0.3/AD3 P1 P0.4/AD4 P1 P0.5/AD5 P1 P0.6/AD6 RST 9 32 P0.7/AD7 DUAL 31 EA/V RxD/P3 ...

Page 7

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash PIN DESCRIPTIONS PIN NUMBER MNEMONIC DIP LCC QFP TYPE NAME AND FUNCTION P0.0–0.7 39–32 43–36 37–30 I/O P1.0–P1.7 1–8 2–9 40–44, I/O 1– I P2.0–P2.7 21–28 24–31 18–25 I/O P3.0–P3.7 10– ...

Page 8

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Table 1. 89C51/89C52/89C54/89C58 Special Function Registers DIRECT SYMBOL DESCRIPTION ADDRESS ACC* Accumulator E0H AUXR# Auxiliary 8EH AUXR1# Auxiliary 1 A2H B* B register F0H DPTR: Data Pointer (2 bytes) DPH Data Pointer High 83H DPL Data Pointer Low ...

Page 9

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash FLASH EPROM MEMORY General Description The 89C51/89C52/89C54/89C58 FLASH reliably stores memory contents even after 10,000 erase and program cycles. The cell is designed to optimize the erase and programming mechanisms. In addition, the combination of advanced tunnel oxide processing and low internal electric fields for erase and programming operations produces reliable cycling ...

Page 10

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash LOW POWER MODES Stop Clock Mode The static design enables the clock speed to be reduced down to 0 MHz (stopped). When the oscillator is stopped, the RAM and Special Function Registers retain their values. This mode allows step-by-step utilization and permits reduced system power consumption by lowering the clock frequency down to any value ...

Page 11

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash TIMER 0 AND TIMER 1 OPERATION Timer 0 and Timer 1 The “Timer” or “Counter” function is selected by control bits C/T in the Special Function Register TMOD. These two Timer/Counters have four operating modes, which are selected by bit-pairs (M1, M0) in TMOD ...

Page 12

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash OSC 12 T1 Pin TR1 Gate INT1 Pin Figure 2. Timer/Counter 0/1 Mode 0: 13-Bit Counter (Timer 1 shown) TCON Address = 88H Bit Addressable 7 TF1 TR1 BIT SYMBOL FUNCTION TCON.7 TF1 Timer 1 overflow flag. Set by hardware on Timer/Counter overflow. ...

Page 13

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash OSC 12 T1 Pin TR1 Gate INT1 Pin Figure 4. Timer/Counter 0/1 Mode 2: 8-Bit Auto-Load (Timer 1 shown) OSC 12 T1 Pin TR0 Gate INT0 Pin OSC Figure 5. Timer/Counter 0 Mode 3: Two 8-Bit Counters 2002 Jan 15 89C51/89C52/89C54/89C58 C TL1 ...

Page 14

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash TIMER 2 OPERATION Timer 2 Timer 16-bit Timer/Counter which can operate as either an event timer or an event counter, as selected by C/T2 in the special function register T2CON (see Figure 1). Timer 2 has three operating modes: Capture, Auto-reload (up or down counting), and Baud Rate Generator, which are selected by bits in the T2CON as shown in Table 3 ...

Page 15

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Table 3. Timer 2 Operating Modes RCLK + TCLK CP/RL2 OSC Pin Transition Detector T2EX Pin EXEN2 T2MOD Address = 0C9H Not Bit Addressable 7 6 — — Symbol Function — Not implemented, reserved for future use T2OE Timer 2 Output Enable bit ...

Page 16

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash OSC PIN TRANSITION DETECTOR T2EX PIN EXEN2 Figure 4. Timer 2 in Auto-Reload Mode (DCEN = 0) OSC PIN TR2 2002 Jan 15 89C51/89C52/89C54/89C58 TL2 TH2 (8-BITS) (8-BITS) CONTROL TR2 RELOAD RCAP2L RCAP2H CONTROL (DOWN COUNTING RELOAD VALUE) ...

Page 17

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash NOTE: OSC. Freq. is divided by 2, not 12. OSC Pin Transition Detector T2EX Pin EXEN2 Note availability of additional external interrupt. Table 4. Timer 2 Generated Commonly Used Baud Rates Baud Rate Osc Freq RCAP2H 375 k 12 MHz FF 9 ...

Page 18

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash When Timer the baud rate generator mode, one should not try to read or write TH2 and TL2 baud rate generator, Timer 2 is incremented every state time (osc/2) or asynchronously from pin T2; under these conditions, a read or write of TH2 or TL2 may not be accurate ...

Page 19

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Enhanced UART operation In addition to the standard operation modes, the UART can perform framing error detect by looking for missing stop bits, and automatic address recognition. The UART also fully supports multiprocessor communication. When used for framing error detect the UART looks for missing stop bits in the communication ...

Page 20

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash SCON Address = 98H Bit Addressable 7 6 SM0/FE SM1 (SMOD0 = 0/1)* Symbol Position Function FE SCON.7 Framing Error bit. This bit is set by the receiver when an invalid stop bit is detected. The FE bit is not cleared by valid frames but should be cleared by software. The SMOD0 bit must be set to enable access to the FE bit ...

Page 21

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash D0 START BIT SM0 / FE SMOD1 SMOD0 0 : SCON.7 = SM0 1 : SCON RECEIVED ADDRESS PROGRAMMED ADDRESS IN UART MODE 2 OR MODE 3 AND SM2 = 1: INTERRUPT IF REN=1, RB8=1 AND “RECEIVED ADDRESS” = “PROGRAMMED ADDRESS” – WHEN OWN ADDRESS RECEIVED, CLEAR SM2 TO RECEIVE DATA BYTES – ...

Page 22

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Interrupt Priority Structure 0 INT0 IT0 IE0 1 TF0 0 IE1 INT1 IT1 1 TF1 TI RI TF2, EXF2 Figure 10. 80C51 Interrupt Sources Interrupts The devices described in this data sheet provide six interrupt sources. These are shown in Figure 10. The External Interrupts ...

Page 23

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash IE Address = 0A8H Bit Addressable 7 EA — Enable Bit = 1 enables the interrupt. Enable Bit = 0 disables it. BIT SYMBOL FUNCTION IE.7 EA Global disable bit all interrupts are disabled each interrupt can be individually enabled or disabled by setting or clearing its enable bit. ...

Page 24

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash . . . . . . . . . C1 S5P2 Interrupt Interrupt Goes Latched Active This is the fastest possible response when C2 is the final cycle of an instruction other than RETI or an access IP. The polling cycle/LCALL sequence is illustrated in Figure 14. Note that if an interrupt of higher priority level goes active prior to ...

Page 25

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash An interrupt will be serviced as long as an interrupt of equal or higher priority is not already being serviced interrupt of equal or higher level priority is being serviced, the new interrupt will wait until it is finished before being serviced lower priority level Table 7 ...

Page 26

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Dual DPTR The dual DPTR structure (see Figure 17 way by which the chip will specify the address of an external data memory location. There are two 16-bit DPTR registers that address the external memory, and a single bit called DPS = AUXR1/bit0 that allows the program code to switch between them ...

Page 27

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash ABSOLUTE MAXIMUM RATINGS PARAMETER Operating temperature under bias Storage temperature range Voltage on EA/V pin Voltage on any other pin Maximum I per I/O pin OL Power dissipation (based on package heat transfer limitations, not device power consumption) NOTES: 1 ...

Page 28

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash DC ELECTRICAL CHARACTERISTICS + – + 10%; V amb SYMBOL PARAMETER V Input low voltage IL V Input high voltage (ports EA Input high voltage, XTAL1, RST IH1 V Output low voltage, ports Output low voltage, port 0, ALE, PSEN OL1 V Output high voltage, ports ...

Page 29

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash AC ELECTRICAL CHARACTERISTICS + – + amb CC SYMBOL FIGURE PARAMETER 1/t 18 Oscillator frequency CLCL Speed versions t 18 ALE pulse width LHLL t 18 Address valid to ALE low AVLL t 18 Address hold after ALE low LLAX t 18 ALE low to valid instruction in ...

Page 30

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash EXPLANATION OF THE AC SYMBOLS Each timing symbol has five characters. The first character is always ‘t’ (= time). The other characters, depending on their positions, indicate the name of a signal or the logical status of that signal. The designations are: A – ...

Page 31

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash ALE PSEN t LLWL WR t LLAX t AVLL A0–A7 PORT 0 FROM RI OR DPL t AVWL PORT 2 INSTRUCTION 0 1 ALE t XLXL CLOCK t QVXH OUTPUT DATA 0 WRITE TO SBUF t XHDV INPUT DATA VALID CLEAR 0.45V 2002 Jan 15 89C51/89C52/89C54/89C58 t WHLH ...

Page 32

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash V –0.5 CC 0.2V +0.9 CC 0.2V –0.1 CC 0.45V NOTE: AC inputs during testing are driven at V –0.5 for a logic ‘1’ and 0.45V for a logic ‘0’. CC Timing measurements are made at V min for a logic ‘1’ and V IH Figure 23 ...

Page 33

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash V CC RST (NC) XTAL2 CLOCK SIGNAL XTAL1 V SS Figure 26. I Test Condition, Active Mode CC All other pins are disconnected V CC 0.45V Figure 28. Clock Signal Waveform for I Figure 29. I 2002 Jan 15 89C51/89C52/89C54/89C58 (NC) CLOCK SIGNAL SU00719 Figure 27. I – ...

Page 34

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash Security The security feature protects against software piracy and prevents the contents of the FLASH from being read. The Security Lock bits are located in FLASH. The 89C51/89C52/89C54/89C58 has 3 programmable security lock bits that will provide different levels of protection for the on-chip code and data (see Table 8) ...

Page 35

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash PLCC44: plastic leaded chip carrier; 44 leads 2002 Jan 15 89C51/89C52/89C54/89C58 35 Product data SOT187-2 ...

Page 36

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash DIP40: plastic dual in-line package; 40 leads (600 mil) 2002 Jan 15 89C51/89C52/89C54/89C58 36 Product data SOT129-1 ...

Page 37

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash LQFP44: plastic low profile quad flat package; 44 leads; body 1.4 mm 2002 Jan 15 89C51/89C52/89C54/89C58 37 Product data SOT389-1 ...

Page 38

... Philips Semiconductors 80C51 8-bit microcontroller family 4K/8K/16K/32K Flash REVISION HISTORY Release date CPCN Modifications to previous release 2002 Jan 15 9397 750 09302 PROGRAMMING ALGORITHM MODIFIED due to process change (see device comparison table). PQFP package replaced by LQFP package (dimensions see end of data sheet). ...

Page 39

... Life support — These products are not designed for use in life support appliances, devices or systems where malfunction of these products can reasonably be expected to result in personal injury. Philips Semiconductors customers using or selling these products for use in such applications their own risk and agree to fully indemnify Philips Semiconductors for any damages resulting from such application. ...

Related keywords