Maxim-integrated Ultra-High-Speed Flash Microcontroller Bedienungsanleitung

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Maxim-integrated Ultra-High-Speed Flash Microcontroller herunter. Maxim Integrated Ultra-High-Speed Flash Microcontroller User Manual [pl] [cs] [en] [de] Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 169
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Functional Diagrams
Pin Configurations appear at end of data sheet.
Functional Diagrams continued at end of data sheet.
UCSP is a trademark of Maxim Integrated Products, Inc.
For pricing, delivery, and
ordering information, please contact Maxim Direct
at 1-888-629-4642, or visit Maxim’s website at www.maxim
integrated
.com.
ULTRA-HIGH-SPEED FLASH MICROCONTROLLER USER’S GUIDE
Rev: 11; 11/11
The Ultra-High-Speed Flash Microcontroller User’s Guide should be used in conjunction with the data sheet(s) for all ultra-high-speed flash microcontrollers.
Seitenansicht 0
1 2 3 4 5 6 ... 168 169

Inhaltsverzeichnis

Seite 1 - Functional Diagrams

Functional DiagramsPin Configurations appear at end of data sheet.Functional Diagrams continued at end of data sheet.UCSP is a trademark of Maxim Inte

Seite 2

Timer Mode Control (TMOD) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-17Timer 0 LSB (TL0) . .

Seite 3

7-8Ultra-High-Speed FlashMicrocontroller User’s GuideRing Oscillator Wake-Up From StopA typical low-power application is to keep the processor in stop

Seite 4

7-9Power Management ModesPower consumption in CMOS microcontrollers is a function of operating frequency. The power management mode (PMM) feature allo

Seite 5

7-10Ultra-High-Speed FlashMicrocontroller User’s GuideINTERNALSYSTEMCLOCK(PMM)MINIMUM INSTRUCTION CYCLEEXTERNALCLOCK1024 CLOCKSFigure 7-3. Internal Ti

Seite 6

7-11SwitchbackThe switchback feature solves one of the most vexing problems faced by power-conscious systems. Many applications are unable touse the s

Seite 7

7-12Ultra-High-Speed FlashMicrocontroller User’s GuideClock Source SelectionThe ultra-high-speed flash microcontroller family supports three clock sou

Seite 8

8-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 8: RESET CONDITIONSThis section contains the following information:Reset Sources . . . .

Seite 9

8-2Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 8: RESET CONDITIONSThe condition that causes the microcontroller to vector to address 000

Seite 10 - Microcontroller User’s Guide

8-3External ResetIf the RST input is asserted to logic 1, the device is forced into a reset state. An external reset is accomplished by holding the RS

Seite 11

9-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 9: INTERRUPTSThis section contains the following information:Interrupt Overview . . . .

Seite 12

9-2Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 9: INTERRUPTSThe ultra-high-speed microcontroller family improves upon the traditional 80

Seite 13

Timer 2 Capture LSB (RCAP2H) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-34Timer 2 LSB (TL2) . . .

Seite 14

9-3When an interrupt condition occurs, the processor indicates this by setting a flag bit. This flag bit cannot alone cause an interrupt, andis set re

Seite 15

9-4Ultra-High-Speed FlashMicrocontroller User’s GuideThe watchdog interrupt usually has a different connotation than the timer interrupts. Unless the

Seite 16

9-5ally under control of the external signal, and the flag rises and falls with the pin level. All interrupt flags are evaluated on the final exe-cuti

Seite 17

9-6Ultra-High-Speed FlashMicrocontroller User’s GuideInterrupt LatencyInterrupt response time is normally between 4 and 18 memory cycles, depending on

Seite 18

10-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 10: I/O PORTSThis section contains the following information:Parallel I/O . . . . . . .

Seite 19

10-2Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 10: I/O PORTSThe ultra-high-speed flash microcontroller provides 8-bit I/O ports. Each p

Seite 20

10-3ADDRESSA8-A15ADDRESSCONTROLDQQINTERNALDATA BUSWRITEENABLEREADENABLEREADLATCH/PINPORT2.nVCCDELAY= 2TclkVCCVCCFigure 10-2. Port 2 Functional Circuit

Seite 21

10-4Ultra-High-Speed FlashMicrocontroller User’s GuidePort 1Port 1 functions as both an 8-bit bidirectional I/O port and an alternate functional inter

Seite 22

10-5XTAL1ALEPORT 0PORT 2PSENC1 C2 C3 C4 C1 C2 C1 C2EXT CODE FETCHESPAGE MISSINTERNAL MEMORY CYCLESPAGE HIT PAGE HITMSB ADDLSB ADD LSB ADD LSB ADDDATA

Seite 23

10-6Ultra-High-Speed FlashMicrocontroller User’s GuideThe special functions and the associated port pins are listed below:P1.0 T2 Timer 2 outputP1.1 T

Seite 24

4-4Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF TABLESTable 4-1. Instructions that Affect Flag Settings . . . . . . . . . . . . . . . .

Seite 25

10-7Transition current is available to help move the port pin from logic 0 to logic 1. Since the logic 0 driver is strong, no additional drivecurrent

Seite 26

11-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 11: PROGRAMMABLE TIMERSThis section contains the following information:16-Bit Timers . .

Seite 27

11-2Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF FIGURESLIST OF TABLESFigure 11-1. Timers/Counters 0 and 1, Modes 0 and 1 . . . . . . . .

Seite 28

11-3SECTION 11: PROGRAMMABLE TIMERSThe ultra-high-speed microcontroller incorporates three 16-bit programmable timers and has a watchdog timer with a

Seite 29

11-4Ultra-High-Speed FlashMicrocontroller User’s GuideBIT N AMES DESCRIPTION REGISTER LOCA TION BIT POSITIONSGATE Gate control enable for INT0 pin TMO

Seite 30

11-5Mode 1Mode 1 configures the timer for 16-bit operation as either a timer or counter. Figure 11-1 shows that setting the TMOD select bits M1,M0 = 0

Seite 31

11-6Ultra-High-Speed FlashMicrocontroller User’s GuideMode 3This mode provides an 8-bit timer/counter and a second 8-bit timer as indicated in Figure

Seite 32

11-716-Bit Timer/Counter with Optional CaptureIn this mode, timer 2 performs a simple timer or counter function where it behaves similarly to mode 1 o

Seite 33

11-8Ultra-High-Speed FlashMicrocontroller User’s GuideT2 = P1.0TR2 = T2CON.2EXEN2 = T2CON.3EXF2 =T2CON.6CAPTURETIMER 2INTERRUPT01TL207TH2815TF2 =T2CON

Seite 34

11-9When in autoreload mode, timer 2 can also be forced to reload with the T2EX (P1.1) pin. A 1 to 0 transition forces a reload if enabled bythe EXEN2

Seite 35

4-5SECTION 4: PROGRAMMING MODELThis section provides a programmer’s overview of the ultra-high-speed microcontroller core. It includes information on

Seite 36

11-10Ultra-High-Speed FlashMicrocontroller User’s GuideAs explained above, the timer itself cannot set the TF2 interrupt flag and, therefore, cannot g

Seite 37

11-11Time-Base SelectionThe ultra-high-speed microcontroller allows the user to select the time base for each timer independently. In the standard 805

Seite 38

11-12Ultra-High-Speed FlashMicrocontroller User’s GuideWatchdog TimerThe watchdog timer reset provides CPU monitoring by requiring software to clear t

Seite 39

11-13The watchdog interrupt is also available for applications that do not need a true watchdog reset, but a very long timer. The interrupt isenabled

Seite 40

11-14Ultra-High-Speed FlashMicrocontroller User’s GuideAs discussed above, the watchdog timer has several SFR bits that contribute to its operation. I

Seite 41

12-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 12: SERIAL I/OThis section contains the following information:Serial Mode Summary . . .

Seite 42

12-2Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF FIGURESLIST OF TABLESFigure 12-1. Serial Port Mode 0 . . . . . . . . . . . . . . . . .

Seite 43

12-3Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 12: SERIAL I/OThe ultra-high-speed microcontroller provides two fully independent UARTs

Seite 44

12-4Ultra-High-Speed FlashMicrocontroller User’s GuideWhen not using the power-management mode, the baud rate for mode 2 is a function only of the osc

Seite 45

12-5MODE 0SERIAL PORT CLOCK FREQUENCYSYSTEM CLOCK MODEPMR REGISTER BITS4X/2X, CD1, CD0SM2 = 0 SM2 = 1Crystal multiply mode 4X 100 OSC / 3 OSC / 1Cryst

Seite 46

4-6Ultra-High-Speed FlashMicrocontroller User’s GuideFFh7FhFFh7Fh255128INDIRECTRAMDIRECTRAMDIRECTSPECIALFUNCTIONREGISTERS0000hFFFFh 64kPROGRAMME

Seite 47

12-6Ultra-High-Speed FlashMicrocontroller User’s GuideMode 1 or 3These asynchronous modes are commonly used for communication with PCs, modems, and ot

Seite 48

12-7Using Timer 2 for Baud-Rate GenerationTo use timer 2 as baud-rate generator for serial port 0, the timer is configured in autoreload mode. Then, e

Seite 49

12-8Ultra-High-Speed FlashMicrocontroller User’s GuideSerial I/O DescriptionA detailed description and block diagram of each serial mode follow. Note

Seite 50

12-9SM2=SCONx.5DIVIDE-BY-12D7D6D5D4D3D2D1D0LOADCLOCKOUTPUT SHIFT REGISTERS0P3.0LATCHRXDPINRECEIVE DATA BUFFERWRRDD7D6D5D4D3D2D1D0CLOCKRECEIVE SHIFT RE

Seite 51

12-10Ultra-High-Speed FlashMicrocontroller User’s GuideSBUFDIVIDE-BY-2D7LOADCLOCKTRANSMIT SHIFT REGISTERS0P3.1LATCHTXDPINRECEIVE DATA BUFFERWRRDCLOCKR

Seite 52

12-11Ultra-High-Speed FlashMicrocontroller User’s GuideMode 2Mode 2 uses a total of 11 bits in asynchronous full-duplex communication, as illustrated

Seite 53

12-12Ultra-High-Speed FlashMicrocontroller User’s GuideSBUFDIVIDE-BY-2D7LOADCLOCKTRANSMIT SHIFT REGISTERS0P3.1LATCHTXDPINRECEIVE DATA BUFFERWRRDCLOCKR

Seite 54

12-13SBUFDIVIDE-BY-2D7LOADCLOCKTRANSMIT SHIFT REGISTERS0P3.1LATCHTXDPINRECEIVE DATA BUFFERWRRDCLOCKRECEIVE SHIFT REGISTERSIREADSERIALBUFFERBAUDCLOCKLO

Seite 55

12-14Ultra-High-Speed FlashMicrocontroller User’s GuideMultiprocessor CommunicationThe multiprocessor communication mode makes special use of the 9th

Seite 56

13-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 13: TIMED-ACCESS PROTECTIONThis section contains the following information:Protected Bit

Seite 57

4-7Bit Addressable LocationsIn addition to direct register access, some individual bits are also accessible. These are individually addressable bits i

Seite 58

13-2Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 13: TIMED-ACCESS PROTECTIONThe ultra-high-speed microcontroller uses a protection featur

Seite 59

13-3Timed-Access Protects WatchdogAny microcontroller-based system can be faced with environmental conditions that are beyond its designed abilities.

Seite 60

13-4Ultra-High-Speed FlashMicrocontroller User’s GuideA transient occurs while the op code is being fetched for the first instruction. The transient c

Seite 61

14-1Ultra-High-Speed FlashMicrocontroller User’s GuideDetails of flags modified by each instruction are located in Section 4.SECTION 14: INSTRUCTION S

Seite 62

14-2Ultra-High-Speed FlashMicrocontroller User’s GuideIN STRUCTION CODEMNE MO NICD7D6D5D4D3D2D1D0H EX B YTE C YCLE E X PLANAT IONARITHMETIC O P ERDA A

Seite 63

14-3Ultra-High-Speed FlashMicrocontroller User’s GuideIN STRUCTION CODEMNE MO NICD7D6D5D4D3D2D1D0H EX BYTE C YCLE E X PLANAT IONRL A0 0 1 0 0 0 1 1 23

Seite 64

14-4Ultra-High-Speed FlashMicrocontroller User’s GuideIN STRUCTION CODEMNE MO NICD7D6D5D4D3D2D1D0H EX B YTE C YCLE EXPLANATIONMOV direct,#data0a7d71a6

Seite 65

14-5Ultra-High-Speed FlashMicrocontroller User’s GuideIN STRUCTION CODEMNE MO NICD7D6D5D4D3D2D1D0H EX B YTE C YCLE EXPLAN ATIONAC A L L addr 11a10a7a9

Seite 66

14-6Ultra-High-Speed FlashMicrocontroller User’s GuideIN STRUCTION CODEMNE MO NICD7D6D5D4D3D2D1D0H EX B YTE C YCLE EXPLAN ATIONJC re l0r71r60r50r40r30

Seite 67

15-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 15: PROGRAM LOADINGThis section contains the following information:ROM Loader Mode . . .

Seite 68

4-8Ultra-High-Speed FlashMicrocontroller User’s GuideRegister AddressingRegister addressing is used for operands that are located in one of the eight

Seite 69

15-2Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 15: PROGRAM LOADINGThe ultra-high-speed flash microcontroller family can perform program

Seite 70

15-3PROGRAM EXECUTIONINTERNAL MEMORY DISABLED EA\ =0INTERNAL MEMORY ENABLED EA\ =11RST = 1EA = 0PSEN = 0POWER-ONRESETAUTOBAUD ROUTINEAWAITING <CR&g

Seite 71

15-4Ultra-High-Speed FlashMicrocontroller User’s GuideSerial Program Load OperationProgram loading through a serial port is a convenient method of loa

Seite 72

15-5CRYSTAL FREQUENCY (MHz) TIMER RELOADLOADERBAUD RATEERROR (%)PC UARTBAUD RATEPC UARTRELOAD32.0000 F6 16667 -1.3 16457 7F3 12821 -0.2 12800 9EC 8333

Seite 73

15-6Ultra-High-Speed FlashMicrocontroller User’s GuideTable 15-3. Alphabetic Commands (continued)Selected commands require arguments and some commands

Seite 74

15-7Command SummariesBReturn the CRC-16 (cyclic redundancy check) of the internal ROM code. This self-CRC computation should always return 0000h.C [be

Seite 75

15-8Ultra-High-Speed FlashMicrocontroller User’s GuideLBLoad blind of internal flash memory—Loads standard Intel hex-formatted data into internal flas

Seite 76

15-9Error MessagesE:ARGREQAn argument or arguments are required for this command.E:BADCMDAn invalid command letter was entered.E:BADREGThis message is

Seite 77

Ultra-High-Speed FlashMicrocontroller User’s GuideIntel Hex File FormatAssemblers that are 8051-compatible produce an absolute output file in Intel he

Seite 78

Ultra-High-Speed FlashMicrocontroller User’s GuideR EV I S IONNUMB ERR EV I S IONDATES ECTIONNUMBERD ESCRI PTIO NPAGESCHANGED0 1/01 — Ini tial re le a

Seite 79

4-9The 16-bit data pointers (DPTRs) can be used as an absolute off-chip reference. This gives access to the entire 64kB data memorymap. An example is

Seite 80

4-10Ultra-High-Speed FlashMicrocontroller User’s GuideProgram Status FlagsAll program status flags are contained in the program status word at SFR loc

Seite 81

4-11REGISTER ADDRESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0P0 80h P0.7 P0.6 P0.5 P0.4 P0.3 P0.2 P0.1 P0.0SP 81hDPL 82hDPH 83hDPL1 84hDPH1 85h

Seite 82

Ultra-High-Speed FlashMicrocontroller User’s GuideMaxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied i

Seite 83

4-12Ultra-High-Speed FlashMicrocontroller User’s GuideREGISTER A D D RESS BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0P0 80h 1 1 1 1 1 1 1 1SP 81h

Seite 84

4-13SP.7–0Bits 7–0Stack Pointer. This stack pointer is written by software to identify the location where the stackbegins. The stack pointer is increm

Seite 85

4-14Ultra-High-Speed FlashMicrocontroller User’s GuideDPH.7–0Bits 7–0Data Pointer High 0. This register is the high byte of the standard 80C32 16-bit

Seite 86

4-15TSLBit 5AIDBit 4Bits 3, 2, 1SELBit 0Toggle Select. When clear (= 0), DPTR-related instructions do not affect the SEL bit. When set(= 1), the SEL b

Seite 87

4-16Ultra-High-Speed FlashMicrocontroller User’s GuideSTOPBit 1IDLEBit 0Stop Mode Select. Setting this bit stops program execution, halts the CPU osci

Seite 88

4-17GATEBit 7C/TBit 6M1, M0Bits 5, 4Timer 1 Gate Control. This bit enables/disables the ability of Timer 1 to increment.0 = Timer 1 clocks when TR1 =

Seite 89

4-18Ultra-High-Speed FlashMicrocontroller User’s GuideR = Unrestricted read, W = Unrestricted write, -n = Value after resetClock Control (CKCON)765432

Seite 90

4-19Table 4-9. MOVX InstructionMD2, MD1, MD0 STRETCH VALUE MOVX DURATION000 0 2 machine cycles001 13 machine cycles(default)010 2 4 machine cycles011

Seite 91

Ultra-High-Speed FlashMicrocontroller User’s GuideP1.7–0Bits 7–0INT5Bit 7INT4Bit 6INT3Bit 5INT2Bit 4TXD1Bit 3RXD1Bit 2T2EXBit 1T2Bit 0General-Purpose

Seite 92

4-21CKRYBit 3RGMDBit 2RGSLBit 1BGSBit 0Clock Ready. This bit indicates the status of the startup period for the crystal oscillator or crystalmultiplie

Seite 93

1-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 1: INTRODUCTIONMaxim’s ultra-high-speed flash microcontroller is an 8051-compatible micro

Seite 94

4-22Ultra-High-Speed FlashMicrocontroller User’s GuideR = Unrestricted read, W = Unrestricted write, -n = Value after resetSerial Port 0 Control (SCON

Seite 95

4-23RI_0Bit 0Receiver Interrupt Flag. This bit indicates that a byte of data has been received in the serial port0 buffer. In serial port mode 0, RI_0

Seite 96

4-24Ultra-High-Speed FlashMicrocontroller User’s GuideP2.7–0Bits 7–0Port 2. This port functions according to the table below where PAGEE = ACON.7 and

Seite 97

4-25ET0Bit 1EX0Bit 0Enable Timer 0 Interrupt. This bit controls the masking of the Timer 0 interrupt.0 = Disable all Timer 0 interrupts.1 = Enable all

Seite 98

4-26Ultra-High-Speed FlashMicrocontroller User’s GuideINT0Bit 2TXD0Bit 1RXD0Bit 0External Interrupt 0. A falling edge/low level on this pin causes an

Seite 99

4-27IP07.0Bit 7LPS1Bit 6LPT2Bit 5LPS0Bit 4LPT1Bit 3LPX1Bit 2LPT0Bit 1LPX0Bit 0Reserved. Read data is 1.Least Significant Priority Select Bit for Seria

Seite 100

4-28Ultra-High-Speed FlashMicrocontroller User’s GuideSADEN1.7–0Bits 7–0Slave Address Mask Enable Register 1. This register functions as a mask when c

Seite 101

4-29SM2_1Bit 5REN_1Bit 4TB8_1Bit 3RB8_1Bit 2TI_1Bit 1RI_1Multiple CPU Communications. The function of this bit is dependent on the serial port 1 mode.

Seite 102

4-30Ultra-High-Speed FlashMicrocontroller User’s GuideRMS2–0Bits 2–0ROM Memory Size Select 2-0. This register is used to select the maximum on-chip de

Seite 103

4-31Table 4-18. Data Memory AccessDME1DME0DATA MEMORYADDRESSRANGEMEMORY ACCESS0 0 0000h–FFFFh External Data Memory (default)X10000h–03FFh0400h–FFFFhIn

Seite 104

2-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 2: ORDERING INFORMATIONThe ultra-high-speed flash microcontroller family follows the part

Seite 105

4-32Ultra-High-Speed FlashMicrocontroller User’s GuidePIS2-0Bit 7, 6, 5Priority Interrupt Status Bits 2-0. These bits indicate the level of interrupt

Seite 106

4-33R = Unrestricted read, W = Unrestricted write, -n = Value after resetTimer 2 Control (T2CON)TF2Bit 7EXF2Bit 6Timer 2 Overflow Flag. This flag is s

Seite 107

4-34Ultra-High-Speed FlashMicrocontroller User’s GuideCP/RL2Bit 0Capture/Reload Select. This bit determines whether the capture or reload function is

Seite 108

4-35TL2.7–0Bits 7–0Timer 2 LSB. This register contains the least significant byte of Timer 2.TH2.7–0Bits 7–0Timer 2 MSB. This register contains the mo

Seite 109

4-36Ultra-High-Speed FlashMicrocontroller User’s GuideR = Unrestricted read, W = Unrestricted write, T = Timed-access write only, -n = Value after res

Seite 110

4-37RWTBit 0Reset Watchdog Timer. Setting this bit resets the watchdog timer count. This bit must be set usinga Timed Access procedure before the watc

Seite 111

4-38Ultra-High-Speed FlashMicrocontroller User’s GuideB.7–0Bits 7–0B Register. This register serves as a second accumulator for certain arithmetic ope

Seite 112

4-39R = Unrestricted read, W = Unrestricted write, -n = Value after resetExtended Interrupt Priority 0 (EIP0)7 6 5 4 3 2 1 0SFR F8h — — — LPWDI LPX5 L

Seite 113

5-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 5: CPU TIMINGThis section contains the following information:Oscillator . . . . . . . . .

Seite 114

5-2Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF FIGURESLIST OF TABLESFigure 5-1. Crystal Connection . . . . . . . . . . . . . . . . . . .

Seite 115

Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 3: ARCHITECTUREThis section contains the following information:ALU . . . . . . . . . . . . .

Seite 116

5-3XTAL1XTAL218pF18pFULTRA-HIGH-SPEEDMICROCONTROLLERTO INTERNAL CIRCUITSXTAL1XTAL2ULTRA-HIGH-SPEEDMICROCONTROLLERTO INTERNAL CIRCUITSCLOCKOSCILLA

Seite 117

5-4Ultra-High-Speed FlashMicrocontroller User’s GuideSystem Clock Divide ControlThe ultra-high-speed microcontroller provides the ability to speed up

Seite 118

5-5Instruction TimingThe ultra-high-speed microcontroller executes the industry standard 8051 instruction set. Each instruction requires a minimum of

Seite 119

5-6Ultra-High-Speed FlashMicrocontroller User’s Guide2-Byte InstructionsAll 2-byte instructions require a minimum of two cycles, since fetching each b

Seite 120

5-7SYSCLKALEPSENPORT 2PORT 0LSBLSB LSBINC DPLLSB LSB058205 86 E0 E0MSB ADDRESSINC DPSFigure 5-6. Nonpage Mode: INC Direct (Two Cycles) – INC Direct (T

Seite 121

5-8Ultra-High-Speed FlashMicrocontroller User’s GuideSYSCLKALEPSENPORT 2PORT 0LSBLSB LSBRETLSB LSB2200NOPMSB ADDRESS MSB ADDRESSFigure 5-8. Nonpage Mo

Seite 122

5-9Page Mode 1 External Timing—Pages 1:0 = 10b (Four Cycles)The page mode 1 external bus structure multiplexes port 2 to provide the address MSB and L

Seite 123

5-10Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 1 External Timing—Pages 1:0 = 10b (Four Cycles) (continued)Figure 5-11 shows execution

Seite 124

5-11Page Mode 1 External Timing—Pages 1:0 = 10b (Four Cycles) (continued)Figure 5-13 and Figure 5-14 demonstrate the execution of the RET (1-byte, thr

Seite 125

5-12Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 1 External Timing—Pages 1:0 = 01b (Two Cycles)The page mode 1 external bus structure m

Seite 126

Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 3: ARCHITECTUREThe architecture is based on the industry-standard 87C52 and executes the sta

Seite 127

5-13Page Mode 1 External Timing—Pages 1:0 = 00b (One Cycle)The page mode 1 external bus structure multiplexes port 2 to provide the address MSB and LS

Seite 128

5-14Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 1 External Timing—Pages 1:0 = 00b (One Cycle) (continued)Figure 5-19 illustrates the J

Seite 129

5-15Page Mode 2 External Timing—Pages 1:0 = 11b The page mode 2 external bus structure multiplexes port 2 between address MSB and data. The address LS

Seite 130

5-16Ultra-High-Speed FlashMicrocontroller User’s GuideComparison to the 8051The original 8051 needed 12 clocks per machine cycle and most instructions

Seite 131

5-17INSTRUCTION HEX CODEUHSM CLOCKCYCLESUHSM TIME @25MHz8051 CLOCKCYCLES8051 TIME @25MHzUHSM vs. 8051SPEEDADVANTAGEDEC direct 15 2 80 ns 12 480 ns 6DE

Seite 132

5-18Ultra-High-Speed FlashMicrocontroller User’s GuideINSTRUC TION HEX CO DEU HS M CLOC KCYC LESU HS M TI ME @25MHz8051 CLOCKCYC LES8051 TIME @25MHzU

Seite 133

5-19INSTRUCTION HEX CODEUHSM CLOCKCYCLESUHSM TIME @25MHz8051 CLOCKCYCLES8051 TIME @25MHzUHSM vs. 8051SPEEDADVANTAGEACALL addr 11 Hex codeHex codes = 1

Seite 134

5-20Ultra-High-Speed FlashMicrocontroller User’s GuideTable 5-2. Instruction Speed SummaryINSTRUC TION CA TEGORYSPEEDA DVA N T AGEQUA N TITY4.0 24.8 1

Seite 135

6-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 6: MEMORY ACCESSThis section contains the following information:Internal Flash Memory .

Seite 136

6-2Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF FIGURESLIST OF TABLESFigure 6-1. Memory Map for the DS89C420/430 . . . . . . . . . . . .

Seite 137

3-3Ultra-High-Speed FlashMicrocontroller User’s GuideScratchpad Registers (RAM)The high-speed core provides 256 bytes of scratchpad RAM for general-pu

Seite 138

6-3SECTION 6: MEMORY ACCESSThe ultra-high-speed flash microcontroller supports the memory interface convention established for the industry standard 8

Seite 139

6-4Ultra-High-Speed FlashMicrocontroller User’s GuideModification of the ROMSIZE (C2h) special function register requires using the timed access proce

Seite 140

6-5Option Control Register ByteUser-selectable options are present that must be set before beginning software execution. The option control register u

Seite 141

6-6Ultra-High-Speed FlashMicrocontroller User’s GuideInternal SRAM MemoryThe ultra-high-speed microcontroller incorporates an internal 1kB SRAM that i

Seite 142

6-7Internal Memory CyclesC2 C3 C4 C1 C2 C3 C4XTAL1ALEPort 0Port 2PSENC1Ext Memory CycleExt Memory CycleMSB Add

Seite 143

6-8Ultra-High-Speed FlashMicrocontroller User’s GuideProgram Memory Interface—Page ModesPage mode retains the basic external circuitry requirements as

Seite 144

6-9Page Mode 1 Bus StructureThe page mode 1 external bus structure uses P2 as the primary address bus (multiplexing both the most significant byte and

Seite 145

6-10Ultra-High-Speed FlashMicrocontroller User’s GuideFigure 6-5 shows external memory cycles for the page mode 1 bus structure. The first case illust

Seite 146

6-11Page Mode 2 Bus StructureThe page mode 2 external bus structure multiplexes the most significant address byte with data on P2 and uses P0 for the

Seite 147

6-12Ultra-High-Speed FlashMicrocontroller User’s GuideData Memory InterfaceAs described in Section 4, the ultra-high-speed microcontroller provides a

Seite 148

Ultra-High-Speed FlashMicrocontroller User’s GuideFlash MemoryOn-chip program memory is implemented in flash memory. This can be programmed in-system

Seite 149

6-13External Data Memory Interface—Page ModesThe ultra-high-speed flash microcontroller allows software to adjust the speed of external data memory ac

Seite 150

6-14Ultra-High-Speed FlashMicrocontroller User’s GuideTable 6-6. Page Mode 1—Data Memory Stretch Values Two Cycles (Pages 1:0 = 01b)Table 6-7. Page Mo

Seite 151

6-15Figures 6-9 and 6-10 show data memory interconnect examples for page mode 1 and page mode 2.ALECK74F373LATCHMSB ADDRESSDATA BUSLSB ADDRESSPORT 0(8

Seite 152

6-16Ultra-High-Speed FlashMicrocontroller User’s GuideFigures 6-11 to 6-22 illustrate the external data memory timing for the nonpage and page mode ex

Seite 153

6-17Page Mode 1 Data Memory Timing–PAGES 1:0 = 10b (Four Cycles)Figure 6-13 shows execution of the MOVX instruction from internal program memory with

Seite 154

6-18Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 1 Data Memory Timing–Pages 1:0 = 01b (Two Cycles)Figure 6-15 below shows execution of

Seite 155

6-19Page Mode 1 Data Memory Timing–Pages 1:0 = 01b (Two Cycles) (continued)Figure 6-17 shows execution of a MOVX instruction with default stretch val

Seite 156

6-20Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 1 Data Memory Timing–Pages 1:0 = 00b (One Cycle)Figure 6-19 illustrates execution of b

Seite 157

6-21Page Mode 1 Data Memory Timing–Pages 1:0 = 00b (One Cycle) (continued)Figure 6-21, still using a MOVX stretch value = 0, shows the back-to-back MO

Seite 158

6-22Ultra-High-Speed FlashMicrocontroller User’s GuidePage Mode 2 Data Memory Timing–Pages 1:0 = 11b (Four Cycles)All external data memory accesses ma

Seite 159

Memory Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-5Memory Ma

Seite 160

clock cycle has been added to each MOVX instruction (for data access) and to the instruction that follows the MOVX (for code fetch)to account for pote

Seite 161

6-24Ultra-High-Speed FlashMicrocontroller User’s Guide; THIS LOOP IS PERFORMED R5 TIMES, IN THIS EXAMPLE 64MOVX A, @DPTR ; READ SOURCE DATA BYTE 2/

Seite 162

6-25; THIS LOOP IS PERFORMED R5 TIMES, IN THIS EXAMPLE 64MOVX A, @DPTR ; READ SOURCE DATA BYTE 3 +DINC DPS ; CHANGE DPTR TO DESTINATION 4 +CMOVX

Seite 163

7-1Ultra-High-Speed FlashMicrocontroller User’s GuideSECTION 7: POWER MANAGEMENTThis section contains the following information:Power Management Summa

Seite 164

7-2Ultra-High-Speed FlashMicrocontroller User’s GuideLIST OF FIGURESLIST OF TABLESFigure 7-1. Power Cycle Operaton . . . . . . . . . . . . . . . . . .

Seite 165

7-3SECTION 7: POWER MANAGEMENTThe ultra-high-speed flash microcontroller has several features that relate to power consumption and management. They pr

Seite 166

7-4Ultra-High-Speed FlashMicrocontroller User’s GuideEXIF.2 RGMD: Ring oscillator mode. Hardware sets this status bit to a 1 when the clock source is

Seite 167

7-5A typical application of the PFI is to place the device into a “safe mode” when a power loss appears imminent. When the interruptoccurs, the code v

Seite 168

7-6Ultra-High-Speed FlashMicrocontroller User’s GuidePower SavingThe ultra-high-speed flash microcontroller is implemented using full CMOS circuitry f

Seite 169

7-7Use of the divide-by-0.25 or 0.5 option through the clock divide control bits requires that the crystal multiplier be enabled and the spe-cific sys

Kommentare zu diesen Handbüchern

Keine Kommentare