Maxim-integrated High-Speed Microcontroller Users Guide: Network Mi Instrukcja Użytkownika Strona 1

Przeglądaj online lub pobierz Instrukcja Użytkownika dla Sprzęt komputerowy Maxim-integrated High-Speed Microcontroller Users Guide: Network Mi. Maxim Integrated High-Speed Microcontroller Users Guide: Network Microcontroller Supplement User Manual [en] [fr] [de] Instrukcja obsługi

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 221
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 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.maximintegrated.com.
x3
SERIAL
UARTs
COMMUNICATE WITH
NEW AND LEGACY
EQUIPMENT
REMOTE MONITORING
AND CONTROL 
VIA THE NETWORK
8051 µC
WITH TCP/IPv4/6
NETWORK STACK IN
ROM
10/100
ETHERNET
MAC
DS80C400/DS80C410/DS80C411
NETWORKED MICROCONTROLLER
Rev: 12; 9/08
HIGH-SPEED MICROCONTROLLER USER’S GUIDE:
NETWORK MICROCONTROLLER SUPPLEMENT
This document is provided as a supplement to the High-Speed Microcontroller User’s Guide, covering new or modified features spe-
cific to the DS80C400/DS80C410/DS80C411. This document must be used in conjunction with the High-Speed
Microcontroller User’s Guide, available from Maxim. Addenda are arranged by section number, which correspond to sec-
tions in the High-Speed Microcontroller User’s Guide.
Unless otherwise specified, the references to the DS80C400 and its features also apply to the DS80C410 and DS80C411. Exceptions
include differences in the amount of internal memory and the inclusion/exclusion of the CAN module.
The following additions and changes, with respect to the High-Speed Microcontroller User’s Guide, are contained in this document.
This document is a work in progress, and updates/additions are added when available.
Przeglądanie stron 0
1 2 3 4 5 6 ... 220 221

Podsumowanie treści

Strona 1 - NETWORKED MICROCONTROLLER

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

Strona 2

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement10Exported RAM Functions . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 3

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement100External Memory AccessThe DS80C400 follows the memory interface convention

Strona 4

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement101Table 6-3. Extended Address Generation 1Only 32kB of memory is accessible

Strona 5

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement102Table 6-6 illustrates how program memory is segmented based on the setting

Strona 6

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement103Figure 6-4. Multiplexed Address/Data BusDS80C400P7.3/A3P7.4/A4P7.5/A5P7.6/

Strona 7

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement104DS80C400P7.3/A3P7.4/A4P7.5/A5P7.6/A6P7.7/A7Vcc1EA\ALEPSEN\P2.0\A8P2.1\A9P2

Strona 8

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement105CE0 =4Mx8PCE0 =1Mx8PCE1 =1Mx8PCE2 =1Mx8PCE3 =1Mx8CE1 =4Mx8CE3=4Mx8CE2 =4Mx

Strona 9

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement106CE0 = 32kB x 8PCE0 = 32kB x 8PCE1 = 32kB x 8PCE2 = 32kB x 8PCE3 = 32kB x 8

Strona 10 - Supplement

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement107CE0 =512kB x 8Non-AddressableNon-AddressablePCE0 =1MB x 8PCE1 =1MB x 8Non-

Strona 11

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement108Write-Protection Feature (DS80C400 Only)When combined program/data memory

Strona 12

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement109(TSL: DPS.5) is set to 1, the SEL bit (DPS.0) is automatically toggled eve

Strona 13

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement11Figure 5-1. System Clock Control Diagram . . . . . . . . . . . . . . . . .

Strona 14

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement110Early Warning Power-Fail InterruptThe PFI status bit is set if either VCC1

Strona 15

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement111SwitchbackIn addition to the switchback sources listed in the High-Speed M

Strona 16

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement112Power-On/Power-Fail ResetThe DS80C400 incorporates an internal voltage ref

Strona 17

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement113Reset OutputsThe microcontroller has one reset output, the RSTOL pin.Reset

Strona 18

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement114INT51-WIRE EOWMIFLAGBITS1-WIRE INTERRUPTENABLE BITSTBEOW_LOWOW_SHORTRSRFR

Strona 19

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement115EOWMIINTERRUPTENABLE BITSFLAGBITSINTERRUPTPRIORITY BITSINTERRUPTSELECTIONH

Strona 20

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement116ADDENDUM TO SECTION 10: PARALLEL I/OChanges to this section primarily invo

Strona 21

5V-Tolerant I/OIn order for the DS80C400 to provide 5V-tolerant I/O, additional circuitry has been incorporated to detect I/O pad voltages that exceed

Strona 22

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement118ADDENDUM TO SECTION 11: PROGRAMMABLE TIMERSThe timers of the DS80C400 are

Strona 23

Figure 11-2. Timers/Counters 0, 1, and 3, Mode 2 Figure 11-3. Timer/Counter 0, Mode 3 High-Speed Microcontroller User’sGuide: Network MicrocontrollerS

Strona 24

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement12Figure 19-6. Intermission . . . . . . . . . . . . . . . . . . . . . . . .

Strona 25

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement120Figure 11-4. Timer/Counter 2 Clock-Out Mode Figure 11-5. Timer/Counter 2 B

Strona 26

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement121Figure 11-6. Tiimer/Counter 2 Autoreload Mode, DCEN = 0 Figure 11-7. Timer

Strona 27

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement122Figure 11-8. Timer/Counter 2 with Optional CaptureDivide-by-13 OptionAnoth

Strona 28

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement123ference but allows the use of a crystal frequency that is acceptable for s

Strona 29

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement124ADDENDUM TO SECTION 12: SERIAL I/OThe DS80C400 high-speed microcontroller

Strona 30

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement125Mode 0Mode 0 is synchronous, so the shift clock output frequency is the ba

Strona 31

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement126Mode 2In this asynchronous mode, baud rates are always derived from the os

Strona 32

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement127Using Timer 1 or Timer 3 for Baud-Rate GenerationThe following text and Ta

Strona 33

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement128Table 12-6. Relationship Between External Crystal Frequency and Timer 2Whe

Strona 34

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement129ADDENDUM TO SECTION 13: TIMED-ACCESS PROTECTIONA number of timed-access-pr

Strona 35

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement13LIST OF TABLESTable 5-1. System Clock Configuration . . . . . . . . . . .

Strona 36

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement130ADDENDUM TO SECTION 16: INSTRUCTION SET DETAILSThe DS80C400 supports one o

Strona 37

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement131The DS80C400 supports interrupts from any location in the 24-bit address f

Strona 38

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement13224-Bit Contiguous Addressing ModeWhen the AM1 bit is set, the DS80C400 ope

Strona 39

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement133SECTION 17: TROUBLESHOOTINGSoftware Breakpoint ModeThe DS80C400 provides

Strona 40

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement134Figure 17-1. Force Feeding a Breakpoint During An Instruction Other Than M

Strona 41

ADDENDUM TO SECTION 18: MICROCONTROLLER DEVELOPMENTSUPPORTRefer to the High-Speed Microcontroller User’s Guide.High-Speed Microcontroller User’sGuide:

Strona 42

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement136SECTION 19: CONTROLLER AREA NETWORK (CAN) MODULEThe DS80C400 and DS80C410

Strona 43

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement137MOVX MESSAGE CENTERS FOR CAN 0CAN 0 CONTROL/STATUS/MASK REGISTERSREGISTER7

Strona 44

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement1381The first 2 bytes of the CAN 0 MOVX memory address are dependent on the s

Strona 45

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement139CAN 0 Media ID Mask Register 0 (C0MID0)MOVX Address17 6543210xxxx00hCAN 0

Strona 46

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement14ADDENDUM TO SECTION 1: INTRODUCTION The DS80C400 is the third-generation mi

Strona 47

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement140SJW1, SJW0Bits 7–6CAN synchronization jump width select. These bits specif

Strona 48

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement141SMPBit 7TSEG26–24Bits 6–4CAN sampling rate. The sampling rate (SMP) bit de

Strona 49

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement142CAN 0 Standard Global Mask Register 0 (C0SGM0)MOVX Address176543210xxxx06h

Strona 50

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement143CAN 0 Extended Global Mask Register 3 (C0EGM3)MOVX Address17 6543210xxxx0B

Strona 51

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement144CAN 0 Message Center 15 Mask Register 3 (C0M15M3)MOVX Address176543210xxxx

Strona 52

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement145CAN 0 Message Center y Arbitration Register 3 (C0MyAR3)ID28–ID0Bits 2–1(C0

Strona 53

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement146CAN 0 Message Center y Format Register (C0MyF)MOVX Address176543210Xxxxy6h

Strona 54

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement147CAN 0 Message Center y Data Byte 0 (C0MyD0)CAN 0 Message Center y Data Byt

Strona 55

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement148Frame TypesThe CAN 2.0B protocol specifies two different message formats,

Strona 56

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement149Control field: (Standard and extended format) The control field is made up

Strona 57

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement15DeviceNet is a trademark of OpenDeviceNet Vendor Association Inc.16 interru

Strona 58

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement150Figure 19-5. Acknowledge FieldEnd of frame: (Standard and extended format)

Strona 59

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement151Error frame: The error frame is transmitted by a CAN controller when the C

Strona 60

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement152The error counters are not incremented as a result of condition 3. The CAN

Strona 61

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement153Figure 19-10. CAN Interrupt LogicArbitration/Masking ConsiderationsThe CAN

Strona 62

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement154(C0SGM0–1) when EX/ST = 0, or the extended global mask registers (C0EGM0–3

Strona 63

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement155Receiving Data MessagesEach incoming data message is compared sequentially

Strona 64

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement156If software wants to modify the data in a message center configured for tr

Strona 65

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement157Case 3: Software-initiated reply. (Reply through same message center, usi

Strona 66

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement158Remote Frame Handling in Relation to the DTBYC BitsThe DTBYC bits function

Strona 67

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement159Case 1: WTOE = 1 (Overwrites allowed)1. Software configures message center

Strona 68

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement16The DS80C400 supports one of three different addressing modes, as selected

Strona 69

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement160The theory behind the CAN autobaud feature is relatively simple. If a CAN

Strona 70

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement161Bus-Off/Bus-Off Recovery and Error Counter OperationThe CAN module contain

Strona 71

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement162Bit TimingBit timing in the CAN 2.0B specification is based on a unit call

Strona 72

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement163The timing of the various time segments is determined by using the followi

Strona 73

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement164Bus Rate Timing ExampleThe following table shows a few example bit timing

Strona 74

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement165SECTION 20: ARITHMETIC ACCELERATORThe DS80C400 incorporates an arithmetic

Strona 75

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement166Divide (32-bit by 16-bit or 16-bit by 16-bit)The divide operation utilizes

Strona 76

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement1676. Poll the MST bit until cleared (for nine machine cycles).7. Read MA for

Strona 77

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement168SECTION 21: 1-WIRE BUS MASTERThe 1-Wire master contained within the DS80C4

Strona 78

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement169SETTING UP THE 1-WIRE MASTERThe first step is to determine the input cryst

Strona 79

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement17Register MapThe register map is separate from the program and data memory a

Strona 80

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement170MOV OWMDR, #0AAh ; Load up the byte to be transmitLCALL Wait4int ; Loop un

Strona 81

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement171Table 21-2. Transmit/Receive Byte Sequencern= decision discrepancy data (w

Strona 82

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement1729. Since the most significant discrepancy (d2) did not change, the next hi

Strona 83

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement173Figure 22-1. Ethernet Controller Block DiagramAssigning a Physical MAC Add

Strona 84

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement174Table 22-2. MAC Control Register Bit Summary MEDIA INDEPENDENT INTERFACE (

Strona 85

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement175Figure 22-2. MII Signal DiagramFigure 22-3. MII Mode–Byte/Bit Transmit and

Strona 86

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement176ENDEC MODE—HEARTBEAT SIGNAL QUALITY GENERATORWhen operating in ENDEC mode,

Strona 87

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement177For reception, the MAC automatically synchronizes on the preamble and star

Strona 88

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement178DEFERRAL CHECKWhen a transmit request is queued, the MAC monitors the CRS

Strona 89

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement179Figure 22-7. Half-Duplex Transmit Deferral/Collision Handling FLOW CONTROL

Strona 90

Special-Function Register MapSpecial-Function Register LocationHigh-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement18STARTADDRESS

Strona 91

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement180The MAC also can transmit a pause control frame on the request from the ap

Strona 92

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement181Figure 22-9. External Loopback Mode (MAC Control OM1:0 = 10b) ADDRESS FILT

Strona 93

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement182One way to prevent receive packets from always being stored to the receive

Strona 94

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement183Figure 22-10. Example 8kB Data Memory Partition...Page 31Page 6Page

Strona 95

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement184TRANSMIT/RECEIVE DATA BUFFER WORD ORIENTATION: ENDIANESSThe big/little-end

Strona 96

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement185Figure 22-12. Transmit Flow Diagram CPULoad transmit data buffer memory (M

Strona 97

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement186RECEIVING DATAAfter configuring the Ethernet MAC and the defining the rece

Strona 98

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement187USING WAKE-UP FRAMESAs discussed in the DS80C400 data sheet, the Ethernet

Strona 99

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement1881. CSR write register (CSRA = 28h, CSRD = 00_00_00_73h) Filter 0 byte mask

Strona 100

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement189SECTION 23: EMBEDDED DS80C400 SILICON SOFTWAREThe DS80C400 silicon softwar

Strona 101

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement19Special-Function Register Location (continued)REGISTERBIT 7 BIT 6 BIT 5 BIT

Strona 102

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement190D [begin address [length]]Dumps the selected memory range from the current

Strona 103

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement191UTILITY FUNCTIONScrc16Description: int crc16(int crc, /* initial CRC valu

Strona 104

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement192mem_compareDescription: int mem_compare(void *block0, /* pointer to the st

Strona 105

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement193getpseudorandomDescription: unsigned char getpseudorandom(void);The getpse

Strona 106

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement194rom_malloc_dirtyDescription: void rom_malloc_dirty(int blocksize); /* requ

Strona 107

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement195SOCKET FUNCTION CALLING CONVENTIONSThe DS80C400 silicon software socket fu

Strona 108

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement196SOCKET FUNCTIONS/POINTERSPARAMBUFFERThe DS80C400 silicon software exports

Strona 109

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement197recvfromDescription: int recvfrom(int s, /* receive on socket with handle

Strona 110

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement198listenDescription: int listen(int s, /* socket on which to listen for conn

Strona 111

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement199sendDescription: int send(int s, /* socket on which to send data */void *b

Strona 112

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement2TABLE OF CONTENTSADDENDUM TO SECTION 1: INTRODUCTION 14Features . . . . .

Strona 113

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement20REGISTERBIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0ADDRESSRCAP2L CAhRCA

Strona 114

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement200getsocknameDescription: int getsockname(int s, /* socket for which to get

Strona 115

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement201join/leaveDescriptions: int join(int s, /* socket to add to the multicast

Strona 116

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement202getipv6paramsDescriptions: getipv6params(void *parameters); /* pointer to

Strona 117

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement203DHCP FUNCTIONSdhcp_initDescription: int dhcp_init(void);The dhcp_init func

Strona 118

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement204dhcp_stopDescription: void dhcp_stop(void);The dhcp_stop function disables

Strona 119

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement205tftp_nextDescription: int tftp_next(int ack_only); /* flag to signal when

Strona 120

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement206task_getpriorityDescription: int task_getpriority(int id); /* id of the ta

Strona 121

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement207task_killDescription: int task_kill(int id); /* id of the task to be kille

Strona 122

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement208task_signalDescription: int task_signal(int id, /* id of task to send sign

Strona 123

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement209rom_task_switch_outThe rom_task_switch_out function is called before a tas

Strona 124

Special-Function Register Reset ValuesHigh-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement21REGISTERBIT 7 BIT 6 BIT 5 BIT 4 BIT 3

Strona 125

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement210ADDITIONAL FUNCTIONS AVAILABLE IN ROM VERSION 1.2.0If the ROM version (as

Strona 126

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement211info_convhexThis function converts 4-bit value into ASCII representation o

Strona 127

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement212arp_checkcacheThis function checks whether the system has an ARP cache ent

Strona 128

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement213task_suspend_ncThis function is similar to task_suspend, but it does not e

Strona 129

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement214ip_checkheader(IPv4 only) This function checks to see if the network stack

Strona 130

2. rom_redirect_init Copies the redirect call table from ROM to external memory 0100h–017Fh.3. ---- SETB EPFI instruction enables power-fail interrup

Strona 131

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplementASYNCHRONOUS TCP/IP MAINTENANCE FUNCTIONSThe default timer-interrupt handler

Strona 132

ROM REDIRECT FUNCTION TABLESince the socket interface is used by both NetBoot (from DS80C400 silicon software) and the user code (possibly running und

Strona 133

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplementROM REDIRECT FUNCTIONSThe usage of those ROM redirect functions not previousl

Strona 134

infosendcharThe infosendchar function sends a character to the serial port 0. The DS80C400 silicon software version of this function accesses theseria

Strona 135

Special-Function Register Reset Values (continued)High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement22REGISTERBIT 7 BIT 6 BIT 5

Strona 136

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplementTIMESLICE AND TASK SCHEDULER TIMINGThe task scheduler is primarily driven by

Strona 137

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplementREVISIONNUMBERREVISIONDATESECTIONNUMBERDESCRIP TIONPAGESCHANGED0 12/02 — Init

Strona 138

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement23REGISTERBIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0ADDRESSSADEN2 0 0 0

Strona 139

Special-Function RegistersThe DS80C400 has many unique features as compared to the standard 8052 microcontroller. These features are controlled by use

Strona 140

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement25SP.7–0Bits 7–0Stack pointer. This stack pointer identifies current location

Strona 141

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement26Data Pointer Select (DPS)ID1, ID0Bits 7–6TSLBit 5AIDBit 4ReservedBits 2, 1S

Strona 142

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement27Power Control (PCON)SMOD_0Bit 7SMOD0Bit 6OFDFBit 5OFDEBit 4GF1Bit 3GF0Bit 2

Strona 143

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement28Timer/Counter Control (TCON)TF1Bit 7TR1Bit 6TF0Bit 5TR0Bit 4IE1Bit 3IT1Bit

Strona 144

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement29Timer Mode Control (TMOD)7 6543210SFR 89h GATE C/T M1 M0 GATE C/T M1 M0RW-0

Strona 145

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement3Data Pointer Extended Register 1 (DPX1) . . . . . . . . . . . . . . . . . .

Strona 146

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement30Timer 0 LSB (TL0)Timer 1 LSB (TL1) Timer 0 MSB (TH0) Timer 1 MSB (TH1) TL0.

Strona 147

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement31Clock Control (CKCON)WD1, WD0Bits 7-6Watchdog timer mode select 1-0. These

Strona 148

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement32Port 1 (P1) 76543210SFR 90hP1.7INT5P1.6INT4P1.5INT3P1.4INT2P1.3TXD1P1.2RXD1

Strona 149

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement33External Interrupt Flag (EXIF)7 6543210SFR 91h IE5 IE4 IE3 IE2 CKRY RGMD RG

Strona 150

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement34Port 4 Control Register (P4CNT)76543210SFR 92h - - P4CNT.5 P4CNT.4 P4CNT.3

Strona 151

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement35Data Pointer Extended Register 0 (DPX)Data Pointer Extended Register 1 (DPX

Strona 152

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement36CAN 0 Receive Message Stored Register 0 (C0RMS0)7 6543210SFR 96h C0RMS0.7 C

Strona 153

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement37CAN 0 Receive Message Stored Register 1 (C0RMS1)76543210SFR 97h CORMS1.7 CO

Strona 154

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement38Serial Port 0 Control (SCON0)Serial Data Buffer 0 (SBUF0)7 6543210SFR 98h S

Strona 155

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement39Extended Stack Pointer Register (ESP)Address Page Register (AP)765 43210SFR

Strona 156

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement4CAN 0 Message Center 15 Control Register (C0M15C) . . . . . . . . . . . . .

Strona 157

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement40Address Control Register (ACON)7 6543210SFR 9Dh — — MROM BPME BROM SA AM1 A

Strona 158

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement41Programming AM1 and AM0 to 10 or 11 enables the fully contiguous 24-bit pro

Strona 159

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement42CAN 0 Transmit Message Acknowledgment Register 1 (C0TMA1)7 6543210SFR 9Fh —

Strona 160

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement43Port 5 (P5)Port 2 (P2)7 6543210SFR A0h A15/P2.7 A14/P2.6 A13/P2.5 A12/P2.4

Strona 161

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement44Port 5 Control Register (P5CNT)76543210SFR A2h — CAN0BA — — C0_I/O P5CNT.2

Strona 162

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement45CAN 0 Control Register (C0C)7 6543210SFR A3h ERIE STIE PDE SIESTA CRST AUTO

Strona 163

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement46CRSTBit 3AUTOBBit 2low-power mode. Setting SIESTA does not alter any CAN bl

Strona 164

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement47ERCSBit 1SWINTBit 0In the second case, consider a system with only two node

Strona 165

CAN 0 Status Register (C0S)High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement48C0S.7–0Bits 7-0BSSBit 7EC96/128Bit 6CAN 0 status

Strona 166

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement49WKSBit 5RXSBit 4TXSBit 3CAN 0 wake-up status. (Read only.) WKS = 0 indicate

Strona 167

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement5B Register (B) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 168

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement50ER2-0Bits 2-0CAN 0 bus error status 2-0. The ER2–ER0 bits indicate the firs

Strona 169

CAN 0 Interrupt Register (C0IR)High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement5176543210SFR A5h INTIN7 INTIN6 INTIN5 INTIN4

Strona 170

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement52Description:1A. STIE = 1 only (polling method: ETI = ERI 0) with no prior i

Strona 171

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement53General Issues:The INTIN vector value does not change when a new interrupt

Strona 172

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement54CAN 0 Receive-Error Register (C0RE)The following are the values of the INTI

Strona 173

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement55Interrupt Enable (IE)Slave Address Register 0 (SADDR0)SADDR0.7–0Bits 7–0Sla

Strona 174

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement56CAN 0 Message Center 1 Control Register (C0M1C)Slave Address Register 1 (SA

Strona 175

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement57EXTRQBit 3MTRQBit 2ROW/TIHBit 1External transmit request. (Read/clear only.

Strona 176

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement58DTUPBit 0If the message center being set up with WTOE = 1 was previously a

Strona 177

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement59CAN 0 Message Center 2 Control Register (C0M2C)CAN 0 Message Center 3 Contr

Strona 178

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement6Stop Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Strona 179

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement60Port 3 (P3)7 6543210SFR B0hP3.7RDP3.6WRP3.5T1P3.4T0P3.3INT1P3.2INT0P3.1TXD0

Strona 180

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement61Port 6 (P6) 7 6543210SFR B1hP6.7TXD2P6.6RXD2P6.5A21P6.4A20P6.3CE7P6.2CE6P6.

Strona 181

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement62Port 6 Control Register (P6CNT)7 6543210SFR B2h — — P6CNT.5 P6CNT.4 P6CNT.3

Strona 182

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement63Peripheral Chip-Enable Boundaries—DS80C400Peripheral Chip-Enable Boundaries

Strona 183

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement64CAN 0 Message Center 7 Control Register (C0M7C)CAN 0 Message Center 8 Contr

Strona 184

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement65Interrupt Priority (IP)76543210SFR B8h — PS1 PT2 PS0 PT1 PX1 PT0 PX0— RW-0

Strona 185

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement66Slave Address Mask Enable Register 1 (SADEN1)R = Unrestricted read, W = Unr

Strona 186

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement67CAN 0 Message Center 14 Control Register (C0M14C)R = Unrestricted read, C =

Strona 187

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement68Serial Data Buffer 1 (SBUF1)Power-Management Register (PMR)TB8_1Bit 3RB8_1B

Strona 188

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement69SWBBit 5CTMBit 44X/2XBit 3ALEOFFBit 2Bits 1-0Switchback enable. When set to

Strona 189

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement7ADDENDUM TO SECTION 15: BATTERY BACKUP 129Refer to the High-Speed Microcontr

Strona 190

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement70Status Register (STATUS)R = Unrestricted read, -n = Value after reset7 654

Strona 191

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement71Bit 4PDCE3Bit 3PDCE2Bit 2PDCE1Bit 1PDCE0Bit 0Reserved.Program/data chip ena

Strona 192

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement72Timer 2 Control (T2CON)R = Unrestricted read, W = Unrestricted write, -n =

Strona 193

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement73Timer 2 Mode (T2MOD)R = Unrestricted read, W = Unrestricted write, -n = Val

Strona 194

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement74Timer 2 LSB (TL2)R = Unrestricted read, W = Unrestricted write, -n = Value

Strona 195

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement75Program Status Word (PSW)R = Unrestricted read, W = Unrestricted write, -n

Strona 196

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement76Multiplier Control Register 0 (MCNT0)R = Unrestricted read, W = Unrestricte

Strona 197

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement77Multiplier Control Register 1 (MCNT1)R = Unrestricted read, W = Unrestricte

Strona 198

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement78A read pointer and a write pointer keep track of which of the four bytes is

Strona 199

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement797 6 5 4 3 2 1 0SFR D6h IRAMD PRAME — — PDCE7 PDCE6 PDCE5 PDCE4RT-* RT-* RT-

Strona 200

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement8CAN 0 Message Center y Format Register (C0MyF) . . . . . . . . . . . . . . .

Strona 201

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement80PDCE7Bit 3PDCE6Bit 2PDCE5Bit 1PDCE4Bit 0Program/data chip enable 7. PDCE7 p

Strona 202

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement81Memory Control Register 2 (MCON2)R = Unrestricted read, T = Timed-access wr

Strona 203

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement82Watchdog Control (WDCON)R = Unrestricted read, W = Unrestricted write, T =

Strona 204

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement8376543210SFR DAh BPA1.7 BPA1.6 BPA1.5 BPA1.4 BPA1.3 BPA1.2 BPA1.1 BPA1.0RW-0

Strona 205

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement847 6543210SFR E0h ACC.7 ACC.6 ACC.5 ACC.4 ACC.3 ACC.2 ACC.1 ACC.0RW-0 RW-0 R

Strona 206

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement857 6543210SFR E5h FPE RBF — BS4 BS3 BS2 BS1 BS0RT-0 R-1 RT-0 RT-0 RT-0 RT-0

Strona 207

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement8676543210SFR E7h BUSY EPMF TIF RIF BC3 BC2 BC1 BC0RW-0 RW-0 RW-0 RW-0 RW-0 R

Strona 208

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement8776543210SFR E8h EPMIE C0IE EAIE EWDI EWPI ES2 ET3 EX2-5RW-0 RW-0 RW-0 RW-0

Strona 209

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement8876543210SFR EDh DPX3.7 DPX3.6 DPX3.5 DPX3.4 DPX3.3 DPX3.2 DPX3.1 DPX3.0RW-0

Strona 210

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement897 6543210SFR EFhOWMDR.7OWMDR.6OWMDR.5OWMDR.4OWMDR.3OWMDR.2OWMDR.1OWMDR.0RW-

Strona 211

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement9Setting Up and Using the 1-Wire Master . . . . . . . . . . . . . . . . . .

Strona 212

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement9076543210SFR F5h DPH3.7 DPH3.6 DPH3.5 DPH3.4 DPH3.3 DPH3.2 DPH3.1 DPH3.0RW-0

Strona 213

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement9176543210SFR F7 — — — — V1PF V3PF SPTA2 SPRA2R-1 R-1 R-1 R-1 R-0 R-0 R-0 R-0

Strona 214

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement927 6543210SFR F9h P7.7 P7.6 P7.5 P7.4 P7.3 P7.2 P7.1 P7.0RW-1 RW-1 RW-1 RW-1

Strona 215

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement9376543210SFR FDh TF3 TR3 T3M SMOD_2 GATE C/T3 M1 M0RW-0 RW-0 RW-0 RW-0 RW-0

Strona 216

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement947 6543210SFR FEhSM0/FE_2SM1_2 SM2_2 REN_2 TB8_2 RB8_2 TI_2 RI_2RW-0 RW-0 RW

Strona 217

ADDENDUM TO SECTION 5: CPU TIMINGExternal Clock SourceThe DS80C400 supports a maximum operating frequency of 75MHz. However, when using an external cr

Strona 218

High-Speed Microcontroller User’sGuide: Network MicrocontrollerSupplement96Table 5-1. System Clock Configuration The system clock and machine cycle ra

Strona 219

ADDENDUM TO SECTION 6: MEMORY ACCESSInternal Program MemoryThe DS80C400 incorporates 64kB of on-chip ROM program memory. The 64kB block of memory is l

Strona 220

Internal Data MemoryDS80C400The DS80C400 incorporates 9472 bytes of internal SRAM memory, in addition to the standard 256-byte scratchpad memory. This

Strona 221

DS80C410/DS80C411Similar to the DS80C400, the DS80C410 and DS80C411 incorporate three internal SRAM memory blocks: a 1kB block usable as datamemory an

Komentarze do niniejszej Instrukcji

Brak uwag