Philips P89LPC906 Uživatelský manuál

Procházejte online nebo si stáhněte Uživatelský manuál pro Vodní pumpy Philips P89LPC906. Philips P89LPC906 User's Manual Uživatelská příručka

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 110
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 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
Zobrazit stránku 0
1 2 3 4 5 6 ... 109 110

Shrnutí obsahu

Strany 1 - P89LPC906/907/908

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

Strany 2 - 2003 Dec 8 2

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

Strany 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

Strany 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

Strany 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

Strany 6

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

Strany 7 - 1. GENERAL DESCRIPTION

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

Strany 8

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

Strany 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,

Strany 10 - Accelerated 2-clock 80C51

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

Strany 11

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

Strany 12

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

Strany 13

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

Strany 14

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

Strany 15

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

Strany 16

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

Strany 17

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

Strany 18

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

Strany 19

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

Strany 20

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

Strany 21

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

Strany 22

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

Strany 23

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

Strany 24

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

Strany 25 - 2. CLOCKS

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

Strany 26 - 2003 Dec 8 26

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

Strany 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

Strany 28 - Low freq

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

Strany 29 - 2003 Dec 8 29

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

Strany 30

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

Strany 31 - 3. INTERRUPTS

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

Strany 32

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

Strany 33

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

Strany 34

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

Strany 35 - 4. I/O PORTS

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

Strany 36

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

Strany 37

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

Strany 38

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

Strany 39

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

Strany 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

Strany 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

Strany 42

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

Strany 43

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

Strany 44

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

Strany 45

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

Strany 46

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

Strany 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

Strany 48

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

Strany 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

Strany 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

Strany 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

Strany 52

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

Strany 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

Strany 54

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

Strany 55

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

Strany 56

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

Strany 57

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

Strany 58

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

Strany 59

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

Strany 60 - SFR SPACE

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

Strany 61 - BREAK DETECT

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

Strany 62

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

Strany 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

Strany 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

Strany 65 - MORE ABOUT UART MODES 2 AND 3

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

Strany 66 - DOUBLE BUFFERING

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

Strany 67

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

Strany 68 - AUTOMATIC ADDRESS RECOGNITION

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

Strany 69

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

Strany 70

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

Strany 71 - 9. RESET

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

Strany 72

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

Strany 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

Strany 74

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

Strany 75

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

Strany 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

Strany 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

Strany 78

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

Strany 79 - 12. WATCHDOG TIMER

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

Strany 80

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

Strany 81

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

Strany 82

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

Strany 83

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

Strany 84

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

Strany 85

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

Strany 86

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

Strany 87 - 13. ADDITIONAL FEATURES

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

Strany 88

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

Strany 89 - 14. FLASH PROGRAM MEMORY

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

Strany 90

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

Strany 91

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

Strany 92

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

Strany 93

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

Strany 94

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

Strany 95

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

Strany 96

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

Strany 97

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

Strany 98

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

Strany 99 - 15. INSTRUCTION SET

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

Strany 100 - INSTRUCTION SET

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

Strany 101

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

Strany 102

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

Strany 103 - 16. REVISION HISTORY

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

Strany 104

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

Strany 105 - 17. INDEX

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

Strany 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

Strany 107 - 2003 Dec 8 107

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

Strany 108 - 2003 Dec 8 108

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

Strany 109 - 2003 Dec 8 109

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

Strany 110

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

Komentáře k této Příručce

Žádné komentáře