Philips P89LPC903 - Manuals
Philips P89LPC903 – Manual in PDF format online.
Manuals:
Manual Philips P89LPC903
Summary
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 Table of Contents 2003 Dec 8 2 Table of Contents 1. General Description ................................................................................ 7 Pin Configurations ..........................................................
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 List of Figures 2003 Dec 8 5 List of Figures P89LPC901/902/903 Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25Using the Crystal Oscillator - P89LPC901 . . . . . . . . . . . . . . ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 7 1. GENERAL DESCRIPTION The P89LPC901/902/903 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 - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 8 Logic Symbols Product comparison The following table highlights differences between these three devices. Part number Ext crystal pins X2 clkout T0 PWM output CMP1 input CMP2 input CMP Ref Input CM...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 9 Block Diagram - P89LPC901 Port 0 Configurable I/Os 128 byte Data RAM 1KB Code Flash Internal Bus Timer0Timer1 Keypad Interrupt Power Monitor (Power-On Reset, Brownout Reset) Configurable Oscillato...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 12 PIN DESCRIPTIONS - P89LPC901 MNEMONIC PIN NO. TYPE NAME AND FUNCTION P0.0 - P0.6 6, 7 I/O Port 0: Port 0 is an I/O port with a user-configurable output types. During reset Port 0 latches are conf...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 13 O XTAL2 Output from the oscillator amplifier (when a crystal oscillator option is selected via the FLASH configuration). O CLKOUT CPU clock divided by 2 when enabled via SFR bit (ENCLK - TRIM.6)....
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 16 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 - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 19 Special Function Registers Table - P89LPC902 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 00000000 AUXR...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 22 Special Function Registers Table - P89LPC903 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 00000000 AUXR...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 GENERAL DESCRIPTION 2003 Dec 8 25 Memory Organization The P89LPC901/902/903 memory map is shown in Figure 1-1. Figure 1-1: P89LPC901/902/903 Memory Map The various P89LPC901/902/903 memory spaces are as follows: DATA 128 bytes of...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 CLOCKS 2003 Dec 8 27 2. CLOCKS Enhanced CPU The P89LPC901/902/903 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 - P89LPC901/902/903 CLOCKS 2003 Dec 8 28 Figure 2-1: Using the Crystal Oscillator - P89LPC901 Oscillator Option Selection- P89LPC901 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 - P89LPC901/902/903 CLOCKS 2003 Dec 8 29 If CCLK is 8MHz or slower, the CLKLP SFR bit (AUXR1.7) can be set to ’1’ to reduce power consumption. On reset, CLKLP is ’0’ allowing highest performance access. This bit can then be set in software if CCLK i...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 CLOCKS 2003 Dec 8 30 . Figure 2-3: Block Diagram of Oscillator Control - P89LPC901 RTC CPU High freq. Med freq. Low freq. Watchdog Oscillator RC Oscillator XTAL1 XTAL2 /2 DIVM WDT (7.3728MHz) (400KHz) CCLK PCLK Timer 0 & 1 OS...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 INTERRUPTS 2003 Dec 8 35 3. INTERRUPTS The P89LPC901/902/903 use a four priority level interrupt structure. This allows great flexibility in controlling the handling of the many interrupt sources. The P89LPC901 supports 6 interru...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 INTERRUPTS 2003 Dec 8 37 External Interrupt Inputs The P89LPC901/902/903 have a Keypad Interrupt function (see Keypad Interrupt (KBI) on page 79). This can be used as an external interrupt input. If enabled when the P89LPC901/902...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 I/O PORTS 2003 Dec 8 39 4. I/O PORTS The P89LPC901/902/903 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 - P89LPC901/902/903 I/O PORTS 2003 Dec 8 40 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 - P89LPC901/902/903 I/O PORTS 2003 Dec 8 41 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 P89LPC901/902/903 datasheet, A...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 I/O PORTS 2003 Dec 8 42 Table 4-3: Port Output Configuration - P89LPC901 Table 4-4: Port Output Configuration - P89LPC902 Table 4-5: Port Output Configuration - P89LPC903 Additional Port Features After power-up, all pins are in I...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 TIMERS 0 AND 1 2003 Dec 8 45 5. TIMERS 0 AND 1 The P89LPC901/902/903 has two general-purpose counter/timers which are similar to the 80C51 Timer 0 and Timer 1. Timer 0 of the P89LPC901 can be configured to operate either as a tim...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 TIMERS 0 AND 1 2003 Dec 8 46 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 - P89LPC901/902/903 TIMERS 0 AND 1 2003 Dec 8 47 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 - P89LPC901/902/903 TIMERS 0 AND 1 2003 Dec 8 49 Figure 5-7: Timer/Counter 0 Mode 3 (two 8-bit counters) Figure 5-8: Timer/Counter 0 in Mode 6 (PWM auto-reload), P89LPC901. Timer Overflow toggle output - P89LPC901 Timer 0 can be configured to automa...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 51 6. REAL-TIME CLOCK/SYSTEM TIMER The P89LPC901/902/903 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 - P89LPC901/902/903 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 52 Table 6-1: Real-time Clock/System Timer Clock Source - P89LPC901 FOSC2 (UCFG1.2) FOSC1 (UCFG1.1) FOSC0 (UCFG1.0) RTCS1:0 CCLK Frequency RTC Clock Frequency 0 0 0 00 High frequency crysta...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 53 Table 6-2: :Real-time Clock/System Timer Clock Source - P89LPC902/903 Changing RTCS1-0 RTCS1-0 cannot be changed if the RTC is currently enabled (RTCCON.0 =1). Setting RTCEN and updating...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 54 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 - P89LPC901/902/903 POWER MONITORING FUNCTIONS 2003 Dec 8 55 7. POWER MONITORING FUNCTIONS The P89LPC901/902/903 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 - P89LPC901/902/903 POWER MONITORING FUNCTIONS 2003 Dec 8 57 Power Reduction Modes The P89LPC901/902/903 supports three different power reduction modes as determined by SFR bits PCON.1-0 (see Table 7-2): PMOD1 (PCON.1) PMOD0 (PCON.0) Description 0 0...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 POWER MONITORING FUNCTIONS 2003 Dec 8 58 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 - P89LPC901/902/903 POWER MONITORING FUNCTIONS 2003 Dec 8 59 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 - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 62 SFR Space The UART SFRs are at the following locations: Table 8-1: SFR Locations for UARTs Baud Rate Generator and Selection The P89LPC903 enhanced UART has an independent Baud Rate Generator. The b...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 63 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 th...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 64 . 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 determine...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 65 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 clea...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 66 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 progra...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 67 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 ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 68 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 trans...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 69 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 be...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 UART (P89LPC903) 2003 Dec 8 70 - 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...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 RESET 2003 Dec 8 73 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 - P89LPC901/902/903 RESET 2003 Dec 8 74 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 - P89LPC901/902/903 ANALOG COMPARATORS 2003 Dec 8 75 10. ANALOG COMPARATORS One analog comparator is provided on the P89LPC901 and two analog comparators are provided on both the P89LPC902 and P89LPC903 . Comparator operation is such that the output...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 ANALOG COMPARATORS 2003 Dec 8 76 Figure 10-2: Comparator Input and Output Connections - P89LPC901 Figure 10-3: Comparator Input and Output Connections - P89LPC902 + - CIN1A Comparator (P0.5) CMPREF Vref CN1 Change Detect CMF1 Int...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 ANALOG COMPARATORS 2003 Dec 8 77 Figure 10-4: Comparator Input and Output Connections - P89LPC903 Figure 10-5: Comparator Configurations Internal Reference Voltage An internal reference voltage, Vref, may supply a default referen...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 ANALOG COMPARATORS 2003 Dec 8 78 an interrupt if the comparator interrupt is enabled. The user should therefore disable the comparator interrupt prior to disabling the comparator. Additionally, the user should clear the comparato...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 WATCHDOG TIMER 2003 Dec 8 83 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 - P89LPC901/902/903 WATCHDOG TIMER 2003 Dec 8 84 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 - P89LPC901/902/903 WATCHDOG TIMER 2003 Dec 8 87 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 register after one watchdog clock cycle. A watchdog underf...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 WATCHDOG TIMER 2003 Dec 8 89 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 - P89LPC901/902/903 ADDITIONAL FEATURES 2003 Dec 8 91 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 - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 93 14. FLASH PROGRAM MEMORY General description The P89LPC901/902/903 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 - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 95 Figure 14-1: Flash Memory Control Register Figure 14-2: Assembly language routine to erase/program all or part of a page FMCON Address: E4h Not bit addressableReset Source(s): Any resetReset Val...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 96 Figure 14-3: C-language routine to erase/program all or part of a page Accessing additional flash elements In addition to the user code array, the user’s firmware may access additional flash ele...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 97 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 - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 99 Figure 14-6: C-language routine to read a flash element User Configuration Bytes A number of user-configurable features of the P89LPC901/902/903 must be defined at power-up and therefore cannot ...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 101 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 Byt...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 FLASH PROGRAM MEMORY 2003 Dec 8 102 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 (sho...
Philips Semiconductors User’s Manual - Preliminary - P89LPC901/902/903 INSTRUCTION SET 2003 Dec 8 103 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 - P89LPC901/902/903 REVISION HISTORY 2003 Dec 8 107 16. REVISION HISTORY 2003 Dec 8 Removed ENCLK bit from P89LPC902 and P89LPC903 TRIM SFRs. Modified Fig 2-1 to reflect ENCLK only on the P89LPC901. Removed RCCLK from TRIM SFR description (Fig2-1).C...
Philips Semiconductors P89LPC901/902/903 INDEX User’s Manual - Preliminary - 2003 Dec 8 109 17. INDEX A Analog comparators 41, 75 configuration 75 configuration example 78 enabling 75 internal reference voltage 83 interrupt 77 power reduction modes 78 Analog comparators and power reduction 41 B Bloc...
Philips Semiconductors P89LPC901/902/903 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