Philips P89LPC906 User Manual Page 1

Browse online or download User Manual for Water pumps Philips P89LPC906. Philips P89LPC906 User's Manual

  • Download
  • Add to my manuals
  • Print
  • Page
    / 110
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 0
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
Page view 0
1 2 3 4 5 6 ... 109 110

Summary of Contents

Page 1 - P89LPC906/907/908

INTEGRATED CIRCUITSPhilipsSemiconductorsPHILIPS2003 Dec 8P89LPC906/907/9088-bit microcontrollers with accelerated two-clock 80C51 core1KB 3V Low-Power

Page 2 - 2003 Dec 8 2

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 10Block Diagram - P89LPC907Port 0Configurable I

Page 3 - 2003 Dec 8 3

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INSTRUCTION SET2003 Dec 8 100ANL dir,A AND A to direct byte 2 1 52ANL dir,#da

Page 4 - 2003 Dec 8 4

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INSTRUCTION SET2003 Dec 8 101MOV dir,#data Move immediate to direct byte 3 2

Page 5 - List of Figures

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INSTRUCTION SET2003 Dec 8 102ACALL addr 11 Absolute jump to subroutine 2 2 11

Page 6

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REVISION HISTORY2003 Dec 8 10316. REVISION HISTORY2003 Dec 8Initial release.

Page 7 - 1. GENERAL DESCRIPTION

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REVISION HISTORY2003 Dec 8 104

Page 8

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INDEX2003 Dec 8 10517. INDEXAAnalog comparators 37, 73configuration 73configu

Page 9

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INDEX2003 Dec 8 106block fill 7, 25, 31, 35, 41, 47, 53, 59, 71, 73, 77, 79,

Page 10 - Accelerated 2-clock 80C51

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INDEX2003 Dec 8 107FLASH code 89organization 24OOscillatorhigh speed crystal

Page 11

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INDEX2003 Dec 8 108SSFRAUXR1 87BRGCON 61CMPn 73KBCON 77KBMASK 78KBPATN 77PCON

Page 12

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INDEX2003 Dec 8 109double buffering in 9-bit mode 67double buffering in diffe

Page 13

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 11Block Diagram - P89LPC908Port 0Configurable I

Page 14

Philips SemiconductorsP89LPC906/907/908User’s manual – Preliminary –yyyy mmm dd1DefinitionsShort-form specification — The data in a short-form specifi

Page 15

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 12PIN DESCRIPTIONS - P89LPC906Mnemonic Pin no.

Page 16

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 13PIN DESCRIPTIONS - P89LPC907Mnemonic Pin no.

Page 17

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 14PIN DESCRIPTIONS - P89LPC908Mnemonic Pin no.

Page 18

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 15Special function registersNote: Special funct

Page 19

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 16IP1H# Interrupt Priority 1 High F7H - - - - -

Page 20

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 17TH0 Timer 0 High 8CH 00H 00000000TH1 Timer 1

Page 21

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 18Table 2: Special function registers table - P

Page 22

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 19KBMASK# Keypad Interrupt Mask Register 86H 00

Page 23

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908Table of Contents2003 Dec 8 21. General Description...

Page 24

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 20TH0 Timer 0 High 8CH 00H 00000000TH1 Timer 1

Page 25 - 2. CLOCKS

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 21Table 3: Special function registers table - P

Page 26 - 2003 Dec 8 26

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 22KBMASK# Keypad Interrupt Mask Register 86H 00

Page 27 - CPU CLOCK (CCLK) WAKEUP DELAY

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 23Notes:* SFRs are bit addressable.# SFRs are m

Page 28 - Low freq

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 24MEMORY ORGANIZATIONThe P89LPC906/907/908 memo

Page 29 - 2003 Dec 8 29

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 252. CLOCKSENHANCED CPUThe P89LPC906/907/908 uses an enhance

Page 30

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 26Figure 2-1: Using the Crystal Oscillator - P89LPC906OSCILL

Page 31 - 3. INTERRUPTS

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 27EXTERNAL CLOCK INPUT OPTION - P89LPC906In this configurati

Page 32

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 28 LOW POWER SELECT (P89LPC906)The P89LPC906 is designed to

Page 33

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 29Figure 2-4: Block Diagram of Oscillator Control- P89LPC907

Page 34

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908Table of Contents2003 Dec 8 36. Real-Time Clock/System Timer...

Page 35 - 4. I/O PORTS

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908CLOCKS2003 Dec 8 30

Page 36

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INTERRUPTS2003 Dec 8 313. INTERRUPTSThe P89LPC906/907/908 use a four priority

Page 37

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INTERRUPTS2003 Dec 8 32Table 3-3: Summary of Interrupts - P89LPC907,P89LPC908

Page 38

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INTERRUPTS2003 Dec 8 33Figure 3-1: Interrupt sources, enables, and Power down

Page 39

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INTERRUPTS2003 Dec 8 34

Page 40

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 354. I/O PORTSThe P89LPC906/907/908 has between 3 and 6 I

Page 41 - 5. TIMERS 0 AND 1

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 36The third pullup is referred to as the "strong&quo

Page 42

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 37INPUT-ONLY CONFIGURATIONThe input port configuration is

Page 43

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 38Table 4-3: Port Output Configuration - P89LPC906Table 4

Page 44

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 39All ports pins that can function as an output have slew

Page 45

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908Table of Contents2003 Dec 8 4Power down operation ...

Page 46

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908I/O PORTS2003 Dec 8 40

Page 47 - REAL-TIME CLOCK/SYSTEM TIMER

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 415. TIMERS 0 AND 1The P89LPC906/907/908 has two gen

Page 48

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 42Figure 5-2: Timer/Counter Auxiliary Mode Control r

Page 49

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 43MODE 3When Timer 1 is in Mode 3 it is stopped. The

Page 50

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 44Figure 5-4: Timer/Counter 0 or 1 in Mode 0 (13-bit

Page 51

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 45Figure 5-7: Timer/Counter 0 Mode 3 (two 8-bit coun

Page 52

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908TIMERS 0 AND 12003 Dec 8 46

Page 53 - 7. POWER MONITORING FUNCTIONS

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 476. REAL-TIME CLOCK/SYSTEM TIMERThe P

Page 54

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 48Figure 6-1: Real-time clock/system t

Page 55

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 49Table 6-2: Real-time Clock/System Ti

Page 56

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908List of Figures2003 Dec 8 5List of FiguresSpecial function registers table -

Page 57

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 50CHANGING RTCS1-0RTCS1-0 cannot be ch

Page 58

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 51Figure 6-2: RTCCON RegisterRTCCONAdd

Page 59

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908REAL-TIME CLOCK/SYSTEM TIMER2003 Dec 8 52

Page 60 - SFR SPACE

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 537. POWER MONITORING FUNCTIONSThe P89LP

Page 61 - BREAK DETECT

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 54Table 7-1: Brownout OptionsPOWER-ON DE

Page 62

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 55Table 7-2: Power Reduction ModesPMOD1

Page 63 - MORE ABOUT UART MODE 0

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 56Figure 7-1: Power Control Register (PC

Page 64 - MORE ABOUT UART MODE 1

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 57 Figure 7-2: Power Control Register (P

Page 65 - MORE ABOUT UART MODES 2 AND 3

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908POWER MONITORING FUNCTIONS2003 Dec 8 58

Page 66 - DOUBLE BUFFERING

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 598. UART (P89LPC907, P89LPC908)The P89LPC907 and P89LPC908 de

Page 67

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908List of Figures2003 Dec 8 6Serial Port Control Register (SCON). . . . . . . .

Page 68 - AUTOMATIC ADDRESS RECOGNITION

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 60SFR SPACEThe UART SFRs are at the following locations:Table

Page 69

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 61Figure 8-1: BRGCON RegisterFigure 8-2: Baud Rate Generations

Page 70

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 62.Figure 8-3: Serial Port Control Register (SCON)SCONAddress:

Page 71 - 9. RESET

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 63Figure 8-4: Serial Port Status Register (SSTAT)MORE ABOUT UA

Page 72

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 64Figure 8-5: Serial Port Mode 0 (Double Buffering Must Be Dis

Page 73 - 10. ANALOG COMPARATORS

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 65MORE ABOUT UART MODES 2 AND 3Reception is the same as in Mod

Page 74

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 66DOUBLE BUFFERINGThe UART has a transmit double buffer that a

Page 75

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 67Figure 8-8: Transmission with and without Double BufferingTH

Page 76

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 68- If DBISEL is ’1’ and INTLO is ’1’, a Tx interrupt will occ

Page 77 - 11. KEYPAD INTERRUPT (KBI)

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 69since slave 1 requires a 0 in bit 1. A unique address for sl

Page 78

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 71. GENERAL DESCRIPTIONThe P89LPC906/907/908 is

Page 79 - 12. WATCHDOG TIMER

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908UART2003 Dec 8 70

Page 80

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908RESET2003 Dec 8 719. RESETThe P1.5/RST pin can function as either an active l

Page 81

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908RESET2003 Dec 8 72 Figure 9-2: Reset Sources RegisterRSTSRCAddress: DFHNot bi

Page 82

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ANALOG COMPARATORS2003 Dec 8 7310. ANALOG COMPARATORSAn analog comparator is

Page 83

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ANALOG COMPARATORS2003 Dec 8 74Figure 10-2: Comparator Input and Output Conne

Page 84

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ANALOG COMPARATORS2003 Dec 8 75 If the comparator output to a pin is enabled,

Page 85

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ANALOG COMPARATORS2003 Dec 8 76

Page 86

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908KEYPAD INTERRUPT (KBI)2003 Dec 8 7711. KEYPAD INTERRUPT (KBI)The Keypad Inter

Page 87 - 13. ADDITIONAL FEATURES

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908KEYPAD INTERRUPT (KBI)2003 Dec 8 78Figure 11-3: Keypad Interrupt Mask Registe

Page 88

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 7912. WATCHDOG TIMERThe watchdog timer subsystem pro

Page 89 - 14. FLASH PROGRAM MEMORY

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 8Logic SymbolsPRODUCT COMPARISONThe following t

Page 90

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 80Figure 12-1: Watchdog PrescalerFEED SEQUENCEThe wa

Page 91

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 81MOV WFEED1,#0A5h ; do watchdog feed part 1MOV WFE

Page 92

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 82Table 12-2: P89LPC906/907/908 Watchdog Timeout Val

Page 93

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 83Figure 12-3: Watchdog Timer in Watchdog Mode (WDTE

Page 94

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 84Figure 12-4: Watchdog Timer in Timer Mode (WDTE =

Page 95

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 85PERIODIC WAKEUP FROM POWER DOWN WITHOUT AN EXTERNA

Page 96

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908WATCHDOG TIMER2003 Dec 8 86

Page 97

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ADDITIONAL FEATURES2003 Dec 8 8713. ADDITIONAL FEATURESThe AUXR1 register con

Page 98

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908ADDITIONAL FEATURES2003 Dec 8 88• MOV DPTR, #data16 Load the Data Pointer wit

Page 99 - 15. INSTRUCTION SET

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 8914. FLASH PROGRAM MEMORYGENERAL DESCRIPTIONT

Page 100 - INSTRUCTION SET

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908GENERAL DESCRIPTION2003 Dec 8 9Block Diagram - P89LPC906High Performance Acce

Page 101

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 90"wrap -around" to the first byte i

Page 102

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 91Figure 14-1: Flash Memory Control RegisterFM

Page 103 - 16. REVISION HISTORY

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 92Figure 14-2: Assembly language routine to er

Page 104

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 93Table 14-1: Flash elements accesable through

Page 105 - 17. INDEX

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 94rFigure 14-4: Assembly language routine to e

Page 106 - Philips Semiconductors

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 95Figure 14-6: C-language routine to read a fl

Page 107 - 2003 Dec 8 107

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 96USER CONFIGURATION BYTESA number of user-con

Page 108 - 2003 Dec 8 108

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 97USER SECURITY BYTESThere are four User Secto

Page 109 - 2003 Dec 8 109

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908FLASH PROGRAM MEMORY2003 Dec 8 98Boot VectorFigure 14-9: Boot Vector (BOOTVEC

Page 110

Philips SemiconductorsUser’s Manual - Preliminary -P89LPC906/907/908INSTRUCTION SET2003 Dec 8 9915. INSTRUCTION SETTable 15-1: Instruction set su

Comments to this Manuals

No comments