P89C51UBBB Philips Semiconductors, P89C51UBBB Datasheet

no-image

P89C51UBBB

Manufacturer Part Number
P89C51UBBB
Description
33 MHz, 5 V, 80C51 8-bit microcontroller family
Manufacturer
Philips Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89C51UBBB
Manufacturer:
PHILIPS
Quantity:
4
Part Number:
P89C51UBBB
Manufacturer:
PHILIPS
Quantity:
2 798
Semiconductors
Preliminary specification
IC28 Data Handbook
hilips
89C51RB2/89C51RC2/89C51RD2
80C51 8-bit Flash microcontroller family
16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM
INTEGRATED CIRCUITS
1999 Sep 23

Related parts for P89C51UBBB

P89C51UBBB Summary of contents

Page 1

Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Preliminary specification IC28 Data Handbook hilips Semiconductors INTEGRATED CIRCUITS 1999 Sep 23 ...

Page 2

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DESCRIPTION The 89C51RB2/RC2/RD2 device contains a non-volatile 16kB/32kB/64kB Flash program memory that is both parallel programmable and serial In-System and In-Application Programmable. In-System Programming (ISP) allows the user to download new code while the microcontroller sits in the application. ...

Page 3

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM ORDERING INFORMATION PHILIPS PHILIPS (EXCEPT NORTH NORTH AMERICA) AMERICA) AMERICA PART ORDER PART ORDER NUMBER NUMBER PART MARKING 1 P89C51RB2HBP P89C51RB2BP 2 P89C51RB2HFP P89C51RB2FP 3 P89C51RB2HBA P89C51RB2BA 4 P89C51RB2HFA P89C51RB2FA 5 P89C51RB2HBB P89C51RB2BB ...

Page 4

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM BLOCK DIAGRAM RAM ADDR RAM REGISTER B ACC REGISTER PSEN ALE TIMING AND EAV PP CONTROL RST PD OSCILLATOR XTAL1 XTAL2 1999 Sep 23 P0.0–P0.7 P2.0–P2.7 PORT 0 PORT 2 DRIVERS DRIVERS ...

Page 5

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM LOGIC SYMBOL XTAL1 XTAL2 RST EA/V PP PSEN ALE/PROG RxD TxD INT0 INT1 PINNING Plastic Dual In-Line Package T2/P1 T2EX/P1 P0.0/AD0 ECI/P1 P0.1/AD1 CEX0/P1 P0.2/AD2 CEX1/P1 P0.3/AD3 CEX2/P1 P0.4/AD4 CEX3/P1 ...

Page 6

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM PIN DESCRIPTIONS PIN NUMBER MNEMONIC MNEMONIC PDIP PLCC PQFP P0.0–0.7 39–32 43–36 37–30 P1.0–P1.7 1–8 2–9 40–44, 1– P2.0–P2.7 21–28 24–31 18–25 P3.0–P3.7 10–17 11, 5, 7– ...

Page 7

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM PIN NUMBER MNEMONIC MNEMONIC PDIP PLCC PQFP PSEN EA XTAL1 XTAL2 NOTE: To avoid “latch-up” effect at power-on, the voltage on any pin (other than V 1999 Sep 23 TYPE TYPE NAME AND FUNCTION ...

Page 8

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 1. Special Function Registers DIRECT SYMBOL DESCRIPTION ADDRESS ACC* Accumulator E0H AUXR# Auxiliary 8EH AUXR1# Auxiliary 1 A2H B* B register F0H CCAP0H# Module 0 Capture High FAH CCAP1H# Module 1 Capture High ...

Page 9

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 1. Special Function Registers (Continued) DIRECT SYMBOL DESCRIPTION ADDRESS PSW* Program Status Word D0H RCAP2H# Timer 2 Capture High CBH RCAP2L# Timer 2 Capture Low CAH SADDR# Slave Address A9H ...

Page 10

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 ...

Page 12

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 3. Timer 2 Operating Modes RCLK + TCLK CP/RL2 OSC Pin Transition Detector T2EX Pin Control EXEN2 * clock mode clock mode. T2MOD Address = 0C9H Not Bit Addressable — — ...

Page 13

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM OSC PIN TRANSITION DETECTOR T2EX PIN EXEN2 * clock mode clock mode. Figure 4. Timer 2 in Auto-Reload Mode (DCEN = 0) n* OSC C/ C/ PIN TR2 * clock mode clock mode. 1999 Sep 23 ...

Page 14

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM OSC C/ C/ 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 12 clock 6 clock RCAP2H mode ...

Page 15

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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; ...

Page 16

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Enhanced UART The UART operates in all of the usual modes that are described in the first section of Data Handbook IC20, 80C51-Based 8-Bit Microcontrollers . In addition the UART can perform framing error detect by looking for missing stop bits, and automatic address recognition ...

Page 17

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM SCON Address = 98H Bit Addressable SM0/FE SM1 Bit (SMOD0 = 0/1)* Symbol Function FE 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 ...

Page 18

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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” ...

Page 19

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Interrupt Priority Structure The 89C51RB2/RC2/RD2 has an 8 source four-level interrupt structure (see Table 7). There are 3 SFRs associated with the four-level interrupt. They are the IE, IP, and IPH. (See Figures 10, 11, and 12.) The IPH (Interrupt Priority High) register makes the four-level interrupt structure possible ...

Page 20

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 7 IP (0B8H) – PPC Priority Bit = 1 assigns high priority Priority Bit = 0 assigns low priority BIT SYMBOL FUNCTION IP.7 – – IP.6 PPC PCA interrupt priority bit IP.5 PT2 Timer 2 interrupt priority bit ...

Page 21

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Reduced EMI Mode The AO bit (AUXR.0) in the AUXR register when set disables the ALE output. Reduced EMI Mode AUXR (8EH – – – – – – AUXR.1 EXTRAM AUXR ...

Page 22

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Programmable Counter Array (PCA) The Programmable Counter Array available on the 89C51RB2/RC2/RD2 is a special 16-bit Timer that has five 16-bit capture/compare modules associated with it. Each of the modules can be programmed to operate in one of four modes: rising and/or falling edge capture, software timer, high-speed output, or pulse width modulator ...

Page 23

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM OSC/6 (6 CLOCK MODE) OR OSC/12 (12 CLOCK MODE) OSC/2 (6 CLOCK MODE) OR OSC/4 (12 CLOCK MODE) TIMER 0 OVERFLOW EXTERNAL INPUT (P1.2/ECI) IDLE PCA TIMER/COUNTER MODULE 0 MODULE 1 MODULE 2 MODULE 3 MODULE 4 CMOD.0 ECF 1999 Sep 23 CH 16– ...

Page 24

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM CMOD Address = C1H CIDL WDTE Bit Symbol Function CIDL Counter Idle control: CIDL = 0 programs the PCA Counter to continue functioning during idle Mode. CIDL = 1 programs gated off during idle. ...

Page 25

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM CCAPMn Address CCAPM0 0C2H CCAPM1 0C3H CCAPM2 0C4H CCAPM3 0C5H CCAPM4 0C6H Not Bit Addressable – ECOMn Bit Symbol Function – Not implemented, reserved for future use*. ECOMn Enable Comparator ...

Page 26

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM CF CR CEXn –– ECOMn 0 CF WRITE TO RESET CCAPnH CCAPnH WRITE TO CCAPnL 0 1 ENABLE 16–BIT COMPARATOR CH PCA TIMER/COUNTER –– 1999 Sep 23 –– CCF4 CCF3 CCF2 CCF1 ...

Page 27

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM WRITE TO RESET CCAPnH CCAPnH WRITE TO CCAPnL 0 1 ENABLE 16–BIT COMPARATOR CH PCA TIMER/COUNTER –– –– ECOMn 1999 Sep –– CCF4 CCF3 CCF2 CCAPnL (TO CCFn) MATCH CL ECOMn ...

Page 28

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM WRITE TO RESET CCAP4L WRITE TO CCAP4H 1 0 ENABLE Figure 25. PCA Watchdog Timer m(Module 4 only) PCA Watchdog Timer An on-board watchdog timer is available with the PCA to improve the reliability of the system without increasing chip count. Watchdog timers are useful for systems that are susceptible to noise, power glitches, or electrostatic discharge ...

Page 29

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM INIT_WATCHDOG: MOV CCAPM4, #4CH ; Module 4 in compare mode MOV CCAP4L, #0FFH ; Write to low byte first MOV CCAP4H, #0FFH ; Before PCA timer counts FFFF Hex, these compare values ; must be changed ORL CMOD, #40H ...

Page 30

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Expanded Data RAM Addressing The 89C51RB2/RC2/RD2 has internal data memory that is mapped into four separate segments: the lower 128 bytes of RAM, upper 128 bytes of RAM, 128 bytes Special Function Register (SFR), and 256 bytes expanded RAM (ERAM) (768 bytes for the RD2) ...

Page 31

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM ERAM 256 or 768 BYTES 100 Figure 28. Internal and External Data Memory Address Space with EXTRAM = 0 HARDWARE WATCHDOG TIMER (ONE-TIME ENABLED WITH RESET-OUT FOR 89C51RB2/RC2/RD2) The WDT is intended as a recovery method in situations where the CPU may be subjected to software upset. The WDT consists of a 14-bit counter and the WatchDog Timer reset (WDTRST) SFR ...

Page 32

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DC ELECTRICAL CHARACTERISTICS + – + 10%; V amb SYMBOL SYMBOL PARAMETER PARAMETER V Input low voltage IL V Input high voltage (ports EA Input high voltage, XTAL1, RST IH1 8 V Output low voltage, ports ...

Page 33

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM AC ELECTRICAL CHARACTERISTICS (6 CLOCK MODE + – + amb CC SYMBOL FIGURE 1/t 29 Oscillator frequency CLCL t 29 ALE pulse width LHLL t 29 Address valid to ALE low AVLL t 29 Address hold after ALE low ...

Page 34

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM AC ELECTRICAL CHARACTERISTICS (12 CLOCK MODE + – + amb CC SYMBOL FIGURE 1/t 29 Oscillator frequency CLCL t 29 ALE pulse width LHLL t 29 Address valid to ALE low AVLL t 29 Address hold after ALE low ...

Page 35

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 36

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 RI ...

Page 37

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 ‘ ...

Page 38

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM V LOAD V LOAD V LOAD NOTE: For timing purposes, a port is no longer floating when a 100mV change from load voltage occurs, and begins to float when a 100mV change from the loaded 89C51RB2 ...

Page 39

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM FLASH EPROM MEMORY GENERAL DESCRIPTION The 89C51RB2/RC2/RD2 Flash memory augments EPROM functionality with in-circuit electrical erasure and programming. The Flash can be read and written as bytes. The Chip Erase operation will erase the entire program memory ...

Page 40

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 89C51RD2 89C51RC2 89C51RB2 Power-On Reset Code Execution The 89C51RB2/RC2/RD2 contains two special Flash registers: the BOOT VECTOR and the STATUS BYTE. At the falling edge of reset, the 89C51RB2/RC2/RD2 examines the contents of the Status Byte. ...

Page 41

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Figure 44. In-System Programming with a Minimum of Pins In-System Programming (ISP) The In-System Programming (ISP) is performed without removing the microcontroller from the system. The In-System Programming (ISP) facility consists of a series of internal hardware resources coupled with internal firmware to facilitate remote programming of the 89C51RB2/RC2/RD2 through the serial port ...

Page 42

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 8. Intel-Hex Records Used by In-System Programming RECORD TYPE 00 Program Data :nnaaaa00dd....ddcc Where number of bytes (hex) in record Aaaa = memory address of first byte in record dd....dd = data bytes cc = checksum Example: ...

Page 43

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM RECORD TYPE 03 Miscellaneous Write Functions :nnxxxx03ffssddcc Where number of bytes (hex) in record xxxx = required field, but value is a “don’t care” Write Function ff = subfunction code ss = selection code dd = data input (as needed) ...

Page 44

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM RECORD TYPE 05 Miscellaneous Read Functions General Format of Function 05 :02xxxx05ffsscc Where number of bytes (hex) in record xxxx = required field, but value is a “don’t care” “Miscellaneous Read” function code ...

Page 45

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM In Application Programming Method Several In Application Programming (IAP) calls are available for use by an application program to permit selective erasing and programming of Flash sectors. All calls are made through a common interface, PGM_MTP ...

Page 46

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM IAP CALL READ MANUFACTURER ID Input Parameters osc freq (integer 00h DPH = 00h DPL = 00h (manufacturer ID) Return Parameter ACC = value of byte read READ DEVICE Input Parameters osc freq (integer) ...

Page 47

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 89C51RB2/RC2/RD2 has 3 programmable security lock bits that will provide different levels of protection for the on-chip code and data (see Table 10) ...

Page 48

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DIP40: plastic dual in-line package; 40 leads (600 mil) 1999 Sep 23 89C51RB2/89C51RC2/ 48 Preliminary specification 89C51RD2 SOT129-1 ...

Page 49

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM PLCC44: plastic leaded chip carrier; 44 leads 1999 Sep 23 89C51RB2/89C51RC2/ 49 Preliminary specification 89C51RD2 SOT187-2 ...

Page 50

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM QFP44: plastic quad flat package; 44 leads (lead length 1.3 mm); body 1.75 mm 1999 Sep 23 89C51RB2/89C51RC2/ 50 Preliminary specification 89C51RD2 SOT307-2 ...

Page 51

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 1999 Sep 23 89C51RB2/89C51RC2/ NOTES 51 Preliminary specification 89C51RD2 ...

Page 52

... Philips Semiconductors for any damages resulting from such application. Right to make changes — Philips Semiconductors reserves the right to make changes, without notice, in the products, including circuits, standard cells, and/or software, described or contained herein in order to improve design and/or performance. Philips Semiconductors assumes no ...

Related keywords