Inhaltszusammenfassung zur Seite Nr. 1
INTEGRATED CIRCUITS
USER
MANUAL
P89LPC906/907/908
8-bit microcontrollers with accelerated two-clock 80C51 core
1KB 3V Low-Power byte-eraseable Flash with 128 Byte RAM
2003 Dec 8
Philips
PHILIPS
Semiconductors
Inhaltszusammenfassung zur Seite Nr. 2
User’s Manual - Preliminary - Philips Semiconductors Table of Contents P89LPC906/907/908 1. General Description................................................................................ 7 Pin Configurations ..................................................................................... 7 Product comparison................................................................................... 8 Pin Descriptions - P89LPC906 ................................................................
Inhaltszusammenfassung zur Seite Nr. 3
User’s Manual - Preliminary - Philips Semiconductors Table of Contents P89LPC906/907/908 6. Real-Time Clock/System Timer............................................................ 47 Real-time Clock Source........................................................................... 47 Changing RTCS1-0 ................................................................................. 50 Real-time Clock Interrupt/Wake Up ......................................................... 50 Reset Sources Aff
Inhaltszusammenfassung zur Seite Nr. 4
User’s Manual - Preliminary - Philips Semiconductors Table of Contents P89LPC906/907/908 Power down operation............................................................................. 84 Watchdog Clock Source .......................................................................... 84 Periodic wakeup from Power down without an external oscillator........... 85 13. Additional Features............................................................................. 87 Software Reset .............
Inhaltszusammenfassung zur Seite Nr. 5
User’s Manual - Preliminary - Philips Semiconductors List of Figures P89LPC906/907/908 List of Figures Special function registers table - P89LPC906. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Special function registers table - P89LPC907. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 Special function registers table - P89LPC908. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 P89LPC906/907/908 Memory Map. . . . . . . . .
Inhaltszusammenfassung zur Seite Nr. 6
User’s Manual - Preliminary - Philips Semiconductors List of Figures P89LPC906/907/908 Serial Port Control Register (SCON). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Serial Port Status Register (SSTAT). . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Serial Port Mode 0 (Double Buffering Must Be Disabled) . . . . . . . . . . . . . . . . . . . . . . . . . 64 Serial Port Mode 1 (Only Single Transmit Buffering Case Is
Inhaltszusammenfassung zur Seite Nr. 7
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 1. GENERAL DESCRIPTION The P89LPC906/907/908 is a single-chip microcontroller designed for applications demanding high-integration, low cost solutions over a wide range of performance requirements. The P89LPC906/907/908 is based on a high performance processor architecture that executes instructions six times the rate of standard 80C51 devices. Many system level functions have been incorporated into the
Inhaltszusammenfassung zur Seite Nr. 8
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Logic Symbols V V DD SS KBI4 CIN1A KBI5 CMPREF RST P89 KBI6 CMP1 LPC906 CLKOUT XTAL2 XTAL1 V V DD SS KBI4 CIN1A KBI5 CMPREF RST P89 T0 KBI6 CMP1 TxD LPC907 V V DD SS KBI4 CIN1A KBI5 CMPREF RST P89 KBI6 CMP1 RxD LPC908 TxD PRODUCT COMPARISON The following table highlights differences between these three devices. UART Analog Part number Ext crystal pins CLKOUT output T0 PWM output comparator TxD RxD P89L
Inhaltszusammenfassung zur Seite Nr. 9
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Block Diagram - P89LPC906 High Performance Accelerated 2-clock 80C51 CPU 1 KB Code Flash Internal Bus Timer0 Timer1 128 byte Data RAM Port 3 Configurable I/Os Real-Time Clock/ System Timer Port 1 Input Port 0 Analog Configurable I/Os Comparator Keypad Interrupt Watchdog Timer and Oscillator CPU Programmable Clock Oscillator Divider Power Monitor On-Chip Crystal or Configurable (Power-On Reset, RC
Inhaltszusammenfassung zur Seite Nr. 10
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Block Diagram - P89LPC907 High Performance Accelerated 2-clock 80C51 CPU 1 KB Code Flash Internal Bus UART 128 byte Data RAM Timer0 Timer1 Port 1 Configurable I/O Real-Time Clock/ System Timer Port 0 Configurable I/Os Analog Keypad Comparator Interrupt Watchdog Timer and Oscillator CPU Programmable Clock Oscillator Divider Power Monitor On-Chip (Power-On Reset, RC Brownout Reset) Oscillator 2003
Inhaltszusammenfassung zur Seite Nr. 11
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Block Diagram - P89LPC908 High Performance Accelerated 2-clock 80C51 CPU UART 1 KB Code Flash Internal Bus Timer0 Timer1 128 byte Data RAM Real-Time Clock/ Port 1 System Timer Configurable I/Os Port 0 Configurable I/Os Analog Keypad Comparator Interrupt Watchdog Timer and Oscillator CPU Programmable Clock Oscillator Divider Power Monitor On-Chip (Power-On Reset, RC Brownout Reset) Oscillator 2003
Inhaltszusammenfassung zur Seite Nr. 12
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 PIN DESCRIPTIONS - P89LPC906 Mnemonic Pin no. Type Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O port with a user-configurable output types. During reset Port 0 latches are configured in the input only mode with the internal pullup disabled. The operation of port 0 pins as inputs and outputs depends upon the port configuration selected. Each port pin is configured independentl
Inhaltszusammenfassung zur Seite Nr. 13
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 PIN DESCRIPTIONS - P89LPC907 Mnemonic Pin no. Type Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O port with a user-configurable output types. During reset Port 0 latches are configured in the input only mode with the internal pullup disabled. The operation of port 0 pins as inputs and outputs depends upon the port configuration selected. Each port pin is configured independentl
Inhaltszusammenfassung zur Seite Nr. 14
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 PIN DESCRIPTIONS - P89LPC908 Mnemonic Pin no. Type Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O port with a user-configurable output types. During reset Port 0 latches are configured in the input only mode with the internal pullup disabled. The operation of port 0 pins as inputs and outputs depends upon the port configuration selected. Each port pin is configured independentl
Inhaltszusammenfassung zur Seite Nr. 15
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Special function registers Note: Special function registers (SFRs) accesses are restricted in the following ways: 1. User must NOT attempt to access any SFR locations not defined. 2. Accesses to any defined SFR locations must be strictly for the functions for the SFRs. 3. SFR bits labeled ’-’, ’0’ or ’1’ can ONLY be written and read as follows: - ’-’ Unless otherwise specified, MUST be written with ’0’, bu
Inhaltszusammenfassung zur Seite Nr. 16
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Bit Functions and Addresses Reset Value SFR Name Description Address LSB MSB Hex Binary 1 IP1H# Interrupt Priority 1 High F7H - - - - - PCH PKBIH - 00H 00x00000 PATN_S 1 KBCON# Keypad Control Register 94H - - - - - - KBIF 00H xxxxxx00 EL KBMASK# Keypad Interrupt Mask Register 86H 00H 00000000 KBPATN# Keypad Pattern Register 93H FFH 11111111 87 86 85 84 83 82 81 80 CMP1/ CMPREF/ CIN/1A P0* Port 0 80H - --
Inhaltszusammenfassung zur Seite Nr. 17
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Bit Functions and Addresses Reset Value SFR Name Description Address LSB MSB Hex Binary TH0 Timer 0 High 8CH 00H 00000000 TH1 Timer 1 High 8DH 00H 00000000 TL0 Timer 0 Low 8AH 00H 00000000 TL1 Timer 1 Low 8BH 00H 00000000 TMOD Timer 0 and 1 Mode 89H - - T1M1 T1M0 - - T0M1 T0M0 00H 00000000 TRIM# Internal Oscillator Trim Register 96H - ENCLK TRIM.5 TRIM.4 TRIM.3 TRIM.2 TRIM.1 TRIM.0 Notes 4,5 WDCON# Watchd
Inhaltszusammenfassung zur Seite Nr. 18
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Table 2: Special function registers table - P89LPC907 Bit Functions and Addresses Reset Value SFR Name Description Address LSB MSB Hex Binary E7 E6 E5 E4 E3 E2 E1 E0 ACC* Accumulator E0H 00H 00000000 1 AUXR1# Auxiliary Function Register A2H ---- SRST 0 - DPS00H 000000x0 F7 F6 F5 F4 F3 F2 F1 F0 B* B Register F0H 00H 00000000 BRGR0#§ Baud Rate Generator Rate Low BEH 00H 00000000 BRGR1#§ Baud Rate Generator
Inhaltszusammenfassung zur Seite Nr. 19
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Bit Functions and Addresses Reset Value SFR Name Description Address LSB MSB Hex Binary KBMASK# Keypad Interrupt Mask Register 86H 00H 00000000 KBPATN# Keypad Pattern Register 93H FFH 11111111 87 86 85 84 83 82 81 80 CMP1/ CMPREF/ CIN1A/ P0* Port 0 80H - -KB2 -KB0 Note 1 KB6 KB5 KB4 97 96 95 94 93 92 91 90 P1* Port 1 90H - - RST -- T0 - TxD B7 B6 B5 B4 B3 B2 B1 B0 P0M1# Port 0 Output Mode 1 84H - (P0M1.6)
Inhaltszusammenfassung zur Seite Nr. 20
User’s Manual - Preliminary - Philips Semiconductors GENERAL DESCRIPTION P89LPC906/907/908 Bit Functions and Addresses Reset Value SFR Name Description Address LSB MSB Hex Binary TH0 Timer 0 High 8CH 00H 00000000 TH1 Timer 1 High 8DH 00H 00000000 TL0 Timer 0 Low 8AH 00H 00000000 TL1 Timer 1 Low 8BH 00H 00000000 TMOD Timer 0 and 1 Mode 89H - - T1M1 T1M0 - - T0M1 T0M0 00H 00000000 TRIM# Internal Oscillator Trim Register 96H - - TRIM.5 TRIM.4 TRIM.3 TRIM.2 TRIM.1 TRIM.0 Notes 4,5 WDCON# Watchdog C