P87LPC769 NXP Semiconductors, P87LPC769 Datasheet

The P87LPC769 is a 20-pin single-chip microcontroller designed forlow pin count applications demanding high-integration, low costsolutions over a wide range of performance requirements

P87LPC769

Manufacturer Part Number
P87LPC769
Description
The P87LPC769 is a 20-pin single-chip microcontroller designed forlow pin count applications demanding high-integration, low costsolutions over a wide range of performance requirements
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P87LPC769BD
Manufacturer:
PHILIPS
Quantity:
64
Part Number:
P87LPC769BD-A
Quantity:
246
Part Number:
P87LPC769FD
Manufacturer:
PHILIPS
Quantity:
53
Part Number:
P87LPC769HD
Manufacturer:
MAXP
Quantity:
1 000
Semiconductors
Preliminary data
Supersedes data of 2001 Jan 11
hilips
P87LPC769
Low power, low price, low pin count
(20 pin) microcontroller with 4 kB OTP
8-bit A/D, and DAC
INTEGRATED CIRCUITS
2002 Mar 12

Related parts for P87LPC769

P87LPC769 Summary of contents

Page 1

... P87LPC769 Low power, low price, low pin count (20 pin) microcontroller with 4 kB OTP 8-bit A/D, and DAC Preliminary data Supersedes data of 2001 Jan 11 hilips Semiconductors INTEGRATED CIRCUITS 2002 Mar 12 ...

Page 2

... Preliminary data P87LPC769 ...

Page 3

... Preliminary data P87LPC769 ...

Page 4

... The P87LPC769 is a 20-pin single-chip microcontroller designed for low pin count applications demanding high-integration, low cost solutions over a wide range of performance requirements. A member of the Philips low pin count family, the P87LPC769 offers programmable oscillator configurations for high and low speed crystals or RC operation, wide operating voltage range, programmable port output configurations, selectable Schmitt trigger inputs, LED drive outputs, and a built-in watchdog timer ...

Page 5

... DAC1/P1.6 P0.3/CIN1B/AD0 4 17 RST/P1.5 P0.4/CIN1A/AD1 P0.5/CMPREF/AD2 X1/P2 X2/CLKOUT/P2.0 P0.6/CMP1/AD3 8 13 INT1/P1.4 P0.7/ SDA/INT0/P1.3 P1.0/TxD 10 11 SCL/T0/P1.2 P1.1/RxD SU01366 Preliminary data P87LPC769 Drawing Number SOT163–1 TxD RxD T0 SCL INT0 SDA INT1 RST DAC1 DAC0 SU01367 ...

Page 6

... CONFIGURABLE I/OS KEYPAD INTERRUPT CONFIGURABLE CRYSTAL OR OSCILLATOR RESONATOR 2002 Mar 12 ACCELERATED 80C51 CPU INTERNAL BUS TIMER 0, 1 WATCHDOG TIMER AND OSCILLATOR ANALOG COMPARATORS CONVERTER OR DAC OUTPUT OUTPUT ON-CHIP POWER MONITOR RC (POWER-ON RESET, OSCILLATOR BROWNOUT RESET) 3 Preliminary data P87LPC769 UART A/D DAC SU01368 ...

Page 7

... MEMORY SPACE * The 87LPC769 does not support access to external data memory. However, the User Configuration Bytes are accessed via the MOVX instruction as if they were in external data memory. Figure 1. P87LPC769 Program and Data Memory Map 2002 Mar 12 FFh SPECIAL FUNCTION REGISTERS ...

Page 8

... I/O ports and peripherals to take on their default states, and the processor begins execution at address 0. When used as a port pin, P1 Schmitt trigger input only. DAC1 Output from Digital to Analog Converter 1 DAC0 Output from Digital to Analog Converter 0 5 Preliminary data P87LPC769 ...

Page 9

... EPROM configuration). CLKOUT CPU clock divided by 6 clock output when enabled via SFR bit and in conjunction with internal RC oscillator or external clock input. X1 Input to the oscillator circuit and internal clock generator circuits (when selected via the EPROM configuration). 6 Preliminary data P87LPC769 ...

Page 10

... DAC0 DAC1 RST INT1 A0h – – – – 84h (P0M1.7) (P0M1.6) (P0M1.5) (P0M1.4) 85h (P0M2.7) (P0M2.6) (P0M2.5) (P0M2.4) 7 Preliminary data P87LPC769 Reset Value LSB 00h ADCS RCCLK AADR1 AADR0 00h 1 SRST 0 – DPS 02h F3 ...

Page 11

... TF1 TR1 TF0 TR0 8Ch 8Dh 8Ah 8Bh 89h GATE C A7h – – WDOVF WDRUN A6h 8 Preliminary data P87LPC769 Reset Value LSB 1 – – 00h (P1M1.1) (P1M1.0) 1 – – 00h (P1M2.1) (P1M2.0) T1OE T0OE 00h (P2M1.1) (P2M1.0) 1 – – ...

Page 12

... Details of P87LPC769 functions will be described in the following sections. Enhanced CPU The P87LPC769 uses an enhanced 80C51 CPU which runs at twice the speed of standard 80C51 devices. This means that the performance of the P87LPC769 running at 10 MHz is exactly the same as that of a standard 80C51 running at 20 MHz. A machine cycle consists of 6 oscillator cycles, and most instructions execute clocks ...

Page 13

... CPU clock rate) + 108 RC clocks to a maximum of 4 machine cycles (at the CPU clock rate) + 112 RC clocks. Example A/D conversion times at various CPU clock rates are shown in Table 1. In Table 1, maximum times for RCCLK = 1 use an 10 Preliminary data P87LPC769 RCCLK AADR1 ...

Page 14

... A/D accuracy is also affected by noise generated elsewhere in the application, power supply noise, and power supply regulation. Since the P87LPC769 power pins are also used as the A/D reference and supply, the power supply has a very direct affect on the accuracy of A/D readings. Using the A/D without Power Down mode while the clock is divided through the use of CLKR or DIVM has an adverse effect on A/D accuracy ...

Page 15

... Get A/D result, ; and save it in memory. ; Clear the A/D completion flag. ; Clear the A/D channel number. ; Restore accumulator. ; Add in the new channel number. ; Start A/D conversion. ; Wait for ADCI to be set. ; Get A/D result. ; Clear the A/D completion flag. ; Clear the A/D channel number. 12 Preliminary data P87LPC769 ...

Page 16

... DAC accuracy is affected by noise generated on-chip and elsewhere in the application. Since the P87LPC769 power pins are used for the DAC references, the power supply also affects the accuracy of the DAC outputs. The ideal DAC output may be calculated as follows: Result + (DAC Value ) 0 ...

Page 17

... Low power, low price, low pin count (20 pin) microcontroller with 4 kB OTP 8-bit A/D, and DAC Analog Comparators Two analog comparators are provided on the P87LPC769. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such that the output is a ...

Page 18

... COn CMPREF CINnA COn V (1.23V) ref CINnB COn CMPREF CINnB COn V (1.23V) ref Figure 7. Comparator Configurations 15 Preliminary data P87LPC769 CMP1 (P0.6) CMF1 INTERRUPT CMP2 (P0.0) CMF2 INTERRUPT SU01153 CPn, CNn, OEn = COn CMPn – CPn, CNn, OEn = COn CMPn – CPn, CNn, OEn = ...

Page 19

... Output to CMP1 pin enabled. ; The comparator has to start up for at ; least 10 microseconds before use. ; Clear comparator 1 interrupt flag. ; Enable the comparator 1 interrupt. The ; priority is left at the current value. ; Enable the interrupt system (if needed). ; Return to caller. Figure 8. 16 Preliminary data P87LPC769 SU01189 ...

Page 20

... The first five of these times are 4.7 ms (see I are covered by the low order three bits of timer I. Timer I is clocked by the P87LPC769 CPU clock. Timer I can be pre-loaded with one of four values to optimize timing for different oscillator frequencies. At lower frequencies, software response time is increased and will degrade maximum performance of the I register I2CFG description for prescale values (CT0, CT1) ...

Page 21

... STR, or STP is set, clearing DRDY will not release SCL to high that the I C will not the next bit program detects ATN = 1, and DRDY = 0, it should examine ARL, STR, and STP. 18 Preliminary data P87LPC769 Reset Value: 81h 1 0 — XSTR XSTP 2 ...

Page 22

... XDAT = 0; it sets Transmit Active and drives SDA low during the SCL low time. After SCL goes high, the I hardware waits for the suitable minimum time and then releases SDA to high to make the stop condition. 19 Preliminary data P87LPC769 2 C interface will only drive 2 C hardware to 2 ...

Page 23

... SCL when this device is a master on the I controls both of these parameters, and also the timing for stop and start conditions. Regarding Software Response Time Because the P87LPC769 can run at 10 MHz, and because the I interface is optimized for high-speed operation quite likely that 2 ...

Page 24

... Interrupts The P87LPC769 uses a four priority level interrupt structure. This allows great flexibility in controlling the handling of the P87LPC769’s many interrupt sources. The P87LPC769 supports interrupt sources. Each interrupt source can be individually enabled or disabled by setting or clearing a bit in registers IEN0 or IEN1. The IEN0 register also contains a global disable bit, EA, which disables all interrupts at once ...

Page 25

... IEn when the interrupt is level sensitive, it simply tracks the input pin level external interrupt is enabled when the P87LPC769 is put into Power Down or Idle mode, the interrupt will cause the processor to wake up and resume operation. Refer to the section on Power Reduction Modes for details ...

Page 26

... Low power, low price, low pin count (20 pin) microcontroller with 4 kB OTP 8-bit A/D, and DAC I/O Ports The P87LPC769 has 3 I/O ports, port 0, port 1, and port 2. The exact number of I/O pins available depend upon the oscillator and reset options chosen. At least 15 pins of the P87LPC769 may be used as I/Os when a two-pin external oscillator and an external reset circuit are used ...

Page 27

... The last two functions are described in the Timer/Counters and Oscillator sections respectively. The enable bits for all of these functions are shown in Figure 16. Each I/O port of the P87LPC769 may be selected to use TTL level inputs or Schmitt inputs with hysteresis. A single configuration bit determines this selection for the entire port. Port pins P1.2, P1.3, and P1 ...

Page 28

... P0S When P0S = 1, this bit enables Schmitt trigger inputs on Port 0. P2M1.4 ENCLK When ENCLK is set and the P87LPC769 is configured to use the on-chip RC oscillator, a clock output is enabled on the X2 pin (P2.0). Refer to the Oscillator section for details. P2M1.3 ENT1 When set, the P.7 pin is toggled whenever Timer 1 overflows. The output frequency is therefore one half of the Timer 1 overflow rate ...

Page 29

... Note: the Keyboard Interrupt must be enabled in order for the settings of the KBI register to be effective. The interrupt flag (KBF) is located at bit 7 of AUXR1. 2002 Mar 12 EKB (FROM IEN1 REGISTER) Figure 17. Keyboard Interrupt KBI.5 KBI.4 KBI.3 KBI.2 KBI.1 Figure 18. Keyboard Interrupt Register (KBI) 26 Preliminary data P87LPC769 KBF (KBI INTERRUPT) SU01163 Reset Value: 00h 1 0 KBI.0 SU01164 ...

Page 30

... Clock Output The P87LPC769 supports a clock output function when either the on-chip RC oscillator or external clock input options are selected. This allows external devices to synchronize to the P87LPC769. When enabled, via the ENCLK bit in the P2M1 register, the clock output appears on the X2/CLKOUT pin whenever the on-chip oscillator is running, including in Idle mode ...

Page 31

... A CLOCK OUTPUT MAY BE OBTAINED ON THE X2 PIN BY SETTING THE ENCLK BIT IN THE P2M1 REGISTER. 2002 Mar 12 QUARTZ CRYSTAL OR CERAMIC RESONATOR Figure 19. Using the Crystal Oscillator CMOS COMPATIBLE EXTERNAL OSCILLATOR SIGNAL Figure 20. Using an External Clock Input 28 Preliminary data P87LPC769 87LPC769 SU01374 87LPC769 X1 X2 SU01375 ...

Page 32

... P87LPC769 instruction and peripheral timing to match standard 80C51 timing by dividing the CPU clock by two. Default timing for the P87LPC769 is 6 CPU clocks per machine cycle while standard 80C51 timing is 12 clocks per machine cycle. This division also applies to peripheral timing, allowing 80C51 code that is oscillator frequency and/or timer rate dependent ...

Page 33

... When this feature is activated, the POF flag in the PCON register is set to indicate an initial power up condition. The POF flag will remain set until cleared by software. Power Reduction Modes The P87LPC769 supports Idle and Power Down modes of power reduction. Idle Mode The Idle mode leaves peripherals running in order to allow them to activate the processor when an interrupt is generated ...

Page 34

... The corresponding interrupt must be enabled. Some chip functions continue to operate and draw power during Power Down mode, increasing the total power used during Power 2002 Mar 12 Down. These include the Brownout Detect, Watchdog Timer, Comparators, and the A/D Converter. 31 Preliminary data P87LPC769 ...

Page 35

... While the signal on the RST pin is low, the P87LPC769 is held in reset until the signal goes high. The watchdog timer on the P87LPC769 can act as an oscillator fail detect because it uses an independent, fully on-chip oscillator. UCFG1 is described in the System Configuration Bytes section of this datasheet ...

Page 36

... Low power, low price, low pin count (20 pin) microcontroller with 4 kB OTP 8-bit A/D, and DAC Timer/Counters The P87LPC769 has two general purpose counter/timers which are upward compatible with the standard 80C51 Timer 0 and Timer 1. Both can be configured to operate either as timers or event counters (see Figure 25) ...

Page 37

... Figure 27. There are two different GATE bits, one for Timer 1 (TMOD.7) and one for Timer 0 (TMOD.3 TF0 TR0 IE1 IT1 IE0 TLn THn (5 BITS) (8 BITS) CONTROL TOGGLE 34 Preliminary data P87LPC769 Reset Value: 00h 0 IT0 SU01172 OVERFLOW TFn INTERRUPT Tn PIN TnOE SU01173 ...

Page 38

... Mode 3 is provided for applications that require an extra 8-bit timer. With Timer 0 in Mode 3, an P87LPC769 can look like it has three Timer/Counters. When Timer Mode 3, Timer 1 can be turned on and off by switching it into and out of its own Mode 3. It can still be used by the serial port as a baud rate generator any application not requiring an interrupt ...

Page 39

... The port outputs will be a logic 1 prior to the first timer overflow when this mode is turned on. UART The P87LPC769 includes an enhanced 80C51 UART. The baud rate source for the UART is timer 1 for modes 1 and 3, while the rate is fixed in modes 0 and 2. Because CPU clocking is different on the P87LPC769 than on the standard 80C51, baud rate calculation is somewhat different ...

Page 40

... SM2 REN TB8 RB8 Baud Rate CPU clock/6 Variable (see text) CPU clock/32 or CPU clock/16 Variable (see text) Figure 31. Serial Port Control Register (SCON) 37 Preliminary data P87LPC769 Reset Value: 00h SU01157 ...

Page 41

... Preliminary data P87LPC769 CPU clock frequency 192 ( SMOD1 + 1) 256 * (TH1) 19.2k 38.4k * 3.6864 * 7.3728 * 7.3728 – – – – – – – – – – ...

Page 42

... Preliminary data P87LPC769 38.4k 57.6k * 3.6864 5.5296 * 7.3728 – – – – – – – – – – – – – – – – ...

Page 43

... Ten bits are transmitted (through TxD), or received (through RxD): a start bit (0), 8 data bits (LSB first), and a stop bit (1). On receive, the stop bit goes into RB8 in SCON. In the P87LPC769 the baud rate is determined by the Timer 1 overflow rate. Figure 33 shows a simplified functional diagram of the serial port in Mode 1, and associated timings for transmit receive ...

Page 44

... INTERNAL BUS S1 ... S6 S1 ... S6 S1 ... S6 S1 ... S6 S1 ... S6 S1 ... Figure 32. Serial Port Mode 0 41 Preliminary data P87LPC769 RxD P1.1 ALT OUTPUT FUNCTION TxD P1.0 ALT OUTPUT FUNCTION SHIFT CLOCK RXD P1.1 ALT INPUT FUNCTION S1 ... S6 S1 ... S6 S1 ... S6 TRANSMIT D7 RECEIVE D6 ...

Page 45

... INPUT SHIFT REGISTER DETECTOR LOAD SBUF SBUF READ SBUF 80C51 INTERNAL BUS Figure 33. Serial Port Mode 1 42 Preliminary data P87LPC769 TxD P1.0 ALT OUTPUT FUNCTION SERIAL PORT INTERRUPT TRANSMIT D6 D7 STOP BIT D6 D7 STOP BIT RECEIVE SU01179 ...

Page 46

... SM2 has no effect in Mode 0, and in Mode 1 can be used to check the validity of the stop bit, although this is better done with the Framing Error flag Mode 1 reception, if SM2 = 1, the receive interrupt will not be activated unless a valid stop bit is received. 43 Preliminary data P87LPC769 ...

Page 47

... INPUT SHIFT REGISTER LOAD SBUF SBUF READ SBUF 80C51 INTERNAL BUS Figure 34. Serial Port Mode 2 44 Preliminary data P87LPC769 TxD P1.0 ALT OUTPUT FUNCTION SERIAL PORT INTERRUPT TRANSMIT D6 D7 TB8 STOP BIT D6 D7 RB8 STOP BIT RECEIVE SU01180 ...

Page 48

... INPUT SHIFT REGISTER DETECTOR LOAD SBUF SBUF READ SBUF 80C51 INTERNAL BUS Figure 35. Serial Port Mode 3 45 Preliminary data P87LPC769 TxD P1.0 ALT OUTPUT FUNCTION SERIAL PORT INTERRUPT TRANSMIT D6 D7 TB8 STOP BIT D6 D7 RB8 STOP BIT RECEIVE SU01181 ...

Page 49

... If the CPU clock was still running, code execution will begin immediately after that. If the processor was in Power Down mode, the watchdog reset will start the oscillator and code execution will resume after the oscillator is stable. 46 Preliminary data P87LPC769 ...

Page 50

... Minimum Time Nominal Time 131 ms 165 ms 262 ms 330 ms 524 ms 660 ms 1.05 sec 1.3 sec 2.1 sec 47 Preliminary data P87LPC769 WATCHDOG RESET WATCHDOG INTERRUPT WDTE (UCFG1.7) S WDOVF Q (WDCON.5) R SU01635 1 0 WDS0 Maximum Time 180 ms 360 ms 719 ms 1 ...

Page 51

... Reserved. User code should always write a zero to this bit position. AUXR1.3 SRST Software Reset. When set by software, resets the P87LPC769 hardware reset occurred. AUXR1.2 — This bit contains a hard-wired 0. Allows toggling of the DPS bit by incrementing AUXR1, without interfering with other bits in the register. ...

Page 52

... UCFG bytes are programmed. System Configuration Bytes A number of user configurable features of the P87LPC769 must be defined at power up and therefore cannot be set by the program after start of execution. Those features are configured through the use of two EPROM bytes that are programmed in the same manner as the EPROM program space ...

Page 53

... Parameters are valid over operating temperature range unless otherwise specified. All voltages are with respect to VSS unless otherwise noted. 2002 Mar — — — — — Protection Description 50 Preliminary data P87LPC769 Unprogrammed Value: FFh 0 — SU01186 RATING UNIT –55 to +125 C –65 to +150 +11.0 V –0 +0.5V ...

Page 54

... MHz or less are guaranteed to continue to execute instructions correctly OSC = 2 not guaranteed MHz or less are guaranteed to continue to execute instructions correctly OSC = 4.0 V and F > 10 MHz is not guaranteed. DD OSC 51 Preliminary data P87LPC769 LIMITS UNIT UNIT 1,2 MIN TYP MAX ...

Page 55

... A source impedance higher than this driving an A/D input may result in loss of precision and erroneous readings. 2002 Mar 12 = – +125 C, unless otherwise specified amb TEST CONDITIONS TEST CONDITIONS 1 0 < V < TEST CONDITIONS TEST CONDITIONS A/D enabled 100kHz 52 Preliminary data P87LPC769 LIMITS UNIT UNIT MIN TYP MAX –0 –50 dB 250 500 ns ...

Page 56

... Center of a step of the actual transfer curve. 2002 Mar 12 (2) (1) (5) (4) (3) 1 LSB (ideal) 250 251 (LSB ) IN ideal 1 LSB = ). e Figure 41. A/D Conversion Characteristics 53 Preliminary data P87LPC769 Offset Gain error error 252 253 254 255 256 256 SU01355 ...

Page 57

... Applies only to an external clock source, not when a crystal is connected to the X1 and X2 pins. 2002 Mar MHz OSC MHz OSC MHz OSC MHz OSC 54 Preliminary data P87LPC769 LIMITS UNIT UNIT MIN MAX 0 20 MHz 0 10 MHz 1 ...

Page 58

... DD – 0 CHCL CLCX t C Figure 43. External Clock Timing 1000 6.0 V 5.0 V 100 4.0 V 3 100 100 SU01202 Figure 45. Typical Idd versus frequency (medium frequency 55 Preliminary data P87LPC769 SET TI VALID VALID VALID SET RI SU01187 t CHCX t CLCH SU01188 6.0 V 6.0 V 5.0 V 5.0 V 4.0 V 3.3 V 2.7 V 2.7 V 1,000 ...

Page 59

... V 4.0 V 1,000 3.3 V 2.7 V 100 10 1 10,000 100,000 10 SU01205 Figure 50. Typical Idle Idd versus frequency (external clock, 5.0 V 4.0 V 3.3 V 10,000 100,000 SU01208 56 Preliminary data P87LPC769 4.0 V 3.3 V 2.7 V 100 1,000 10,000 Frequency (kHz) SU01206 25 C, LPEP=1) 4.0 V 3.3 V 2.7 V 100 1,000 10,000 Frequency (kHz) SU01207 25 C, LPEP=1) ...

Page 60

... Philips Semiconductors Low power, low price, low pin count (20 pin) microcontroller with 4 kB OTP 8-bit A/D, and DAC SO20: plastic small outline package; 20 leads; body width 7.5 mm 2002 Mar 12 57 Preliminary data P87LPC769 SOT163-1 ...

Page 61

... REVISION HISTORY Date CPCN 2002 Mar 12 9397 750 09559 2001 Jan 11 9397 750 07923 2002 Mar 12 Description – Added revision history – Interrupt section: BOF is the Interrupt Flag for Brownout Detect (not BOD) – Updated Reset section Previous release 58 Preliminary data P87LPC769 ...

Page 62

... Mar components conveys a license under the Philips’ system provided the system conforms to the Fax: + 24825 Document order number: 59 Preliminary data P87LPC769 2 C patent Koninklijke Philips Electronics N.V. 2002 All rights reserved. Printed in U.S.A. Date of release: 03-02 9397 750 09559 ...

Related keywords