Philips P89LPC907 - Manuals
Philips P89LPC907 – Manual in PDF format online.
Manuals:
Manual Philips P89LPC907
Summary
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 Table of Contents 2003 Dec 8 2 1. General Description ................................................................................ 7 Pin Configurations ............................................................................
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 List of Figures 2003 Dec 8 5 List of Figures Special function registers table - P89LPC906 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15Special function registers table - P89LPC907 . . . . . . . . . . . . ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 7 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...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 8 Logic Symbols PRODUCT COMPARISON The following table highlights differences between these three devices. Part number Ext crystal pins CLKOUT output T0 PWM output Analog comparator UART TxD RxD P89...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 9 Block Diagram - P89LPC906 High Performance Accelerated 2-clock 80C51 CPU Port 0 Configurable I/Os 128 byte Data RAM 1 KB Code Flash Internal Bus Timer0Timer1 Keypad Interrupt Power Monitor (Power-...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 10 Block Diagram - P89LPC907 Port 0 Configurable I/Os 128 byte Data RAM 1 KB Code Flash Internal Bus Timer0Timer1 Keypad Interrupt Power Monitor (Power-On Reset, Brownout Reset) On-Chip RC Oscillato...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 13 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 co...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 15 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 a...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 18 Table 2: Special function registers table - P89LPC907 Name Description SFR Address Bit Functions and Addresses Reset Value MSB LSB Hex Binary E7 E6 E5 E4 E3 E2 E1 E0 ACC* Accumulator E0H 00H 0000...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 21 Table 3: Special function registers table - P89LPC908 Name Description SFR Address Bit Functions and Addresses Reset Value MSB LSB Hex Binary E7 E6 E5 E4 E3 E2 E1 E0 ACC* Accumulator E0H 00H 0000...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 24 MEMORY ORGANIZATION The P89LPC906/907/908 memory map is shown in Figure 1-1. Figure 1-1: P89LPC906/907/908 Memory Map The various P89LPC906/907/908 memory spaces are as follows: DATA 128 bytes of...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 CLOCKS 2003 Dec 8 25 2. CLOCKS ENHANCED CPU The P89LPC906/907/908 uses an enhanced 80C51 CPU which runs at 6 times the speed of standard 80C51 devices. A machine cycle consists of two CPU clock cycles, and most instructions execu...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 CLOCKS 2003 Dec 8 26 Figure 2-1: Using the Crystal Oscillator - P89LPC906 OSCILLATOR OPTION SELECTION- P89LPC906 The oscillator option is selectable either by the FOSC2:0 bits in UCFG1 or by the RTCS1:0 bits in RTCCON. If the FOS...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 CLOCKS 2003 Dec 8 27 EXTERNAL CLOCK INPUT OPTION - P89LPC906 In this configuration, the processor clock is derived from an external source driving the XTAL1 / P3.1 pin. The rate may be from 0 Hz up to 12 MHz. The XTAL2 / P3.0 pin...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 CLOCKS 2003 Dec 8 28 LOW POWER SELECT (P89LPC906) The P89LPC906 is designed to run at 12MHz (CCLK) maximum. However, if CCLK is 8MHz or slower, the CLKLP SFR bit (AUXR1.7) can be set to a ’1’ to lower the power consumption furthe...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 31 3. INTERRUPTS The P89LPC906/907/908 use a four priority level interrupt structure. This allows great flexibility in controlling the handling of the many interrupt sources. The P89LPC906 supports 6 interru...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 32 Table 3-3: Summary of Interrupts - P89LPC907,P89LPC908 EXTERNAL INTERRUPT INPUTS The P89LPC906/907/908 have a Keypad Interrupt function (see Keypad Interrupt (KBI) on page 77). This can be used as an exte...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 I/O PORTS 2003 Dec 8 35 4. I/O PORTS The P89LPC906/907/908 has between 3 and 6 I/O pins. The exact number of I/O pins available depends on the clock and reset options chosen: Table 4-1: Number of I/O Pins Available PORT CONFIGURA...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 I/O PORTS 2003 Dec 8 36 The third pullup is referred to as the "strong" pullup. This pullup is used to speed up low-to-high transitions on a quasi-bidirectional port pin when the port latch changes from a logic 0 to a log...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 I/O PORTS 2003 Dec 8 37 INPUT-ONLY CONFIGURATION The input port configuration is shown in Figure 4-3. It is a Schmitt-triggered input that also has a glitch suppression circuit (please refer to the P89LPC906/907/908 datasheet, AC...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 41 5. TIMERS 0 AND 1 The P89LPC906/907/908 has two general-purpose counter/timers which are similar to the 80C51 Timer 0 and Timer 1. Timer 0 of the P89LPC907 can be configured to operate either as a tim...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 42 Figure 5-2: Timer/Counter Auxiliary Mode Control register (TAMOD) MODE 0 Putting either Timer into Mode 0 makes it look like an 8048 Timer, which is an 8-bit Counter with a divide-by-32 prescaler. Fig...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 43 MODE 3 When Timer 1 is in Mode 3 it is stopped. The effect is the same as setting TR1 = 0. Timer 0 in Mode 3 establishes TL0 and TH0 as two separate 8-bit counters. The logic for Mode 3 on Timer 0 is ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 45 Figure 5-7: Timer/Counter 0 Mode 3 (two 8-bit counters) Figure 5-8: Timer/Counter 0 in Mode 6 (PWM auto-reload), P89LPC907. TIMER OVERFLOW TOGGLE OUTPUT - P89LPC907 Timer 0 can be configured to automa...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 47 6. REAL-TIME CLOCK/SYSTEM TIMER The P89LPC906/907/908 has a simple Real-time clock/system timer that allows a user to continue running an accurate timer while the rest of the device is p...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 48 Figure 6-1: Real-time clock/system timer Block Diagram Table 6-1: Real-time Clock/System Timer Clock Source - P89LPC906 FOSC2 (UCFG1.2) FOSC1 (UCFG1.1) FOSC0 (UCFG1.0) RTCS1:0 CCLK Frequ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 50 CHANGING RTCS1-0 RTCS1-0 cannot be changed if the RTC is currently enabled (RTCCON.0 =1). Setting RTCEN and updating RTCS1-0 may be done in a single write to RTCCON. However, if RTCEN = ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 51 Figure 6-2: RTCCON Register RTCCON Address: D1h Not bit addressableReset Source(s): Power-up onlyReset Value: 011xxx00B BIT SYMBOL FUNCTION RTCCON.7 RTCF Real-time Clock Flag. This bit i...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 53 7. POWER MONITORING FUNCTIONS The P89LPC906/907/908 incorporates power monitoring functions designed to prevent incorrect operation during initial power- on and power loss or reduction dur...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 54 Table 7-1: Brownout Options POWER-ON DETECTION The Power-On Detect has a function similar to the Brownout Detect, but is designed to work as power initially comes up, before the power supp...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 56 Figure 7-1: Power Control Register (PCON) PCON Address: 87h Not bit addressableReset Source(s): Any resetReset Value: 00000000B BIT SYMBOL FUNCTION PCON.7 SMOD1 Double Baud Rate bit for th...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 57 Figure 7-2: Power Control Register (PCONA) PCONA Address: B5H Not bit addressableReset Source(s): Any resetReset Value: 00000000B BIT SYMBOL FUNCTION PCONA.7 RTCPD Real-time Clock Power do...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 59 8. UART (P89LPC907, P89LPC908) The P89LPC907 and P89LPC908 devices have an enhanced UART that is compatible with the conventional 80C51 UART, except that Timer 2 overflow cannot be used as a baud rate source. T...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 60 SFR SPACE The UART SFRs are at the following locations: Table 8-1: SFR Locations for UARTs BAUD RATE GENERATOR AND SELECTION The enhanced UART has an independent Baud Rate Generator. The baud rate is determined...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 61 Figure 8-1: BRGCON Register Figure 8-2: Baud Rate Generations for UART (Modes 1, 3) FRAMING ERROR A Framing error occurs when the stop bit is sensed as a logic ’0’. A Framing error is reported in the status reg...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 62 . Figure 8-3: Serial Port Control Register (SCON) SCON Address: 98h Bit addressableReset Source(s): Any resetReset Value: 00000000B BIT SYMBOL FUNCTION SCON.7 SM0/FE The use of this bit is determined by SMOD0 i...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 63 Figure 8-4: Serial Port Status Register (SSTAT) MORE ABOUT UART MODE 0 In Mode 0, a write to SBUF will initiate a transmission. At the end of the transmission, TI (SCON.1) is set, which must be cleared in softw...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 64 Figure 8-5: Serial Port Mode 0 (Double Buffering Must Be Disabled) MORE ABOUT UART MODE 1 Reception is initiated by detecting a 1-to-0 transition on RxD. RxD is sampled at a rate 16 times the programmed baud ra...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 65 MORE ABOUT UART MODES 2 AND 3 Reception is the same as in Mode 1. The signal to load SBUF and RB8, and to set RI, will be generated if, and only if, the following conditions are met at the time the final shift ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 66 DOUBLE BUFFERING The UART has a transmit double buffer that allows buffering of the next character to be written to SBUF while the first character is being transmitted. Double buffering allows transmission of a...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 67 Figure 8-8: Transmission with and without Double Buffering THE 9TH BIT (BIT 8) IN DOUBLE BUFFERING (MODES 1, 2 AND 3) If double buffering is disabled (DBMOD, i.e. SSTAT.7 = 0), TB8 can be written before or afte...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 UART 2003 Dec 8 68 - If DBISEL is ’1’ and INTLO is ’1’, a Tx interrupt will occur at the end of the STOP bit of the data currently in the shifter (which is also the last data). 7. If there is more data, the CPU writes to TB8 agai...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 RESET 2003 Dec 8 71 9. RESET The P1.5/RST pin can function as either an active low reset input or as a digital input, P1.5. The RPE (Reset Pin Enable) bit in UCFG1, when set to 1, enables the external reset input function on P1.5...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 RESET 2003 Dec 8 72 Figure 9-2: Reset Sources Register RSTSRC Address: DFH Not bit addressableReset Sources: Power-on onlyReset Value: xx110000B (This is the power-on reset value. Other reset sources will set corresponding bits.)...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 73 10. ANALOG COMPARATORS An analog comparator is provided on the P89LPC906 / 907 / 908 . Comparator operation is such that the output is a logical one when the positive input is greater than the neg...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 74 Figure 10-2: Comparator Input and Output Connections Figure 10-3: Comparator Configurations INTERNAL REFERENCE VOLTAGE An internal reference voltage, Vref, may supply a default reference when a si...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 75 If the comparator output to a pin is enabled, the pin should be configured in the push-pull mode in order to obtain fast switching times while in power down mode. The reason is that with the oscil...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 KEYPAD INTERRUPT (KBI) 2003 Dec 8 78 Figure 11-3: Keypad Interrupt Mask Register (KBM) KBMASK Address: 86h Not bit addressableReset Source(s): Any resetReset Value: 00000000B BIT SYMBOL FUNCTION KBMASK.7 - Reserved. KBMASK.6 - Wh...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 79 12. WATCHDOG TIMER The watchdog timer subsystem protects the system from incorrect code execution by causing a system reset when it underflows as a result of a failure of software to feed the timer pr...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 80 Figure 12-1: Watchdog Prescaler FEED SEQUENCE The watchdog timer control register and the 8-bit down counter (Figure 12-3) are not directly loaded by the user. The user writes to the WDCON and the WDL...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 83 Figure 12-3: Watchdog Timer in Watchdog Mode (WDTE = 1) WATCHDOG TIMER IN TIMER MODE Figure 12-4 shows the Watchdog Timer in Timer Mode. In this mode, any changes to WDCON are written to the shadow re...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 84 Figure 12-4: Watchdog Timer in Timer Mode (WDTE = 0) POWER DOWN OPERATION The WDT oscillator will continue to run in power down, consuming approximately 50uA, as long as the WDT oscillator is selected...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 85 PERIODIC WAKEUP FROM POWER DOWN WITHOUT AN EXTERNAL OSCILLATOR Without using an external oscillator source, the power consumption required in order to have a periodic wakeup is determined by the power...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 ADDITIONAL FEATURES 2003 Dec 8 87 13. ADDITIONAL FEATURES The AUXR1 register contains several special purpose control bits that relate to several chip features. AUXR1 is described in Figure 13-1. Figure 13-1: AUXR1 Register SOFTW...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 89 14. FLASH PROGRAM MEMORY GENERAL DESCRIPTION The P89LPC906/907/908 Flash memory provides in-circuit electrical erasure and programming. The Flash can be read and written as bytes. On-chip erase ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 91 Figure 14-1: Flash Memory Control Register FMCON Address: E4h Not bit addressableReset Source(s): Any resetReset Value: BIT SYMBOL FUNCTION FMCON.7-4 - Reserved. FMCON.3 HVA High voltage abort. ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 92 Figure 14-2: Assembly language routine to erase/program all or part of a page Figure 14-3: C-language routine to erase/program all or part of a page ACCESSING ADDITIONAL FLASH ELEMENTS In additi...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 93 Table 14-1: Flash elements accesable through IAP-Lite ERASE-PROGRAMMING ADDITIONAL FLASH ELEMENTS The erase-program cycle takes 4ms to complete and is accomplished using the following steps: • W...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 95 Figure 14-6: C-language routine to read a flash element #include <REG921.H> unsigned char READ_EL (unsigned char); unsigned char GET_EL; void main () { GET_EL = READ_EL(0x02); } unsigned c...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 96 USER CONFIGURATION BYTES A number of user-configurable features of the P89LPC906/907/908 must be defined at power-up and therefore cannot be set by the program after start of execution. These fe...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 97 USER SECURITY BYTES There are four User Sector Security Bytes (SEC0, ..., SEC3), each corresponding to one sector and having the following bit assignments: Figure 14-8: User Sector Security Byte...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 98 Boot Vector Figure 14-9: Boot Vector (BOOTVEC) Boot Status Figure 14-10: Boot Status (BOOTSTAT) BOOTVEC Address: xxxxh Factory default value: 00h BIT SYMBOL FUNCTION BOOTVEC.7-5 - Reserved (shou...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 INSTRUCTION SET 2003 Dec 8 99 15. INSTRUCTION SET Table 15-1: Instruction set summary Mnemonic Description Bytes Cycles Hex code ARITHMETIC ADD A,Rn Add register to A 1 1 28-2F ADD A,dir Add direct byte to A 2 1 25 ADD A,@Ri Add ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 REVISION HISTORY 2003 Dec 8 103 16. REVISION HISTORY 2003 Dec 8 Initial release.
Philips Semiconductors User’s Manual - Preliminary - P89LPC906/907/908 INDEX 2003 Dec 8 105 17. INDEX A Analog comparators 37, 73 configuration 73 configuration example 75 enabling 73 internal reference voltage 79 interrupt 74 power reduction modes 74 Analog comparators and power reduction 37 B Bloc...
Philips Semiconductors P89LPC906/907/908 User’s manual – Preliminary – yyyy mmm dd 1 Definitions Short-form specification — The data in a short-form specification is extracted from a full data sheet with the same type number and title. For detailed information seethe relevant data sheet or data hand...
Philips Manuals
-
Philips 50PFL5907/F7
User Manual
-
Philips 50PFL5907/F7
Quick Guide
-
Philips 39PFL2908/F7
User Manual
-
Philips 39PFL2908/F7
Quick Guide
-
Philips 55PFL5907/F7
Quick Guide
-
Philips 40PFL4908/F7
User Manual
-
Philips 40PFL4908/F7
Quick Guide
-
Philips 29PFL4908/F7
User Manual
-
Philips 29PFL4908/F7
Quick Guide
-
Philips 42PFL5907/F7
Quick Guide
-
Philips 32PFL5708/F7
Manual
-
Philips 39PFL5708/F7
Manual
-
Philips 50PFL5708/F7
User Manual
-
Philips 50PFL5708/F7
Manual
-
Philips 20PT643R
User Manual
-
Philips 30PW862H
Manual
-
Philips 30PW850H
Manual
-
Philips HTS6500
User Manual
-
Philips HTS6500
Manual
-
Philips 37PF9631D/37
User Manual