NXP Semiconductors
P89LPC9301/931A1
8-bit microcontroller with accelerated two-clock 80C51 core
MOV WFEED1, #0A5H
MOV WFEED2, #05AH
PCLK 0
watchdog 1
oscillator
0
crystal 1
÷32
oscillator
XTALWD
WDL (C1H)
PRESCALER
8-BIT DOWN
COUNTER
SHADOW REGISTER
reset(1)
WDCON (A7H) PRE2 PRE1 PRE0
-
-
WDRUN WDTOF WDCLK
002aae015
(1) Watchdog reset can also be caused by an invalid feed sequence, or by writing to WDCON not immediately followed by a feed
sequence.
Fig 14. Watchdog timer in Watchdog mode (WDTE = 1)
7.28 Additional features
7.28.1 Software reset
The SRST bit in AUXR1 gives software the opportunity to reset the processor completely,
as if an external reset or watchdog reset had occurred. Care should be taken when writing
to AUXR1 to avoid accidental software resets.
7.28.2 Dual data pointers
The dual Data Pointers (DPTR) provides two different Data Pointers to specify the address
used with certain instructions. The DPS bit in the AUXR1 register selects one of the two
Data Pointers. Bit 2 of AUXR1 is permanently wired as a logic 0 so that the DPS bit may
be toggled (thereby switching Data Pointers) simply by incrementing the AUXR1 register,
without the possibility of inadvertently altering other bits in the register.
7.29 Flash program memory
7.29.1 General description
The P89LPC9301/931A1 flash memory provides in-circuit electrical erasure and
programming. The flash can be erased, read, and written as bytes. The Sector and Page
Erase functions can erase any flash sector (1 kB) or page (64 bytes). The Chip Erase
operation will erase the entire program memory. ICP using standard commercial
programmers is available. In addition, IAP and byte-erase allows code memory to be used
for non-volatile data storage. On-chip erase and write timing generation contribute to a
user-friendly programming interface. The P89LPC9301/931A1 flash reliably stores
memory contents even after 100,000 erase and program cycles. The cell is designed to
P89LPC9301_931A1_1
Preliminary data sheet
Rev. 01 — 9 April 2009
© NXP B.V. 2009. All rights reserved.
37 of 65