P89LPC931FDH NXP Semiconductors, P89LPC931FDH Datasheet - Page 55

no-image

P89LPC931FDH

Manufacturer Part Number
P89LPC931FDH
Description
MCU 8-Bit 89LP 80C51 CISC 8KB Flash 2.5V/3.3V 28-Pin TSSOP Tube
Manufacturer
NXP Semiconductors
Datasheet

Specifications of P89LPC931FDH

Package
28TSSOP
Device Core
80C51
Family Name
89LP
Maximum Speed
18 MHz
Ram Size
256 Byte
Program Memory Size
8 KB
Operating Supply Voltage
2.5|3.3 V
Data Bus Width
8 Bit
Program Memory Type
Flash
Number Of Programmable I/os
26
Interface Type
I2C/SPI/UART
Operating Temperature
-40 to 85 °C
Number Of Timers
2

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
P89LPC931FDH
Manufacturer:
SAMSUNG
Quantity:
10 122
Part Number:
P89LPC931FDH
Manufacturer:
NXP/恩智浦
Quantity:
20 000
Part Number:
P89LPC931FDHЈ¬112
Manufacturer:
PH3
Quantity:
1 995
Philips Semiconductors
Contents
1
2
3
3.1
4
5
5.1
5.2
6
7
8
8.1
8.2
8.2.1
8.2.2
8.2.3
8.2.4
8.2.5
8.2.6
8.3
8.4
8.5
8.6
8.7
8.8
8.9
8.10
8.10.1
8.11
8.11.1
8.11.2
8.11.3
8.11.4
8.11.5
8.11.6
8.11.7
8.12
8.12.1
8.12.2
8.13
8.13.1
8.13.2
8.13.3
8.14
8.14.1
8.15
8.15.1
8.15.2
8.15.3
8.15.4
8.15.5
8.15.6
8.16
8.17
© Koninklijke Philips Electronics N.V. 2004.
Printed in the U.S.A.
All rights are reserved. Reproduction in whole or in part is prohibited without the prior
written consent of the copyright owner.
The information presented in this document does not form part of any quotation or
contract, is believed to be accurate and reliable and may be changed without notice. No
liability will be accepted by the publisher for any consequence of its use. Publication
thereof does not convey nor imply any license under patent- or other industrial or
intellectual property rights.
Date of release: 15 December 2004
General description . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Pinning information. . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
Special function registers. . . . . . . . . . . . . . . . . . . . . 11
Functional description . . . . . . . . . . . . . . . . . . . . . . . 16
Ordering options . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Clocks . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Clock definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
CPU clock (OSCCLK) . . . . . . . . . . . . . . . . . . . . . . . 16
Low speed oscillator option . . . . . . . . . . . . . . . . . . . 16
Medium speed oscillator option . . . . . . . . . . . . . . . . 16
High speed oscillator option . . . . . . . . . . . . . . . . . . . 16
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
On-chip RC oscillator option . . . . . . . . . . . . . . . . . . 17
Watchdog oscillator option . . . . . . . . . . . . . . . . . . . . 17
External clock input option . . . . . . . . . . . . . . . . . . . . 17
CPU CLock (CCLK) wake-up delay . . . . . . . . . . . . . 19
CPU CLOCK (CCLK) modification: DIVM register . . 19
Low power select . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Memory organization . . . . . . . . . . . . . . . . . . . . . . . . 19
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
External interrupt inputs . . . . . . . . . . . . . . . . . . . . . . 20
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
Port configurations . . . . . . . . . . . . . . . . . . . . . . . . . . 22
Quasi-bidirectional output configuration. . . . . . . . . . 22
Open-drain output configuration. . . . . . . . . . . . . . . . 22
Input-only configuration . . . . . . . . . . . . . . . . . . . . . . 22
Push-pull output configuration . . . . . . . . . . . . . . . . . 22
Port 0 analog functions . . . . . . . . . . . . . . . . . . . . . . 22
Additional port features . . . . . . . . . . . . . . . . . . . . . . 24
Power monitoring functions . . . . . . . . . . . . . . . . . . . 24
Brownout detection . . . . . . . . . . . . . . . . . . . . . . . . . 24
Power-on detection . . . . . . . . . . . . . . . . . . . . . . . . . 24
Power reduction modes . . . . . . . . . . . . . . . . . . . . . . 24
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Power-down mode . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Total Power-down mode . . . . . . . . . . . . . . . . . . . . . . 25
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Reset vector . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . . . . . . 26
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 6 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Timer overflow toggle output . . . . . . . . . . . . . . . . . . 27
Real-Time clock/system timer . . . . . . . . . . . . . . . . . 27
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Document order number: 9397 750 14472
8.17.1
8.17.2
8.17.3
8.17.4
8.17.5
8.17.6
8.17.7
8.17.8
8.17.9
8.17.10
8.18
8.19
8.19.1
8.20
8.20.1
8.20.2
8.20.3
8.21
8.22
8.23
8.23.1
8.23.2
8.24
8.24.1
8.24.2
8.24.3
8.24.4
8.25
8.26
9
10
11
12
13
14
15
16
17
18
8-bit microcontrollers with two-clock 80C51 core
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 41
Static characteristics . . . . . . . . . . . . . . . . . . . . . . . . . 42
Dynamic characteristics . . . . . . . . . . . . . . . . . . . . . . 44
Comparator electrical characteristics . . . . . . . . . . . 51
Package outline . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Revision history . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
Data sheet status . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Definitions. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 54
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Baud rate generator and selection . . . . . . . . . . . . . . 28
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Break detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Double buffering . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Transmit interrupts with double buffering
The 9
I
Serial Peripheral Interface (SPI) . . . . . . . . . . . . . . . . 31
Typical SPI configurations. . . . . . . . . . . . . . . . . . . . . 33
Analog comparators . . . . . . . . . . . . . . . . . . . . . . . . . 35
Internal reference voltage . . . . . . . . . . . . . . . . . . . . . 35
Comparator interrupt. . . . . . . . . . . . . . . . . . . . . . . . . 36
Comparators and power reduction modes . . . . . . . . 36
Keypad interrupt (KBI) . . . . . . . . . . . . . . . . . . . . . . . 36
Watchdog timer. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Additional features . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Software reset. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Dual data pointers. . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Flash program memory. . . . . . . . . . . . . . . . . . . . . . . 38
General description. . . . . . . . . . . . . . . . . . . . . . . . . . 38
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
Using Flash as data storage . . . . . . . . . . . . . . . . . . . 38
ISP and IAP capabilities of the P89LPC930/931 . . . 38
User configuration bytes . . . . . . . . . . . . . . . . . . . . . . 40
User sector security bytes . . . . . . . . . . . . . . . . . . . . 40
enabled (Modes 1, 2 and 3) . . . . . . . . . . . . . . . . . . . 29
3) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
2
C-bus serial interface . . . . . . . . . . . . . . . . . . . . . . . 30
th
bit (bit 8) in double buffering (Modes 1, 2 and
P89LPC930/931

Related parts for P89LPC931FDH