P89C51RC2HFBD NXP Semiconductors, P89C51RC2HFBD Datasheet
![no-image](/images/manufacturer_photos/0/4/487/nxp_semiconductors_sml.jpg)
P89C51RC2HFBD
Available stocks
Related parts for P89C51RC2HFBD
P89C51RC2HFBD Summary of contents
Page 1
P89C51RB2Hxx P89C51RC2Hxx P89C51RD2Hxx 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Product data Supersedes data of 2001 Jun 27 hilips Semiconductors INTEGRATED CIRCUITS 2002 May 24 ...
Page 2
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DESCRIPTION . . . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 3
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM ABSOLUTE MAXIMUM RATINGS . . . . . . . . . . . . . . . . . . . . . . . . ...
Page 4
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DESCRIPTION The P89C51RB2/RC2/RD2Hxx 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 ...
Page 5
... P89C51RB2HBBD 16 kB 512 B 3 P89C51RC2HBP 32 kB 512 B 4 P89C51RC2HBA 32 kB 512 B 5 P89C51RC2HFA 32 kB 512 B 6 P89C51RC2HBBD 32 kB 512 B 7 P89C51RC2HFBD 32 kB 512 B 8 P89C51RD2HBP P89C51RD2HBA P89C51RD2HBBD 64 kB 2002 May 24 TEMPERATURE VOLTAGE VOLTAGE RANGE ( C) RANGE AND PACKAGE 0 to +70, PLCC 4.5–5 +70, LQFP 4.5– ...
Page 6
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 2002 May ...
Page 7
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.0 ...
Page 8
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 LQFP P0.0–0.7 39–32 43–36 37–30 P1.0–P1.7 1–8 2–9 40–44, ...
Page 9
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 LQFP PSEN EA XTAL1 XTAL2 NOTE: To avoid ...
Page 10
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 ...
Page 11
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 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 ...
Page 12
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 ...
Page 13
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* ...
Page 14
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 2. Timer 2 Operating Modes RCLK + TCLK CP/RL2 OSC ...
Page 15
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 * 6-clock mode 12-clock mode. ...
Page 16
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 3. Timer 2 Generated Commonly Used ...
Page 17
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 ...
Page 18
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 ...
Page 19
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 ...
Page 20
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 ...
Page 21
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Interrupt Priority Structure The P89C51RB2/RC2/RD2Hxx has a 7 source four-level interrupt structure (see Table 6). There are 3 SFRs associated with the four-level interrupt. They are the ...
Page 22
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 ...
Page 23
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 ...
Page 24
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 P89C51RB2/RC2/RD2Hxx is a special 16-bit Timer that has five 16-bit capture/compare modules associated with it. Each ...
Page 25
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 ...
Page 26
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM CMOD Address = D9H CIDL WDTE Bit Symbol Function CIDL Counter Idle control: CIDL = 0 programs the PCA Counter to continue functioning during idle ...
Page 27
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM CCAPMn Address CCAPM0 0DAH CCAPM1 0DBH CCAPM2 0DCH CCAPM3 0DDH CCAPM4 0DEH Not Bit Addressable – ECOMn Bit Symbol Function – Not implemented, reserved for ...
Page 28
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 –– 2002 May 24 ...
Page 29
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 2002 May –– CCF4 CCF3 ...
Page 30
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 mode (Module 4 only) PCA Watchdog Timer An on-board watchdog timer is ...
Page 31
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 ...
Page 32
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Expanded Data RAM Addressing The P89C51RB2/RC2/RD2Hxx has internal data memory that is mapped into four separate segments: the lower 128 bytes of RAM, upper 128 bytes of ...
Page 33
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 ...
Page 34
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM ABSOLUTE MAXIMUM RATINGS PARAMETER Operating temperature under bias Storage temperature range Voltage on EA/V pin Voltage on any other pin ...
Page 35
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM DC ELECTRICAL CHARACTERISTICS + 10% or – + 5%; V amb CC ...
Page 36
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 + 10% or – + amb CC ...
Page 37
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 +70 C; VCC = 5 V 10% or – + amb SYMBOL ...
Page 38
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 ...
Page 39
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 ...
Page 40
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 ...
Page 41
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM V –0.5 CC 0.45V NOTE: AC inputs during testing are driven at V Timing measurements are made LOAD V LOAD V LOAD NOTE: For ...
Page 42
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM V CC 89C51RB2Hxx RST 89C51RC2Hxx 89C51RD2Hxx (NC) XTAL2 CLOCK SIGNAL XTAL1 V SS Figure 39. I Test Condition, Active Mode. CC All other pins are disconnected RST ...
Page 43
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 P89C51RB2/RC2/RD2Hxx Flash memory augments EPROM functionality with in-circuit electrical erasure and programming. The Flash can be read and written as bytes. ...
Page 44
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM 89C51RD2Hxx 89C51RC2Hxx 89C51RB2Hxx Power-On Reset Code Execution The P89C51RB2/RC2/RD2Hxx contains two special Flash registers: the BOOT VECTOR and the STATUS BYTE. At the falling edge of reset, ...
Page 45
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 ...
Page 46
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Table 7. 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 ...
Page 47
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” 03 ...
Page 48
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 ...
Page 49
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. ...
Page 50
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM IAP CALL PROGRAM BOOT VECTOR Input Parameters osc freq (integer 06h R1 = 86h (WDT feed) DPH = 00h DPL = 01h – ...
Page 51
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 ...
Page 52
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) 2002 May 24 P89C51RB2/P89C51RC2/ P89C51RD2Hxx 49 Product data SOT129-1 ...
Page 53
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 2002 May 24 P89C51RB2/P89C51RC2/ P89C51RD2Hxx 50 Product data SOT187-2 ...
Page 54
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM LQFP44: plastic low profile quad flat package; 44 leads; body 1.4 mm 2002 May 24 P89C51RB2/P89C51RC2/ P89C51RD2Hxx 51 Product data SOT389-1 ...
Page 55
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM REVISION HISTORY Date CPCN 2002 May 24 9397 750 09594 2001 Jun 27 9397 750 08525 2002 May 24 P89C51RB2/P89C51RC2/ Description – “Hxx” added to the device ...
Page 56
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Data sheet status Product Definitions [1] Data sheet status [2] status Objective data Development This data sheet contains data from the objective specification for product development. Philips ...