P89LPC913 PHILIPS [NXP Semiconductors], P89LPC913 Datasheet

no-image

P89LPC913

Manufacturer Part Number
P89LPC913
Description
8-bit microcontrollers with two-clock 80C51 core 1 kB 3 V Flash with 128-byte RAM
Manufacturer
PHILIPS [NXP Semiconductors]
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC913FDH
Manufacturer:
ST
Quantity:
9 000
1. General description
2. Features
3. Additional features
The P89LPC912/913/914 are single-chip microcontrollers in low-cost 14-pin
packages, based on a high performance processor architecture that executes
instructions in two to four clocks, six times the rate of standard 80C51 devices. Many
system level functions have been incorporated into the P89LPC912/913/914 in order
to reduce component count, board space, and system cost.
14-pin TSSOP packages.
A high performance 80C51 CPU provides instruction cycle times of 111 ns to
222 ns for all instructions except multiply and divide when executing at 18 MHz
(167 ns to 333 ns at 12 MHz). This is six times the performance of the standard
80C51 running at the same clock frequency. A lower clock frequency for the same
performance results in power savings and reduced EMI.
In-Application Programming (IAP-Lite) and byte erase allows code memory to be
used for non-volatile data storage.
P89LPC912/913/914
8-bit microcontrollers with two-clock 80C51 core
1 kB 3 V Flash with 128-byte RAM
Rev. 03 — 17 December 2004
1 kB byte-erasable Flash code memory organized into 256-byte sectors and
16-byte pages. Single-byte erasing allows any byte(s) to be used as non-volatile
data storage.
128-byte RAM data memory.
Two 16-bit counter/timers. Each timer may be configured to toggle a port output
upon timer overflow or to become a PWM output.
23-bit system timer that can also be used as a Real-Time clock.
Two analog comparators with selectable inputs and reference source.
Enhanced UART with fractional baudrate generator, break detect, framing error
detection, automatic address detection and versatile interrupt capabilities
(P89LPC913, P89LPC914).
SPI communication port.
Internal RC oscillator (factory calibrated to 1 %) option allows operation without
external oscillator components. The RC oscillator option is selectable and fine
tunable.
2.4 V to 3.6 V V
driven to 5.5 V).
Up to 12 I/O pins when using internal oscillator and reset options.
DD
operating range. I/O pins are 5 V tolerant (may be pulled up or
Product data

Related parts for P89LPC913

P89LPC913 Summary of contents

Page 1

... Two analog comparators with selectable inputs and reference source. Enhanced UART with fractional baudrate generator, break detect, framing error detection, automatic address detection and versatile interrupt capabilities (P89LPC913, P89LPC914). SPI communication port. Internal RC oscillator (factory calibrated option allows operation without external oscillator components. The RC oscillator option is selectable and fi ...

Page 2

... Configurable on-chip oscillator with frequency range options selected by user programmed Flash configuration bits. Oscillator options support frequencies from 20 kHz to the maximum operating frequency of 18 MHz (P89LPC912, P89LPC913). • Oscillator Fail Detect. The watchdog timer has a separate fully on-chip oscillator allowing it to perform an oscillator fail detect function. • ...

Page 3

... Philips Semiconductors 4. Ordering information Table 1: Type number P89LPC912FDH P89LPC913FDH P89LPC914FDH 4.1 Ordering options Table 2: Type number P89LPC912FDH P89LPC913FDH P89LPC914FDH 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core Ordering information Package Name Description TSSOP14 plastic thin shrink small outline package; ...

Page 4

Philips Semiconductors 5. Block diagram CRYSTAL RESONATOR Fig 1. P89LPC912 block diagram. 9397 750 14468 Product data 8-bit microcontrollers with two-clock 80C51 core P89LPC912 ACCELERATED 2-CLOCK 80C51 CPU 1 kB CODE FLASH INTERNAL BUS 128-BYTE DATA RAM PORT 3 CONFIGURABLE ...

Page 5

... Philips Semiconductors CRYSTAL RESONATOR Fig 2. P89LPC913 block diagram. 9397 750 14468 Product data 8-bit microcontrollers with two-clock 80C51 core P89LPC913 ACCELERATED 2-CLOCK 80C51 CPU 1 kB CODE FLASH INTERNAL BUS 128-BYTE DATA RAM PORT 3 CONFIGURABLE I/Os PORT 2 CONFIGURABLE I/Os PORT 1 CONFIGURABLE I/Os PORT 0 CONFIGURABLE I/Os KEYPAD ...

Page 6

Philips Semiconductors Fig 3. P89LPC914 block diagram. 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core P89LPC914 HIGH PERFORMANCE ACCELERATED 2-CLOCK 80C51 CPU 1 kB CODE FLASH INTERNAL BUS 128-BYTE DATA RAM PORT 2 CONFIGURABLE I/Os PORT ...

Page 7

... Philips Semiconductors 6. Pinning information 6.1 Pinning Fig 4. P89LPC912 TSSOP14 pin configuration. Fig 5. P89LPC913 TSSOP14 pin configuration. Fig 6. P89LPC914 TSSOP14 pin configuration. 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core handbook, halfpage P2.2/MOSI 1 14 SPICLK/P2 RST/P1 ...

Page 8

Philips Semiconductors 6.2 Pin description Table 3: P89LPC912 pin description Symbol Pin Type P0.2, P0.4 to I/O P0 P1.2, P1.5 I/O (P1.2); I (P1.5) ...

Page 9

Philips Semiconductors Table 3: P89LPC912 pin description Symbol Pin Type P2.2 to P2.5 I/O 1 I/O I/O 14 I/O I I/O I/O P3.0 to P3.1 I ...

Page 10

... Philips Semiconductors Table 4: P89LPC913 pin description Symbol Pin Type P0.2, I/O P0.4 to P0 P1.0, P1.1, I/O P1.5 (P1.0, P1.1); I (P1. 9397 750 14468 Product data 8-bit microcontrollers with two-clock 80C51 core Description Port 0: Port 4-bit I/O port with a user-configurable output type. During reset Port 0 latches are confi ...

Page 11

... Philips Semiconductors Table 4: P89LPC913 pin description Symbol Pin Type P2.2, P2.3, I/O P2.5 13 I/O I/O 14 I/O I/O 16 I/O I/O P3.0 to P3.1 I 9397 750 14468 Product data 8-bit microcontrollers with two-clock 80C51 core …continued Description Port 2: Port 3-bit I/O port with a user-configurable output type. During reset Port 2 latches are confi ...

Page 12

Philips Semiconductors Table 5: P89LPC914 pin description Symbol Pin Type P0.2, I/O P0.4 to P0 P1.0 to P1.2, I/O P1.5 (P1.0 to P1.2); I ...

Page 13

Philips Semiconductors Table 5: P89LPC914 pin description Symbol Pin Type P2.2 to P2.5 I/O 1 I/O I/O 14 I/O I I/O I 9397 750 14468 Product data P89LPC912/913/914 ...

Page 14

... Philips Semiconductors 7. Logic symbols Fig 7. P89LPC912 logic symbol. Fig 8. P89LPC913 logic symbol. Fig 9. P89LPC914 logic symbol. 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core KBI2 CIN2A KBI4 CIN1A KBI5 CMPREF KBI6 CMP1 CLKOUT XTAL2 XTAL1 KBI2 CIN2A ...

Page 15

... Table 6: Product comparison Type number External X2 CLKOUT crystal pins P89LPC912 X P89LPC913 X P89LPC914 - 8. 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. ...

Page 16

Table 7: P89LPC912 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 17

Table 7: P89LPC912 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. KBMASK Keypad interrupt mask register 86H KBPATN Keypad pattern register 93H Bit address P0* Port ...

Page 18

Table 7: P89LPC912 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. SPCTL SPI control register E2H SPSTAT SPI status register E1H SPDAT SPI data register E3H ...

Page 19

... Table 8: P89LPC913 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 F0H [2] BRGR0 Baud rate generator rate low ...

Page 20

... Table 8: P89LPC913 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address IP1* Interrupt priority 1 F8H IP1H Interrupt priority 1 high F7H KBCON Keypad control register 94H KBMASK Keypad interrupt mask register ...

Page 21

... Table 8: P89LPC913 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address PSW* Program status word D0H PT0AD Port 0 digital input disable F6H RSTSRC Reset source register DFH ...

Page 22

... Table 8: P89LPC913 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. WDL Watchdog load C1H WFEED1 Watchdog feed 1 C2H WFEED2 Watchdog feed 2 C3H [1] All ports are in input only (high impedance) state after power-up. ...

Page 23

Table 9: P89LPC914 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 24

Table 9: P89LPC914 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. Bit address IP1* Interrupt priority 1 F8H IP1H Interrupt priority 1 high F7H KBCON Keypad ...

Page 25

Table 9: P89LPC914 Special function registers * indicates SFRs that are bit addressable. Name Description SFR addr. SADEN Serial port address enable B9H SBUF Serial port data buffer register 99H Bit address ...

Page 26

... These options are configured when the FLASH is programmed and include an on-chip Watchdog oscillator and an on-chip RC oscillator. In addition, both the P89LPC912 and P89LPC913 provide an oscillator using an external crystal or an external clock source. The crystal oscillator can be optimized for low, medium, or high frequency crystals covering a range from 20 kHz to 12 MHz. ...

Page 27

... The Watchdog has a separate oscillator which has a frequency of 400 kHz. This oscillator can be used to save power when a high clock frequency is not needed. 9.5 External clock input option (P89LPC912, P89LPC913) In this configuration, the processor clock is derived from an external source driving the XTAL1/P3.1 pin. The rate may be from MHz. The XTAL2/P3.0 pin may be used as a standard port pin or a clock output ...

Page 28

... Philips Semiconductors Fig 10. Block diagram of oscillator control (P89LPC912). Fig 11. Block diagram of oscillator control (P89LPC913). 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core XTAL1 High freq. Med. freq. XTAL2 Low freq. Oscillator clock OSCCLK RC OSCILLATOR (7.3728 MHz) WATCHDOG ...

Page 29

... Low power select The P89LPC912 and P89LPC913 are designed to run at 18 MHz (CCLK) maximum. However, if CCLK is 8 MHz or slower, the CLKLP SFR bit (AUXR1.7) can be set to ‘1’ to lower the power consumption further. On any reset, CLKLP is ‘0’ allowing highest performance access ...

Page 30

... The P89LPC912 supports 7 interrupt sources: timers 0 and 1, brownout detect, Watchdog/Real-Time clock, keyboard, comparators 1 and 2, and SPI. The P89LPC913 and P89LPC914 devices support 10 interrupt sources: timers 0 and 1, serial port Tx, serial port Rx, combined serial port Rx/Tx, brownout detect, Watchdog/Real-Time clock, keyboard, comparators 1 and 2, and SPI. ...

Page 31

... TI & RI/RI Fig 14. Interrupt sources, interrupt enables, and power-down wake-up sources (P89LPC913, P89LPC914). 9.11 I/O ports The P89LPC912 and P89LPC913 devices have 4 I/O ports: Port 0, Port 1, Port 2 and Port 3. The exact number of I/O pins available depends on the clock and reset options chosen, as shown in 9397 750 14468 ...

Page 32

... quasi-bidirectional mode is discouraged. 9397 750 14468 Product data P89LPC912/913/914 8-bit microcontrollers with two-clock 80C51 core Number of I/O pins available (P89LPC912, P89LPC913) Reset option No external reset (except during power-up) External RST pin supported No external reset (except during ...

Page 33

Philips Semiconductors A quasi-bidirectional port pin has a Schmitt-triggered input that also has a glitch suppression circuit. 9.11.3 Open-drain output configuration The open-drain output configuration turns off all pull-ups and only drives the pull-down transistor of the port driver when ...

Page 34

Philips Semiconductors 9.11.7 Additional port features After power-up, all pins are in Input-Only mode. After power-up all I/O pins except P1.5, may be configured by software. • Pin P1.5 is input only. • P1.2/T0 is configurable for either input-only or ...

Page 35

Philips Semiconductors 9.13.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. 9.13.2 Power-down mode The Power-down mode ...

Page 36

... In the ‘Counter’ function, the register of Timer 0 is incremented in response to a 1-to-0 transition at its external input pin, T0. This external input is sampled once very machine cycle. Timer 0 has four operating modes (modes and 3) on the P89LPC913). Timer 0 has five operating modes (modes and 6 on the P89LPC912 and P89LPC914. ...

Page 37

... The P89LPC913 and P89LPC914 devices have an enhanced UART that is compatible with the conventional 80C51 UART except that Timer 2 overflow cannot be used as a baud rate source. The P89LPC913 does include an independent Baud Rate Generator. The baud rate can be selected from the oscillator (divided by a constant), Timer 1 overfl ...

Page 38

... Baud rate generator and selection The P89LPC913 and P89LPC914 devices have an independent Baud Rate Generator. The baud rate is determined by a baud-rate preprogrammed into the BRGR1 and BRGR0 SFRs which together form a 16-bit baud rate divisor value that works in a similar manner as Timer 1. If the baud rate generator is used, Timer 1 can be used for other timing functions ...

Page 39

Philips Semiconductors 9.17.7 Break detect Break detect is reported in the status register (SSTAT). A break is detected when 11 consecutive bits are sensed LOW. The break detect can be used to reset the device. 9.17.8 Double buffering The UART ...

Page 40

... SPI STATUS REGISTER SPI interrupt request Fig 17. SPI block diagram (P89LPC913). The SPI interface has four pins: SPICLK, MOSI, MISO, and SS: • SPICLK, MOSI and MISO are typically tied together between two or more SPI devices. Data flows from master to slave on MOSI (Master Out Slave In) pin and fl ...

Page 41

Philips Semiconductors is output in the master mode and is input in the slave mode. If the SPI system is disabled, i.e. SPEN (SPCTL. (reset value), these pins are configured for port functions. • the optional ...

Page 42

Philips Semiconductors Fig 19. SPI single master multiple slaves configuration. GENERATOR Fig 20. SPI dual device configuration, where either can be a master or a slave. 9397 750 14468 Product data 8-bit microcontrollers with two-clock 80C51 core Master MISO 8-BIT ...

Page 43

Philips Semiconductors 9.19 Analog comparators Two analog comparators are provided on the P89LPC912/913/914. Input and output options allow use of the comparators in a number of different configurations. Comparator operation is such that the output is a logical ‘1’ when ...

Page 44

Philips Semiconductors a. CN1, OE1 = REF (1. CN1, OE1 = CN2 = 0 Fig 22. Comparator configurations. 9.22 Comparator and power reduction modes Either or both comparators may remain enabled when ...

Page 45

Philips Semiconductors In order to use the Keypad Interrupt as an original KBI function like in 87LPC76x series, the user needs to set KBPATN = 0FFH and PATN_SEL = 1 (not equal), then any key connected to Port 0 which ...

Page 46

Philips Semiconductors 9.25 Additional features 9.25.1 Software reset The SRST bit in AUXR1 gives software the opportunity to reset the processor completely external reset or watchdog reset had occurred. Care should be taken when writing to AUXR1 ...

Page 47

Philips Semiconductors 9.26.4 Flash programming and erasing Different methods of erasing or programming of the Flash are available. The Flash may be programmed or erased in the end-user application (IAP-Lite) under control of the application’s firmware. Another option is to ...

Page 48

... Table 15 “AC characteristics (P89LPC912, P89LPC913)” b) This product includes circuitry specifically designed for the protection of its internal devices from the damaging effects of excessive static charge. Nonetheless suggested that conventional precautions be taken to avoid applying greater than the rated maximum. ...

Page 49

... C to +85 C for industrial, unless otherwise specified. amb Symbol Parameter I power supply current, DD(oper) operating (P89LPC912, P89LPC913) I power supply current, Idle DD(idle) mode (P89LPC912, P89LPC913) I power supply current, DD(oper) operating (P89LPC914) I power supply current, Idle DD(idle) mode (P89LPC914) I Power supply current, DD(PD) Power-down mode, voltage ...

Page 50

... Typical ratings are not guaranteed. The values listed are at room temperature [2] The specifications are measured using an external clock with the following functions disabled: comparators, brownout DD(oper) DD(PD) detect, and watchdog timer (P89LPC912, P89LPC913). [3] The specifications are measured with the following functions disabled: comparators, brownout detect, and watchdog DD(oper) DD(PD) timer (P89LPC914) ...

Page 51

... External clock (P89LPC912, P89LPC913) t HIGH time CHCX t LOW time CLCX t rise time CLCH t fall time CHCL Shift register (UART mode 0 - P89LPC913, P89LPC914) t serial port clock cycle time XLXL t output data set-up to clock rising QVXH edge t output data hold after clock rising XHQX edge t ...

Page 52

Philips Semiconductors Table 14: AC characteristics …continued 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter SPI interface f Operating frequency SPI 2.0 ...

Page 53

Philips Semiconductors Table 14: AC characteristics …continued 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t Rise time SPIR SPI outputs (SPICLK, ...

Page 54

... Philips Semiconductors Table 15: AC characteristics (P89LPC912, P89LPC913 3 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter f internal RC oscillator frequency RCOSC (nominal f = 7.3728 MHz) trimmed amb f internal Watchdog oscillator WDOSC ...

Page 55

... Philips Semiconductors Table 15: AC characteristics (P89LPC912, P89LPC913 3 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t Enable lead time (Slave) SPILEAD 3.0 MHz t Enable lag time (Slave) SPILAG 3.0 MHz t SPICLK high time SPICLKH ...

Page 56

... Philips Semiconductors Table 15: AC characteristics (P89LPC912, P89LPC913 3 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter t Fall time SPIF SPI outputs (SPICLK, MOSI, MISO) SPI inputs (SPICLK, MOSI, MISO, SS) [1] Parameters are valid over operating temperature range unless otherwise specified. Parts are tested to 2 MHz, but are guaranteed to operate down ...

Page 57

Philips Semiconductors SS SPICLK (CPOL = 0) (output) SPICLK (CPOL = 1) (output) MISO (input) t SPIF MOSI (output) Fig 25. SPI master timing (CPHA = 1 SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK ...

Page 58

Philips Semiconductors SS t SPIR t SPILEAD SPICLK (CPOL = 0) (input) t SPIF SPICLK (CPOL = 1) (input) t SPIOH t SPIDV t SPIA MISO Not defined (output) MOSI (input) Fig 27. SPI slave timing (CPHA = 1). t ...

Page 59

Philips Semiconductors 13. Comparator electrical characteristics Table 16: Comparator electrical characteristics 3.6 V, unless otherwise specified +85 C for industrial, unless otherwise specified. amb Symbol Parameter V offset voltage ...

Page 60

Philips Semiconductors 14. Package outline TSSOP14: plastic thin shrink small outline package; 14 leads; body width 4 pin 1 index 1 e DIMENSIONS (mm are the original dimensions) A UNIT ...

Page 61

Philips Semiconductors 15. Revision history Table 17: Revision history Rev Date CPCN Description 03 20041217 - Product data (9397 750 14468) Modification: • Added 18 MHz information. 02 20031212 - Product data (9397 750 12286); ECN 01-A14930 dated 10 December ...

Page 62

Philips Semiconductors 16. 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 63

... P89LPC913 9.2.5 High speed oscillator option (P89LPC912, P89LPC913 9.2.6 Clock output (P89LPC912, P89LPC913 9.3 On-chip RC oscillator option . . . . . . . . . . . . . . . . . . 27 9.4 Watchdog oscillator option . . . . . . . . . . . . . . . . . . . . 27 9.5 External clock input option (P89LPC912, P89LPC913 9.6 CPU Clock (CCLK) wake-up delay 9.7 CPU Clock (CCLK) modification: DIVM register . . . 29 9.8 Low power select . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 9.9 Memory organization . . . . . . . . . . . . . . . . . . . . . . . . 29 9.10 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 9.10.1 External interrupt inputs ...

Related keywords