P89C662HBA/00,512 NXP Semiconductors, P89C662HBA/00,512 Datasheet
P89C662HBA/00,512
Specifications of P89C662HBA/00,512
935267444512
P89C662HBA
Available stocks
Related parts for P89C662HBA/00,512
P89C662HBA/00,512 Summary of contents
Page 1
P89C660/P89C662/P89C664/P89C668 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP FLASH with 512B/1KB/2KB/8KB RAM Product data Replaces P89C660/P89C662/P89C664 of 2001 Jul 19 and P89C668 of 2001 Jul 27 hilips Semiconductors INTEGRATED CIRCUITS 2002 Oct 28 ...
Page 2
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM DESCRIPTION The P89C660/662/664/668 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
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM SELECTION TABLE Type Memory Timers P89C668 8K – – 64K 4 P89C664 2K – – 64K 4 P89C662 1K – – 32K 4 P89C660 512B – – ...
Page 4
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM BLOCK DIAGRAM 1 16K / 32K / 64 KBYTE CODE FLASH 0. KBYTE DATA RAM PORT 3 CONFIGURABLE I/Os PORT 2 ...
Page 5
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM BLOCK DIAGRAM (CPU-ORIENTED RAM ADDR RAM REGISTER B ACC REGISTER PSEN ALE TIMING AND EA/V PP CONTROL RST PD OSCILLATOR XTAL1 XTAL2 2002 ...
Page 6
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM LOGIC SYMBOL XTAL1 XTAL2 RST EA/V PP PSEN SCL ALE/PROG SDA RxD TxD INT0 INT1 PINNING Plastic Leaded Chip ...
Page 7
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM PIN DESCRIPTIONS PIN NUMBER MNEMONIC MNEMONIC TYPE TYPE PLCC LQFP P0.0–0.7 43–36 37–30 I/O P1.0–P1.7 2–9 40–44, ...
Page 8
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM PIN NUMBER MNEMONIC MNEMONIC TYPE TYPE PLCC LQFP EA XTAL1 XTAL2 NOTE: To avoid “latch-up” effect at ...
Page 9
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 10
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 11
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 12
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM SERIAL COMMUNICATION — SIO1 2 2 The I C serial port is identical to the I C serial port on the 8XC554, 8XC654, and ...
Page 13
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM bus P1.7/SDA P1.6/SCL P89C66x SDA MSB SLAVE ADDRESS SCL START CONDITION SIO1 Implementation and Operation 2 Figure 3 shows how ...
Page 14
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM P1.7 INPUT FILTER P1.7/SDA OUTPUT STAGE INPUT FILTER P1.6/SCL OUTPUT STAGE P1.6 Figure 3. I 2002 Oct 28 P89C660/P89C662/P89C664/ S1ADR ADDRESS REGISTER COMPARATOR S1DAT SHIFT REGISTER ARBITRATION ...
Page 15
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Arbitration and Synchronization Logic In the Master Transmitter mode, the arbitration logic checks that every transmitted logic 1 actually appears as a logic 1 on the I ...
Page 16
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Serial Clock Generator This programmable clock pulse generator provides the SCL clock pulses when SIO1 is in the Master Transmitter or Master Receiver mode switched ...
Page 17
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM SDA SCL SHIFT PULSES SDA D7 D6 SCL SHIFT ACK & S1DAT ACK (2) S1DAT (1) (2) SHIFT BSD7 BSD7 D7 D6 LOADED BY THE CPU (1) ...
Page 18
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM If the STA and STO bits are both set, the a STOP condition is 2 transmitted to the I C bus if SIO1 Master ...
Page 19
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 3. Serial Clock Rates 6-clock mode CR2 CR1 CR0 3 MHz ...
Page 20
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM More Information on SIO1 Operating Modes The four operating modes are: – Master Transmitter – Master Receiver – Slave Receiver – Slave Transmitter Data transfers in each ...
Page 21
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Ç Ç Ç Ç Ç Ç Ç Ç SUCCESSFUL TRANSMISSION TO A SLAVE RECEIVER Ç Ç Ç Ç Ç Ç Ç Ç NEXT TRANSFER STARTED WITH A ...
Page 22
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Ç Ç Ç Ç Ç Ç Ç Ç SUCCESSFUL RECEPTION S SLA FROM A SLAVE TRANSMITTER Ç Ç Ç Ç Ç Ç Ç Ç 08H NEXT TRANSFER ...
Page 23
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Ç Ç Ç Ç Ç Ç Ç RECEPTION OF THE OWN SLAVE ADDRESS AND ONE OR MORE DATA BYTES ALL ARE ACKNOWLEDGED. Ç Ç Ç Ç Ç ...
Page 24
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Ç Ç Ç Ç Ç Ç Ç Ç RECEPTION OF THE Ç Ç Ç Ç Ç Ç Ç Ç OWN SLAVE ADDRESS S SLA AND TRANSMISSION OF ...
Page 25
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 4. Master Transmitter mode APPLICATION SOFTWARE RESPONSE STATUS STATUS STATUS OF THE STATUS OF THE 2 CODE I C BUS AND TO/FROM S1DAT TO/FROM S1DAT (S1STA) ...
Page 26
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 5. Master Receiver Mode APPLICATION SOFTWARE RESPONSE 2 2 STATUS STATUS STATUS OF THE I STATUS OF THE CODE BUS AND TO/FROM S1DAT ...
Page 27
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 6. Slave Receiver mode APPLICATION SOFTWARE RESPONSE STATUS STATUS STATUS OF THE STATUS OF THE 2 CODE I C BUS AND TO/FROM S1DAT TO/FROM S1DAT (S1STA) ...
Page 28
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 6. Slave Receiver mode (Continued) APPLICATION SOFTWARE RESPONSE STATUS STATUS STATUS OF THE STATUS OF THE 2 CODE I C BUS AND TO/FROM S1DAT TO/FROM S1DAT ...
Page 29
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 8. Miscellaneous States APPLICATION SOFTWARE RESPONSE STATUS STATUS STATUS OF THE STATUS OF THE 2 CODE I C BUS AND TO/FROM S1DAT TO/FROM S1DAT (S1STA) (S1STA) ...
Page 30
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM S SLA W A 08H 18H Figure 12. Simultaneous Repeated START Conditions from 2 Masters TIME OUT STA FLAG SDA LINE SCL LINE Bus ...
Page 31
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM STA FLAG (1) SDA LINE SCL LINE (1) Unsuccessful attempt to send a Start condition (2) SDA line released (3) Successful attempt to send a Start condition; ...
Page 32
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM 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 ...
Page 33
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM OSC d* Tn Pin TRn Timer n Gate bit INTn Pin * 6-clock mode 12-clock mode. Figure 16. Timer/Counter 0/1 ...
Page 34
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM OSC d* Tn Pin TRn Timer n Gate bit INTn Pin * 6-clock mode 12-clock mode. Figure 18. Timer/Counter 0/1 ...
Page 35
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 36
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Table 9. Timer 2 Operating Modes RCLK + TCLK CP/RL2 OSC ...
Page 37
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM OSC PIN TRANSITION DETECTOR T2EX PIN EXEN2 * 6-clock mode 12-clock mode. ...
Page 38
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM OSC C/ C/ Pin Transition Detector T2EX Pin EXEN2 Note availability of additional external interrupt. Table 10. Timer 2 Commonly Used Generated ...
Page 39
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM When Timer the baud rate generator mode, one should not try to read or write TH2 and TL2 baud rate generator, Timer ...
Page 40
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM FULL-DUPLEX ENHANCED UART Standard UART operation A full-duplex serial port can transmit and receive simultaneously also receive-buffered, meaning it can commence reception of a second ...
Page 41
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM SCON Address = 98H Bit Addressable SM0 Where SM0, SM1 specify the serial port mode, as follows: SM0 SM1 Mode Description shift register 0 ...
Page 42
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM shifted to the left by one position. The value that comes in, from the right, is the value that was sampled at the P3.0 pin at S5P2 ...
Page 43
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Write to SBUF Serial Port Interrupt REN ...
Page 44
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Timer 1 Overflow Write 2 to SBUF SMOD = 1 SMOD = 0 16 Serial Port Interrupt Sample 1-to-0 Transition Detector RxD TX Clock Write to SBUF ...
Page 45
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Write to SBUF Phase 2 Clock (1 OSC Mode 2 16 SMOD = 1 Serial 2 Port Interrupt SMOD = 0 (SMOD is PCON.7) Sample ...
Page 46
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Timer 1 Overflow Write 2 to SBUF SMOD = 1 SMOD = 0 16 Serial Port Interrupt Sample 1-to-0 Transition Detector RxD TX Clock Write to SBUF ...
Page 47
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Enhanced UART In addition to the standard operation, the UART can perform framing error detect by looking for missing stop bits, and automatic address recognition. The UART ...
Page 48
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM S0CON 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 49
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM D0 START BIT SM0 / FE SMOD1 SMOD0 0 : S0CON.7 = SM0 1 : S0CON RECEIVED ADDRESS PROGRAMMED ADDRESS ...
Page 50
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Interrupt Priority Structure The P89C660/662/664/668 has an 8 source four-level interrupt structure (see Table 13). There are 4 SFRs associated with the four-level interrupt. They are the ...
Page 51
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM 7 IP (0B8H) PT2 PPC Priority Bit = 1 assigns high priority Priority Bit = 0 assigns low priority BIT SYMBOL FUNCTION IP.7 PT2 Timer 2 interrupt ...
Page 52
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 53
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Programmable Counter Array (PCA) The Programmable Counter Array available on the 89C66x is a special 16-bit Timer that has five 16-bit capture/compare modules associated with it. Each ...
Page 54
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 55
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 56
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 57
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 Oct 28 ...
Page 58
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM WRITE TO RESET CCAPnH CCAPnH WRITE TO CCAPnL 0 1 ENABLE 16–BIT COMPARATOR CH PCA TIMER/COUNTER –– –– ECOMn 2002 Oct 28 P89C660/P89C662/P89C664 –– CCF4 ...
Page 59
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM WRITE TO RESET CCAP4L WRITE TO CCAP4H 1 0 ENABLE Figure 51. PCA Watchdog Timer m(Module 4 only) PCA Watchdog Timer An on-board watchdog timer is available ...
Page 60
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 61
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Expanded Data RAM Addressing The P89C660/662/664/668 has internal data memory that is mapped into four separate segments: the lower 128 bytes of RAM, upper 128 bytes of ...
Page 62
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM FF/2FF/6FF/1FFF ERAM 256, 768, 1792 OR 7936 BYTES 000 Figure 54. Internal and External Data Memory Address Space with EXTRAM = 0 Hardware WatchDog Timer (One-Time Enabled ...
Page 63
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM FLASH EPROM MEMORY GENERAL DESCRIPTION The P89C660/662/664/668 Flash memory augments EPROM functionality with in-circuit electrical erasure and programming. The Flash can be read and written as bytes. ...
Page 64
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM 89C664/89C668 89C662 89C660 Power-On Reset Code Execution The P89C660/662/664/668 contains two special Flash registers: the BOOT VECTOR and the STATUS BYTE. At the falling edge of reset, ...
Page 65
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM V CC Figure 56. 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. ...
Page 66
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM The ISP facility was designed so that specific crystal frequencies were not required in order to generate baud rates or time the programming pulses. The user thus ...
Page 67
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 68
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 69
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 70
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM IAP CALL ERASE BOOT VECTOR & Input Parameters: STATUS BYTE R0 = osc freq (integer 04h R1 = 84h (WDT feed, Rx2 & 66x only) ...
Page 71
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM IAP CALL PROGRAM STATUS BYTE Input Parameters osc freq (integer 06h R1 = 86h (WDT feed, Rx2, 66x only) DPH = 00h DPL ...
Page 72
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM IAP CALL READ MANUFACTURER ID Input Parameters osc freq (integer 00h R1 = 80h (WDT feed, Rx2 & 66x only) DPH = 00h ...
Page 73
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM IAP CALL READ SECURITY BITS Input Parameters osc freq (integer 07h R1 = 87h (WDT feed, Rx2 & 66x only) DPH = 00h ...
Page 74
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 75
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM ABSOLUTE MAXIMUM RATINGS PARAMETER Operating temperature under bias Storage temperature range Voltage on EA/V pin Voltage on any other pin ...
Page 76
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM DC ELECTRICAL CHARACTERISTICS + 10% or – + 5%; V amb SYMBOL SYMBOL PARAMETER PARAMETER ...
Page 77
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM AC ELECTRICAL CHARACTERISTICS (6 CLOCK MODE + 10% or – + amb CC ...
Page 78
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM AC ELECTRICAL CHARACTERISTICS (6 CLOCK MODE) (Continued + 10% or – +85 C,V amb CC ...
Page 79
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM AC ELECTRICAL CHARACTERISTICS (12 CLOCK MODE + 10%, or – + amb CC ...
Page 80
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM AC ELECTRICAL CHARACTERISTICS (12 CLOCK MODE) (Continued + 10%, or – + amb ...
Page 81
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 82
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 83
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB 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 84
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM START or repeated START condition t RD SDA (INPUT/OUTPUT SCL (INPUT/OUTPUT HD;STA LOW HIGH V –0.5 CC 0.45V NOTE: AC ...
Page 85
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM V CC RST 89C660 89C662 89C664 (NC) XTAL2 89C668 CLOCK SIGNAL XTAL1 V SS Figure 68. I Test Condition, Active Mode. CC All other pins are disconnected ...
Page 86
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM PLCC44: plastic leaded chip carrier; 44 leads 2002 Oct 28 P89C660/P89C662/P89C664/ 86 Product data P89C668 SOT187-2 ...
Page 87
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM LQFP44: plastic low profile quad flat package; 44 leads; body 1.4 mm 2002 Oct 28 P89C660/P89C662/P89C664/ 87 Product data P89C668 SOT389-1 ...
Page 88
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM REVISION HISTORY Rev Date Description _4 20021028 Product data (9397 750 10403); replaces P89C660/P89C662/P89C664 of 2001 Jul 19 (9397 750 08584) and P89C668 of 2001 Jul 27 ...
Page 89
Philips Semiconductors 80C51 8-bit Flash microcontroller family 16KB/32KB/64KB ISP/IAP Flash with 512B/1KB/2KB/8KB RAM Data sheet status Product [1] Level Data sheet status [2] [3] status I Objective data Development II Preliminary data Qualification III Product data Production [1] Please consult ...