Maxim-integrated High-Speed Microcontroller Users Guide: DS80C390 S Manual de usuario

Busca en linea o descarga Manual de usuario para Hardware Maxim-integrated High-Speed Microcontroller Users Guide: DS80C390 S. Maxim Integrated High-Speed Microcontroller Users Guide: DS80C390 Supplement User Manual [en] [es] [it] [de] Manual de usuario

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 158
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 0
AVAILABLE
1 of 158 REV: 081606
This document is provided as a supplement to the High-Spee
d Microcontroller User’s Guide, covering new or
modified features specific to the DS80C390. This document must be used in conjunction with Dallas
Semiconductor’s High-Speed Microcontroller User’s Guide. Addenda are arranged by the section numbers
that correspond to sections in the High-Speed Microcontroller User’s Guide.
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.
TABLE OF CONTENTS
ADDENDUM TO SECTION 2: ORDERING INFORMATION.....................................................................5
ADDENDUM TO SECTION 4: PROGRAMMING MODEL ........................................................................6
MEMORY MAP........................................................................................................................................................ 6
REGISTER MAP ..................................................................................................................................................... 6
BIT ADDRESSABLE LOCATIONS ................................................................................................................................... 6
WORKING REGISTERS................................................................................................................................................ 6
STACK....................................................................................................................................................................... 7
SPECIAL FUNCTION REGISTERS........................................................................................................................ 9
PORT 4 (P4)............................................................................................................................................................ 14
STACK POINTER (SP) .............................................................................................................................................. 15
DATA POINTER LOW 0 (DPL) ................................................................................................................................... 15
DATA POINTER HIGH 0 (DPH).................................................................................................................................. 15
DATA POINTER LOW 1 (DPL1) ................................................................................................................................. 15
DATA POINTER HIGH 1 (DPH1)................................................................................................................................ 16
DATA POINTER SELECT (DPS) ................................................................................................................................. 16
POWER CONTROL (PCON) ...................................................................................................................................... 17
TIMER/COUNTER CONTROL (TCON) ........................................................................................................................ 18
TIMER MODE CONTROL (TMOD).............................................................................................................................. 19
TIMER 0 LSB (TL0)................................................................................................................................................. 20
TIMER 1 LSB (TL1)................................................................................................................................................. 20
TIMER 0 MSB (TH0) ............................................................................................................................................... 20
TIMER 1 MSB (TH1) ............................................................................................................................................... 20
CLOCK CONTROL (CKCON) .................................................................................................................................... 21
PORT 1 (P1)............................................................................................................................................................ 22
EXTERNAL INTERRUPT FLAG (EXIF) ......................................................................................................................... 23
PORT 4 CONTROL REGISTER (P4CNT) .................................................................................................................... 24
DATA POINTER EXTENDED REGISTER 0 (DPX) ......................................................................................................... 25
DATA POINTER EXTENDED REGISTER 1 (DPX1) ....................................................................................................... 25
CAN 0 RECEIVE MESSAGE STORED REGISTER 0 (C0RMS0).................................................................................... 26
CAN 0 RECEIVE MESSAGE STORED REGISTER 1 (C0RMS1).................................................................................... 27
SERIAL PORT 0 CONTROL (SCON0) ........................................................................................................................ 28
SERIAL DATA BUFFER 0 (SBUF0) ............................................................................................................................ 29
REVISION ID REGISTER (RID)............................................................................................................................ 29
EXTENDED STACK POINTER REGISTER (ESP)........................................................................................................... 30
ADDRESS PAGE REGISTER (AP)............................................................................................................................... 30
ADDRESS CONTROL REGISTER (ACON)................................................................................................................... 31
CAN 0 TRANSMIT MESSAGE ACKNOWLEDGEMENT REGISTER 0 (C0TMA0)............................................................... 32
CAN 0 TRANSMIT MESSAGE ACKNOWLEDGEMENT REGISTER 1 (C0TMA1)............................................................... 33
PORT 2 (P2)............................................................................................................................................................ 34
PORT 5 (P5)............................................................................................................................................................ 34
High-Speed Microcontroller User’s Guide:
DS80C390 Supplement
Vista de pagina 0
1 2 3 4 5 6 ... 157 158

Indice de contenidos

Pagina 1 - DS80C390 Supplement

AVAILABLE1 of 158 REV: 081606 This document is provided as a supplement to the High-Speed Microcontroller User’s Guide, covering new or modified feat

Pagina 2

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 10 of 158 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESSSAD

Pagina 3

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 100 of 158 ADDENDUM TO SECTION 7: POWER MANAGEMENT The DS80C390 supports the general po

Pagina 4

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 101 of 158 ADDENDUM TO SECTION 8: RESET CONDITIONS This section supersedes the correspo

Pagina 5 - 5 of 158

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 102 of 158 EXTERNAL RESET If the RST input is taken to a logic 1, the CPU will be force

Pagina 6 - WORKING REGISTERS

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 103 of 158 contents are not altered. Interrupts and Timers are disabled. The state of t

Pagina 7 - 7 of 158

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 104 of 158 ADDENDUM TO SECTION 10: PARALLEL I/O Changes to this section primarily invo

Pagina 8 - 8 of 158

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 105 of 158 OUTPUT FUNCTIONS Although 8051 I/O ports appear to be true I/O, their output

Pagina 9 - SPECIAL FUNCTION REGISTERS

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 106 of 158 ADDENDUM TO SECTION 11: PROGRAMMABLE TIMERS The timers of the DS80C390 are v

Pagina 10 - LSHIFT

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 107 of 158 01T0M = CKCON.3(T1M = CKCON.4)T0 = P3.4(T1 = P3.5)C/T = TMOD.2(C/T = TMOD.6

Pagina 11

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 108 of 158 TIMER/COUNTER 2 CLOCK-OUT MODE (/RL2 = 0) TIMER/COUNTER 2 BAUD RATE GENE

Pagina 12

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 109 of 158 TIMER/COUNTER 2 AUTO RELOAD MODE (/RL2 = 0) (A) DCEN = 0 TIMER/COUNTER 2 A

Pagina 13

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 11 of 158 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESSMXA

Pagina 14 - PORT 4 (P4)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 110 of 158 DIVIDE-BY-13 OPTION The other change to the timers associated with the DS80C

Pagina 15 - DATA POINTER LOW 1 (DPL1)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 111 of 158 IrDA CLOCK OUTPUT The Infrared Data Association (IrDA) communication protoco

Pagina 16 - DATA POINTER SELECT (DPS)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 112 of 158 ADDENDUM TO SECTION 12: SERIAL I/O The serial ports of the DS80C390’s Ax and

Pagina 17 - POWER CONTROL (PCON)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 113 of 158 ADDENDUM TO SECTION 13: TIMED ACCESS PROTECTION A number of timed-access pro

Pagina 18 - TIMER/COUNTER CONTROL (TCON)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 114 of 158 ADDENDUM TO SECTION 16: INSTRUCTION SET DETAILS The DS80C390 supports one of

Pagina 19 - TIMER MODE CONTROL (TMOD)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 115 of 158 The DS80C390 supports interrupts from any location in the 22-bit address fie

Pagina 20 - TIMER 1 MSB (TH1)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 116 of 158 The modification of the instructions in the 22-bit page address mode is summ

Pagina 21 - CLOCK CONTROL (CKCON)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 117 of 158 software tools (assembler or compiler) specifically designed to accept the m

Pagina 22 - PORT 1 (P1)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 118 of 158 INSTRUCTION CODE MNEMONIC D7 D6 D5 D4 D3 D2D1D0 HEX BYTE CYCLE EXP

Pagina 23

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 119 of 158 SECTION 19: CONTROLLER AREA NETWORK (CAN) MODULE (DS80C390 Supplement Only)

Pagina 24

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 12 of 158 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESSP5C

Pagina 25 - CE3 CE2 CE1 CE0

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 120 of 158 MOVX MESSAGE CENTERS FOR CAN 0 CAN 0 CONTROL/STATUS/MASK REGISTERS Register

Pagina 26

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 121 of 158 CAN 0 MESSAGE CENTERS 2-14 MESSAGE CENTER 2 REGISTERS (similar to Message

Pagina 27

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 122 of 158 MOVX MESSAGE CENTERS FOR CAN 1 CAN 1 CONTROL/STATUS/MASK REGISTERS Register

Pagina 28

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 123 of 158 CAN 1 MESSAGE CENTERS 2-14 MESSAGE CENTER 2 REGISTERS (similar to Message

Pagina 29 - REVISION ID REGISTER (RID)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 124 of 158 CAN MOVX REGISTER DESCRIPTION Most of the SRAM control registers, including

Pagina 30 - ADDRESS PAGE REGISTER (AP)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 125 of 158 CnMID0 masks programmed to 1 will force the state of the corresponding Data

Pagina 31

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 126 of 158 can only be modified during a software initialization (SWINT=1). BPR5 BPR4

Pagina 32

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 127 of 158 TSEG13 TSEG12 TSEG11 TSEG10 Time Segment One Length (Number in parenthe

Pagina 33

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 128 of 158 CAN Extended Global Mask Register 0 (CnEGM0) MOVX Address1 7 6 5 4 3 2

Pagina 34 - PORT 5 (P5)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 129 of 158 CAN Message Center 15 Mask Register 0 (CnM15M0) MOVX Address1 7 6 5 4 3

Pagina 35

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 13 of 158 REGISTER BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1 BIT 0 ADDRESSC1C

Pagina 36 - CAN 0 CONTROL REGISTER (C0C)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 130 of 158 CAN MESSAGE CENTER MOVX REGISTER DESCRIPTIONS CAN Message Center y Arbitrat

Pagina 37

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 131 of 158 WTOE DTUP EXTRQ Result when new message detected 0 0 0 There is current

Pagina 38

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 132 of 158 CAN Message Center y Format Register (CnMyF) MOVX Address1 7 6 5 4 3 2

Pagina 39 - CAN 0 STATUS REGISTER (C0S)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 133 of 158 CAN Message Center y Data Byte 0 (CnMyD0) MOVX Address1 7 6 5 4 3 2 1

Pagina 40

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 134 of 158 FRAME TYPES The CAN 2.0B protocol specifies two different message formats, t

Pagina 41

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 135 of 158 The Substitution Remote Request bit is a recessive bit and is substituted fo

Pagina 42

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 136 of 158 Figure 19-4. CRC FIELD CRC FieldCRC SequenceCRC DelimiterData Field orContro

Pagina 43

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 137 of 158 Remote Frame (Standard and Extended Format) The Remote Frame is transmitted

Pagina 44 - INTERRUPT ENABLE (IE)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 138 of 158 until six equal bits of the same polarity have been detected. At this point

Pagina 45

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 139 of 158 INITIALIZING THE CAN CONTROLLERS Software initialization of each CAN control

Pagina 46 - 7 6 5 4 3 2 1 0

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 14 of 158 PORT 4 (P4) 7 6 5 4 3 2 1 0 SFR 80h A19/P4.7 A18/P4.6 A17/P4.5 A18/P4.4

Pagina 47

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 140 of 158 SFR Register. Software must clear the respective INTRQ bit in the associated

Pagina 48

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 141 of 158 ARBITRATION/MASKING CONSIDERATIONS Each CAN processor evaluates CAN bus acti

Pagina 49

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 142 of 158 message center 15). This AND’ed value is then used in place of CnEGM3-0 or C

Pagina 50 - PORT 3 (P3)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 143 of 158 have DTUP = 1, which will in turn set ROW = 1. When WTOE = 0, incoming messa

Pagina 51

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 144 of 158 to the remote frame request. Higher numbered message centers (lower priority

Pagina 52 - INTERRUPT PRIORITY (IP)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 145 of 158 Case 1: Automatic Reply CAN Controller receives a remote frame Request (RFR)

Pagina 53

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 146 of 158 6. CAN waits for Software to read message center and determine the fact tha

Pagina 54

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 147 of 158 REMOTE FRAME HANDLING IN RELATION TO THE DTBYC BITS The DTBYC bits function

Pagina 55 - SERIAL PORT CONTROL (SCON1)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 148 of 158 overwrite the message center. If this overwrite occurs at the same time that

Pagina 56 - SERIAL DATA BUFFER 1 (SBUF1)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 149 of 158 7. Software reads message center 2 and then programs message center 2 DTUP

Pagina 57

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 15 of 158 STACK POINTER (SP) 7 6 5 4 3 2 1 0 SFR 81h SP.7 SP.6 SP.5 SP.4 SP.3 SP.2 SP

Pagina 58 - STATUS REGISTER (STATUS)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 150 of 158 If, after a period of time, only a small number of errors have accumulated (

Pagina 59

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 151 of 158 CONDITION EFFECT ON ERROR COUNTERS Error detected by receiver, unless the de

Pagina 60 - TIMED ACCESS REGISTER (TA)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 152 of 158 A node is bus off when the transmit error count is greater than or equal to

Pagina 61 - TIMER 2 CONTROL (T2CON)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 153 of 158 Figure 19-11. BIT TIMING The CAN 0/1 Bus Timing Register Zero (C0BT0/C1BT0)

Pagina 62 - TIMER 2 MODE (T2MOD)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 154 of 158 The timing of the various time segments is determined by the following formu

Pagina 63 - TIMER 2 LSB (TL2)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 155 of 158 maximum bit time = tSYNC_SEG + tTSEG1 + tTSEG2 + tSJW = OSCF)]SJW()LEN_2T

Pagina 64 - CLOCK OUTPUT REGISTER (COR)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 156 of 158 SECTION 20: ARITHMETIC ACCELERATOR (DS80C390 Supplement Only) The DS80C390 i

Pagina 65 - PROGRAM STATUS WORD (PSW)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 157 of 158 USING THE ARITHMETIC ACCELERATOR The following procedures illustrate how to

Pagina 66

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 158 of 158 Maxim/Dallas Semiconductor cannot assume responsibility for use of any circu

Pagina 67

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 16 of 158 DATA POINTER HIGH 1 (DPH1) 7 6 5 4 3 2 1 0 SFR 85h DPH1.7 DPH1.6 DPH1.5 DP

Pagina 68 - MULTIPLIER B REGISTER (B)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 17 of 158 POWER CONTROL (PCON) 7 6 5 4 3 2 1 0 SFR 87h SMOD_0 SMOD0 OFDF ODFE F

Pagina 69 - MULTIPLIER C REGISTER (C)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 18 of 158 TIMER/COUNTER CONTROL (TCON) 7 6 5 4 3 2 1 0 SFR 88h TF1 TR1 TF0 TR0 IE1 IT

Pagina 70

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 19 of 158 TIMER MODE CONTROL (TMOD) 7 6 5 4 3 2 1 0 SFR 89h GATE C/T M1 M0 GATE C/ T

Pagina 71 - WATCHDOG CONTROL (WDCON)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 2 of 158 PORT 5 CONTROL REGISTER (P5CNT) ...

Pagina 72

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 20 of 158 TIMER 0 LSB (TL0) 7 6 5 4 3 2 1 0 SFR 8Ah TL0.7 TL0.6 TL0.5 TL0.4 TL0.3 TL0

Pagina 73

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 21 of 158 CLOCK CONTROL (CKCON) 7 6 5 4 3 2 1 0 SFR 8Eh WD1 WD0 T2M T1M T0M MD2 MD1

Pagina 74 - CAN 1 CONTROL REGISTER (C1C)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 22 of 158 MD2, MD1, MD0 Bits 2-0 Stretch MOVX Select 2-0. These bits select the time b

Pagina 75

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 23 of 158 RXD1 Bit 2 Serial Port 1 Receive. This pin receives the serial port 1 data i

Pagina 76

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 24 of 158 RGSL Bit 1 Ring Oscillator Select. This bit selects the clock source followi

Pagina 77 - CAN 1 STATUS REGISTER (C1S)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 25 of 158 110 I/O A18 A17 A16 512 kbytes 111 A19 A18 A17 A16 1 Mbytes P4CNT.2-P4CNT

Pagina 78

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 26 of 158 CAN 0 RECEIVE MESSAGE STORED REGISTER 0 (C0RMS0) 7 6 5 4 3 2 1 0 SFR 96h C

Pagina 79

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 27 of 158 CAN 0 RECEIVE MESSAGE STORED REGISTER 1 (C0RMS1) 7 6 5 4 3 2 1 0 SFR 97h

Pagina 80

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 28 of 158 SERIAL PORT 0 CONTROL (SCON0) 7 6 5 4 3 2 1 0 SFR 98h SM0/FE_0 SM1_0 SM

Pagina 81

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 29 of 158 TB8_0 Bit 3 9th Transmission Bit State. This bit defines the state of the 9

Pagina 82

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 3 of 158 EXTENDED INTERRUPT ENABLE (EIE) ...

Pagina 83

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 30 of 158 EXTENDED STACK POINTER REGISTER (ESP) 7 6 5 4 3 2 1 0 SFR 9Bh 1 1 1 1 1 1 E

Pagina 84

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 31 of 158 ADDRESS CONTROL REGISTER (ACON) 7 6 5 4 3 2 1 0 SFR 9Dh 1 1 1 1 1 SA AM1 AM

Pagina 85

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 32 of 158 CAN 0 TRANSMIT MESSAGE ACKNOWLEDGEMENT REGISTER 0 (C0TMA0) 7 6 5 4 3 2 1 0

Pagina 86

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 33 of 158 CAN 0 TRANSMIT MESSAGE ACKNOWLEDGEMENT REGISTER 1 (C0TMA1) 7 6 5 4 3 2 1 0

Pagina 87 - B REGISTER (B)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 34 of 158 PORT 2 (P2) 7 6 5 4 3 2 1 0 SFR A0h A15/P2.7 A14/P2.6 A13/P2.5 A12/P2.4

Pagina 88

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 35 of 158 External Connection bit (SP1EC, P5CNT.5) configures this pin as the Serial P

Pagina 89

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 36 of 158 established by the P4CNT register. Note that the chip-enable range when usin

Pagina 90

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 37 of 158 power-down mode. Power-down mode is exited by clearing the PDE bit or by any

Pagina 91 - SYSTEM CLOCK SELECTION

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 38 of 158 ERCS Bit 1 CAN 0 Error Count Select. This bit selects the number of transmit

Pagina 92

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 39 of 158 CAN 0 STATUS REGISTER (C0S) 7 6 5 4 3 2 1 0 SFR A4h BUSOFF CECE WKS RX

Pagina 93 - EXTERNAL MEMORY INTERFACING

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 4 of 158 SECTION 19: CONTROLLER AREA NETWORK (CAN) MODULE ...

Pagina 94 - CE0 CE1 CE2 CE3

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 40 of 158 RXS Bit 4 CAN 0 Receive Status. This bit indicates whether or not messages h

Pagina 95 - START390.A51 file

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 41 of 158 TXS bit in the Status Register, a second status change interrupt flag will b

Pagina 96

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 42 of 158 arbitration field (identifier and remote retransmission request). Bit 0 Err

Pagina 97

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 43 of 158 first interrupt source detected by the CAN module following the non-active i

Pagina 98

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 44 of 158 CAN 0 RECEIVE ERROR REGISTER (C0RE) 7 6 5 4 3 2 1 0 SFR A7h R*-0

Pagina 99

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 45 of 158 ET0 Bit 1 Enable Timer 0 Interrupt. This bit controls the masking of the Ti

Pagina 100 - POWER MANAGEMENT MODES

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 46 of 158 CAN 0 MESSAGE CENTER 1 CONTROL REGISTER (C0M1C) 7 6 5 4 3 2 1 0 SFR ABh M

Pagina 101 - WATCHDOG TIMER RESET

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 47 of 158 transmission by a message center programmed for transmission (T/R = 1), the

Pagina 102 - Reset Output Low (RSTOL)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 48 of 158 center when the CAN is processing the incoming data. ROW is cleared by the

Pagina 103 - IN-SYSTEM DISABLE MODE

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 49 of 158 after the message center read. If DTUP has been set, then a new message was

Pagina 104 - PORTS 4 AND 5

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 5 of 158 ADDENDUM TO SECTION 2: ORDERING INFORMATION The high-speed microcontroller fa

Pagina 105 - OUTPUT FUNCTIONS

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 50 of 158 CAN 0 MESSAGE CENTER 4 CONTROL REGISTER (C0M4C) 7 6 5 4 3 2 1 0 SFR AEh M

Pagina 106 - MODES 0 AND 1

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 51 of 158 INT0 Bit 2 External Interrupt 0. A falling edge/low level on this pin will

Pagina 107

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 52 of 158 CAN 0 MESSAGE CENTER 9 CONTROL REGISTER (C0M9C) 7 6 5 4 3 2 1 0 SFR B6h M

Pagina 108 - BAUD RATE GENERATOR MODE

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 53 of 158 PT0 Bit 1 Timer 0 Interrupt. This bit controls the priority of Timer 0 inte

Pagina 109 - AUTO RELOAD MODE (/RL2 = 0)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 54 of 158 CAN 0 MESSAGE CENTER 11 CONTROL REGISTER (C0M11C) 7 6 5 4 3 2 1 0 SFR BBh

Pagina 110 - PROGRAMMABLE CLOCK OUTPUT

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 55 of 158 CAN 0 MESSAGE CENTER 15 CONTROL REGISTER (C0M15C) 7 6 5 4 3 2 1 0 SFR BFh

Pagina 111 - DS80C390

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 56 of 158 Mode 1: When set, reception is ignored (RI_1 is not set) if invalid stop bit

Pagina 112

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 57 of 158 POWER MANAGEMENT REGISTER (PMR) 7 6 5 4 3 2 1 0 SFR C4h CD1 CD0 SWB CT

Pagina 113

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 58 of 158 2. Set the CTM bit. At this point the CKRY bit (EXIF.3) will be cleared, in

Pagina 114 - 22-BIT PAGED ADDRESSING MODE

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 59 of 158 SPTA0 Bit 1 Serial Port 0 Transmit Activity Monitor. When set, this bit indi

Pagina 115 - JMP @A+DPTR or the MOVC A

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 6 of 158 ADDENDUM TO SECTION 4: PROGRAMMING MODEL The DS80C390 microprocessor is based

Pagina 116

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 60 of 158 PDCE2 Bit 2 Program/Data Chip Enable 2. This bit selects whether the CE2 si

Pagina 117

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 61 of 158 TIMER 2 CONTROL (T2CON) 7 6 5 4 3 2 1 0 SFR C8h TF2 EXF2 RCLK TCLK EXEN2 T

Pagina 118

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 62 of 158 TR2 Bit 2 Timer 2 Run Control. This bit enables/disables the operation of ti

Pagina 119

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 63 of 158 DCEN Bit 0 Down Count Enable. This bit, in conjunction with the T2EX pin, co

Pagina 120

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 64 of 158 TIMER 2 MSB (TH2) 7 6 5 4 3 2 1 0 SFR CDh TH2.7 TH2.6 TH2.5 TH2.4 TH2.3

Pagina 121 - CMA=1, xxxx=4010

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 65 of 158 CLKOE Bit 0 External Clock Output Enable. This bit enables the optional cloc

Pagina 122 - MOVX Data

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 66 of 158 MULTIPLIER CONTROL REGISTER ZERO (MCNT0) 7 6 5 4 3 2 1 0 SFR D1h LSHIFT C

Pagina 123 - CMA=1, xxxx=4011

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 67 of 158 MAS4-0 Bits 4-0 Multiplier Register Shift Bits. These bits determine the num

Pagina 124

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 68 of 158 CLM Bit 4 Clear Accelerator Registers. Writing a one to this bit will clear

Pagina 125

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 69 of 158 MULTIPLIER C REGISTER (C) 7 6 5 4 3 2 1 0 SFR D5h RW-0 RW-0 RW-0

Pagina 126

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 7 of 158 register. Since there are four banks, the currently selected bank will be use

Pagina 127

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 70 of 158 C1RMS0.2 Bit 2 Message Center 3, Message Received and Stored C1RMS0.1 Bit

Pagina 128

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 71 of 158 WATCHDOG CONTROL (WDCON) 7 6 5 4 3 2 1 0 SFR D8h SMOD POR EPF1 PFI WDI

Pagina 129

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 72 of 158 WTRF Bit 2 Watchdog Timer Reset Flag. When set, this bit indicates that a wa

Pagina 130

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 73 of 158 C1TMA0.3 Bit 3 Message Center 4, Message Transmitted C1TMA0.2 Bit 2 Messag

Pagina 131

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 74 of 158 ACCUMULATOR (A or ACC) 7 6 5 4 3 2 1 0 SFR E0h ACC.7 ACC.6 ACC.5 ACC.4 ACC.

Pagina 132 - MEME MDME

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 75 of 158 CRST Bit 3 CAN 1 Reset. Setting this bit by a Timed Access write will reset

Pagina 133

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 76 of 158 MOVX SRAM. These bytes contain the CAN 1 Control/Status/Mask Registers. Read

Pagina 134 - FRAME TYPES

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 77 of 158 CAN 1 STATUS REGISTER (C1S) 7 6 5 4 3 2 1 0 SFR E4h BUSOFF CECE WKS RX

Pagina 135

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 78 of 158 or a system Reset. 1 = The meaning of RXS=1 is dependent on the autobaud bit

Pagina 136 - CRC Field ACK Field

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 79 of 158 CAN Status Register has been read to clear the previous status change interr

Pagina 137

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 8 of 158 Figure 4-1. DS80C390 MEMORY MAP (DEFAULT SETTINGS) DataMemoryProgramMemoryIn

Pagina 138

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 80 of 158 CAN 1 INTERRUPT REGISTER (C1IR) 7 6 5 4 3 2 1 0 SFR E5h R-0 R-0

Pagina 139 - CAN INTERRUPTS

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 81 of 158 CAN 1 TRANSMIT ERROR REGISTER (C1TE) 7 6 5 4 3 2 1 0 SFR E6h — — — — — —

Pagina 140 - VECTOR

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 82 of 158 EXTENDED INTERRUPT ENABLE (EIE) 7 6 5 4 3 2 1 0 SFR E8h CANBIE C0IE C1IE EW

Pagina 141 - MESSAGE CENTER 15

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 83 of 158 CAN 1 MESSAGE CENTER 1 CONTROL REGISTER (C1M1C) 7 6 5 4 3 2 1 0 SFR EBh M

Pagina 142 - Receiving Data Messages

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 84 of 158 EXTRQ bit in a similar manner, but will not automatically transmit a data fr

Pagina 143

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 85 of 158 center, EXTRQ will be set to a 1. Following the Remote Frame Request and aft

Pagina 144

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 86 of 158 CAN 1 MESSAGE CENTER 2 CONTROL REGISTER (C1M2C) 7 6 5 4 3 2 1 0 SFR ECh M

Pagina 145 - Case 1: Automatic Reply

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 87 of 158 B REGISTER (B) 7 6 5 4 3 2 1 0 SFR F0h B.7 B.6 B.5 B.4 B.3 B.2 B.1 B.0 RW

Pagina 146

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 88 of 158 CAN 1 MESSAGE CENTER 9 CONTROL REGISTER (C1M9C) 7 6 5 4 3 2 1 0 SFR F6h M

Pagina 147

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 89 of 158 1 = External interrupt 5 is a high priority interrupt. PX4 Bit 2 External In

Pagina 148

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 9 of 158 SPECIAL FUNCTION REGISTERS Most of the unique features of the high-speed micr

Pagina 149 - USING THE AUTOBAUD FEATURE

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 90 of 158 CAN 1 MESSAGE CENTER 14 CONTROL REGISTER (C1M14C) 7 6 5 4 3 2 1 0 SFR FEh

Pagina 150

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 91 of 158 ADDENDUM TO SECTION 5: CPU TIMING SYSTEM CLOCK SELECTION The internal clocki

Pagina 151

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 92 of 158 Table 5-1. SYSTEM CLOCK CONFIGURATION CD1 CD0 2X4X/ NAME CLOCKS/MC MAX EXTE

Pagina 152 - SYNC_SEG

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 93 of 158 ADDENDUM TO SECTION 6: MEMORY ACCESS EXTERNAL MEMORY INTERFACING The DS80C39

Pagina 153 - 153 of 158

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 94 of 158 Table 6-2. EXTENDED ADDRESS AND CHIP ENABLE GENERATION Port 4 Pin Function

Pagina 154 - QUSJW t)SJW(t

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 95 of 158 IMPLEMENTING A BOOTLOADER USING INTERNAL SRAM The internal 4 KB SRAM of the D

Pagina 155 - Bus Rate Timing Example:

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 96 of 158 Figure 6-1. EXAMPLE DS80C390 PROGRAM/DATA MEMORY INTERFACE

Pagina 156 - (DS80C390 Supplement Only)

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 97 of 158 Figure 6-2. EXTERNAL PROGRAM/DATA MEMORY MAP (INTERNAL SRAM STILL AT DEFAULT

Pagina 157 - 157 of 158

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 98 of 158 Figure 6-3. COMBINED INTERNAL, EXTERNAL PROGRAM/DATA MEMORY MAP

Pagina 158 - 40-BIT ACCUMULATOR

High-Speed Microcontroller User’s Guide: DS80C390 Supplement 99 of 158 Having selected the memory configuration, the following SFR settings affect t

Comentarios a estos manuales

Sin comentarios