Maxim-integrated High-Speed Microcontroller Manual de usuario

Busca en linea o descarga Manual de usuario para Hardware Maxim-integrated High-Speed Microcontroller. Maxim Integrated High-Speed Microcontroller User Manual [pl] [en] [de] Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 176
  • Tabla de contenidos
  • SOLUCIÓN DE PROBLEMAS
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente

Indice de contenidos

Pagina 1

www.maximintegrated.com/

Pagina 2 - TABLE OF CONTENTS

High-Speed Microcontroller User’s Guide Rev: 062210 10 of 176 2. ORDERING INFORMATION The high-speed microcontroller family follows the part nu

Pagina 3

High-Speed Microcontroller User’s Guide Rev: 062210 100 of 176 Table 7-E. Clock Control and Status Bit Summary BIT LOCATION FUNCTION RESET

Pagina 4

High-Speed Microcontroller User’s Guide Rev: 062210 101 of 176 7.3.6 Switching Between Clock Sources DS87C520 and DS87C530 incorporate the abil

Pagina 5

High-Speed Microcontroller User’s Guide Rev: 062210 102 of 176 8. RESET CONDITIONS The high-speed microcontroller provides several ways to plac

Pagina 6

High-Speed Microcontroller User’s Guide Rev: 062210 103 of 176 8.1.3 External Reset If the RST input is taken to a logic 1, the CPU is forced i

Pagina 7 - LIST OF FIGURES

High-Speed Microcontroller User’s Guide Rev: 062210 104 of 176 BIT NAME LOCATION NO-BATTERY RESET STATE BIT NAME LOCATION NO-BATTERY RESET STA

Pagina 8 - LIST OF TABLES

High-Speed Microcontroller User’s Guide Rev: 062210 105 of 176 9. INTERRUPTS The high-speed microcontroller family utilizes a three-priority in

Pagina 9 - 1. INTRODUCTION

High-Speed Microcontroller User’s Guide Rev: 062210 106 of 176 more details. In order for the processor to acknowledge the interrupt and vector

Pagina 10 - 2. ORDERING INFORMATION

High-Speed Microcontroller User’s Guide Rev: 062210 107 of 176 9.2.2 Timer Interrupts The high-speed microcontroller incorporates three 16-bit

Pagina 11 - 3.1 ALU

High-Speed Microcontroller User’s Guide Rev: 062210 108 of 176 9.3 Simulated Interrupts Software can simulate any interrupt source by setting t

Pagina 12 - Rev: 062210 12 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 109 of 176 9.6 Interrupt Latency Interrupt response will require a varying amount of time d

Pagina 13 - 3.2.19 Feature Summary

High-Speed Microcontroller User’s Guide Rev: 062210 11 of 176 3. ARCHITECTURE The high-speed microcontroller is based on the industry-standard

Pagina 14 - 4.1 Memory Organization

High-Speed Microcontroller User’s Guide Rev: 062210 110 of 176 Figure 9-1. Interrupt Functional Description

Pagina 15 - Rev: 062210 15 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 111 of 176 9.7 Interrupt Register Conflicts During normal operation there is a small but fi

Pagina 16 - Figure 4-2. Register Map

High-Speed Microcontroller User’s Guide Rev: 062210 112 of 176 10. PARALLEL I/O The high-speed microcontroller method of implementing I/O ports

Pagina 17 - Rev: 062210 17 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 113 of 176 When used as an address bus, the AD0-7 pins will provide true drive capability fo

Pagina 18 - Rev: 062210 18 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 114 of 176 10.2.2 Most Significant Address Byte, A8–A15 When used to address expanded memor

Pagina 19 - Rev: 062210 19 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 115 of 176 A more practical application is the optional use of an interrupt. If INT0 (P3.2)

Pagina 20 - Rev: 062210 20 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 116 of 176 altered by a read operation. Therefore, if a logic 0 is driven onto a port pin fr

Pagina 21 - Rev: 062210 21 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 117 of 176 Figure 10-3. I/O Port Timing for MOV Instruction 10.10

Pagina 22 - Rev: 062210 22 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 118 of 176 11. PROGRAMMABLE TIMERS All members of the high-speed microcontroller family inc

Pagina 23 - Rev: 062210 23 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 119 of 176 location of their flags. The registers are described below. Following this is a d

Pagina 24 - Rev: 062210 24 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 12 of 176 3.2.7 Timer/Counters Three 16-bit Timer/Counters are available in the high-speed

Pagina 25 - 4.2.2 Stack Pointer (SP)

High-Speed Microcontroller User’s Guide Rev: 062210 120 of 176 11.1.2 Timer/Counter Control Register (TCON) Summary 7 6 5 4 3 2 1 0 TCON 88h

Pagina 26 - Rev: 062210 26 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 121 of 176 11.3 Mode 1 Mode 1 configures the timer for 16-bit operation as either a timer o

Pagina 27 - 4.2.8 Power Control (PCON)

High-Speed Microcontroller User’s Guide Rev: 062210 122 of 176 11.4 Mode 2 This mode configures the timer as an 8-bit timer/counter with automa

Pagina 28 - INT0 is level triggered

High-Speed Microcontroller User’s Guide Rev: 062210 123 of 176 11.5 Mode 3 This mode provides an 8-bit timer/counter and a second 8-bit timer a

Pagina 29 - Rev: 062210 29 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 124 of 176 11.6 Timer 2 Like Timers 0 and 1, Timer 2 is a full-function timer/counter, howe

Pagina 30 - 4.2.14 Timer 1 MSB (TH1)

High-Speed Microcontroller User’s Guide Rev: 062210 125 of 176 11.6.2 Timer Two Mode Control Register (T2MOD) Summary 7 6 5 4 3 2 1 0 T2MOD C

Pagina 31 - Rev: 062210 31 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 126 of 176 11.7 Timer 2 Modes As is seen in the register descriptions, Timer 2 has several

Pagina 32 - 4.2.16 Port 1 (P1)

High-Speed Microcontroller User’s Guide Rev: 062210 127 of 176 11.7.3 16-Bit Auto-Reload Timer/Counter This mode is illustrated in Figure 11-5.

Pagina 33 - RG bit

High-Speed Microcontroller User’s Guide Rev: 062210 128 of 176 Figure 11-5. Timer/Counter 2 Auto-Reload Mode

Pagina 34 - Rev: 062210 34 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 129 of 176 11.7.4 Up/Down Count Auto-Reload Timer/Counter The up/down auto-reload counter o

Pagina 35

High-Speed Microcontroller User’s Guide Rev: 062210 13 of 176 monitor invokes a reset condition. This remains until power returns to normal oper

Pagina 36 - 4.2.21 Port 2 (P2)

High-Speed Microcontroller User’s Guide Rev: 062210 130 of 176 Figure 11-6. Timer/Counter 2, Baud-Rate Generator Mode 1

Pagina 37 - 7 6 5 4 3 2 1 0

High-Speed Microcontroller User’s Guide Rev: 062210 131 of 176 Figure 11-7. Timer/Counter 2, Clock-Out Mode 11.8 Time Base

Pagina 38 - 4.2.25 Port 3 (P3)

High-Speed Microcontroller User’s Guide Rev: 062210 132 of 176 11.9 Watchdog Timer The watchdog timer is a user-programmable clock counter that

Pagina 39

High-Speed Microcontroller User’s Guide Rev: 062210 133 of 176 (CKCON.6). Restarting the timer using the RWT (WDCON.0) bit, allows software to u

Pagina 40

High-Speed Microcontroller User’s Guide Rev: 062210 134 of 176 by-64 or divide-by-1024 is used as the input source for the watchdog timer. This

Pagina 41 - Rev: 062210 41 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 135 of 176 11.9.2 Clock Control Register (CKCON) Summary CKCON.7: Watchdog Timer Mode Sele

Pagina 42 - RMS2, RMS1

High-Speed Microcontroller User’s Guide Rev: 062210 136 of 176 12. SERIAL I/O The high-speed microcontroller serial communication is compatible

Pagina 43

High-Speed Microcontroller User’s Guide Rev: 062210 137 of 176 12.1.3 Mode 2 This mode is an asynchronous mode that transmits a total of 11 bit

Pagina 44 - LB3, LB2, LB1

High-Speed Microcontroller User’s Guide Rev: 062210 138 of 176 12.2.1 Serial Port Control 0 Register (SCON0; 98h) This is the standard 80C32 se

Pagina 45 - Rev: 062210 45 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 139 of 176 12.2.2 Serial Port Control 1 Register (SCON1; C0h) Serial Port 1 performs identi

Pagina 46 - CP/RL2 EXEN2 DCEN RESULT

High-Speed Microcontroller User’s Guide Rev: 062210 14 of 176 4. PROGRAMMING MODEL This section provides a programmer’s overview of the high-sp

Pagina 47 - 4.2.36 Timer 2 Mode (T2MOD)

High-Speed Microcontroller User’s Guide Rev: 062210 140 of 176 12.2.3 Power Control Register (PCON; 87h) PCON.7: Serial Port 0 Baud-Rate Double

Pagina 48 - 4.2.40 Timer 2 MSB (TH2)

High-Speed Microcontroller User’s Guide Rev: 062210 141 of 176 12.3.2 Mode 2 In this asynchronous mode, baud rates are also generated from the

Pagina 49 - Rev: 062210 49 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 142 of 176 Note that the 12 in the denominator can be changed to a 4 as determined by the ti

Pagina 50

High-Speed Microcontroller User’s Guide Rev: 062210 143 of 176 12.4 Serial I/O Description A detailed description of each serial mode is given

Pagina 51 - Rev: 062210 51 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 144 of 176 Figure 12-1. Serial Port Mode 0 D

Pagina 52 - 4.2.45 B Register (B)

High-Speed Microcontroller User’s Guide Rev: 062210 145 of 176 The RXD signal is used for both transmission and reception. TXD provides the shif

Pagina 53 - Rev: 062210 53 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 146 of 176 Figure 12-2. Serial Port Mode 1 SBUF DIVIDE

Pagina 54 - Rev: 062210 54 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 147 of 176 12.4.3 Mode 2 This mode uses a total of 11 bits in asynchronous full-duplex comm

Pagina 55 - Rev: 062210 55 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 148 of 176 Figure 12-3. Serial Port Mode 2

Pagina 56 - Rev: 062210 56 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 149 of 176 Reception begins when a falling edge is detected as part of the incoming start bi

Pagina 57 - Rev: 062210 57 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 15 of 176 SFRs are accessed directly between 80h and FFh (128 to 255). The RAM locations bet

Pagina 58 - 4.3 Instruction Timing

High-Speed Microcontroller User’s Guide Rev: 062210 150 of 176 Figure 12-4. Serial Port Mode 3

Pagina 59 - 4.4 Addressing Modes

High-Speed Microcontroller User’s Guide Rev: 062210 151 of 176 12.6 Multiprocessor Communication Multiprocessor communication mode makes specia

Pagina 60 - 4.4.2 Direct Addressing

High-Speed Microcontroller User’s Guide Rev: 062210 152 of 176 The multiprocessor communication is always enabled. However, the SADEN registers

Pagina 61 - 4.4.7 Page Addressing

High-Speed Microcontroller User’s Guide Rev: 062210 153 of 176 13. TIMED-ACCESS PROTECTION The high-speed microcontroller uses a protection fea

Pagina 62 - 4.5 Program Status Flags

High-Speed Microcontroller User’s Guide Rev: 062210 154 of 176 whether any bits were modified. Figure 13-1 illustrates a number of examples of c

Pagina 63 - Rev: 062210 63 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 155 of 176 EXAMPLE: A TRANSIENT CAUSES THE WATCHDOG TO BE DISABLED TABLE_READ: C2D2 90 0A

Pagina 64 - 5.6 Instruction Timing

High-Speed Microcontroller User’s Guide Rev: 062210 156 of 176 14. REAL-TIME CLOCK The DS87C530 incorporates a real-time clock (RTC) onto the h

Pagina 65 - Rev: 062210 65 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 157 of 176 14.1 Starting and Stopping the RTC Setting the RTC enable bit, RTCE (RTCC.0), to

Pagina 66 - Memory Access

High-Speed Microcontroller User’s Guide Rev: 062210 158 of 176 Writing to the clock registers sets the time on the DS87C530. The second, minute,

Pagina 67 - Rev: 062210 67 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 159 of 176 Setting the alarm to cause an interrupt once during a 24-hour period is done by s

Pagina 68 - 22h

High-Speed Microcontroller User’s Guide Rev: 062210 16 of 176 Figure 4-2. Register Map Figure 4-3. Scratchpad Register Addressing

Pagina 69 - Rev: 062210 69 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 160 of 176 14.6 Calibrating the RTC Oscillator Although the DS87C530 RTC accuracy is guaran

Pagina 70 - Rev: 062210 70 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 161 of 176 15. BATTERY BACKUP The DS87C530 incorporates a feature that can maintain timekee

Pagina 71 - 5.7 Comparison to the 8051

High-Speed Microcontroller User’s Guide Rev: 062210 162 of 176 Backup current is a function of temperature, and therefore battery life is depend

Pagina 72 - Rev: 062210 72 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 163 of 176 16. INSTRUCTION SET DETAILS Details of flags modified by each instruction are lo

Pagina 73 - Rev: 062210 73 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 164 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EX

Pagina 74 - Rev: 062210 74 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 165 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EX

Pagina 75 - Rev: 062210 75 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 166 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EXP

Pagina 76 - 6.2 Internal Data Memory

High-Speed Microcontroller User’s Guide Rev: 062210 167 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EXP

Pagina 77 - 6.2.1 ROMSIZE Feature

High-Speed Microcontroller User’s Guide Rev: 062210 168 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EXP

Pagina 78 - MAX ON-CHIP ROM

High-Speed Microcontroller User’s Guide Rev: 062210 169 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EXP

Pagina 79 - Rev: 062210 79 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 17 of 176 4.2 Special Function Registers The high-speed microcontroller, like the 8051, use

Pagina 80 - Rev: 062210 80 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 170 of 176 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2 D1 D0 HEX BYTE CYCLE EXPLANATION DJ

Pagina 81 - 6.5 Data Memory Access

High-Speed Microcontroller User’s Guide 171 of 176

Pagina 82 - Rev: 062210 82 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 172 of 176 17. TROUBLESHOOTING 17.1 Device Operates at One-Third the Crystal Speed The hig

Pagina 83 - Rev: 062210 83 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 173 of 176 17.5 Serial Port Does Not Work The serial port is not a complicated peripheral,

Pagina 84 - 6.6 Data Memory Timing

High-Speed Microcontroller User’s Guide Rev: 062210 174 of 176 18. MICROCONTROLLER DEVELOPMENT SUPPORT 18.1 Technical Support For technical su

Pagina 85 - CKCON.2–0

High-Speed Microcontroller User’s Guide Rev: 062210 175 of 176 Table 18-A. Product Feature Matrix FEATURE DS80C310 DS80C320 DS80C323 DS83C520 D

Pagina 86 - Rev: 062210 86 of 176

High-Speed Microcontroller User’s Guide 19. REVISION HISTORY REVISION DATE SECTION NUMBER DESCRIPTION PAGES CHANGED 4.2 In the Watchdog Control (WDC

Pagina 87 - C1 C2 C3 C4

High-Speed Microcontroller User’s Guide Rev: 062210 18 of 176 Table 4-B. DS80C310 SFR Reset Values REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3

Pagina 88 - Precision Voltage Monitor

High-Speed Microcontroller User’s Guide Rev: 062210 19 of 176 Table 4-C. DS80C320/DS80C323 SFR Locations REGISTER BIT 7 BIT 6 BIT 5 BIT 4 B

Pagina 89 - 7.1.4 Bandgap Select

High-Speed Microcontroller User’s Guide Rev: 062210 2 of 176 TABLE OF CONTENTS 1. INTRODUCTION...

Pagina 90 - Rev: 062210 90 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 20 of 176 Table 4-D. DS80C320/DS80C323 SFR Reset Values REGISTER BIT 7 BIT 6 BIT 5 BIT 4

Pagina 91 - 7.1.5 Watchdog Wake-Up

High-Speed Microcontroller User’s Guide Rev: 062210 21 of 176 Table 4-E. DS83C520/DS87C520 SFR Locations REGISTER BIT 7 BIT 6 BIT 5 BIT 4 B

Pagina 92 - Rev: 062210 92 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 22 of 176 Table 4-F. DS83C520/DS87C520 SFR Reset Values REGISTER BIT 7 BIT 6 BIT 5 BIT 4

Pagina 93 - 7.2 Power Conservation

High-Speed Microcontroller User’s Guide Rev: 062210 23 of 176 Table 4-G. DS87C530 SFR Locations REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BI

Pagina 94 - Rev: 062210 94 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 24 of 176 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESS RTCS 0

Pagina 95 - 7.3 Power Management Modes

High-Speed Microcontroller User’s Guide Rev: 062210 25 of 176 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESS B 0 0 0

Pagina 96 - Rev: 062210 96 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 26 of 176 4.2.3 Data Pointer Low 0 (DPL) 7 6 5 4 3 2 1 0 SFR 82h DPL.7 DPL.6 DPL.5 DPL.4

Pagina 97 - Rev: 062210 97 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 27 of 176 4.2.7 Data Pointer Select (DPS) 7 6 5 4 3 2 1 0 SFR 86h 0 0 0 0 0 0 0 SEL R-

Pagina 98 - 7.3.3 Switchback

High-Speed Microcontroller User’s Guide Rev: 062210 28 of 176 4.2.9 Timer/Counter Control (TCON) 7 6 5 4 3 2 1 0 SFR 88h TF1 TR1 TF0 TR0 IE1

Pagina 99 - Rev: 062210 99 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 29 of 176 4.2.10 Timer Mode Control (TMOD) 7 6 5 4 3 2 1 0 SFR 89h GATE C/T M1 M0 GATE C/

Pagina 100 - Rev: 062210 100 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 3 of 176 4.2.26 Interrupt Priority (IP)...

Pagina 101 - RG bit. The procedure to

High-Speed Microcontroller User’s Guide Rev: 062210 30 of 176 4.2.11 Timer 0 LSB (TL0) 7 6 5 4 3 2 1 0 SFR 8Ah TL0.7 TL0.6 TL0.5 TL0.4 TL0.3

Pagina 102 - 8.1 Reset Sources

High-Speed Microcontroller User’s Guide Rev: 062210 31 of 176 4.2.15 Clock Control (CKCON) 7 6 5 4 3 2 1 0 SFR 8Eh WD1 WD0 T2M T1M T0M MD2

Pagina 103 - 8.3 No-Battery Reset

High-Speed Microcontroller User’s Guide Rev: 062210 32 of 176 4.2.16 Port 1 (P1) 7 6 5 4 3 2 1 0 SFR 90h P1.7 INT5 P1.6 INT4 P1.5 INT3 P1

Pagina 104 - 8.4 In-System Disable Mode

High-Speed Microcontroller User’s Guide Rev: 062210 33 of 176 4.2.17 External Interrupt Flag (EXIF) 7 6 5 4 3 2 1 0 SFR 91h IE5 IE4 IE3 IE2 X

Pagina 105 - 9. INTERRUPTS

High-Speed Microcontroller User’s Guide Rev: 062210 34 of 176 BGS Bit 0 Bandgap Select. This bit enables/disables the bandgap reference during S

Pagina 106 - 9.2 Interrupt Sources

High-Speed Microcontroller User’s Guide Rev: 062210 35 of 176 4.2.19 Serial Port 0 Control (SCON0) 7 6 5 4 3 2 1 0 SFR 98h SM0/FE_0 SM1_0

Pagina 107 - 9.2.5 Power-Fail Interrupt

High-Speed Microcontroller User’s Guide Rev: 062210 36 of 176 TI_0 Bit 1 Transmitter Interrupt Flag. This bit indicates that data in the serial

Pagina 108 - 9.4 Interrupt Priorities

High-Speed Microcontroller User’s Guide Rev: 062210 37 of 176 4.2.22 Interrupt Enable (IE) 7 6 5 4 3 2 1 0 SFR A8h EA ES1 ET2 ES0 ET1 EX1 E

Pagina 109 - 9.6 Interrupt Latency

High-Speed Microcontroller User’s Guide Rev: 062210 38 of 176 4.2.24 Slave Address Register 1 (SADDR1) 7 6 5 4 3 2 1 0 SFR AAh SADDR1.7 SADD

Pagina 110 - Rev: 062210 110 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 39 of 176 4.2.26 Interrupt Priority (IP) 7 6 5 4 3 2 1 0 SFR B8h — PS1 PT2 PS0 PT1 PX1 P

Pagina 111 - Rev: 062210 111 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 4 of 176 6. MEMORY ACCESS...

Pagina 112 - 10.1 Port 0

High-Speed Microcontroller User’s Guide Rev: 062210 40 of 176 4.2.28 Slave Address Mask Enable Register 1 (SADEN1) 7 6 5 4 3 2 1 0 SFR BAh SAD

Pagina 113 - 10.2 Port 2

High-Speed Microcontroller User’s Guide Rev: 062210 41 of 176 SM2_1 Bit 5 Multiple CPU Communications. The function of this bit is dependent on

Pagina 114 - 10.3 Ports 1 and 3

High-Speed Microcontroller User’s Guide Rev: 062210 42 of 176 4.2.31 ROM Size Select (ROMSIZE) 7 6 5 4 3 2 1 0 SFR C2h — — — — — RMS2 RMS1 R

Pagina 115 - 10.6 Input Functions

High-Speed Microcontroller User’s Guide Rev: 062210 43 of 176 4.2.32 Power Management Register (PMR) 7 6 5 4 3 2 1 0 SFR C4h CD1 CD0 SWB — X

Pagina 116 - 10.9 I/O Port Timing

High-Speed Microcontroller User’s Guide Rev: 062210 44 of 176 DME1, DME0 Bits 1, 0 Data Memory Enable 1-0. These bits determine the functional r

Pagina 117 - 10.10 Optional Functions

High-Speed Microcontroller User’s Guide Rev: 062210 45 of 176 4.2.33 Status Register (STATUS) 7 6 5 4 3 2 1 0 SFR C5h PIP HIP LIP XTUP SPTA1

Pagina 118 - 11.1 16-Bit Timers

High-Speed Microcontroller User’s Guide Rev: 062210 46 of 176 4.2.34 Timed Access Register (TA) 7 6 5 4 3 2 1 0 SFR C7h TA.7 TA.6 TA.5 TA.

Pagina 119 - INT1 and TR1 =

High-Speed Microcontroller User’s Guide Rev: 062210 47 of 176 EXEN2 Bit 3 Timer 2 External Enable. This bit enables the capture/ reload function

Pagina 120 - 11.2 Mode 0

High-Speed Microcontroller User’s Guide Rev: 062210 48 of 176 4.2.37 Timer 2 Capture LSB (RCAP2L) 7 6 5 4 3 2 1 0 SFR CAh RCAP2L.7 RCAP2L.6

Pagina 121 - 11.3 Mode 1

High-Speed Microcontroller User’s Guide Rev: 062210 49 of 176 4.2.41 Program Status Word (PSW) 7 6 5 4 3 2 1 0 SFR D0h CY AC F0 RS1 RS0 O

Pagina 122 - 11.4 Mode 2

High-Speed Microcontroller User’s Guide Rev: 062210 5 of 176 10.2 PORT 2...

Pagina 123 - 11.5 Mode 3

High-Speed Microcontroller User’s Guide Rev: 062210 50 of 176 4.2.42 Watchdog Control (WDCON) 7 6 5 4 3 2 1 0 SFR D8h SMOD POR EPFI PFI WD

Pagina 124 - 11.6 Timer 2

High-Speed Microcontroller User’s Guide Rev: 062210 51 of 176 EWT Bit 1 Enable Watchdog Timer Reset. This bit enables/disables the ability of th

Pagina 125 - Rev: 062210 125 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 52 of 176 4.2.44 Extended Interrupt Enable (EIE) 7 6 5 4 3 2 1 0 SFR E8h — — ERTCI EWD

Pagina 126 - 11.7 Timer 2 Modes

High-Speed Microcontroller User’s Guide Rev: 062210 53 of 176 4.2.47 Real-Time Alarm Second Register (RTAS) 7 6 5 4 3 2 1 0 SFR F3h 0 0 RTA

Pagina 127 - T2 = 1. As

High-Speed Microcontroller User’s Guide Rev: 062210 54 of 176 4.2.50 Extended Interrupt Priority (EIP) 7 6 5 4 3 2 1 0 SFR F8h — — PRTCI P

Pagina 128 - T2CON.7

High-Speed Microcontroller User’s Guide Rev: 062210 55 of 176 4.2.51 Real-Time Clock Control Register (RTCC) 7 6 5 4 3 2 1 0 SFR F9h SSCE SCE

Pagina 129 - 11.7.5 Baud-Rate Generator

High-Speed Microcontroller User’s Guide Rev: 062210 56 of 176 1 = Reads of the RTC clock registers are permitted during a 1 ms window starting f

Pagina 130 - RL2 = 0

High-Speed Microcontroller User’s Guide Rev: 062210 57 of 176 4.2.53 Real-Time Clock Second Register (RTCS) 7 6 5 4 3 2 1 0 SFR FBh 0 0 RTCS

Pagina 131 - 11.8 Time Base Selection

High-Speed Microcontroller User’s Guide Rev: 062210 58 of 176 4.2.56 Real-Time Clock Day Register 0 (RTCD0) 7 6 5 4 3 2 1 0 SFR FEh RTCD0.7

Pagina 132 - 11.9 Watchdog Timer

High-Speed Microcontroller User’s Guide Rev: 062210 59 of 176 4.4 Addressing Modes The high-speed microcontroller uses the standard 8051 instru

Pagina 133 - Rev: 062210 133 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 6 of 176 12.5 FRAMING ERROR DETECTION ...

Pagina 134 - Rev: 062210 134 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 60 of 176 4.4.2 Direct Addressing Direct Addressing is the mode used to access the entire l

Pagina 135 - Rev: 062210 135 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 61 of 176 The 16-bit Data pointers (DPTRs) can be used as an absolute off-chip reference. T

Pagina 136 - 12.1 Serial Mode Summary

High-Speed Microcontroller User’s Guide Rev: 062210 62 of 176 4.4.8 Extended Addressing Extended Addressing is used by the Branching instructio

Pagina 137 - 12.1.4 Mode 3

High-Speed Microcontroller User’s Guide Rev: 062210 63 of 176 5. CPU TIMING The timing of the high-speed microcontroller is the area with the g

Pagina 138 - Rev: 062210 138 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 64 of 176 Figure 5-1. Crystal Connection Figure 5-2. Clock Source Input

Pagina 139 - Rev: 062210 139 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 65 of 176 Due to the limited number of edges within a machine cycle, selected events must oc

Pagina 140 - 12.3 Baud Rates

High-Speed Microcontroller User’s Guide Rev: 062210 66 of 176 One other type of two-cycle instruction requires two cycles but only includes one

Pagina 141 - 12.3.3 Mode 1 or 3

High-Speed Microcontroller User’s Guide Rev: 062210 67 of 176 Figure 5-4. Two-Cycle Instruction Timing Example: ANL A, direct: 55h addr7-0

Pagina 142

High-Speed Microcontroller User’s Guide Rev: 062210 68 of 176 5.6.4 Four-Cycle Instructions All four-cycle instructions require more time than

Pagina 143 - 12.4 Serial I/O Description

High-Speed Microcontroller User’s Guide Rev: 062210 69 of 176 Figure 5-5. Three-Cycle Instruction Timing Example 1: ANL direct, #data 53h a7–

Pagina 144

High-Speed Microcontroller User’s Guide Rev: 062210 7 of 176 LIST OF FIGURES Figure 4-1. Memory Map ...

Pagina 145 - 12.4.2 Mode 1

High-Speed Microcontroller User’s Guide Rev: 062210 70 of 176 Figure 5-6. Four-Cycle Instruction Timing Example 1: CJNE A, #data, addr B4h d7–

Pagina 146 - TRANSMIT TIMING

High-Speed Microcontroller User’s Guide Rev: 062210 71 of 176 Figure 5-7. Five-Cycle Instruction Timing Example: MUL A,B A4h *Shaded are

Pagina 147 - 12.4.3 Mode 2

High-Speed Microcontroller User’s Guide Rev: 062210 72 of 176 Table 5-A. Instruction Timing Comparison Note: HSM = high-speed microcontroller. I

Pagina 148 - REGISTER

High-Speed Microcontroller User’s Guide Rev: 062210 73 of 176 INSTRUCTION HEX CODE HSM CLOCK CYCLESHSM TIME at 25MHz 8051 CLOCK CYCLES8051 TIME

Pagina 149 - 12.4.4 Mode 3

High-Speed Microcontroller User’s Guide Rev: 062210 74 of 176 INSTRUCTION HEX CODE HSM CLOCK CYCLESHSM TIME at 25MHz 8051 CLOCK CYCLES8051 TIME

Pagina 150 - Rev: 062210 150 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 75 of 176 Table 5-B. Instruction Speed Summary INSTRUCTION CATEGORY QUANTITY SPEED ADVANT

Pagina 151 - SADDR 11110000

High-Speed Microcontroller User’s Guide Rev: 062210 76 of 176 6. MEMORY ACCESS The high-speed microcontroller follows the memory interface conv

Pagina 152 - Rev: 062210 152 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 77 of 176 Another advantage of internal data memory is that it guarantees a two-machine cycl

Pagina 153 - 13.2 Protection Scheme

High-Speed Microcontroller User’s Guide Rev: 062210 78 of 176 Table 6-B. ROMSIZE Register Settings RMS2 RMS1 RMS0 MAX ON-CHIP ROM (kB) 0 0 0 0

Pagina 154

High-Speed Microcontroller User’s Guide Rev: 062210 79 of 176 Fast slew rates allow the maximum possible time for memory access. In most cases,

Pagina 155 - TABLE_READ:

High-Speed Microcontroller User’s Guide Rev: 062210 8 of 176 LIST OF TABLES Table 4-A. DS80C310 SFR Locations...

Pagina 156 - 14. REAL-TIME CLOCK

High-Speed Microcontroller User’s Guide Rev: 062210 80 of 176 Figure 6-1. Program Memory Interface Figure 6-2. Program Memory

Pagina 157

High-Speed Microcontroller User’s Guide Rev: 062210 81 of 176 Figure 6-3. Data Memory Interface 6.5 Data Memory Access As

Pagina 158 - 14.3 Using the RTC Alarm

High-Speed Microcontroller User’s Guide Rev: 062210 82 of 176 The user switches between data pointers by toggling the SEL bit. The INC instructi

Pagina 159

High-Speed Microcontroller User’s Guide Rev: 062210 83 of 176 6.5.2 64-Byte Block Move Without Dual Data Pointer ; SH and SL are high and low b

Pagina 160 - TRMx bits must be

High-Speed Microcontroller User’s Guide Rev: 062210 84 of 176 6.6 Data Memory Timing Data memory timing refers to the execution of the MOVX ins

Pagina 161 - 15.1 Selecting a Battery

High-Speed Microcontroller User’s Guide Rev: 062210 85 of 176 varied, allowing fast RAM’s but slow peripherals. The first stretch allows the use

Pagina 162 - REGISTER NAME LOCATION

High-Speed Microcontroller User’s Guide Rev: 062210 86 of 176 Figure 6-5. Three-Cycle MOVX Instruction AD0-AD7ALE

Pagina 163 - 16. INSTRUCTION SET DETAILS

High-Speed Microcontroller User’s Guide Rev: 062210 87 of 176 Figure 6-6. Four-Cycle MOVX Instruction AD0-AD7 ALE

Pagina 164 - Rev: 062210 164 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 88 of 176 7. POWER MANAGEMENT The high-speed microcontroller has several features that rela

Pagina 165 - MNEMONIC

High-Speed Microcontroller User’s Guide Rev: 062210 89 of 176 7.1.2 Power-Fail Reset Devices that incorporate the power-fail reset will automat

Pagina 166 - Rev: 062210 166 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 9 of 176 1. INTRODUCTION Maxim high-speed microcontrollers are 8051-compatible devices that

Pagina 167

High-Speed Microcontroller User’s Guide Rev: 062210 90 of 176 Figure 7-1. Power Cycle Operation VCC VPFW VRST VSS INTERRUPT

Pagina 168 - Rev: 062210 168 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 91 of 176 7.1.5 Watchdog Wake-Up The watchdog wake-up is more of an application than a feat

Pagina 169 - Rev: 062210 169 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 92 of 176 EXIF.2: Ring Oscillator Mode (RGMD). Hardware will set this status bit to a 1 whe

Pagina 170 - Rev: 062210 170 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 93 of 176 7.2 Power Conservation The high-speed microcontroller is implemented using full C

Pagina 171 - 171 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 94 of 176 A second method of exiting Stop mode is with a reset. The watchdog timer reset is

Pagina 172 - 17. TROUBLESHOOTING

High-Speed Microcontroller User’s Guide Rev: 062210 95 of 176 devices incorporate the option of continuing to run from the ring oscillator follo

Pagina 173

High-Speed Microcontroller User’s Guide Rev: 062210 96 of 176 The DS87C520 and DS87C530 incorporate a Status register (STATUS;C5h) to prevent th

Pagina 174 - 18.3 Software Compatibility

High-Speed Microcontroller User’s Guide Rev: 062210 97 of 176 timers (including serial port baud-rate generation), watchdog timer, and software

Pagina 175 - Rev: 062210 175 of 176

High-Speed Microcontroller User’s Guide Rev: 062210 98 of 176 Table 7-D. Effect of Clock Modes on Timer Operation OSC CYCLES PER TIMER 0/1/2 CL

Pagina 176 - 2010 Maxim Integrated

High-Speed Microcontroller User’s Guide Rev: 062210 99 of 176 system that one has occurred. If PMM and serial port switchback functions are used

Comentarios a estos manuales

Sin comentarios