P87LPC764BD NXP Semiconductors, P87LPC764BD Datasheet
P87LPC764BD
Specifications of P87LPC764BD
Available stocks
Related parts for P87LPC764BD
P87LPC764BD Summary of contents
Page 1
P87LPC764 Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Product data Supersedes data of 2001 Oct 26 hilips Semiconductors INTEGRATED CIRCUITS 2003 Sep 03 ...
Page 2
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP GENERAL DESCRIPTION The P87LPC764 is a 20-pin single-chip microcontroller designed for low pin count applications demanding high-integration, low cost solutions over a wide range ...
Page 3
... DEVICE COMPARISON TABLE Part type P87LPC764BD/01, BDH/01 P87LPC764BDH, HDH P87LPC764BD, BN, FN, FD, FDH NOTE: 1. Please see AC and DC characteristics for more details. PIN CONFIGURATION, 20-PIN DIP, SO, AND TSSOP PACKAGES 2003 Sep 03 Frequency 20 MHz (5 V), ...
Page 4
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP LOGIC SYMBOL CMP2 CIN2B CIN2A CIN1B CIN1A CMPREF CMP1 T1 CLKOUT/X2 X1 2003 Sep TxD RxD T0 INT0 INT1 ...
Page 5
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP BLOCK DIAGRAM 4K BYTE CODE EPROM 128 BYTE DATA RAM PORT 2 CONFIGURABLE I/OS PORT 1 CONFIGURABLE I/OS PORT 0 CONFIGURABLE I/OS KEYPAD INTERRUPT ...
Page 6
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP FFFFh UNUSED CODE MEMORY SPACE FCFFh 32-BYTE CUSTOMER CODE SPACE (ACCESSIBLE VIA MOVC) FCE0h UNUSED CODE MEMORY SPACE 1000h 0FFFh 4 K BYTES ON-CHIP ...
Page 7
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP PIN DESCRIPTIONS MNEMONIC PIN NO. TYPE P0.0–P0.7 1, 13, 14, I/O Port 0: Port 8-bit I/O port with a user-configurable output ...
Page 8
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP SPECIAL FUNCTION REGISTERS SFR Name Description Address ACC* Accumulator AUXR1# Auxiliary Function Register B* B register Comparator 1 control CMP1# ACh register Comparator 2 ...
Page 9
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP SFR Name Description Address PSW* Program status word PT0AD# Port 0 digital input disable SCON* Serial port control Serial port data buffer SBUF register ...
Page 10
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP FUNCTIONAL DESCRIPTION Details of P87LPC764 functions will be described in the following sections. Enhanced CPU The P87LPC764 uses an enhanced 80C51 CPU which runs ...
Page 11
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP (P0.4) CIN1A (P0.3) CIN1B (P0.5) CMPREF V ref (P0.2) CIN2A (P0.1) CIN2B Figure 3. Comparator Input and Output Connections CPn, CNn, OEn = 0 ...
Page 12
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Internal Reference Voltage An internal reference voltage generator may supply a default reference when a single comparator input pin is used. The value of ...
Page 13
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Serial Interface 2 The I C bus uses two wires (SDA and SCL) to transfer information between devices connected to the ...
Page 14
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP I2CON Address: D8h 1 Bit Addressable 7 READ RDAT ATN CXA IDLE WRITE BIT SYMBOL FUNCTION I2CON.7 RDAT Read: the most recently received data ...
Page 15
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP ARL “Arbitration Loss” when transmit Active was set, but this device lost arbitration to another transmitter. Transmit Active is cleared when ARL ...
Page 16
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP I2CFG Address: C8h Bit Addressable 7 6 SLAVEN MASTRQ BIT SYMBOL FUNCTION I2CFG.7 SLAVEN Slave Enable. Writing a 1 this bit enables the slave ...
Page 17
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Table 1. Interaction of TIRUN with SLAVEN, MASTRQ, and MASTER SLAVEN, MASTRQ, TIRUN MASTER 2 The I C interface is disabled. Timer I is ...
Page 18
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP External Interrupt Inputs The P87LPC764 has two individual interrupt inputs as well as the Keyboard Interrupt function. The latter is described separately elsewhere in ...
Page 19
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP I/O Ports18 The P87LPC764 has 3 I/O ports, port 0, port 1, and port 2. The exact number of I/O pins available depend upon ...
Page 20
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Configuration Open Drain Output The open drain output configuration turns off all pull-ups and only drives the pull-down transistor of the port driver when ...
Page 21
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP P2M1 Address: A4h Not Bit Addressable 7 6 P2S P1S BIT SYMBOL FUNCTION P2M1.7 P2S When P2S = 1, this bit enables Schmitt trigger ...
Page 22
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP P0.7 KBI.7 P0.6 KBI.6 P0.5 KBI.5 P0.4 KBI.4 P0.3 KBI.3 P0.2 KBI.2 P0.1 KBI.1 P0.0 KBI.0 KBI Address: 86h Not Bit Addressable 7 6 ...
Page 23
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Oscillator The P87LPC764 provides several user selectable oscillator options, allowing optimization for a range of needs from high precision to lowest possible cost. These ...
Page 24
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP THE OSCILLATOR MUST BE CONFIGURED IN ONE OF THE FOLLOWING MODES: – LOW FREQUENCY CRYSTAL – MEDIUM FREQUENCY CRYSTAL – HIGH FREQUENCY CRYSTAL CAPACITOR ...
Page 25
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP FOSC2 (UCFG1.2) FOSC1 (UCFG1.1) FOSC0 (UCFG1.0) EXTERNAL CLOCK INPUT INTERNAL RC OSCILLATOR CRYSTAL: LOW FREQUENCY CRYSTAL: MEDIUM FREQUENCY CRYSTAL: HIGH FREQUENCY POWER MONITOR RESET ...
Page 26
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP For correct activation of Brownout Detect, the V no faster than 50 mV/ s. When V is restored, is should not rise DD faster ...
Page 27
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Table 8. Sources of Wakeup from Power Down Mode Wakeup Source Conditions External Interrupt The corresponding interrupt must be enabled. Keyboard ...
Page 28
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Low Voltage EPROM Operation The EPROM array contains some analog circuits that are not required when V is less than 4 V, but are ...
Page 29
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Timer/Counters The P87LPC764 has two general purpose counter/timers which are upward compatible with the standard 80C51 Timer 0 and Timer 1. Both can be ...
Page 30
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Mode 0 Putting either Timer into Mode 0 makes it look like an 8048 Timer, which is an 8-bit Counter with a divide-by-32 prescaler. ...
Page 31
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Mode 1 Mode 1 is the same as Mode 0, except that all 16 bits of the timer register (THn and TLn) are used. ...
Page 32
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP OSC OSC/12 T0 PIN C TR0 GATE INT0 PIN OSC/6 OR OSC/12 Figure 27. Timer/Counter 0 Mode 3 ...
Page 33
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Serial Port Control Register (SCON) The serial port control and status register is the Special Function Register SCON, shown in Figure 28. This register ...
Page 34
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Baud Rates The baud rate in Mode 0 is fixed: Mode 0 Baud Rate = CPU clock/6. The baud rate in Mode 2 depends ...
Page 35
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Table 10. Baud Rates, Timer Values, and CPU Clock Frequencies for SMOD1 = 1 Timer Co nt Timer Count 2400 4800 –1 0.2304 0.4608 ...
Page 36
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP More About UART Mode 0 Serial data enters and exits through RxD. TxD outputs the shift clock. 8 bits are transmitted/received: 8 data bits ...
Page 37
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP WRITE TO SBUF SERIAL PORT INTERRUPT REN RI LOAD SBUF READ SBUF S1 ... S6 S1 ... S6 S1 ...
Page 38
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP TB8 WRITE TO SBUF D TIMER 1 OVERFLOW CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 TRANSITION DETECTOR RxD P1.1 ALT INPUT ...
Page 39
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP More About UART Modes 2 and 3 Eleven bits are transmitted (through TxD), or received (through RxD): a start bit (0), 8 data bits ...
Page 40
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP WRITE TO SBUF D PHASE 2 CLOCK (1 OSC CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 TRANSITION DETECTOR BIT ...
Page 41
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP TB8 WRITE TO SBUF S D TIMER 1 OVERFLOW CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 TRANSITION DETECTOR RxD P1.1 ALT ...
Page 42
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Automatic Address Recognition Automatic Address Recognition is a feature which allows the UART to recognize certain addresses in the serial bit stream by using ...
Page 43
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP 500 kHz RC OSCILLATOR CLOCK OUT ENABLE WDCLK * WDTE STATE CLOCK WDTE + WDRUN WATCHDOG FEED DETECT BOF (PCON.5) POF (PCON.4) Figure 33. ...
Page 44
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Additional Features The AUXR1 register contains several special purpose control bits that relate to several chip features. AUXR1 is described in Figure 35. Software ...
Page 45
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP EPROM Characteristics Programming of the EPROM on the P87LPC764 is accomplished with a serial programming method. Commands, addresses, and data are transmitted to and ...
Page 46
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP UCFG2 Address: FD01h 7 6 SB2 SB1 BIT SYMBOL FUNCTION UCFG2.7, 6 SB2, SB1 EPROM security bits. See table entitled, “EPROM Security Bits” for ...
Page 47
... Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP DC ELECTRICAL CHARACTERISTICS (FOR P87LPC764BD, BN, BDH, FN, FD, FDH, BD/01, BDH/01 2 6.0 V unless otherwise specified SYMBOL SYMBOL PARAMETER PARAMETER I I Power su Power supply current operating ly current, o erating Power su Power supply current Idle mode ...
Page 48
... Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP COMPARATOR ELECTRICAL CHARACTERISTICS (FOR P87LPC764BD, BN, BDH, FN, FD, FDH, BD/01, BDH/01 3 6.0 V unless otherwise specified SYMBOL SYMBOL PARAMETER PARAMETER V Offset voltage comparator inputs IO V Common mode range comparator inputs ...
Page 49
... Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP AC ELECTRICAL CHARACTERISTICS (FOR P87LPC764BD, BDH, BN, FN, FD, FDH + – + amb DD SYMBOL SYMBOL FIGURE FIGURE External Clock f 39 Oscillator frequency (V osc f 39 Oscillator frequency (V osc t 39 Clock period and CPU timing cycle ...
Page 50
... Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP AC ELECTRICAL CHARACTERISTICS (FOR P87LPC764BD/01, BDH/ 6.0 V unless otherwise specified; V amb DD SYMBOL SYMBOL FIGURE FIGURE External Clock f 39 Oscillator frequency (V osc f 39 Oscillator frequency (V osc t 39 Clock period and CPU timing cycle ...
Page 51
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP DC ELECTRICAL CHARACTERISTICS (FOR P87LPC764HDH 4 5 – +125 C. DD amb SYMBOL SYMBOL PARAMETER ...
Page 52
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP COMPARATOR ELECTRICAL CHARACTERISTICS (FOR P87LPC764HDH 4 5 – +125 C DD amb SYMBOL SYMBOL PARAMETER ...
Page 53
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP AC ELECTRICAL CHARACTERISTICS (FOR P87LPC764HDH 4 5 – +125 C DD amb SYMBOL SYMBOL FIGURE ...
Page 54
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP t XLXL CLOCK t XHQX t QVXH OUTPUT DATA 0 WRITE TO SBUF t XHDV INPUT DATA VALID CLEAR RI V – 0.5 DD ...
Page 55
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP 10,000 1,000 4.0 V 3.3 V 2.7 V 100 1 10 Frequency (MHz) Figure 42. Typical Idd versus frequency (high frequency oscillator ...
Page 56
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP DIP20: plastic dual in-line package; 20 leads (300 mil) 2003 Sep 03 55 Product data P87LPC764 SOT146-1 ...
Page 57
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP SO20: plastic small outline package; 20 leads; body width 7.5 mm 2003 Sep 03 56 Product data P87LPC764 SOT163-1 ...
Page 58
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP TSSOP20: plastic thin shrink small outline package; 20 leads; body width 4.4 mm 2003 Sep 03 57 Product data P87LPC764 SOT360-1 ...
Page 59
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP REVISION HISTORY Rev Date Description _11 20030903 Product data (9397 750 11121); ECN 853-2401 30269 Modifications: Added BD/01, BDH/01 and HDH part types _10 ...
Page 60
Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kbyte OTP Purchase of Philips I to use the components in the specifications defined by Philips. This specification can be ordered using ...