p87lpc778 NXP Semiconductors, p87lpc778 Datasheet - Page 79

no-image

p87lpc778

Manufacturer Part Number
p87lpc778
Description
Cmos Single-chip 8-bit 80c51 Microcontroller 128-byte Data Ram, 8 Kb Otp
Manufacturer
NXP Semiconductors
Datasheet

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
p87lpc778FDH
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Part Number:
p87lpc778FDH/CP3242
Manufacturer:
SAMSUNG
Quantity:
50
Part Number:
p87lpc778FDH/CP3242
Manufacturer:
PHILIPS/飞利浦
Quantity:
20 000
Philips Semiconductors
Contents
1
2
3
4
5
5.1
5.2
6
7
8
8.1
8.2
8.3
8.4
8.4.1
8.4.2
8.5
8.5.1
8.5.2
8.5.3
8.5.4
8.5.5
8.6
8.6.1
8.7
8.7.1
8.7.2
8.7.3
8.7.4
8.7.5
8.7.6
8.8
8.8.1
8.9
8.9.1
8.9.2
8.9.3
8.9.4
8.10
8.10.1
8.10.2
8.10.3
8.10.4
8.10.5
8.10.6
8.10.7
8.11
8.11.1
8.11.2
© 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: 31 March 2004
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 2
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pinning information . . . . . . . . . . . . . . . . . . . . . . 5
Logic symbol . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
Special function registers . . . . . . . . . . . . . . . . . 8
Functional description . . . . . . . . . . . . . . . . . . 12
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
Enhanced CPU . . . . . . . . . . . . . . . . . . . . . . . . 12
Analog functions . . . . . . . . . . . . . . . . . . . . . . . 12
Analog to digital converter . . . . . . . . . . . . . . . 12
A/D timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
The A/D in Power-down and Idle modes . . . . 15
Code examples for the A/D. . . . . . . . . . . . . . . 16
Analog comparators . . . . . . . . . . . . . . . . . . . . 17
Comparator configuration . . . . . . . . . . . . . . . . 17
Internal reference voltage . . . . . . . . . . . . . . . . 19
Comparator interrupt. . . . . . . . . . . . . . . . . . . . 19
Comparators and power reduction modes . . . 19
Comparator configuration example. . . . . . . . . 20
Pulse width modulator . . . . . . . . . . . . . . . . . . 20
PWM brake function . . . . . . . . . . . . . . . . . . . . 25
I
I
Reading I2CON . . . . . . . . . . . . . . . . . . . . . . . 28
Checking ATN and DRDY . . . . . . . . . . . . . . . . 28
Writing I2CON . . . . . . . . . . . . . . . . . . . . . . . . 29
Regarding Transmit Active . . . . . . . . . . . . . . . 29
Regarding software response time . . . . . . . . . 30
Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
External interrupt inputs . . . . . . . . . . . . . . . . . 33
I/O ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Quasi-bidirectional output configuration . . . . . 34
Open drain output configuration . . . . . . . . . . . 35
Push-pull output configuration . . . . . . . . . . . . 36
Keyboard interrupt (KBI) . . . . . . . . . . . . . . . . . 38
Oscillator. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39
Low speed oscillator option . . . . . . . . . . . . . . 39
Medium speed oscillator option . . . . . . . . . . . 39
On-chip RC oscillator option . . . . . . . . . . . . . . 40
External clock input option . . . . . . . . . . . . . . . 40
Clock output . . . . . . . . . . . . . . . . . . . . . . . . . . 40
CPU clock modification: CLKR and DIVM . . . 41
Power monitoring functions. . . . . . . . . . . . . . . 42
Brownout detection . . . . . . . . . . . . . . . . . . . . . 42
Power-on detection . . . . . . . . . . . . . . . . . . . . . 43
2
2
High speed oscillator option. . . . . . . . . . . . . . 39
C-bus serial interface . . . . . . . . . . . . . . . . . . 26
C-bus interrupts . . . . . . . . . . . . . . . . . . . . . . 27
Document order number: 9397 750 12378
8.12
8.12.1
8.12.2
8.12.3
8.13
8.14
8.14.1
8.14.2
8.14.3
8.14.4
8.14.5
8.15
8.15.1
8.15.2
8.15.3
8.15.4
8.15.5
8.15.6
8.15.7
8.15.8
8.15.9
8.15.10
8.15.11
8.15.12
8.16
8.16.1
8.16.2
8.17
8.17.1
8.17.2
8.18
8.18.1
8.18.2
9
10
11
12
13
14
15
16
17
18
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 69
Static characteristics . . . . . . . . . . . . . . . . . . . 70
Dynamic characteristics . . . . . . . . . . . . . . . . . 74
Comparator electrical characteristics . . . . . . 75
Package outline . . . . . . . . . . . . . . . . . . . . . . . . 76
Revision history . . . . . . . . . . . . . . . . . . . . . . . 77
Data sheet status. . . . . . . . . . . . . . . . . . . . . . . 78
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Licenses . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 78
Power reduction modes . . . . . . . . . . . . . . . . . 43
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 43
Power-down mode . . . . . . . . . . . . . . . . . . . . . 43
Low voltage EPROM operation . . . . . . . . . . . 44
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Timer/counters . . . . . . . . . . . . . . . . . . . . . . . . 46
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 48
Timer overflow toggle output . . . . . . . . . . . . . 50
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
Serial port control register (SCON) . . . . . . . . 51
Baud rates . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
Using Timer1 to generate baud rates. . . . . . . 53
More about UART Mode 0 . . . . . . . . . . . . . . . 54
More about UART Mode 1 . . . . . . . . . . . . . . . 55
More about UART Modes 2 and 3 . . . . . . . . . 56
Multiprocessor communications . . . . . . . . . . . 57
Automatic address recognition . . . . . . . . . . . . 57
Watchdog timer . . . . . . . . . . . . . . . . . . . . . . . 63
Watchdog feed sequence. . . . . . . . . . . . . . . . 64
Watchdog reset . . . . . . . . . . . . . . . . . . . . . . . 64
Additional features . . . . . . . . . . . . . . . . . . . . . 65
Software reset . . . . . . . . . . . . . . . . . . . . . . . . 66
Dual data pointers . . . . . . . . . . . . . . . . . . . . . 66
EPROM characteristics . . . . . . . . . . . . . . . . . 66
System configuration bytes . . . . . . . . . . . . . . 67
Security bits . . . . . . . . . . . . . . . . . . . . . . . . . . 68
CMOS single-chip 8-bit microcontroller
P87LPC778

Related parts for p87lpc778