8-bit microcontrollers with two-clock 80C51 core
1 kB 3 V Flash with 128-byte RAM
Rev. 04 — 21 November 2003Product data
1.General description
The P89LPC901/902/903 are single-chip microcontrollers in low-cost 8-pin packages,
based on a highperformance processorarchitecture that executesinstructions in two
to four clocks, six times the rate of standard 80C51 devices. Many system-level
functions have been incorporated into the P89LPC901/902/903 in order to reduce
component count, board space, and system cost.
2.Features
2.1 Principal features
■ 1 kB byte-erasable Flash code memory organized into 256-byte sectors and
16-byte pages. Single-byte erasing allows any byte(s) to be used as non-volatile
data storage.
■ 128-byte RAM data memory.
■ Two 16-bit counter/timers. (P89LPC901 Timer 0 may be configured to toggle a
port output upon timer overflow or to become a PWM output.)
■ 23-bit system timer that can also be used as a Real-Time clock.
■ Two analog comparators (P89LPC902 and P89LPC903, single analog
detection, automatic address detection and versatile interrupt capabilities
(P89LPC903).
■ High-accuracy internal RC oscillator option allows operation without external
oscillator components. The RC oscillator option is selectable and fine tunable.
■ 2.4 V to 3.6 V VDDoperating range with 5 V tolerant I/O pins (may be pulled up or
driven to 5.5 V). Industry-standard pinout with VDD, VSS, and reset at locations 1,
8, and 4.
■ Up to six I/O pins when using internal oscillator and reset options.
■ 8-pin SO-8 package.
2.2 Additional features
■ A high performance 80C51 CPU provides instruction cycle times of 167 ns to
333 ns for all instructions except multiply and divide when executing at 12 MHz.
This is six times the performance of the standard 80C51 running at the same
clock frequency. A lower clock frequency for the same performance results in
power savings and reduced EMI.
■ In-Application Programming (IAP-Lite) and byte erase allows code memory to be
used for non-volatile data storage.
Philips Semiconductors
■ Serial Flash In-Circuit Programming (ICP) allows simple production coding with
■ Watchdog timer with separate on-chip oscillator, requiring no external
■ Low voltage reset (Brownout detect) allows a graceful system shutdown when
■ Idle and two different Power-downreduced power modes. Improved wake-up from
■ Active-LOWreset. On-chippower-on reset allows operation without external reset
■ Configurable on-chip oscillator with frequency range options selected by user
■ Watchdog timer with separate on-chip oscillator, requiring no external
■ Programmable port output configuration options: quasi-bidirectional, open drain,
■ Port ‘input pattern match’ detect. Port 0may generate aninterrupt when thevalue
■ LED drive capability (20 mA) on all port pins. A maximum limit is specified for the
■ Controlled slew rate port outputs to reduce EMI. Outputs have approximately
■ Only power and ground connections are required to operate the
■ Four interrupt priority levels.
■ Two (P89LPC901), three (P89LPC903), or five (P89LPC902) keypad interrupt
■ Second data pointer.
■ Schmitt trigger port inputs.
■ Emulation support.
P89LPC901/902/903
8-bit microcontrollers with two-clock 80C51 core
commercial EPROMprogrammers.Flash security bits prevent reading of sensitive
application programs.
components. The watchdog prescaler is selectable from 8 values.
power fails. May optionally be configured as an interrupt.
Power-down mode (a low interrupt input starts execution). Typical Power-down
current is 1 µA (total Power-down with voltage comparators disabled).
components. A reset counter and reset glitch suppression circuitry prevent
spurious and incomplete resets. A software reset function is also available.
programmed Flash configuration bits. Oscillatoroptions support frequencies from
20 kHz to the maximum operating frequency of 12 MHz (P89LPC901).
components. The watchdog prescaler is selectable from 8 values.
push-pull, input-only.
of the pins match or do not match a programmable pattern.
entire chip.
10 ns minimum ramp times.
P89LPC901/902/903 when internal reset option is selected.
P0.0 - P0.66, 7I/OPort 0: Port 0 isan I/O port with a user-configurable output type. During reset Port 0
latches are configured in the input only mode with the internal pull-up disabled. The
operation of Port 0 pins as inputs and outputs depends upon the port configuration
selected. Each port pin is configured independently. Refer to Section 8.12.1 “Port
configurations” and Table 13 “DC electrical characteristics” for details.
The Keypad Interrupt feature operates with Port 0 pins.
All pins have Schmitt triggered inputs.
Port 0 also provides various special functions as described below:
P1.0 - P1.54, 5Port 1: Port 1 is an I/O port with a user-configurable output type. During resetPort 1
latches are configured in the input only mode with the internal pull-up disabled. The
operation of the configurable Port 1 pins as inputs and outputs depends upon the
port configuration selected. Each of the configurable port pins are programmed
independently. Refer to Section 8.12.1 “Port configurations” and Table 13 “DC
electrical characteristics” for details. P1.5 is input only.
All pins have Schmitt triggered inputs.
Port 1 also provides various special functions as described below:
5I/OP1.2 — Port 1 bit 2.
OT0 — Timer/counter 0 external count input or overflow output.
4IP1.5 — Port 1 bit 5 (input only).
I
RST — External Reset input during Power-on or if selected via UCFG1. When
functioning as a reset input aLOW on this pin resetsthe microcontroller, causing I/O
ports and peripherals to take on their default states, and the processor begins
execution at address 0. Also used during a power-on sequence to force In-System
Programming mode.
P3.0 - P3.12, 3I/OPort 3: Port 3 is an I/O port with a user-configurableoutput types. During reset Port 3
3I/OP3.0 — Port 3 bit 0.
OXTAL2 — Output from the oscillator amplifier (when a crystal oscillator option is
OCLKOUT — CPU clock divided by 2 when enabled via SFR bit(ENCLK -TRIM.6). It
2I/OP3.1 — Port 3 bit 1.
IXTAL1 — Input to the oscillator circuit and internal clock generator circuits (when
V
SS
V
DD
8IGround: 0 V reference.
1IPower Supply: This is the power supply voltage for normal operation as well as Idle
…continued
latches are configured in the input only mode with the internal pull-up disabled. The
operation of port 3 pins as inputs and outputs depends upon the port configuration
selected. Each port pin is configured independently. Refer to Section 8.12.1 “Port
configurations” and Table 13 “DC electrical characteristics” for details.
All pins have Schmitt triggered inputs.
Port 3 also provides various special functions as described below:
selected via the FLASH configuration).
can be used if the CPU clock is the internal RC oscillator, Watchdog oscillator or
external clock input, except when XTAL1/XTAL2 are used to generate clock source
for the real time clock/system timer.
selected via the FLASH configuration).It can be a port pin if internal RC oscillator or
Watchdog oscillator is used as the CPU clock source,and if XTAL1/XTAL2 are not
used to generate the clock for the real time clock/system timer.
P0.0 - P0.62, 3, 5, 6,7I/OPort 0: Port 0 is an I/O port with a user-configurable output type. During reset Port 0
latches are configured in the input only mode with the internal pull-up disabled. The
operation of Port 0 pins as inputs and outputs depends upon the port configuration
selected. Each port pin is configured independently. Refer to Section 8.12.1 “Port
configurations” and Table 13 “DC electrical characteristics” for details.
The Keypad Interrupt feature operates with Port 0 pins.
All pins have Schmitt triggered inputs.
Port 0 also provides various special functions as described below:
P1.0 - P1.54Port 1: Port 1 is an I/O port with a user-configurable output type. During reset Port 1
latches are configured in the input only mode with the internal pull-up disabled. The
operation of the configurable Port 1 pins as inputs and outputs depends upon the
port configuration selected. Each of the configurable port pins are programmed
independently. Refer to Section 8.12.1 “Port configurations” and Table 13 “DC
electrical characteristics” for details. P1.5 is input only.
All pins have Schmitt triggered inputs.
Port 1 also provides various special functions as described below:
4IP1.5 — Port 1 bit 5 (input only).
I
V
SS
V
DD
8IGround: 0 V reference.
1IPower Supply: This is the power supply voltage for normal operation as well as Idle
RST — External Reset input during Power-on or if selected via UCFG1. When
functioning as a reset input a LOW on this pin resets the microcontroller, causing I/O
ports and peripherals to take on their default states, and the processor begins
execution at address 0. Also used during a power-on sequence to force In-System
Programming mode.
P0.0 - P0.62, 6, 7I/OPort 0: Port 0 is an I/O port with a user-configurable output type. During reset Port 0
latches are configured in the input only mode with the internal pull-up disabled. The
operation of Port 0 pins as inputs and outputs depends upon the port configuration
selected. Each port pin is configured independently. Refer to Section 8.12.1 “Port
configurations” and Table 13 “DC electrical characteristics” for details.
The Keypad Interrupt feature operates with Port 0 pins.
All pins have Schmitt triggered inputs.
Port 0 also provides various special functions as described below:
P1.0 - P1.53, 4, 5Port 1: Port 1 is an I/O port with a user-configurable output type. During reset Port 1
latches are configured in the input only mode with the internal pull-up disabled. The
operation of the configurable Port 1 pins as inputs and outputs depends upon the
port configuration selected. Each of the configurable port pins are programmed
independently. Refer to Section 8.12.1 “Port configurations” and Table 13 “DC
electrical characteristics” for details. P1.5 is input only.
All pins have Schmitt triggered inputs.
Port 1 also provides various special functions as described below:
5I/OP1.0 — Port 1 bit 0.
OTxD — Serial port transmitter data.
3I/OP1.1 — Port 1 bit 1.
IRxD — Serial port receiver data.
4IP1.5 — Port 1 bit 5 (input only).
I
V
SS
V
DD
8IGround: 0 V reference.
1IPower Supply: This is the power supply voltage for normal operation as well as Idle
RST — External Reset input during Power-on or if selected via UCFG1. When
functioning as a reset input a LOW on this pin resets the microcontroller, causing I/O
ports and peripherals to take on their default states, and the processor begins
execution at address 0. Also used during a power-on sequence to force In-System
Programming mode.
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
9397 750 12293
Product dataRev. 04 — 21 November 200315 of 55
Table 7:P89LPC901 Special function registers
* indicates SFRs that are bit addressable.
NameDescriptionSFR
ACC*AccumulatorE0H0000000000
AUXR1Auxiliary function registerA2HCLKLP--ENT0SRST0-DPS00
B*B registerF0H0000000000
CMP1Comparator 1 control register ACH--CE1-CN1-CO1CMF100
DIVMCPU clock divide-by-M
DPTRData pointer (2 bytes)
DPHData pointer HIGH83H0000000000
DPLData pointer LOW82H0000000000
FMADRHProgram Flash address HIGH E7H0000000000
FMADRLProgram Flash address LOWE6H0000000000
FMCONProgram Flash Control
IP1*Interrupt priority 1F8H-----PCPKBI-00
IP1HInterrupt priority 1 HIGHF7H-----PCHPKBIH-00
KBCONKeypad control register94H------PATN
KBIF00
_SEL
[1]
[1]
[1]
00x00000
00x00000
xxxxxx00
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
9397 750 12293
Product dataRev. 04 — 21 November 200316 of 55
Table 7:P89LPC901 Special function registers
* indicates SFRs that are bit addressable.
NameDescriptionSFR
KBMASKKeypad interrupt mask
KBPATNKeypad pattern register93HFF11111111
P0*Port 080H--CMPREF
P1*Port 190H--
P3*Port3B0H------XTAL1XTAL2
P0M1Port 0 output mode 184H--(P0M1.5) (P0M1.4)----FF11111111
P0M2Port 0 output mode 285H--(P0M2.5) (P0M2.4)----0000000000
P1M1Port 1 output mode 191H--(P1M1.5)--(P1M1.2)--FF
P1M2Port 1 output mode 292H--(P1M2.5)--(P1M2.2)--00
P3M1Port 3 output mode 1B1H------(P3M1.1) (P3M1.0) 03
P3M2Port 3 output mode 2B2H------(P3M2.1) (P3M2.0) 00
PCONPower control register87H--BOPDBOIGF1GF0PMOD1PMOD0 0000000000
PCONAPower control register AB5HRTCPDVCPD--00
PCONBreserved for Power Control
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxx x x x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xx xx
xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxx xxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxx x x
xxxxxxxxxxxxxxxxxxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxx xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx xxxxxxxx
9397 750 12293
Product dataRev. 04 — 21 November 200317 of 55
Table 7:P89LPC901 Special function registers
* indicates SFRs that are bit addressable.
NameDescriptionSFR
TCON*Timer 0 and 1 control88HTF1TR1TF0TR0----0000000000
TH0Timer 0 HIGH8CH0000000000
TH1Timer 1 HIGH8DH0000000000
TL0Timer 0 LOW8AH0000000000
TL1Timer 1 LOW8BH0000000000
TMODTimer 0 and 1 mode89H--T1M1T1M0--T0M1T0M00000000000
TRIMInternal oscillator trim register 96H--TRIM.5TRIM.4TRIM.3TRIM.2TRIM.1TRIM.0
WDCONWatchdog control registerA7HPRE2PRE1PRE0--WDRUNWDTOFWDCLK
WDLWatchdog loadC1HFF11111111
WFEED1Watchdog feed 1C2H
WFEED2Watchdog feed 2C3H
[1] All ports are in input only (high impedance) state after power-up.
[2] BRGR1 and BRGR0 must only be written if BRGEN in BRGCON SFR is ‘0’. If any are written while BRGEN = 1, the result is unpredictable.
[3] The RSTSRC register reflects the cause of the P89LPC901/902/903 reset. Upon a power-up reset, all reset source flags are cleared except POF and BOF; the power-on reset
[4] After reset, the value is 111001x1, i.e., PRE2-PRE0 are all ‘1’, WDRUN = 1 and WDCLK = 1. WDTOFbit is ‘1’ after Watchdogreset and is ‘0’ after power-on reset. Other resets will
[5] On power-on reset, the TRIM SFR is initialized with a factory preprogrammed value. Other resets will not cause initialization of the TRIM register.
[6] The only reset source that affects these SFRs is power-on reset.
Unimplemented bits in SFRs (labeled ’-’) are X (unknown) at all times. Unless otherwise specified, ones should not be written to these bits since they may be used for other
purposes in future derivatives. The reset values shown for these bits are ‘0’s although they are unknown when read.
value is xx110000.
not affect WDTOF.
MSBLSBHexBinary
[5] [6]
[4] [6]
Philips Semiconductors
8-bit microcontrollers with two-clock 80C51 core
P89LPC901/902/903
Loading...
+ 38 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.