English
Language : 

P89V52X2 Datasheet, PDF (57/57 Pages) NXP Semiconductors – 8-bit 80C51 low power 8 kB flash microcontroller with 256 B RAM, 192 B data EEPROM
NXP Semiconductors
P89V52X2
80C51 with 256 B RAM, 192 B data EEPROM
15. Contents
1
2
2.1
2.2
3
4
5
5.1
5.2
6
6.1
6.2
6.3
6.3.1
6.3.2
6.4
6.5
6.6
6.7
6.7.1
6.7.2
6.8
6.8.1
6.8.2
6.8.3
6.8.4
6.9
6.9.1
6.9.2
6.9.3
6.9.4
6.9.5
6.10
6.10.1
6.10.2
6.10.3
6.10.4
6.10.5
6.10.6
6.10.7
6.10.8
6.10.9
6.11
6.12
6.12.1
6.12.2
General description . . . . . . . . . . . . . . . . . . . . . . 1
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Principal features . . . . . . . . . . . . . . . . . . . . . . . 1
Additional features . . . . . . . . . . . . . . . . . . . . . . 1
Ordering information . . . . . . . . . . . . . . . . . . . . . 2
Block diagram . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Pinning information . . . . . . . . . . . . . . . . . . . . . . 3
Pinning . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
Pin description . . . . . . . . . . . . . . . . . . . . . . . . . 5
Functional description . . . . . . . . . . . . . . . . . . . 8
Special function registers . . . . . . . . . . . . . . . . . 8
Memory organization . . . . . . . . . . . . . . . . . . . 11
System clock and clock options . . . . . . . . . . . 11
Clock input options and recommended
capacitor values for the oscillator . . . . . . . . . . 11
Clock control register (CKCON) . . . . . . . . . . . 12
ALE control . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Dual data pointers. . . . . . . . . . . . . . . . . . . . . . 13
Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Flash memory. . . . . . . . . . . . . . . . . . . . . . . . . 15
Flash organization . . . . . . . . . . . . . . . . . . . . . 15
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Timers/counters 0 and 1 . . . . . . . . . . . . . . . . . 15
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
Timer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Capture mode . . . . . . . . . . . . . . . . . . . . . . . . . 20
Auto-reload mode (up or down-counter) . . . . . 21
Programmable clock-out . . . . . . . . . . . . . . . . . 23
Baud rate generator mode . . . . . . . . . . . . . . . 23
Summary of baud rate equations . . . . . . . . . . 25
UART . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Mode 0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Mode 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Mode 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Framing error . . . . . . . . . . . . . . . . . . . . . . . . . 27
More about UART mode 1 . . . . . . . . . . . . . . . 27
More about UART modes 2 and 3 . . . . . . . . . 27
Multiprocessor communications . . . . . . . . . . . 28
Automatic address recognition . . . . . . . . . . . . 28
Interrupt priority and polling sequence . . . . . . 30
Power-saving modes . . . . . . . . . . . . . . . . . . . 32
Idle mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Power-down mode . . . . . . . . . . . . . . . . . . . . . 33
6.13
6.13.1
6.13.2
6.13.3
6.13.4
6.13.5
6.13.6
6.13.7
6.13.8
6.13.9
6.14
6.15
6.16
7
8
9
9.1
10
11
12
13
13.1
13.2
13.3
13.4
14
15
Data EEPROM . . . . . . . . . . . . . . . . . . . . . . . . 33
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Register interface . . . . . . . . . . . . . . . . . . . . . . 34
Mapping the data EEPROM into code space. 34
Reading the data EEPROM . . . . . . . . . . . . . . 34
Erasing a complete page (64 B). . . . . . . . . . . 35
Data EEPROM programming and erasing
using the page register. . . . . . . . . . . . . . . . . . 35
Data EEPROM write enable. . . . . . . . . . . . . . 39
Data EEPROM security bits . . . . . . . . . . . . . . 39
Summary of data EEPROM commands. . . . . 39
User configuration bytes. . . . . . . . . . . . . . . . . 40
UCFG . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40
Code security (CSEC) bits . . . . . . . . . . . . . . . 41
Limiting values . . . . . . . . . . . . . . . . . . . . . . . . 42
Static characteristics . . . . . . . . . . . . . . . . . . . 42
Dynamic characteristics . . . . . . . . . . . . . . . . . 45
Explanation of symbols . . . . . . . . . . . . . . . . . 46
Package outline . . . . . . . . . . . . . . . . . . . . . . . . 51
Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . 54
Revision history . . . . . . . . . . . . . . . . . . . . . . . 55
Legal information . . . . . . . . . . . . . . . . . . . . . . 56
Data sheet status . . . . . . . . . . . . . . . . . . . . . . 56
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Disclaimers. . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . . 56
Contact information . . . . . . . . . . . . . . . . . . . . 56
Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.
© NXP B.V. 2009.
All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: salesaddresses@nxp.com
Date of release: 4 May 2009
Document identifier: P89V52X2_3