P89C51RD2BA NXP Semiconductors, P89C51RD2BA Datasheet
P89C51RD2BA
Available stocks
Related parts for P89C51RD2BA
P89C51RD2BA 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 ...
Page 3
... P89C51RC2HBP P89C51RC2BP 8 P89C51RC2HFP P89C51RC2FP 9 P89C51RC2HBA P89C51RC2BA 10 P89C51RC2HFA P89C51RC2FA 11 P89C51RC2HBB P89C51RC2BB 12 P89C51RC2HFB P89C51RC2FB 13 P89C51RD2HBP P89C51RD2BP 14 P89C51RD2HFP P89C51RD2FP 15 P89C51RD2HBA P89C51RD2BA 16 P89C51RD2HFA P89C51RD2FA 17 P89C51RD2HBB P89C51RD2BB 18 P89C51RD2HFB P89C51RD2FB 1999 Sep 23 MEMORY TEMPERATURE VOLTAGE VOLTAGE RANGE ( C) FLASH RAM RANGE AND PACKAGE 16 kB 512 +70, PDIP 4.5–5 512 B – ...
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 ...
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.0 ...
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, ...
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 ...
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 ...
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 ...
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 ...
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* ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...
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. ...
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, ...
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 ...
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 ...
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” 03 ...
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 ...
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. ...
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 = ...
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 ...
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 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/512B/1KB RAM Data sheet status Data sheet Product Definition status status Objective Development This data sheet contains the design target or goal specifications for product development. specification Specification may ...