![NXP Semiconductors P89LPC9321 UM10310 User Manual Download Page 139](http://html1.mh-extra.com/html/nxp-semiconductors/p89lpc9321-um10310/p89lpc9321-um10310_user-manual_1721873139.webp)
NXP Semiconductors
UM10310
P89LPC9321 User manual
© NXP B.V. 2008.
All rights reserved.
For more information, please visit: http://www.nxp.com
For sales office addresses, please send an email to: [email protected]
Date of release: 1 December 2008
Document identifier: UM10310_1
Please be aware that important notices concerning this document and the product(s)
described herein, have been included in section ‘Legal information’.
SPI clock prescaler select . . . . . . . . . . . . . . . 94
Analog comparators . . . . . . . . . . . . . . . . . . . . 94
Comparator configuration . . . . . . . . . . . . . . . . 94
Internal reference voltage . . . . . . . . . . . . . . . . 96
Comparator input pins . . . . . . . . . . . . . . . . . . 96
Comparator interrupt. . . . . . . . . . . . . . . . . . . . 96
Comparators and power reduction modes . . . 97
Comparators configuration example. . . . . . . . 97
Programmable Gain Amplifier (PGA) . . . . . . . 98
Keypad interrupt (KBI). . . . . . . . . . . . . . . . . . 100
Watchdog timer (WDT) . . . . . . . . . . . . . . . . . 101
Watchdog function . . . . . . . . . . . . . . . . . . . . 101
Feed sequence . . . . . . . . . . . . . . . . . . . . . . . 102
Watchdog clock source . . . . . . . . . . . . . . . . 105
Watchdog Timer in Timer mode . . . . . . . . . . 106
Power-down operation . . . . . . . . . . . . . . . . . 107
Additional features . . . . . . . . . . . . . . . . . . . . 107
Software reset. . . . . . . . . . . . . . . . . . . . . . . . 108
Dual Data Pointers . . . . . . . . . . . . . . . . . . . . 108
Data EEPROM. . . . . . . . . . . . . . . . . . . . . . . . . 109
Data EEPROM read . . . . . . . . . . . . . . . . . . . 110
Data EEPROM write . . . . . . . . . . . . . . . . . . . 110
Hardware reset . . . . . . . . . . . . . . . . . . . . . . . 111
Multiple writes to the DEEDAT register. . . . . 111
Data EEPROM Row Fill . . . . . . . . . . . . . . . . 111
Data EEPROM Block Fill . . . . . . . . . . . . . . . 112
Flash memory . . . . . . . . . . . . . . . . . . . . . . . . 112
General description . . . . . . . . . . . . . . . . . . . 112
Features . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Flash programming and erase . . . . . . . . . . . 113
Using Flash as data storage: IAP-Lite . . . . . 113
In-circuit programming (ICP). . . . . . . . . . . . . 117
ISP and IAP capabilities of the P89LPC9321 117
Boot ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Power on reset code execution . . . . . . . . . . 117
Hardware activation of Boot Loader . . . . . . . 118
In-system programming (ISP). . . . . . . . . . . . 118
Using the In-system programming (ISP). . . . 119
In-application programming (IAP) . . . . . . . . . 122
IAP authorization key . . . . . . . . . . . . . . . . . . 122
Flash write enable . . . . . . . . . . . . . . . . . . . . 122
Configuration byte protection . . . . . . . . . . . . 123
IAP error status. . . . . . . . . . . . . . . . . . . . . . . 123
User configuration bytes . . . . . . . . . . . . . . . . 127
User security bytes . . . . . . . . . . . . . . . . . . . . 128
Boot Vector register . . . . . . . . . . . . . . . . . . . 129
Boot status register . . . . . . . . . . . . . . . . . . . 129
Instruction set . . . . . . . . . . . . . . . . . . . . . . . . 131
Legal information . . . . . . . . . . . . . . . . . . . . . 134
Definitions . . . . . . . . . . . . . . . . . . . . . . . . . . 134
Disclaimers . . . . . . . . . . . . . . . . . . . . . . . . . 134
Trademarks . . . . . . . . . . . . . . . . . . . . . . . . . 134
Tables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
Figures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
Contents. . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138