P87LPC767BN NXP Semiconductors, P87LPC767BN Datasheet

no-image

P87LPC767BN

Manufacturer Part Number
P87LPC767BN
Description
MCU 8-Bit 87LP 80C51 CISC 4KB EPROM 3.3V/5V 20-Pin PDIP Tube
Manufacturer
NXP Semiconductors
Datasheet

Specifications of P87LPC767BN

Package
20PDIP
Device Core
80C51
Family Name
87LP
Maximum Speed
20 MHz
Ram Size
128 Byte
Program Memory Size
4 KB
Operating Supply Voltage
3.3|5 V
Data Bus Width
8 Bit
Program Memory Type
EPROM
Number Of Programmable I/os
18
Interface Type
I2C/UART
On-chip Adc
4-chx8-bit
Operating Temperature
0 to 70 °C
Number Of Timers
2

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87LPC767BN
Manufacturer:
ST
Quantity:
34 000
Part Number:
P87LPC767BNЈ¬112
Manufacturer:
NXP
Quantity:
3 425
Semiconductors
Product data
Supersedes data of 2001 Aug 07
hilips
P87LPC767
Low power, low price, low pin count
(20 pin) microcontroller with 4-kbyte OTP
and 8-bit A/D converter
INTEGRATED CIRCUITS
2002 Mar 25

Related parts for P87LPC767BN

P87LPC767BN Summary of contents

Page 1

P87LPC767 Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Product data Supersedes data of 2001 Aug 07 hilips Semiconductors INTEGRATED CIRCUITS 2002 Mar 25 ...

Page 2

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter GENERAL DESCRIPTION . . . . . . . . . . . . . . . . . . . ...

Page 3

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Mode ...

Page 4

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter GENERAL DESCRIPTION The P87LPC767 is a 20-pin single-chip microcontroller designed for low pin count applications demanding high-integration, low cost solutions over ...

Page 5

... Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter ORDERING INFORMATION Type number Package Name Description P87LPC767BN DIP20 plastic dual in-line package; 20 leads (300 mil) P87LPC767BD SO20 plastic small outline package; 20 leads; body width 7.5 mm P87LPC767FN DIP20 plastic dual in-line package ...

Page 6

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter BLOCK DIAGRAM 4K BYTE CODE EPROM 128 BYTE DATA RAM PORT 2 CONFIGURABLE I/OS PORT 1 CONFIGURABLE I/OS PORT 0 CONFIGURABLE ...

Page 7

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter FFFFh UNUSED CODE MEMORY SPACE FCFFh 32-BYTE CUSTOMER CODE SPACE (ACCESSIBLE VIA MOVC) FCE0h UNUSED CODE MEMORY SPACE 1000h 0FFFh 4 ...

Page 8

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter PIN DESCRIPTIONS MNEMONIC PIN NO. TYPE P0.0–P0.7 1, 13, 14, I/O Port 0: Port 8-bit I/O port with ...

Page 9

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter P2.0–P2 I/O Port 2: Port 2-bit I/O port with a user-configurable output type. Port 2 latches ...

Page 10

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter SFR Name Description Address IP1* Interrupt priority 1 IP1H# Interrupt priority 1 high byte KBI# Keyboard Interrupt P0* Port 0 P1* ...

Page 11

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter FUNCTIONAL DESCRIPTION Details of P87LPC767 functions will be described in the following sections. Enhanced CPU The P87LPC767 uses an enhanced 80C51 ...

Page 12

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter ADCON Address: C0h ENADC Bit addressable Reset Value: 00h BIT SYMBOL FUNCTION ADCON.7 ENADC When ENADC = 1, the A/D is ...

Page 13

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Table 1. Example A/D Conversion Times CPU Clock Rate CPU Clock Rate RCCLK = 0 RCCLK = 0 32 kHz NA ...

Page 14

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Code Examples for the A/D The first piece of sample code shows an example of port configuration for use with the ...

Page 15

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Analog Comparators Two analog comparators are provided on the P87LPC767. Input and output options allow use of the comparators in a ...

Page 16

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter (P0.4) CIN1A (P0.3) CIN1B (P0.5) CMPREF V ref (P0.2) CIN2A (P0.1) CIN2B Figure 5. Comparator Input and Output Connections CPn, CNn, ...

Page 17

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Internal Reference Voltage An internal reference voltage generator may supply a default reference when a single comparator input pin is used. ...

Page 18

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Serial Interface 2 The I C bus uses two wires (SDA and SCL) to transfer information between devices ...

Page 19

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter I2CON Address: D8h 1 Bit Addressable 7 READ RDAT ATN CXA IDLE WRITE BIT SYMBOL FUNCTION I2CON.7 RDAT Read: the most ...

Page 20

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter ARL “Arbitration Loss” when transmit Active was set, but this device lost arbitration to another transmitter. Transmit Active is ...

Page 21

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter I2CFG Address: C8h Bit Addressable 7 6 SLAVEN MASTRQ BIT SYMBOL FUNCTION I2CFG.7 SLAVEN Slave Enable. Writing a 1 this bit ...

Page 22

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Table 2. Interaction of TIRUN with SLAVEN, MASTRQ, and MASTER SLAVEN, MASTRQ, TIRUN MASTER 2 The I C interface is disabled. ...

Page 23

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter External Interrupt Inputs The P87LPC767 has two individual interrupt inputs as well as the Keyboard Interrupt function. The latter is described ...

Page 24

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter I/O Ports The P87LPC767 has 3 I/O ports, port 0, port 1, and port 2. The exact number of I/O pins ...

Page 25

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Configuration Open Drain Output The open drain output configuration turns off all pull-ups and only drives the pull-down transistor of the ...

Page 26

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter P2M1 Address: A4h Not Bit Addressable 7 6 P2S P1S BIT SYMBOL FUNCTION P2M1.7 P2S When P2S = 1, this bit ...

Page 27

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter 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 ...

Page 28

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Oscillator The P87LPC767 provides several user selectable oscillator options, allowing optimization for a range of needs from high precision to lowest ...

Page 29

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter THE OSCILLATOR MUST BE CONFIGURED IN ONE OF THE FOLLOWING MODES: – LOW FREQUENCY CRYSTAL – MEDIUM FREQUENCY CRYSTAL – HIGH ...

Page 30

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter FOSC2 (UCFG1.2) FOSC1 (UCFG1.1) FOSC0 (UCFG1.0) EXTERNAL CLOCK INPUT INTERNAL RC OSCILLATOR CRYSTAL: LOW FREQUENCY CRYSTAL: MEDIUM FREQUENCY CRYSTAL: HIGH FREQUENCY ...

Page 31

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter For correct activation of Brownout Detect, the V no faster than 50 mV/ s. When V is restored, is should not ...

Page 32

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Table 9. Sources of Wakeup from Power Down Mode Wakeup Source Conditions External Interrupt The corresponding interrupt must ...

Page 33

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Low Voltage EPROM Operation The EPROM array contains some analog circuits that are not required when V is less than 4 ...

Page 34

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Timer/Counters The P87LPC767 has two general purpose counter/timers which are upward compatible with the standard 80C51 Timer 0 and Timer 1. ...

Page 35

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Mode 0 Putting either Timer into Mode 0 makes it look like an 8048 Timer, which is an 8-bit Counter with ...

Page 36

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Mode 1 Mode 1 is the same as Mode 0, except that all 16 bits of the timer register (THn and ...

Page 37

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter OSC OSC/12 T0 PIN C TR0 GATE INT0 PIN OSC/6 OR OSC/12 Figure 29. Timer/Counter ...

Page 38

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Serial Port Control Register (SCON) The serial port control and status register is the Special Function Register SCON, shown in Figure ...

Page 39

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Baud Rates The baud rate in Mode 0 is fixed: Mode 0 Baud Rate = CPU clock/6. The baud rate in ...

Page 40

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Table 11. Baud Rates, Timer Values, and CPU Clock Frequencies for SMOD1 = 1 Timer Co nt Timer Count 2400 4800 ...

Page 41

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter More About UART Mode 0 Serial data enters and exits through RxD. TxD outputs the shift clock. 8 bits are transmitted/received: ...

Page 42

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter WRITE TO SBUF SERIAL PORT INTERRUPT REN RI LOAD SBUF READ SBUF S1 ... S6 S1 ...

Page 43

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter TB8 WRITE TO SBUF D TIMER 1 OVERFLOW CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 TRANSITION DETECTOR RxD ...

Page 44

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter More About UART Modes 2 and 3 Eleven bits are transmitted (through TxD), or received (through RxD): a start bit (0), ...

Page 45

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter WRITE TO SBUF D PHASE 2 CLOCK (1 OSC CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 ...

Page 46

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter TB8 WRITE TO SBUF S D TIMER 1 OVERFLOW CL 2 SMOD1 = 0 SMOD1 = 1 16 1-TO-0 TRANSITION DETECTOR ...

Page 47

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Automatic Address Recognition Automatic Address Recognition is a feature which allows the UART to recognize certain addresses in the serial bit ...

Page 48

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter 500 kHz RC OSCILLATOR CLOCK OUT ENABLE WDCLK * WDTE STATE CLOCK WDTE + WDRUN WATCHDOG FEED DETECT BOF (PCON.5) POF ...

Page 49

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Additional Features The AUXR1 register contains several special purpose control bits that relate to several chip features. AUXR1 is described in ...

Page 50

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter EPROM Characteristics Programming of the EPROM on the P87LPC767 is accomplished with a serial programming method. Commands, addresses, and data are ...

Page 51

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter UCFG2 Address: FD01h 7 6 SB2 SB1 BIT SYMBOL FUNCTION UCFG2.7, 6 SB2, SB1 EPROM security bits. See table entitled, “EPROM ...

Page 52

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter DC ELECTRICAL CHARACTERISTICS 6.0 V unless otherwise specified SYMBOL PARAMETER SYMBOL PARAMETER I I ...

Page 53

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter SYMBOL SYMBOL PARAMETER PARAMETER V Offset voltage comparator inputs IO V Common mode range comparator inputs CR 1 CMRR Common mode ...

Page 54

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter 255 254 253 252 251 250 7 Code Out Offset ...

Page 55

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter AC ELECTRICAL CHARACTERISTICS +70 C, – + – +125 C; ...

Page 56

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter t XLXL CLOCK t XHQX t QVXH OUTPUT DATA 0 WRITE TO SBUF t XHDV INPUT DATA VALID CLEAR RI V ...

Page 57

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter 10,000 1,000 4.0 V 3.3 V 2.7 V 100 1 10 Frequency (MHz) Figure 45. Typical Idd versus frequency (high frequency ...

Page 58

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter DIP20: plastic dual in-line package; 20 leads (300 mil) 2002 Mar 25 55 Product data P87LPC767 SOT146-1 ...

Page 59

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter SO20: plastic small outline package; 20 leads; body width 7.5 mm 2002 Mar 25 56 Product data P87LPC767 SOT163-1 ...

Page 60

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter REVISION HISTORY Date CPCN 2002 Mar 25 9397 750 09557 2001 Aug 07 9397 750 08675 2002 Mar 25 Description – ...

Page 61

Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4-kbyte OTP and 8-bit A/D converter Purchase of Philips I to use the components in the specifications defined by Philips. This specification can ...

Related keywords