P89LPC901FD,112 NXP Semiconductors, P89LPC901FD,112 Datasheet
P89LPC901FD,112
Specifications of P89LPC901FD,112
568-1994-2
568-1994-2
935273904112
P89LPC901FD
Related parts for P89LPC901FD,112
P89LPC901FD,112 Summary of contents
Page 1
P89LPC901/902/903 8-bit microcontrollers with two-clock 80C51 core Flash with 128-byte RAM Rev. 05 — 17 December 2004 1. General description The P89LPC901/902/903 are single-chip microcontrollers in low-cost 8-pin packages, based on a high performance processor architecture ...
Page 2
Philips Semiconductors Serial Flash In-Circuit Programming (ICP) allows simple production coding with commercial EPROM programmers. Flash security bits prevent reading of sensitive application programs. Watchdog timer with separate on-chip oscillator, requiring no external components. The watchdog prescaler is selectable from ...
Page 3
Philips Semiconductors 3. Ordering information Table 1: Type number P89LPC901FD P89LPC902FD P89LPC903FD P89LPC901FN P89LPC902FN 3.1 Ordering options Table 2: Type number P89LPC901xx P89LPC902xx P89LPC903xx 9397 750 14465 Product data P89LPC901/902/903 8-bit microcontrollers with two-clock 80C51 core Ordering information Package Name ...
Page 4
Philips Semiconductors 4. Block diagram P89LPC901 PROGRAMMABLE OSCILLATOR DIVIDER CRYSTAL OR RESONATOR Fig 1. P89LPC901 block diagram. 9397 750 14465 Product data 8-bit microcontrollers with two-clock 80C51 core HIGH PERFORMANCE ACCELERATED 2-CLOCK 80C51 CPU 1 kB CODE FLASH INTERNAL BUS ...
Page 5
Philips Semiconductors P89LPC902 CODE FLASH CONFIGURABLE I/Os WATCHDOG TIMER AND OSCILLATOR PROGRAMMABLE OSCILLATOR DIVIDER Fig 2. P89LPC902 block diagram. 9397 750 14465 Product data 8-bit microcontrollers with two-clock 80C51 core HIGH PERFORMANCE ACCELERATED 2-CLOCK 80C51 CPU 1 kB INTERNAL BUS ...
Page 6
Philips Semiconductors P89LPC903 CODE FLASH CONFIGURABLE I/Os WATCHDOG TIMER AND OSCILLATOR PROGRAMMABLE OSCILLATOR DIVIDER OSCILLATOR Fig 3. P89LPC903 block diagram. 9397 750 14465 Product data 8-bit microcontrollers with two-clock 80C51 core HIGH PERFORMANCE ACCELERATED 2-CLOCK 80C51 CPU 1 kB INTERNAL ...
Page 7
Philips Semiconductors 5. Pinning information 5.1 Pinning handbook, halfpage CLKOUT/XTAL2/P3.0 Fig 4. P89LPC901 pinning (SO8). handbook, halfpage CLKOUT/XTAL2/P3.0 Fig 5. P89LPC901 pinning (DIP8). handbook, halfpage Fig 6. P89LPC902 pinning (SO8). handbook, halfpage Fig 7. P89LPC902 pinning (DIP8). 9397 750 14465 ...
Page 8
Philips Semiconductors handbook, halfpage Fig 8. P89LPC903 pinning (SO8). 5.2 Pin description Table 3: P89LPC901 pin description Symbol Pin Type P0.0 to P0.6 I 9397 750 14465 Product data 8-bit microcontrollers with ...
Page 9
Philips Semiconductors Table 3: P89LPC901 pin description Symbol Pin Type P1.0 to P1 P3.0 to P3.1 I 9397 750 ...
Page 10
Philips Semiconductors Table 4: P89LPC902 pin description Symbol Pin Type P0.0 to P0.6 I P1 ...
Page 11
Philips Semiconductors Table 5: P89LPC903 pin description Symbol Pin Type P0.0 to P0.6 I P1.0 to P1 ...
Page 12
Philips Semiconductors 6. Logic symbols KBI4 KBI5 CLKOUT Fig 9. P89LPC901 logic symbol. KBI4 CMPREF KBI5 KBI6 KBI2 KBI0 Fig 10. P89LPC902 logic symbol. KBI4 KBI5 CMPREF KBI2 Fig 11. P89LPC903 logic symbol. 9397 750 14465 Product data 8-bit microcontrollers ...
Page 13
Philips Semiconductors Table 6 device features, please see Table 6: Product comparison overview Type number External CLKOUT output T0 PWM output CMP2 input crystal pins P89LPC901xx X P89LPC902xx - P89LPC903xx - 9397 750 14465 Product data 8-bit microcontrollers with two-clock ...
Page 14
Philips Semiconductors 7. Special function registers Remark: Special Function Registers (SFRs) accesses are restricted in the following ways: • User must not attempt to access any SFR locations not defined. • Accesses to any defined SFR locations must be strictly ...
Page 15
Table 7: P89LPC901 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H AUXR1 Auxiliary function register A2H Bit address B* B register ...
Page 16
Table 7: P89LPC901 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. KBMASK Keypad interrupt mask 86H register KBPATN Keypad pattern register 93H Bit address P0* Port ...
Page 17
Table 7: P89LPC901 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address TCON* Timer 0 and 1 control 88H TH0 Timer 0 high 8CH TH1 ...
Page 18
Table 8: P89LPC902 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H AUXR1 Auxiliary function register A2H Bit address B* B register ...
Page 19
Table 8: P89LPC902 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. KBCON Keypad control register 94H KBMASK Keypad interrupt mask 86H register KBPATN Keypad pattern register ...
Page 20
Table 8: P89LPC902 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address TCON* Timer 0 and 1 control 88H TH0 Timer 0 high 8CH TH1 ...
Page 21
Table 9: P89LPC903 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address ACC* Accumulator E0H AUXR1 Auxiliary function register A2H Bit address B* B register ...
Page 22
Table 9: P89LPC903 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. IP1* Interrupt priority 1 F8H IP1H Interrupt priority 1 high F7H KBCON Keypad control register ...
Page 23
Table 9: P89LPC903 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. SBUF Serial port data buffer register 99H Bit address SCON* Serial port control 98H SSTAT ...
Page 24
Philips Semiconductors 8. Functional description Remark: Please refer to the P89LPC901/902/903 User’s Manual for a more detailed functional description. 8.1 Enhanced CPU The P89LPC901/902/903 uses an enhanced 80C51 CPU which runs at 6 times the speed of standard 80C51 devices. ...
Page 25
Philips Semiconductors 8.2.5 High speed oscillator option (P89LPC901) This option supports an external crystal in the range of 4 MHz to 18 MHz. Ceramic resonators are also supported in this configuration. When using an oscillator frequency above 12 MHz, the ...
Page 26
Philips Semiconductors Fig 12. Block diagram of oscillator control (P89LPC901). Fig 13. Block diagram of oscillator control (P89LPC902). Fig 14. Block diagram of oscillator control (P89LPC903). 9397 750 14465 Product data P89LPC901/902/903 8-bit microcontrollers with two-clock 80C51 core XTAL1 High ...
Page 27
Philips Semiconductors 8.6 CPU CLock (CCLK) wake-up delay The P89LPC901/902/903 has an internal wake-up timer that delays the clock until it stabilizes depending to the clock source used. If the clock source is any of the three crystal selections (P89LPC901) ...
Page 28
Philips Semiconductors The P89LPC901 supports 6 interrupt sources: timers 0 and 1, brownout detect, Watchdog/real-time clock, keyboard, and the comparator. The P89LPC902 supports 6 interrupt sources: timers 0 and 1, brownout detect, Watchdog/real-time clock, keyboard, and comparators 1 and 2. ...
Page 29
Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF Fig 15. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC901). RTCF ERTC (RTCCON.1) WDOVF Fig 16. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC902). 9397 750 14465 Product data P89LPC901/902/903 8-bit microcontrollers ...
Page 30
Philips Semiconductors RTCF ERTC (RTCCON.1) WDOVF Fig 17. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC903). 8.12 I/O ports The P89LPC901 has between 3 and 6 I/O pins: P0.4, P0.5, P1.2, P1.5, P3.0, and P3.1 The exact number of ...
Page 31
Philips Semiconductors 8.12.2 Quasi-bidirectional output configuration Quasi-bidirectional output type can be used as both an input and output without the need to reconfigure the port. This is possible because when the port outputs a logic HIGH weakly driven, ...
Page 32
Philips Semiconductors 8.12.7 Additional port features After power-up, all pins are in Input-Only mode. Please note that this is different from the LPC76x series of devices. • After power-up all I/O pins, except P1.5, may be configured by software. • ...
Page 33
Philips Semiconductors 8.14.1 Idle mode Idle mode leaves peripherals running in order to allow them to activate the processor when an interrupt is generated. Any enabled interrupt source or reset may terminate Idle mode. 8.14.2 Power-down mode The Power-down mode ...
Page 34
Philips Semiconductors Reset can be triggered from the following sources: • External reset pin (during power- user configured via UCFG1. This option must be used for an oscillator frequency above 12 MHz.) • Power-on detect • Brownout detect ...
Page 35
Philips Semiconductors 8.16.6 Timer overflow toggle output (P89LPC901) Timers 0 and 1 can be configured to automatically toggle a port output whenever a timer overflow occurs. The same device pins that are used for the T0 and T1 count inputs ...
Page 36
Philips Semiconductors 8.18.4 Mode 3 11 bits are transmitted (through TxD) or received (through RxD): a start bit (logical ‘0’), 8 data bits (LSB first), a programmable 9 (logical ‘1’). In fact, Mode 3 is the same as Mode 2 ...
Page 37
Philips Semiconductors 8.18.9 Transmit interrupts with double buffering enabled (Modes 1, 2 and 3) Unlike the conventional UART, in double buffering mode, the Tx interrupt is generated when the double buffer is ready to receive new data. th 8.18.10 The ...
Page 38
Philips Semiconductors (P0.4) CIN1A (P0.5) CMPREF V REF (P0.2) CIN2A Fig 19. Comparator input and output connections. 8.20 Internal reference voltage An internal reference voltage generator may supply a default reference when a single comparator input pin is used. The ...
Page 39
Philips Semiconductors 8.23 Keypad interrupt (KBI) The Keypad Interrupt function is intended primarily to allow a single interrupt to be generated when Port 0 is equal to or not equal to a certain pattern. This function can be used for ...
Page 40
Philips Semiconductors MOV WFEED1, #0A5H MOV WFEED2, #05AH Watchdog oscillator 32 PCLK WDCON (A7H) (1) Watchdog reset can also be caused by an invalid feed sequence writing to WDCON not immediately followed by a feed sequence. Fig 20. ...
Page 41
Philips Semiconductors designed to optimize the erase and programming mechanisms. The P89LPC901/902/903 uses V algorithms. 8.26.2 Features • Programming and erase over the full operating voltage range. • Byte-erase allowing code memory to be used for data storage. • Read/Programming/Erase ...
Page 42
Philips Semiconductors 8.26.6 In-application programming In-Application Programming is performed in the application under the control of the microcontroller’s firmware. The IAP facility consists of internal hardware resources to facilitate programming and erasing. The Philips In-Application Programming has made in-application programming ...
Page 43
Philips Semiconductors 9. Limiting values Table 12: Limiting values In accordance with the Absolute Maximum Rating System (IEC 60134). Symbol Parameter T operating bias ambient temperature amb(bias) T storage temperature range stg V voltage on XTAL1, XTAL2 pin to V ...
Page 44
Philips Semiconductors 10. Static characteristics Table 13: DC electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter I power supply current, ...
Page 45
Philips Semiconductors Table 13: DC electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter V brownout trip voltage with BO BOV ...
Page 46
Philips Semiconductors 11. Dynamic characteristics Table 14: AC characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency ...
Page 47
Philips Semiconductors Table 15: AC characteristics (P89LPC901 3.0V to 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency RCOSC (nominal f ...
Page 48
Philips Semiconductors 0.5 V 0.45 V Fig 22. External clock timing. 12. Comparator electrical characteristics Table 16: Comparator electrical characteristics 3.6 V, unless otherwise specified +85 ...
Page 49
Philips Semiconductors 13. Package outline SO8: plastic small outline package; 8 leads; body width 3 pin 1 index 1 e DIMENSIONS (inch dimensions are derived from the original mm dimensions) A UNIT ...
Page 50
Philips Semiconductors DIP8: plastic dual in-line package; 8 leads (300 mil pin 1 index 1 DIMENSIONS (inch dimensions are derived from the original mm dimensions UNIT b max. min. max. 1.73 ...
Page 51
Philips Semiconductors 14. Revision history Table 17: Revision history Rev Date CPCN Description 05 20041217 - Product data (9397 750 14465) Modifications: • Added 18 MHz information. 04 20031121 - Product data (9397 750 12293); ECN 853-2434 01-A14555 of 18 ...
Page 52
Philips Semiconductors 15. Data sheet status [1] Level Data sheet status Product status I Objective data Development II Preliminary data Qualification III Product data Production [1] Please consult the most recently issued data sheet before initiating or completing a design. ...
Page 53
Philips Semiconductors Contents 1 General description . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 2 Features . . . . ...