Ir para a página of
Manuais similares
-
Computer Monitor
Philips 170V7
86 páginas 1.4 mb -
Computer Monitor
Philips 221EL2
47 páginas 8.31 mb -
Computer Monitor
Philips 181AS
2 páginas 0.16 mb -
Computer Monitor
Philips SCM4380
49 páginas 2.46 mb -
Computer Monitor
Philips 107T4
101 páginas 0.93 mb -
Computer Monitor
Philips 150P1
80 páginas 0.82 mb -
Computer Monitor
Philips 240S1
98 páginas 2.36 mb -
Computer Monitor
Philips 107S21
96 páginas 0.94 mb
Bom manual de uso
As regras impõem ao revendedor a obrigação de fornecer ao comprador o manual com o produto Philips P89LPC907. A falta de manual ou informações incorretas fornecidas ao consumidor são a base de uma queixa por não conformidade do produto com o contrato. De acordo com a lei, pode anexar o manual em uma outra forma de que em papel, o que é frequentemente utilizado, anexando uma forma gráfica ou manual electrónicoPhilips P89LPC907 vídeos instrutivos para os usuários. A condição é uma forma legível e compreensível.
O que é a instrução?
A palavra vem do latim "Instructio" ou instruir. Portanto, no manual Philips P89LPC907 você pode encontrar uma descrição das fases do processo. O objetivo do manual é instruir, facilitar o arranque, a utilização do equipamento ou a execução de determinadas tarefas. O manual é uma coleção de informações sobre o objeto / serviço, um guia.
Infelizmente, pequenos usuários tomam o tempo para ler o manual Philips P89LPC907, e um bom manual não só permite conhecer uma série de funcionalidades adicionais do dispositivo, mas evita a formação da maioria das falhas.
Então, o que deve conter o manual perfeito?
Primeiro, o manual Philips P89LPC907 deve conte:
- dados técnicos do dispositivo Philips P89LPC907
- nome do fabricante e ano de fabricação do dispositivo Philips P89LPC907
- instruções de utilização, regulação e manutenção do dispositivo Philips P89LPC907
- sinais de segurança e certificados que comprovam a conformidade com as normas pertinentes
Por que você não ler manuais?
Normalmente, isso é devido à falta de tempo e à certeza quanto à funcionalidade específica do dispositivo adquirido. Infelizmente, a mesma ligação e o arranque Philips P89LPC907 não são suficientes. O manual contém uma série de orientações sobre funcionalidades específicas, a segurança, os métodos de manutenção (mesmo sobre produtos que devem ser usados), possíveis defeitos Philips P89LPC907 e formas de resolver problemas comuns durante o uso. No final, no manual podemos encontrar as coordenadas do serviço Philips na ausência da eficácia das soluções propostas. Atualmente, muito apreciados são manuais na forma de animações interessantes e vídeos de instrução que de uma forma melhor do que o o folheto falam ao usuário. Este tipo de manual é a chance que o usuário percorrer todo o vídeo instrutivo, sem ignorar especificações e descrições técnicas complicadas Philips P89LPC907, como para a versão papel.
Por que ler manuais?
Primeiro de tudo, contem a resposta sobre a construção, as possibilidades do dispositivo Philips P89LPC907, uso dos acessórios individuais e uma gama de informações para desfrutar plenamente todos os recursos e facilidades.
Após a compra bem sucedida de um equipamento / dispositivo, é bom ter um momento para se familiarizar com cada parte do manual Philips P89LPC907. Atualmente, são cuidadosamente preparados e traduzidos para sejam não só compreensíveis para os usuários, mas para cumprir a sua função básica de informação
Índice do manual
-
Página 1
INTEGRATED CIRCUITS Philips Semiconductors PHILIPS 2003 Dec 8 P89LPC906/907/908 8-bit microcontrollers with accelerated two-clock 80C51 core 1KB 3V Low-Power byte-eraseable Flash with 128 Byte RAM USER MANUAL[...]
-
Página 2
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 Table of Contents 2003 Dec 8 2 1. General Descrip tion ........................................................... ..................... 7 Pin Configurations ............... ................................ ............... .............. ......... 7 Product comparison .......[...]
-
Página 3
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 Table of Contents 2003 Dec 8 3 6. Real-Time Clock/System Timer ............................. ............................... 47 Real-time Clock Source ........... ............................ ............... .............. ....... 47 Changing RTCS1-0 ........ ................[...]
-
Página 4
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 Table of Contents 2003 Dec 8 4 Power down operation ........... ........................................................ .......... 84 Watchdog Clock Source .......... ............................ ............... .............. ....... 84 Periodic wakeup from Powe r down with[...]
-
Página 5
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 List of Figures 2003 Dec 8 5 List of Figures Special function register s table - P89LPC906 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 Special function register s table - P89LPC907 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . [...]
-
Página 6
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 List of Figures 2003 Dec 8 6 Serial Port Control Register (SCON) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 62 Serial Port Status Register (SSTAT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63 Seria[...]
-
Página 7
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 7 1. GENERAL DESCRIPTION The P89LPC906/907/9 08 is a single-chip microcontroller designed for applicatio ns demanding hi gh-integration, low cost solutions over a wide ran ge of performance require ments. The P8 9LPC906/907/908 i s based on a hi[...]
-
Página 8
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 8 Logic Symbols PRODUCT COMPARISON The following table highl ights differ ences between th ese three devices. Part number Ext crystal pins CLKOUT output T0 PWM output Analog comparator UART TxD RxD P89LPC906 XX -X - - P89LPC907 -- X X X - P89LPC[...]
-
Página 9
Philips Semiconductors User’s Manual - Preliminar y - 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 Timer0 Timer1 Keypad Interrupt Power Monitor (Power-On Reset, Brownout Reset) Configurable Oscilla[...]
-
Página 10
Philips Semiconductors User’s Manual - Preliminar y - 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 Timer0 Timer1 Keypad Interrupt Power Monitor (Power-On Reset, Brownout Reset) On-Chip RC Oscillator Programmabl e Oscillator Divider CPU Clock P[...]
-
Página 11
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 11 Block Diagram - P89LPC908 Port 0 Configurable I/Os 128 byte Data RAM 1 KB Code Flash Internal Bus Timer0 Timer1 Keypad Interrupt Power Monitor (Power-On Reset, Brownout Reset) On-Chip RC Oscillator Programmable Oscillator Divider CPU Clock Po[...]
-
Página 12
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 12 PIN DESCRIPTIONS - P89LPC906 Mnemonic Pin no. T ype Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O por t wi th a use r-c on fig ura ble out put typ es . Du rin g r eset Po rt 0 latches are configured in the input only mode [...]
-
Página 13
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 13 PIN DESCRIPTIONS - P89LPC907 Mnemonic Pin no. T ype Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O port wi th a user-configurable ou tput types. Durin g reset Port 0 latches are configured in the input only mo de with the i[...]
-
Página 14
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 14 PIN DESCRIPTIONS - P89LPC908 Mnemonic Pin no. T ype Name and function P0.4 - P0.6 3, 7,8 I/O Port 0: Port 0 is an I/O port wi th a user-configurable ou tput types. Durin g reset Port 0 latches are configured in the input only mo de with the i[...]
-
Página 15
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 15 Special function registers Note: Special function reg isters (SFRs) acce sses a re restricted in the following ways: 1. User must NOT attempt to acce ss any SFR locati ons not defined. 2. Accesses to any defined SFR locations must be strictly[...]
-
Página 16
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 16 IP1H# Interr upt Priority 1 High F7H - - - - - PCH PKBIH - 00H 1 00x00000 KBCON# Keypad Control Reg ister 94H - - - - - - PATN_S EL KBIF 00H 1 xxxxxx00 KBMASK# Keypad I nterrupt Mask Register 86H 00H 00000000 KBPATN# Keypad Pattern Register 9[...]
-
Página 17
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 17 TH0 Timer 0 High 8CH 00H 0000000 0 TH1 Timer 1 High 8DH 00H 0000000 0 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 0000000 0 TRIM# Internal Oscillator Trim Regis[...]
-
Página 18
Philips Semiconductors User’s Manual - Preliminar y - 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 00000000 AUXR1# Auxiliary Function Register A2H ---[...]
-
Página 19
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 19 KBMASK# Keypad Int errupt Mask Register 86H 00H 0000000 0 KBPATN# Keypad Pattern Register 93H FFH 11111111 87 86 85 84 83 82 81 80 P0* P ort 0 80H - CMP1/ KB6 CMPREF/ KB5 CIN1A/ KB4 -K B 2-K B 0 N o t e 1 97 96 95 94 93 92 91 90 P1* P ort 1 9[...]
-
Página 20
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 20 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[...]
-
Página 21
Philips Semiconductors User’s Manual - Preliminar y - 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 00000000 AUXR1# Auxiliary Function Register A2H - E[...]
-
Página 22
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 22 KBMASK# Keypad Int errupt Mask Register 86H 00H 00000000 KBPATN# Keypad Pattern Register 93H FFH 11111111 87 86 85 84 83 82 81 80 P0* P ort 0 80H - CMP1/ KB6 CMPREF/ KB5 CIN1A/ KB4 -K B 2- - N o t e 1 97 96 95 94 93 92 91 90 P1* P ort 1 90H -[...]
-
Página 23
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 23 Notes: * SFRs are bit add ressable. # SFRs are modified from or added to the 80C51 SFRs. - Reserved bits, must be written with 0’s. § BRGR1 and BRGR0 mu st only be written if BRGEN in BRGCON SFR is ’0’. If any of them is written if BRG[...]
-
Página 24
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 GENERAL DESCRIPTION 2003 Dec 8 24 MEMORY ORGANIZATION The P89LPC906/907/9 08 memory map is shown in Figure 1-1. Figure 1-1: P89LPC906/90 7/908 Memory Map The various P89LPC906/9 07/908 memory spaces are as follows: DA T A 128 bytes of internal data memory space (00h..7Fh) acc[...]
-
Página 25
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 CLOCKS 2003 Dec 8 25 2. CLOCKS ENHANCED CPU The P89LPC906/907 /908 uses an enha nced 80C51 CPU which runs at 6 time s the speed o f standard 80C51 de vices. A machine cycle consists of two CPU clock cycles, and most in structions execute in on e or two machine cycles. CLOCK D[...]
-
Página 26
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 CLOCKS 2003 Dec 8 26 Figure 2-1: Using the Cry stal 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 th e FOSC2:0 bits select an OSCCLK source of ei ther [...]
-
Página 27
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 CLOCKS 2003 Dec 8 27 EXTERNAL CLOCK INPUT OPTION - P89LPC906 In this configuration, th e processor clock is derived from an ex ternal source driving the XTAL1 / P3.1 pin. Th e rate may be fro m 0 Hz up to 12 MHz. The XTAL2 / P3.0 pin may be used as a standard port pin or a cl[...]
-
Página 28
Philips Semiconductors User’s Manual - Preliminar y - 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 lowe r the power consumption further. On any reset, CLKLP is ’0’ allowi n[...]
-
Página 29
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 CLOCKS 2003 Dec 8 29 Figure 2-4: Block Diagram of Osc illator Co ntrol- P89LPC907,P89LPC908 RTC CPU W at chdog O scil l at or R C O s c illa to r / 2 DI VM WD T ( 7. 3728M H z) ( 400K H z) CCLK UA RT Ti m er 0 & 1 PCLK CPU Cl o c k Ba ud r a t e Ge n e r a t or RTCS1: 0 O[...]
-
Página 30
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 CLOCKS 2003 Dec 8 30[...]
-
Página 31
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 31 3. INTERRUPTS The P89LPC906/907/908 use a four prio rity level i nterrupt str ucture. This al lows great flexibility in co ntrolling the han dling of the many interrupt sources. The P89LPC906 supports 6 interrupt sources: timers 0 and 1, brownout dete[...]
-
Página 32
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 32 Table 3-3: Summary of Interrupts - P89LPC907,P89LPC90 8 EXTERNAL INTERRUPT INPUTS The P89LPC906/907/9 08 have a Keypad Interrupt function (se e Ke ypad Interrupt (KBI) on page 77). This can be used as an external interrupt input. If enabled when the P[...]
-
Página 33
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 33 Figure 3-1: Interrup t sources, enable s, and Power down Wake-up sour ces - P89LPC906 Figure 3-2: Interrupts sour ces, enables, and Power down Wake-up sources - P89LPC907,P89L PC908 Wakeup (if in Power down) EA (IE0.7) Interrupt to CPU BOPD EBO KBIF E[...]
-
Página 34
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INTERRUPTS 2003 Dec 8 34[...]
-
Página 35
Philips Semiconductors User’s Manual - Preliminar y - 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 numbe r of I/O pins available depe nds on the clock and reset options chosen: Table 4-1: Number of I/O Pins Available PORT CONFIGURATIONS All but one I/O port pin on the P89LPC9[...]
-
Página 36
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 I/O PORTS 2003 Dec 8 36 The third pullup is referred to as the "stro ng" pullup. This pull up is used to speed up low-to-hig h transitions on a quasi-bidi rectional port pin when the port latch chang es from a logic 0 to a logic 1. Whe n this occurs, the strong pull[...]
-
Página 37
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 I/O PORTS 2003 Dec 8 37 INPUT-ONLY CONFIGURATION The input port configu ration is shown i n Fi gure 4-3. It is a Schmitt-trigg ered input th at al so has a glitch su ppression circuit (please refer to the P89LPC906/9 07/908 datasheet, AC Characteristics fo r glitch filter spe[...]
-
Página 38
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 I/O PORTS 2003 Dec 8 38 Table 4-3: Port Output Conf iguration - P8 9LPC906 Table 4-4: Port Output Configuration - P89LPC 907 Table 4-5: Port Output Configuration - P89LPC908 Table 4-6: Addition al Port Features After power-up, al l pins are in Inpu t-Only mode. Please note th[...]
-
Página 39
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 I/O PORTS 2003 Dec 8 39 All ports pins that ca n function as an output have slew rate controlled outp uts to lim it no ise generated by quickly switchi ng o utput signals. The slew rate is factory-set to approximately 10 ns rise and fall times.[...]
-
Página 40
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 I/O PORTS 2003 Dec 8 40[...]
-
Página 41
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 41 5. TIMERS 0 AND 1 The P89LPC906/907/908 has two general-p urpose counter/timers which are simila r to the 80C51 Timer 0 and Timer 1. Timer 0 of the P89LPC907 can be configured to operate either as a timer or ev ent counter (see Figure 5-1). An opt[...]
-
Página 42
Philips Semiconductors User’s Manual - Preliminar y - 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 ure 5-4 shows Mode 0 operation. In this mode, [...]
-
Página 43
Philips Semiconductors User’s Manual - Preliminar y - 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 Mo de 3 establishes T L0 and TH0 as tw o separate 8-bit counters. The logic fo r Mode 3 on Timer 0 is shown i n Figure 5-7. TL0 uses the Timer 0 [...]
-
Página 44
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 44 Figure 5-4: Timer/Cou nter 0 or 1 in Mode 0 (13-bit counter) Figure 5-5: Timer/Cou nter 0 or 1 in Mode 1 (16-bit counter) Figure 5-6: Timer/Counter 0 or 1 in Mode 2 (8-bit auto-reload) TLn (5-bits) TRn T0 Pin* T0C/T = 0 T0C/T = 1 THn (8-bits) Inte[...]
-
Página 45
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 45 Figure 5-7: Timer/ Counter 0 Mode 3 (tw o 8-bit cou nters) Figure 5-8: Timer/Counter 0 in Mode 6 (PWM auto-reloa d), P89LPC907. TIMER OVERFLOW TOGGLE OUTPUT - P89LPC907 Timer 0 can be configured to au tomatically toggle the T 0 pin wh enever the t[...]
-
Página 46
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 TIMERS 0 AND 1 2003 Dec 8 46[...]
-
Página 47
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 47 6. REAL-TIME CLOCK/SYSTEM TIMER The P89LPC 906/907/908 has a simple Real-time clock/syste m timer that allo ws a user to continue running an accurate timer while the rest of the device is pow ered down. The Real-time cl o ck can be a[...]
-
Página 48
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 48 Figure 6-1: Real-time cloc k/system timer B lock Diagram Table 6-1: Real-time Clock/Syst em Timer Clock Source - P89L PC906 FOSC2 (UCFG1.2) FOSC1 (UCFG1.1) FOSC0 (UCFG1.0) RTCS1:0 CCLK Frequency RTC Clock Frequency 000 00 High freque[...]
-
Página 49
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 49 Table 6-2: Real-time Clock/System Ti mer Clock Sou rce - P89LPC907,P89LPC908 011 00 RC Oscillator/DIVM High frequency crystal (XCLK) 01 Medium frequency crystal (XCLK) 10 Low frequency crystal (XCLK) 11 RC Oscillator/DIVM (CCLK) 100 [...]
-
Página 50
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 50 CHANGING RTCS1-0 RTCS1-0 cannot be changed if the RTC is currentl y enabled (RTCCON.0 =1). Setting RTCEN and updating RTCS1-0 may be done in a single write to RTCCON. However, if RTCEN = 1, this bit must first be cleared before updat[...]
-
Página 51
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 51 Figure 6-2: RTCCON Register RTCCON Address: D1h Not bit addre ssable Reset Source(s): Power-up only Reset Value: 011xxx00B BIT SYMBOL FUNCTION RTCCON.7 RTCF Real-time Clock Flag. T his bit is set to ’1’ when the 23-bit Real-time [...]
-
Página 52
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REAL-TIME CLOCK/SYSTEM TIMER 2003 Dec 8 52[...]
-
Página 53
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 53 7. POWER MONITORING FUNCTIONS The P89LPC 906/907/908 in corporates power monitoring functions designed to prevent incorre ct operation during initial powe r- on and power loss or reduction durin g oper ation. This is accomplished with [...]
-
Página 54
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 54 Table 7-1: Brownout Options POWER-ON DETECTION The Power-On Detect has a functio n similar to the Brownout Dete ct, but is designe d to work as power initially comes up, before the power supply voltage reache s a level where the Browno[...]
-
Página 55
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 55 Table 7-2: Power Reduction Modes PMOD1 (PCON.1) PMOD0 (PCON.0) Description 0 0 Normal Mode (Default) - no power reduction. 01 Idle Mode. The Idle mode leaves peripherals runn ing in order to allow them to activate the processor when an[...]
-
Página 56
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 56 Figure 7-1: Powe r Control Regis ter (PCON) PCON Address: 87h Not bit addre ssable Reset Source(s): Any reset Reset Value: 00000000B BIT SYMBOL FUNCTION PCON.7 SMOD1 Double Baud Rate bit for the serial port (UART) when Timer 1 is used [...]
-
Página 57
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 57 Figure 7-2: Po wer C ontrol Register (PCONA) PCONA Address: B5H Not bit addre ssable Reset Source(s): Any reset Reset Value: 00000000B BIT SYMBOL FUNCTION PCONA.7 RTCPD Real-time Clock Power down : When ’1’, the internal clock to t[...]
-
Página 58
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 POWER MONITORING FUNCTIONS 2003 Dec 8 58[...]
-
Página 59
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 59 8. UART (P89LPC907, P89LPC908) The P89L PC907 and P89LPC908 devices have an enhanced UART that is compatible with the conventiona l 80C51 UART, except that Timer 2 overflow cannot be used as a baud rate source. Th e UART does include an independen t Baud Ra[...]
-
Página 60
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 60 SFR SPACE The UART SFRs are at the following loca tions: Table 8-1: SFR Locations for UARTs BAUD RATE GENERATOR AND SELECTION The enhanced UART has an inde pendent Baud Rate Generator. T he baud rate is determin ed by a value programmed into the BRGR1 and B[...]
-
Página 61
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 61 Figure 8-1: B RGCON Regi ster Figure 8-2: Baud R ate Gene rations for UART (Modes 1, 3) FRAMING ERROR A Framing error o ccurs when the stop bit is sensed as a logic ’0 ’. A Framing error is reported in the status register (SSTAT ). In addition, if SMOD0[...]
-
Página 62
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 62 . Figure 8-3: Se rial Port Contr ol Register (SCO N) SCON Address: 98h Bit addressable Reset Source(s): Any reset Reset Value: 00000000B BIT SYMBOL FUNCTION SCON.7 SM0/FE Th e use of this bit is determined by SM OD0 in the PCON register. If SMOD0 = 0, this [...]
-
Página 63
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 63 Figure 8-4: Serial Port Status Register (SSTAT) MORE ABOUT U ART MODE 0 In Mode 0, a write to SBUF will initiate a transmission. At the e nd of the transmission, TI (SCON.1) is set, which must b e clea red in software. Double buffering must be disabled in t[...]
-
Página 64
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 64 Figure 8-5: Serial Port Mode 0 (Double Buffering Must Be Disabled) MORE ABOUT U ART MODE 1 Reception is initiate d by detecting a 1-to-0 transition on RxD. RxD is sampled at a rate 16 times the p rogrammed baud rate. Whe n a transition is detected, the divi[...]
-
Página 65
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 65 MORE ABOUT UART MODES 2 AND 3 Reception is th e same as in Mode 1. The signal to loa d SBUF and RB8, and to set R I, will be gener ated if, and only if, the following conditi ons are met at the time the final shift pulse is generated. (a) RI = 0, and (b) Ei[...]
-
Página 66
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 66 DOUBLE BUFFERING The UART has a transmit do uble buffer that allo ws buffering of th e next character to be written to SBU F while the first ch aract er is being transmitted. Double bufferin g allows transmission of a string of characters with only one stop[...]
-
Página 67
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 67 Figure 8-8: Transmi ssion with and with out 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 ca n be written before or after SBUF is written, provided TB8 is updated b[...]
-
Página 68
Philips Semiconductors User’s Manual - Preliminar y - 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 ST OP 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 again. 8. The CPU writes to SBUF again. T[...]
-
Página 69
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 69 since slave 1 requires a 0 in bit 1. A unique address for sl ave 1 would be 1100 0001 since a 1 i n bit 0 will exclude slave 0. B oth slaves can be selected at the same time by an address which has bit 0 = 0 (for slave 0) and bit 1 = 0 (for slave 1). Thus, [...]
-
Página 70
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 UART 2003 Dec 8 70[...]
-
Página 71
Philips Semiconductors User’s Manual - Preliminar y - 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 digita l input, P1.5. Th e RPE (Reset Pin Enable) bit in UCFG1, when set to 1, enables the external reset input functi on on P1.5. When cleared, P1.5 may be used as an input[...]
-
Página 72
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 RESET 2003 Dec 8 72 Figure 9-2: Reset Sources Register RSTSRC Address: DFH Not bit addre ssable Reset Sources: Power-on only Reset Value: xx110000B (This is the power-on reset va lu e. Other reset sources wi ll set corresponding bits.) BIT SYMBOL FUNCTION RSTSRC.7-6 - Reserve[...]
-
Página 73
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 73 10. ANALOG COMPARATORS An analog comparator is provided on the P89LPC906 / 907 / 908 . Comp arator operation is such that the output is a logi cal one when the positive inp ut is greater than the negative i nput (sel ectable from a pin o r an [...]
-
Página 74
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 74 Figure 10-2: Compa rator Input an d Output Connec tions Figure 10-3: C omparator Confi gurations INTERNAL REFERENCE VOLTAGE An internal reference voltage, Vref, may suppl y a default referenc e when a single comparator input pin is used. Pleas[...]
-
Página 75
Philips Semiconductors User’s Manual - Preliminar y - 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 switc hing times while in power do wn mode. The reason is that with the oscillator stopped, the temp orary strong pullup t[...]
-
Página 76
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 ANALOG COMPARATORS 2003 Dec 8 76[...]
-
Página 77
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 KEYPAD INTERRUPT (KBI) 2003 Dec 8 77 11. KEYPAD INTERRUPT (KBI) The Keypad Interrupt function is intend ed prim arily to allow a single interrupt to be generated when the Port 0 bits are equal to or not equal to a certa in pattern. Thi s function can be used for keypad recog [...]
-
Página 78
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 KEYPAD INTERRUPT (KBI) 2003 Dec 8 78 Figure 11- 3: Keypad In terrupt Mask Register (KBM) KBMASK Address: 86h Not bit addre ssable Reset Source(s): Any reset Reset Value: 00000000B BIT SYMBOL FUNCTION KBMASK.7 - Reserved. KBMASK.6 - Wh en set, enables P0.6 as a cause of a Keyp[...]
-
Página 79
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 79 12. WATCHDOG TIMER The watchdog timer subsyste m protects the system from inco rrec t code execution by causing a system reset when it underflows as a result of a failure of software to feed the timer prior to the time r reaching its terminal coun[...]
-
Página 80
Philips Semiconductors User’s Manual - Preliminar y - 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 di rectly lo aded by the user . The user writ es to the WDCON and the WDL SFRs. At the end of a fe ed sequence, the[...]
-
Página 81
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 81 MOV WFEED1,#0A5h ; do watchdog feed p art 1 MOV WFEED2,#05Ah ; do watchdog feed part 2 SETB EA ; enable interrupt In timer mode (WDTE = 0), WDCON is loaded to the control register every CCLK cycle (no feed sequence is required to load the control [...]
-
Página 82
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 82 Table 12-2: P89LPC906/907/908 Watchdo g Timeout Values PRE2-PRE0 WDL in decimal) Timeout Period (in watchdog clock cycles) Watchdog Clock Source 400KHz Watchdog Oscillator Clock (Nominal) 12MHz CCLK (6MHz CCLK/2 Watchdog Clock) 000 0 33 82.5µs 5.[...]
-
Página 83
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 83 Figure 12-3: Watchdog Timer in Watc hdog 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 gister after one watchdog clock cycle. A wa[...]
-
Página 84
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 84 Figure 12-4: Watchdog Time r in Timer Mode (WDTE = 0) POWER DOWN OPERATION The WDT oscillator will co ntinue to run i n power down, consuming a pproximately 50uA, as long as the WDT oscillator is sel ected as the clock source for the WDT. Selectin[...]
-
Página 85
Philips Semiconductors User’s Manual - Preliminar y - 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 consumptio n required in order to have a perio dic wakeup is determined by the power consumption of the internal oscillator sour[...]
-
Página 86
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 WATCHDOG TIMER 2003 Dec 8 86[...]
-
Página 87
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 ADDITIONAL FEATURES 2003 Dec 8 87 13. ADDITIONAL FEATURES The AUXR1 register contains several special purpose control bits that re late to several chip features. AUXR1 is described in Figure 13-1. Figure 13-1: AUXR1 Register SOFTWARE RESET The SRST bit in AUXR1 gives software[...]
-
Página 88
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 ADDITIONAL FEATURES 2003 Dec 8 88 • MOV DPTR, #data16 Load the Data Pointer with a 16-bit constant. • MOVCA, @A+DPTR Move code byte relative to DPTR to the accumulator. • MOVX A, @DPTR Move data byte the accumula tor to data memory relative to DPTR. • MOVX @DPTR, A Mo[...]
-
Página 89
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 89 14. FLASH PROGRAM MEMORY GENERAL DESCRIPTION The P89LPC 906/907/908 F lash memory provides in-circuit electrical erasure and programming. The Flash can be re ad and written as bytes. On-chi p erase and write timing generation contribute to a[...]
-
Página 90
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 90 "wrap -around" to the first byte in th e page register , but will not affect FMADRL[7:4]. Bytes loaded into th e page register do not have to be continuou s. Any byte location can be load ed into the pa ge registe r by changing the[...]
-
Página 91
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 91 Figure 14-1: Flash Me mory Control Register FMCON Address: E4h Not bit addre ssable Reset Source(s): Any reset Reset Value: BIT SYMBOL FUNCTION FMCON.7-4 - Reserve d. FMCON.3 HVA High voltage abort. Set if either an inte rrupt or a brown-out[...]
-
Página 92
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 92 Figure 14-2 : Assembly lang uage routine to erase/p rogram all or part of a page Figure 14-3: C-language routine to erase/prog ram all or part of a page ACCESSING ADDITIONAL FLASH ELEMENTS In addition to the user code array , the user ’s f[...]
-
Página 93
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 93 Table 14-1: Flash elements accesable thro ugh IAP-Lite ERASE-PROGRAMMING ADDITIONAL FLASH ELEMENT S The erase-program cycle takes 4ms to complete and is accomplished using the following ste ps: • Write the address of the flash element to F[...]
-
Página 94
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 94 r Figure 14-4: Assembly language routine to erase/program a flash element Figure 14-5: C-language routin e to erase/program a flash ele ment ;* Inputs: * ;* R5 = data to write(byte) * ;* R7 = element address(byte) * ;* Outputs: * ;* None * C[...]
-
Página 95
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 95 Figure 14-6: C-language routine to re ad a flash element #include <REG921.H> unsigned char READ_EL (unsigned char); unsigned char GET_EL; void main () { GET_EL = READ_EL(0x02); } unsigned char READ_EL (unsigned char el_addr) { #define [...]
-
Página 96
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 96 USER CONFIGURATION BYTES A number of user-configur able features of the P89LPC906/907 /908 must be defined at po wer-up and therefore cannot be set by the program after start of execution. These features are configured through the use of Fla[...]
-
Página 97
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 97 USER SECURITY BYTES There are four User Sector Security Byte s (SEC0, ..., SEC3), each co rresponding to one sector and having the following bit assignments: Figure 14-8: User Se ctor Se curity Bytes (SEC0 ... SEC3) Table 14-2: Effects of Se[...]
-
Página 98
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 FLASH PROGRAM MEMORY 2003 Dec 8 98 Boot Vector Figure 14-9: Boot Vector (BOOTVEC) Boot Status Figure 14 -10: Boot Statu s (BOOTSTAT) BOOTVEC Address: xxxxh Factory default value: 0 0h BIT SYMBOL FUNCTION BOOTVEC.7-5 - Reserved (should remain unprogrammed at zero). BOOTVEC.4-0[...]
-
Página 99
Philips Semiconductors User’s Manual - Preliminar y - 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 indirect memory to A 1 1 26-27 ADD A,#data Add [...]
-
Página 100
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INSTRUCTION SET 2003 Dec 8 100 ANL dir,A AND A to direct byte 2 1 52 ANL dir,#data AND immediate to direct byte 3 2 53 ORL A,Rn OR register to A 1 1 48-4F ORL A,dir OR direct byte to A 2 1 45 ORL A,@Ri O R indirect memory to A 1 1 46-47 ORL A,#data O R immediate to A 2 1 44 O[...]
-
Página 101
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INSTRUCTION SET 2003 Dec 8 101 MOV dir,#data Move immediate to direct byte 3 2 75 MOV @Ri,A Move A to i ndirect memory 1 1 F6-F7 MOV @Ri,dir Move direct byte to indirect memory 2 2 A6-A7 MOV @Ri,#data Move immediate to indirect memory 2 1 76-77 MOV DPTR,#data Move immediate t[...]
-
Página 102
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INSTRUCTION SET 2003 Dec 8 102 ACALL addr 11 Absolute jump to subroutine 2 2 116F1 LCALL addr 16 Long jump to subroutine 3 2 12 RET Return from subroutine 1 2 22 RETI Return from interrupt 1 2 32 AJMP addr 11 Absolute jump unconditio nal 2 2 016 E1 LJMP addr 16 Long ju mp unc[...]
-
Página 103
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REVISION HISTORY 2003 Dec 8 103 16. REVISION HISTORY 2003 Dec 8 Initial release.[...]
-
Página 104
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 REVISION HISTORY 2003 Dec 8 104[...]
-
Página 105
Philips Semiconductors User’s Manual - Preliminar y - 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 Block diagram 9 BRGCON writing to 23 Brownout detec[...]
-
Página 106
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INDEX 2003 Dec 8 106 block fill 7, 25, 31, 35, 41, 47, 53, 59, 71, 73, 77, 79, 87, 89, 99, 103 hardware reset 7, 25, 31, 35, 41, 47, 53, 59, 71, 73, 77, 79, 87, 89, 99, 103 Dual Data Po inters 87 F FLASH 7, 25, 31, 35, 41, 47, 53, 59, 71, 73, 77, 79, 87, 89, 99, 103 Boot Stat[...]
-
Página 107
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INDEX 2003 Dec 8 107 FLASH code 89 organization 24 O Oscillator high speed crystal option 25, 26 low speed crystal option 25 medium speed crystal option 25 R-C option 26 watchdog (WDT) option 26 P Pin configuration 7 Port 0 12, 13, 14 Port 3 12 Ports additional features 38 I/[...]
-
Página 108
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INDEX 2003 Dec 8 108 S SFR AUXR1 87 BRGCON 61 CMPn 73 KBCON 77 KBMASK 78 KBPATN 77 PCON 56 PCONA 57 RSTSRC 72 RTCCON 51 SCON 62 SSTAT 63 TAMOD 42 TCON 43 TMOD 41 TRIM 26, 27, 91 UCFG1 96 WDCON 81 SFRs undefined locations, use of 15 Special Function Registers (SFR) table 15, 1[...]
-
Página 109
Philips Semiconductors User’s Manual - Preliminar y - P89LPC906/907/908 INDEX 2003 Dec 8 109 double buffering in 9-bit mode 67 double buffering in different modes 66 framing error 61, 65 mode 0 63 mode 0 (shift register) 59 mode 1 64 mode 1 (8-bit variable baud rate) 59 mode 2 65 mode 2 (9-bit fixed baud rate) 59 mode 3 65 mode 3 (9-bit variable [...]
-
Página 110
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 see the relevant data sheet or data handbook. Limiting values definition — Limi[...]