P89C51RC+IA Philips Semiconductors, P89C51RC+IA Datasheet

no-image

P89C51RC+IA

Manufacturer Part Number
P89C51RC+IA
Description
80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512.1K RAM
Manufacturer
Philips Semiconductors
Datasheets
Semiconductors
Product specification
Replaces 89C51RC+/RD+ of 1999 Apr 01
Supersedes data of 1999 Apr 01
IC28 Data Handbook
hilips
(see Notes 1 and 2 on page 2)
P89C51RC+/P89C51RD+
80C51 8-bit Flash microcontroller family
32K/64K ISP FLASH with 512–1K RAM
INTEGRATED CIRCUITS
1999 Oct 27

Related parts for P89C51RC+IA

P89C51RC+IA Summary of contents

Page 1

P89C51RC+/P89C51RD+ 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Product specification Replaces 89C51RC+/RD+ of 1999 Apr 01 (see Notes 1 and 2 on page 2) Supersedes data of 1999 Apr 01 IC28 Data Handbook hilips Semiconductors INTEGRATED ...

Page 2

... I/O and up/down counting capabilities such as motor control. ORDERING INFORMATION MEMORY SIZE MEMORY SIZE P89C51RC+IN P89C51RD+IN P89C51RC+IA P89C51RD+IA P89C51RC+IB P89C51RD+IB P89C51RC+JN P89C51RD+JN P89C51RC+JA P89C51RD+JA P89C51RC+JB P89C51RD+JB NOTE: 1. SOT not assigned for this package outline. ...

Page 3

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM ORDERING INFORMATION DEVICE NUMBER (P89C51RC+) P89C51RC+ (FLASH) P89C51RD+ (FLASH) BLOCK DIAGRAM RAM ADDR RAM REGISTER B ACC REGISTER PSEN ALE TIMING AND EAV CONTROL PP RST PD OSCILLATOR ...

Page 4

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 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.1 2 P0.0/AD0 39 ECI/P1 ...

Page 5

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 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–3 ...

Page 6

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM PIN DESCRIPTIONS (Continued) PIN NUMBER MNEMONIC DIP LCC QFP TYPE NAME AND FUNCTION PSEN EA XTAL1 XTAL2 NOTE: To avoid “latch-up” effect at power-on, the voltage on any pin (other than V respectively ...

Page 7

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

Page 8

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Table 1. 89C51RC+/RD+ Special Function Registers (Continued) DIRECT SYMBOL DESCRIPTION ADDRESS PSW* Program Status Word D0H RACAP2H# Timer 2 Capture High CBH RACAP2L# Timer 2 Capture Low CAH SADDR# Slave Address ...

Page 9

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 10

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 11

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

Page 12

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM OSC PIN TRANSITION DETECTOR T2EX PIN EXEN2 Figure 4. Timer 2 in Auto-Reload Mode (DCEN = 0) OSC PIN TR2 1999 Oct 27 TL2 TH2 (8-BITS) (8-BITS) CONTROL ...

Page 13

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 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 ...

Page 14

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 15

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 16

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 17

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 18

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Interrupt Priority Structure The 89C51RC+/RD+ have a 7-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 19

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 7 IP (0B8H) — PPC Priority Bit = 1 assigns high priority Priority Bit = 0 assigns low priority BIT SYMBOL FUNCTION IP.7 — Not implemented, reserved for future use. IP.6 PPC PCA interrupt priority bit IP ...

Page 20

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 21

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Programmable Counter Array (PCA) The Programmable Counter Array, available on the 89C51RX 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 22

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM OSC/12 OSC/4 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 Oct 27 CH 16–BIT UP COUNTER DECODE 11 CIDL WDTE –– ...

Page 23

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM CMOD Address = OD9H 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 24

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM CCAPMn Address CCAPM0 0DAH CCAPM1 0DBH CCAPM2 0DCH CCAPM3 0DDH CCAPM4 0DEH Not Bit Addressable – ECOMn Bit Symbol Function – Not implemented, reserved for future use*. ...

Page 25

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 Oct 27 –– CCF4 CCF3 CCF2 ...

Page 26

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

Page 27

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM WRITE TO RESET CCAP4H WRITE TO CCAP4L 0 1 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 28

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 ...

Page 29

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Expanded Data RAM Addressing The 89C51RX+ 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 (768 for RD+) expanded RAM (ERAM) ...

Page 30

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM É É É É É 2FF (89C51RD+) É É É É É É É É É É É É É É É É É É É É ...

Page 31

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 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 32

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 ...

Page 33

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM AC ELECTRICAL CHARACTERISTICS + – + amb CC SYMBOL FIGURE 1/t 29 Oscillator frequency CLCL Speed versions ALE pulse width LHLL t 29 Address valid to ALE low AVLL ...

Page 34

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 35

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 ...

Page 36

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 ‘1’ and V IH Figure 34 ...

Page 37

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM V CC RST (NC) XTAL2 CLOCK SIGNAL XTAL1 V SS Figure 37. I Test Condition, Active Mode CC All other pins are disconnected V CC 0.45V Figure 39. Clock Signal Waveform for I Figure 40. I All other pins are disconnected. V ...

Page 38

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM FLASH EPROM MEMORY GENERAL DESCRIPTION The 89C51RX+ 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 39

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM FFFF BLOCK 4 16k BYTES C000 BLOCK 3 16k BYTES PROGRAM 8000 ADDRESS BLOCK 2 16k BYTES 4000 BLOCK 1 8k BYTES 2000 BLOCK 0 8k BYTES 0000 Power-On Reset Code Execution The 89C51RX+ contains two special FLASH registers: the BOOT VECTOR and the STATUS BYTE ...

Page 40

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM Figure 42. 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 89C51RX+ through the serial port ...

Page 41

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 ...

Page 42

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM RECORD TYPE 04 Display Device Data or Blank Check – Record type 04 causes the contents of the entire Flash array to be sent out the serial port in a formatted display. This display consists of an address and the contents of 16 bytes starting with that address ...

Page 43

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 44

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 45

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K 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 P89C51RC+/P89C51RD+ has three programmable security lock bits that will provide different levels of protection for the on-chip code and data (see Table 10) ...

Page 46

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM DIP40: plastic dual in-line package; 40 leads (600 mil) 1999 Oct 27 P89C51RC+/P89C51RD+ 46 Product specification SOT129-1 ...

Page 47

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM PLCC44: plastic leaded chip carrier; 44 leads 1999 Oct 27 P89C51RC+/P89C51RD+ 47 Product specification SOT187-2 ...

Page 48

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM QFP44: plastic quad flat package; 44 leads 1999 Oct 27 P89C51RC+/P89C51RD+ 48 Product specification ...

Page 49

... Philips Semiconductors 80C51 8-bit Flash microcontroller family 32K/64K ISP FLASH with 512–1K RAM 1999 Oct 27 P89C51RC+/P89C51RD+ NOTES 49 Product specification ...

Page 50

... 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