Rainbow-electronics W79E8213R Manual de usuario

Busca en linea o descarga Manual de usuario para Sensores Rainbow-electronics W79E8213R. Rainbow Electronics W79E8213R User Manual Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 96
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
Preliminary W79E8213/W79E8213R Data Sheet
8-BIT MICROCONTROLLER
Publication Release Date: July 11, 2008
- 1 - Revision A2
Table of Contents-
1. GENERAL DESCRIPTION ......................................................................................................... 4
2. FEATURES ................................................................................................................................. 5
3. PARTS INFORMATION LIST ..................................................................................................... 6
3.1 Lead Free (RoHS) Parts information list......................................................................... 6
4. PIN CONFIGURATION...............................................................................................................6
5. PIN DESCRIPTIONS .................................................................................................................. 7
6. FUNCTIONAL DESCRIPTION.................................................................................................... 8
6.1 On-Chip Flash EPROM .................................................................................................. 8
6.2 I/O Ports.......................................................................................................................... 8
6.3 Timers............................................................................................................................. 8
6.4 Interrupts......................................................................................................................... 8
6.5 Data Pointer....................................................................................................................8
6.6 Architecture..................................................................................................................... 8
6.6.1 ALU ..................................................................................................................................9
6.6.2 Accumulator .....................................................................................................................9
6.6.3 B Register.........................................................................................................................9
6.6.4 Program Status Word.......................................................................................................9
6.6.5 Scratch-pad RAM .............................................................................................................9
6.6.6 Stack Pointer ....................................................................................................................9
6.7 Power Management........................................................................................................ 9
7. MEMORY ORGANIZATION...................................................................................................... 10
7.1 Program Memory (on-chip Flash)................................................................................. 10
7.2 Data Flash Memory ...................................................................................................... 10
7.3 Data Memory (accessed by MOVX) ............................................................................. 11
7.4 Scratch-pad RAM and Register Map............................................................................ 11
7.4.1 Working Registers ..........................................................................................................12
7.4.2 Bit addressable Locations ..............................................................................................13
7.4.3 Stack ..............................................................................................................................13
8. SPECIAL FUNCTION REGISTERS ......................................................................................... 14
9. INSTRUCTION SET.................................................................................................................. 41
9.1 Instruction Timing.......................................................................................................... 49
10. POWER MANAGEMENT.......................................................................................................... 52
10.1 Idle Mode ...................................................................................................................... 52
10.2 Power-down Mode........................................................................................................ 52
11. RESET CONDITIONS............................................................................................................... 53
11.1 Sources of reset............................................................................................................ 53
11.1.1 External Reset..............................................................................................................54
11.1.2 Power-On Reset (POR)................................................................................................54
Vista de pagina 0
1 2 3 4 5 6 ... 95 96

Indice de contenidos

Pagina 1 - 8-BIT MICROCONTROLLER

Preliminary W79E8213/W79E8213R Data Sheet 8-BIT MICROCONTROLLER Publication Release Date: July 11, 2008 - 1 - Revision A2 Table of Content

Pagina 2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 10 - Revision A2 7. MEMORY ORGANIZATION The W79E8213 series sepa

Pagina 3

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 11 - Revision A2 7.3 Data Memory (accessed by MOVX) N

Pagina 4 - 1. GENERAL DESCRIPTION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 12 - Revision A2 Bank 0Bank 1Bank 2Bank 303 02 01 00040506070B 0

Pagina 5 - 2. FEATURES

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 13 - Revision A2 7.4.2 Bit addressable Locations The

Pagina 6

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 14 - Revision A2 8. SPECIAL FUNCTION REGISTERS The W79E8213 ser

Pagina 7 - 5. PIN DESCRIPTIONS

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 15 - Revision A2 SYMBOL DEFINITION ADDRESS MSB

Pagina 8 - 6. FUNCTIONAL DESCRIPTION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 16 - Revision A2 Continued SYMBOL DEFINITION ADDRESS MSB

Pagina 9 - 6.7 Power Management

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 17 - Revision A2 PORT 0 Bit: 7 6 5 4 3 2 1 0 P0.7 P0

Pagina 10 - 7. MEMORY ORGANIZATION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 18 - Revision A2 DATA POINTER HIGH Bit: 7 6 5 4 3 2 1 0 DPH.7

Pagina 11

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 19 - Revision A2 BIT NAME FUNCTION 7 TF1 Timer 1 Ove

Pagina 12 - 7.4.1 Working Registers

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 2 - Revision A2 11.1.3 Watchdog Timer Reset...

Pagina 13 - 7.4.3 Stack

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 20 - Revision A2 M1 M0 MODE 0 0 Mode 0: 13-bits timer/counter;

Pagina 14

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 21 - Revision A2 CLOCK CONTROL Bit: 7 6 5 4 3 2 1 0 -

Pagina 15

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 22 - Revision A2 BIT NAME FUNCTION 7-2 - Reserved. 1 P2.1 XTA

Pagina 16 - - 16 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 23 - Revision A2 EDGE DETECT CONTROL REGISTER Bit: 7 6

Pagina 17 - BIT NAME FUNCTION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 24 - Revision A2 BIT NAME FUNCTION 7 EA Global enable. Enabl

Pagina 18

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 25 - Revision A2 PORT 2 OUTPUT MODE 1 Bit: 7 6 5 4 3 2

Pagina 19 - INT0 pin has no effect

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 26 - Revision A2 INTERRUPT HIGH PRIORITY Bit: 7 6 5 4 3 2 1 0

Pagina 20 - M1 M0 MODE

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 27 - Revision A2 BIT NAME FUNCTION 7 - Please Keep

Pagina 21

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 28 - Revision A2 BIT NAME FUNCTION 7~0 NVMDATA.[7:0] The NVM d

Pagina 22

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 29 - Revision A2 BIT NAME FUNCTION 7-2 - Reserved.

Pagina 23

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 3 - Revision A2 26.1 Absolute Maximum Ratings...

Pagina 24

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 30 - Revision A2 PWM CONTROL REGISTER 3 Bit: 7 6 5 4 3 2 1 0 -

Pagina 25 - (SEE NOTE)

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 31 - Revision A2 Continued BIT NAME FUNCTION 2 WTRF

Pagina 26

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 32 - Revision A2 Continued BIT NAME FUNCTION 0 WDCLR Reset Wat

Pagina 27

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 33 - Revision A2 BIT NAME FUNCTION 7~0 PWM1.[7:0] P

Pagina 28

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 34 - Revision A2 PWM3 LOW BITS REGISTER Bit: 7 6 5 4 3 2 1 0 P

Pagina 29

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 35 - Revision A2 Brake Condition Table: BPEN BKCH BRA

Pagina 30

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 36 - Revision A2 BIT NAME FUNCTION 7-6 ADC.1-0 2 LSB of 10-b

Pagina 31

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 37 - Revision A2 AADR1, AADR0: ADC Analog Input Channe

Pagina 32

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 38 - Revision A2 Bit: 7 6 5 4 3 2 1 0 EED EPWMUF EPWM EWDI - -

Pagina 33

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 39 - Revision A2 Continued BIT NAME FUNCTION 4 PADID

Pagina 34

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 4 - Revision A2 1. GENERAL DESCRIPTION The W79E8213 series are a

Pagina 35 - BPEN BKCH BRAKE CONDITION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 40 - Revision A2 BIT NAME FUNCTION 7 PED 1: To set interrupt p

Pagina 36 - ADCI ADCS ADC STATUS

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 41 - Revision A2 9. INSTRUCTION SET The W79E8213 serie

Pagina 37

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 42 - Revision A2 INSTRUCTION SET, continued Op-code HEX Code Byt

Pagina 38

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 43 - Revision A2 INSTRUCTION SET, continued Op-code HE

Pagina 39

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 44 - Revision A2 INSTRUCTION SET, continued Op-code HEX Code Byt

Pagina 40

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 45 - Revision A2 INSTRUCTION SET, continued Op-code HE

Pagina 41 - 9. INSTRUCTION SET

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 46 - Revision A2 INSTRUCTION SET, continued Op-code HEX Code Byt

Pagina 42 - - 42 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 47 - Revision A2 INSTRUCTION SET, continued Op-code HE

Pagina 43 - INSTRUCTION SET, continued

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 48 - Revision A2 INSTRUCTION SET, continued Op-code HEX Code Byt

Pagina 44 - - 44 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 49 - Revision A2 9.1 Instruction Timing This section i

Pagina 45

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 5 - Revision A2 2. FEATURES z Fully static design 8-b

Pagina 46 - - 46 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 50 - Revision A2 Instruction FetchC4C3C2C1OP-CODEAddress A15-8Ad

Pagina 47

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 51 - Revision A2 OPERANDOPERANDOPERANDOP-CODEAddress A

Pagina 48 - - 48 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 52 - Revision A2 10. POWER MANAGEMENT The W79E8213 series has se

Pagina 49 - 9.1 Instruction Timing

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 53 - Revision A2 11. RESET CONDITIONS The user has sev

Pagina 50 - OPERANDPC+1

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 54 - Revision A2 Figure 11-2: Reset and Vdd monitor timing diagr

Pagina 51 - OPERANDOPERAND

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 55 - Revision A2 11.1.3 Watchdog Timer Reset The Watc

Pagina 52 - 10. POWER MANAGEMENT

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 56 - Revision A2 12. INTERRUPTS The W79E8213 series have four pr

Pagina 53 - 11. RESET CONDITIONS

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 57 - Revision A2 If any of these conditions are not m

Pagina 54 - 11.1.2 Power-On Reset (POR)

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 58 - Revision A2 12.2 Priority Level Structure The W79E8213 ser

Pagina 55 - 11.2 Reset State

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 59 - Revision A2 Continued Source Flag Vector address

Pagina 56 - 12. INTERRUPTS

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 6 - Revision A2 3. PARTS INFORMATION LIST 3.1 Lead Free (RoHS)

Pagina 57

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 60 - Revision A2 12.4 Interrupt Inputs The W79E8213 series have

Pagina 58 - INTERRUPT PRIORITY LEVEL

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 61 - Revision A2 13. PROGRAMMABLE TIMERS/COUNTERS The

Pagina 59 - 12.3 Response Time

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 62 - Revision A2 Figure 13-1: Timer/Counters 0 & 1 in Mode 0

Pagina 60 - 12.4 Interrupt Inputs

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 63 - Revision A2 13.1.4 Mode 2 In Mode 2, the timer/co

Pagina 61 - INTx is 1. When

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 64 - Revision A2 Figure 13-4: Timer/Counter Mode 3

Pagina 62 - 13.1.3 Mode 1

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 65 - Revision A2 14. NVM MEMORY The W79E8213 series ha

Pagina 63 - 13.1.5 Mode 3

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 66 - Revision A2 15. WATCHDOG TIMER The Watchdog Timer is a free

Pagina 64 - - 64 - Revision A2

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 67 - Revision A2 any errant code is executed now, then

Pagina 65 - 14. NVM MEMORY

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 68 - Revision A2 16. TIME ACCESS PROCTECTION The W79E8213 series

Pagina 66 - 15. WATCHDOG TIMER

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 69 - Revision A2 Example 5: Invalid Access MOV TA, #

Pagina 67 - 15.1 WATCHDOG CONTROL

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 7 - Revision A2 5. PIN DESCRIPTIONS SYMBOL ALTERNATE F

Pagina 68 - 16. TIME ACCESS PROCTECTION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 70 - Revision A2 17. EDGE DETECT INTERRUPT The W79E8213 series

Pagina 69

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 71 - Revision A2 Figure 17-1: Edge Detect Interrupt F

Pagina 70 - 17. EDGE DETECT INTERRUPT

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 72 - Revision A2 18. I/O PORT CONFIGURATION The W79E8213 series

Pagina 71

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 73 - Revision A2 CPU clocks to pull high then turn off

Pagina 72 - 18. I/O PORT CONFIGURATION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 74 - Revision A2 The push-pull output mode has two strong pull-u

Pagina 73

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 75 - Revision A2 19. OSCILLATOR The W79E8213 series pr

Pagina 74

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 76 - Revision A2 20. BUZZER OUTPUT The W79E8213 series support s

Pagina 75 - 19. OSCILLATOR

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 77 - Revision A2 Frequency, Fcpu (Hz) Division 400

Pagina 76 - 20. BUZZER OUTPUT

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 78 - Revision A2 For supporting active low buzzer, this buzzer o

Pagina 77 - BUZDIV + 1

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 79 - Revision A2 21. POWER MONITORING FUNCTION Power-O

Pagina 78

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 8 - Revision A2 6. FUNCTIONAL DESCRIPTION The W79E8213 series ar

Pagina 79 - 21.2 Brownout Detect

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 80 - Revision A2 22. PULSE-WIDTH-MODULATED (PWM) OUTPUTS The W79

Pagina 80

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 81 - Revision A2 10-bit Down CounterCompare RegisterCo

Pagina 81 - 10-bit Down Counter

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 82 - Revision A2 PWMCON2.6 (BKPS) bit respectively. The details

Pagina 82

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 83 - Revision A2 23. ANALOG-TO-DIGITAL CONVERTER The A

Pagina 83

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 84 - Revision A2 Figure 23-1: Successive Approximation ADC 23.1

Pagina 84

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 85 - Revision A2 Figure 23-2: ADC block diagram Note:

Pagina 85

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 86 - Revision A2 24. ICP (IN-CIRCUIT PROGRAM) FLASH PROGRAM The

Pagina 86 - System Board

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 87 - Revision A2 25. CONFIG BITS The W79E8213 series h

Pagina 87 - 25. CONFIG BITS

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 88 - Revision A2 Oscillator Configuration bits: Fosc1 Fosc0 OS

Pagina 88

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 89 - Revision A2 25.2 CONFIG1 76 5 4 3 21 0C6C7 FS1C7

Pagina 89 - 76 5 4 3 21 0

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 9 - Revision A2 6.6.1 ALU The ALU is the heart of the

Pagina 90

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 90 - Revision A2 26. ELECTRICAL CHARACTERISTICS 26.1 Absolute M

Pagina 91

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 91 - Revision A2 DC ELECTRICAL CHARACTERISTICS, contin

Pagina 92 - Ofe -1 - +1 LSB

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 92 - Revision A2 DC ELECTRICAL CHARACTERISTICS, continued SPECIF

Pagina 93 - 26.7 AC SPECIFICATION

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 93 - Revision A2 26.5 AC ELECTRICAL CHARACTERISTICS

Pagina 94 - 27.1 20-pin SOP-300mil

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 94 - Revision A2 27. PACKAGE DIMENSIONS 27.1 20-pin SOP-300mil L

Pagina 95 - 27.2 20-pin PDIP-300mil

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 95 - Revision A2 27.2 20-pin PDIP-300mil 1.631.470.064

Pagina 96 - A2 July 11, 2008

Preliminary W79E8213/W79E8213R Data Sheet Publication Release Date: July 11, 2008 - 96 - Revision A2 28. REVISION HISTORY VERSION DATE PAGE DESCRI

Comentarios a estos manuales

Sin comentarios