Maxim-integrated MAXQ7666 Manuel d'utilisateur Page 1

Naviguer en ligne ou télécharger Manuel d'utilisateur pour Matériel Maxim-integrated MAXQ7666. Maxim Integrated MAXQ7666 User Manual Manuel d'utilisatio

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 386
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 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.
AIN0
AIN2
AIN4
AIN6
AIN8
AIN10
AIN12
AIN14
AIN1
AIN3
AIN5
AIN7
AIN8
AIN11
AIN13
AIN15
MAXQ7665/
MAXQ7666
12-BIT
DAC
DACOUT
I I
II
M
M M
ROTATION
SHAFT
MAGNET MAGNETIC FIELD
DIRECTION
ANISOTROPIC
MAGNETORESISTIVE
SENSOR
MAXQ7665
R+ΔR
V-
CAN
2.0B
BUS
ELECTRONIC
STABILITY
CONTROL
V+
R-ΔR
R-ΔR
R+ΔR
12-BIT
ADC
512B
DATA RAM
UP TO 128kB
PROGRAM FLASH,
UP TO 256B
DATA FLASH
CLOCK
GEN/XTAL
INPUT
16-BIT MAXQ20 RISC
(WITH 16 x 16
HARDWARE
MULTIPLIER)
CAN
2.0B
DIGITAL
I/O
UART
(LIN 2.0)
JTAG
TEMP
SENSOR
VOLTAGE
REGULATOR
POWER
MGMT
16-BIT
TIMERS (3)
MUX
MUX
PGA
48-TQFN
7mm x 7mm
-40
°
°
C to +125
°
°
C
S
N
MAXQ7665/MAXQ7666 USER’S GUIDE
Rev 0; 12/07
Vue de la page 0
1 2 3 4 5 6 ... 385 386

Résumé du contenu

Page 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

Page 2

Memory access from the MAXQ7665/MAXQ7666 is based on a Harvard architecture with separate address spaces for program anddata memory. The simple instru

Page 3

Bits 2 to 0: ADC Source Select Bits 2 to 0 (ADCS2 to ADCS0). These bits select the ADC conversion start source used to triggeranalog-to-digital conver

Page 4

3.2.3 DAC Control Register (DCNT)Register Description: DAC Control RegisterRegister Name: DCNTRegister Address: Module 05h, Index 03hBits 15 to 7, 3 t

Page 5

3.2.4 DAC Input Data Register (DACI)Register Description: DAC Input Data RegisterRegister Name: DACIRegister Address: Module 05h, Index 04hBits 15 to

Page 6

3.2.6 ADC Data Register (ADCD)Register Description: ADC Data RegisterRegister Name: ADCDRegister Address: Module 05h, Index 08hBits 15 to 12: Reserved

Page 7 - 1.1 Overview

3.2.8 Analog Interrupt Enable Register (AIE)Register Description: Analog Interrupt Enable RegisterRegister Name: AIERegister Address: Module 05h, Inde

Page 8 - 1.1.4 Register Space

3.2.9 Analog Status Register (ASR)Register Description: Analog Status RegisterRegister Name: ASRRegister Address: Module 05h, Index 0BhBit 15: I/O Vol

Page 9 - 1.2 Architecture

3.2.10 Oscillator Control Register (OSCC)Register Description: Oscillator Control RegisterRegister Name: OSCCRegister Address: Module 05h, Index 0ChBi

Page 10 - 1.2.1 Instruction Decoding

3.3 Analog-to-Digital Converter (ADC) PortThe MAXQ7665/MAXQ7666 contain a low-power, high-precision, 12-bit, 500ksps successive approximation analog-t

Page 11 - 1.2.2 Register Space

MAXQ7665/MAXQ7666 User’s Guide3-183.3.1 ADC SignalsThe MAXQ7665/MAXQ7666 ADC uses 18 external signals (other than analog supply and ground) as explain

Page 12

MAXQ7665/MAXQ7666 User’s Guide3-19Figure 3-3. Multiplexer Input Connection SchemeAIN14AIN12AIN10AIN8AIN6AIN4AIN2AIN0AIN15AIN13AIN11AIN9AIN7AIN5AIN3AIN

Page 13 - 1.2.3 Memory Organization

1.2.2 Register SpaceThe MAXQ7665/MAXQ7666 architecture provides a total of 16 register modules. Each of these modules contains 32 registers. Of thesep

Page 14

MAXQ7665/MAXQ7666 User’s Guide3-203.3.3 True-Differential Analog Input T/HThe equivalent input circuit of Figure 3-4 A and B shows the MAXQ7665/MAXQ76

Page 15

MAXQ7665/MAXQ7666 User’s Guide3-213.3.4 Unipolar/BipolarThe MAXQ7665/MAXQ7666 ADC produces a digital output that corresponds to the differential analo

Page 16 - 1.2.3.3 Data Memory

MAXQ7665/MAXQ7666 User’s Guide3-223.3.5 Transfer FunctionThe MAXQ7665/MAXQ7666 ADC output is straight binary in unipolar mode. Figure 3-5 shows the MA

Page 17 - 1.2.3.4 Stack Memory

MAXQ7665/MAXQ7666 User’s Guide3-23Table 3-5 shows the input range for various PGA settings (PGG2:PGG0) in unipolar mode. When the PGA is used (gain &g

Page 18

MAXQ7665/MAXQ7666 User’s Guide3-24Table 3-6. Bipolar Code Table (PGA Gain = 1)Table 3-7 shows the input range for various PGA settings (PGG2:PGG0) in

Page 19 - 1.2.3.7 Data Alignment

MAXQ7665/MAXQ7666 User’s Guide3-253.3.6 Programmable Gain AmplifierThe MAXQ7665/MAXQ7666 programmable gain amplifier (PGA) receives its inputs from th

Page 20

MAXQ7665/MAXQ7666 User’s Guide3-263.3.7 Analog Input ProtectionInternal ESD protection diodes limit all analog inputs to AVDD and AGND, allowing the i

Page 21 - CDA0 = 1

MAXQ7665/MAXQ7666 User’s Guide3-273.3.8 ADC ClockThe MAXQ7665/MAXQ7666 ADC clock frequency is controlled by the ADCCD2:ADCCD0 bits in the OSCC control

Page 22

MAXQ7665/MAXQ7666 User’s Guide3-283.3.10 ADC Conversion Start Sources and TimingThe MAXQ7665/MAXQ7666 ADC supports three different conversion start so

Page 23

MAXQ7665/MAXQ7666 User’s Guide3-29ADC DUAL-MODE (ADCDUL)ADC CONVERSION SOURCE (ADCS2:ADCS0) ADC CONVERSION TRIGGER ADC CONVERSION DESCRIPTION 000 (Tim

Page 24

The MAXQ7665/MAXQ7666 peripheral register space (modules 0 to 5) contains registers that access the following peripherals:• General-purpose, 8-bit, I/

Page 25 - 1.2.4 Interrupts

MAXQ7665/MAXQ7666 User’s Guide3-30ADC DUAL-MODE (ADCDUL)ADC CONVERSION SOURCE (ADCS2:ADCS0) ADC CONVERSION TRIGGER ADC CONVERSION DESCRIPTION 000 (Tim

Page 26

MAXQ7665/MAXQ7666 User’s Guide3-31Figure 3-10 shows single-edge-controlled ADC conversion timing when the ADC is in auto shutdown state and the PGA is

Page 27

MAXQ7665/MAXQ7666 User’s Guide3-32In dual-edged conversions, it is up to the user to provide the required power-up and acquisition delay as explained

Page 28

MAXQ7665/MAXQ7666 User’s Guide3-333.3.12 Using the ADCThe flow chart in Figure 3-13 highlights all the steps required for initializing and using the A

Page 29

MAXQ7665/MAXQ7666 User’s Guide3-343.4 Temperature SensorThe MAXQ7665/MAXQ7666 support an internal temperature sensor for local die temperature measure

Page 30

MAXQ7665/MAXQ7666 User’s Guide3-353.4.1 Temperature Sensor SignalsThe MAXQ7665/MAXQ7666 temperature sensor uses four (one external diode can be connec

Page 31 - 1.3 Programming

MAXQ7665/MAXQ7666 User’s Guide3-36Figure 3-15 shows the nominal transfer function for temperature conversions. Output coding is two’s complement with

Page 32

MAXQ7665/MAXQ7666 User’s Guide3-373.4.4.1 Differential Temperature MeasurementFor differential temperature measurements, connect the anode of a diode-

Page 33

MAXQ7665/MAXQ7666 User’s Guide3-38Figure 3-16 shows a simplified functional block diagram of the MAXQ7665/MAXQ7666 DAC.3.5.1 DAC SignalsThe MAXQ7665/M

Page 34

MAXQ7665/MAXQ7666 User’s Guide3-39Table 3-13 illustrates the relationship between the straight binary input and the analog output voltage.Table 3-13.

Page 35

1.2.3 Memory OrganizationBeyond the internal register space, memory on the MAXQ7665/MAXQ7666 microcontrollers is organized according to a Harvard arch

Page 36

MAXQ7665/MAXQ7666 User’s Guide3-403.5.4 DAC Power-DownThe DAC is disabled and fully powered down if the DACE bit in the APE register is cleared. Full

Page 37 - 1.3.6.1 Sign Flag

MAXQ7665/MAXQ7666 User’s Guide4-1This section contains the following information:4.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 38 - 1.3.6.4 Carry Flag

4.3.1.1.8 Interframe Spacing (Intermission) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4-484.3.1.2 Remote Frame . . . . . . . . .

Page 39 - 1.3.7.2 Unconditional Jumps

MAXQ7665/MAXQ7666 User’s Guide4-3Figure 4-1. MAXQ7665/MAXQ7666 CAN 0 Controller Block Diagram . . . . . . . . . . . . . . . . . . . . .4-5Figure 4-2.

Page 40 - 1.3.7.5 Looping Operations

MAXQ7665/MAXQ7666 User’s Guide4-4SECTION 4: CONTROLLER AREA NETWORK (CAN) MODULEThe MAXQ7665/MAXQ7666 smart data-acquisition microcontrollers incorpor

Page 41 - 1.3.8 Handling Interrupts

MAXQ7665/MAXQ7666 User’s Guide4-5The priority order associated with the CAN module transmitting or receiving a message is determined by the inverse of

Page 42 - 1.3.9 Accessing the Stack

MAXQ7665/MAXQ7666 User’s Guide4-64.2 CAN Controller Registers4.2.1 Dual Port Memory Space RegistersThis section summarizes CAN 0 control/status/mask i

Page 43 - 1.3.10 Accessing Data Memory

MAXQ7665/MAXQ7666 User’s Guide4-74.2.1.1 Dual Port Memory Space Registers for CAN 0CAN 0 CONTROL/STATUS/MASK REGISTERSREGISTER 76543210DUAL PORT ADDRE

Page 44

MAXQ7665/MAXQ7666 User’s Guide4-8CAN 0 MESSAGE CENTERS 2–14REGISTER 76543210DUAL PORT ADDRESSMessage Center 2 Registers (Similar to Message Center 1)

Page 45

MAXQ7665/MAXQ7666 User’s Guide4-94.2.2 Control/Status/Mask Register DescriptionsThe CAN control/status/mask registers are located at either the higher

Page 46

Table 1-3. MAXQ7665A–MAXQ7665D Flash Memory FeaturesMAXQ7665/MAXQ7666 User’s Guide1-12FEATURE MAXQ7665A MAXQ7665B MAXQ7665C MAXQ7665D Flash Type Type

Page 47

MAXQ7665/MAXQ7666 User’s Guide4-10CAN 0 Media Arbitration Register 0 (C0MA0)CAN 0 Media Arbitration Register 1 (C0MA1)CAN 0 Media Arbitration Register

Page 48

MAXQ7665/MAXQ7666 User’s Guide4-11CAN 0 Bus Timing Register 0 (C0BT0)Bits 7 and 6: CAN Synchronization Jump Width Select (SJW1 and SJW0). These bits s

Page 49

MAXQ7665/MAXQ7666 User’s Guide4-12CAN 0 Bus Timing Register 1 (C0BT1)Bit 7: CAN Sampling Rate (SMP). The SMP bit determines the number of samples to b

Page 50

MAXQ7665/MAXQ7666 User’s Guide4-13CAN 0 Standard Global Mask Register 0 (C0SGM0)CAN 0 Standard Global Mask Register 1 (C0SGM1)CAN Standard Global Mask

Page 51

MAXQ7665/MAXQ7666 User’s Guide4-14CAN 0 Extended Global Mask Register 1 (C0EGM1)CAN 0 Extended Global Mask Register 2 (C0EGM2)CAN 0 Extended Global Ma

Page 52

MAXQ7665/MAXQ7666 User’s Guide4-15CAN 0 Message Center 15 Mask Register 0 (C0M15M0)CAN 0 Message Center 15 Mask Register 1 (C0M15M1)CAN 0 Message Cent

Page 53

MAXQ7665/MAXQ7666 User’s Guide4-16CAN 0 Message Center 15 Mask Register 3 (C0M15M3)CAN Message Center 15 Mask Registers 0 to 3 (C0M15M0 to C0M15M3). T

Page 54

MAXQ7665/MAXQ7666 User’s Guide4-174.2.3 CAN Message Center Register DescriptionsThe CAN message center registers are located at either the higher orde

Page 55

MAXQ7665/MAXQ7666 User’s Guide4-18CAN 0 Message Center y Arbitration Register 3 (C0MyAR3)CAN 0 Message Center y Arbitration Registers 0 to 3 (C0MyAR0

Page 56

MAXQ7665/MAXQ7666 User’s Guide4-19Special Notes for Message Center 15: The ROW bit in message center 15 is associated with an overwrite of the shadow

Page 57

MAXQ7665/MAXQ7666 User’s Guide1-13Table 1-5. MAXQ7666 Data Flash FeaturesFEATURE MAXQ7666 Flash Type Type F Data Flash Size 256B (128 x 16) 128 Page

Page 58

MAXQ7665/MAXQ7666 User’s Guide4-20CAN 0 Message Center y Data Byte 0 (C0MyD0)CAN 0 Message Center y Data Byte 1 (C0MyD1)CAN 0 Message Center y Data By

Page 59 - 1.4.19 General Register (GR)

MAXQ7665/MAXQ7666 User’s Guide4-21CAN 0 Message Center y Data Byte 4 (C0MyD4)CAN 0 Message Center y Data Byte 5 (C0MyD5)CAN 0 Message Center y Data By

Page 60

MAXQ7665/MAXQ7666 User’s Guide4-224.2.4 CAN Global Control and Status Register DescriptionsAll the global CAN controls and status, as well as the indi

Page 61

MAXQ7665/MAXQ7666 User’s Guide4-23Bit 4: Low-Power Siesta Mode (SIESTA). Setting the SIESTA bit to 1 places the CAN 0 controller into a low-power stat

Page 62

MAXQ7665/MAXQ7666 User’s Guide4-24processor has removed itself from the BUSOFF condition, it also clears BSS = 0, sets SWINT = 1, and clears both the

Page 63

MAXQ7665/MAXQ7666 User’s Guide4-254.2.4.2 CAN 0 Status Register (C0S)Register Description: CAN 0 Status RegisterRegister Name: C0SRegister Address: Mo

Page 64

MAXQ7665/MAXQ7666 User’s Guide4-26C0C.1 = 1, EC96/128 = EC128. In this mode, when EC96/128 = 1 the interrupt flag indicates that either the CAN 0 tran

Page 65

MAXQ7665/MAXQ7666 User’s Guide4-27Bits 2, 1, 0: CAN 0 Bus Error Status 2, 1, 0 (ER2, ER1, ER0). The ER2:ER0 bits indicate the first type of error that

Page 66

MAXQ7665/MAXQ7666 User’s Guide4-284.2.4.3 CAN 0 Interrupt Register (C0IR)Register Description: CAN 0 Interrupt RegisterRegister Name: C0IRRegister Add

Page 67

MAXQ7665/MAXQ7666 User’s Guide4-29The INTIN vector value does not change when a new interrupt source becomes active and the previous one has not yet b

Page 68

1.2.3.2 Utility ROMA utility ROM (4k x 16) is placed in the upper 32kWord program memory space starting at address 8000h. This utility ROM providesthe

Page 69

MAXQ7665/MAXQ7666 User’s Guide4-30To properly reflect the value of each interrupt source in the C0IR register, each source must be enabled via the res

Page 70

MAXQ7665/MAXQ7666 User’s Guide4-312. ERI = 1 and/or ETI = 1 Only (STIE = 0: Hardwired Method) with No Prior Interrupt Active4.2.4.4 CAN 0 Transmit-Err

Page 71

MAXQ7665/MAXQ7666 User’s Guide4-324.2.4.5 CAN 0 Receive-Error Register (C0RE)Register Description: CAN 0 Receive-Error RegisterRegister Name: C0RERegi

Page 72

MAXQ7665/MAXQ7666 User’s Guide4-33Bit 6: Increment/Decrement Select (INCDEC). This bit determines the C0DP’s auto-increment/decrement function when AI

Page 73

MAXQ7665/MAXQ7666 User’s Guide4-344.2.4.8 CAN 0 Data Buffer Register (C0DB)Register Description: CAN 0 Data Buffer RegisterRegister Name: C0DBRegister

Page 74

MAXQ7665/MAXQ7666 User’s Guide4-354.2.4.9 CAN 0 Receive Message Stored Register (C0RMS)Register Description: CAN 0 Receive Message Stored RegisterRegi

Page 75 - 2.1 Architecture

MAXQ7665/MAXQ7666 User’s Guide4-364.2.4.10 CAN 0 Transmit Message Acknowledgement Register (C0TMA)Register Description: CAN 0 Transmit Message Acknowl

Page 76

MAXQ7665/MAXQ7666 User’s Guide4-374.2.4.11 CAN 0 Message Center 1 to 15 Control Registers (C0M1C to C0M15C)Register Description: CAN 0 Message Center

Page 77

MAXQ7665/MAXQ7666 User’s Guide4-38Bit 3: External Transmit Request (EXTRQ). (Read/clear only.) When EXTRQ is cleared to 0, there are no pending reques

Page 78

MAXQ7665/MAXQ7666 User’s Guide4-39Bit 0: Data Updated (DTUP). (Unrestricted read.) When T/R = 0, DTUP can only be cleared to 0 when written by the mic

Page 79

1.2.3.4 Stack MemoryThe MAXQ7665/MAXQ7666 provide a 16 x 16 hardware stack to support subroutine calls and system interrupts. A 16-bit wide on-chipsta

Page 80

MAXQ7665/MAXQ7666 User’s Guide4-40Note: The CAN 0 message center 2 to 15 control register bits are identical to those found in the CAN 0 message cente

Page 81

MAXQ7665/MAXQ7666 User’s Guide4-41Register Description: CAN 0 Message Center 4 Control RegisterRegister Name: C0M4CRegister Address: Module 04h, Index

Page 82

MAXQ7665/MAXQ7666 User’s Guide4-42Register Description: CAN 0 Message Center 6 Control RegisterRegister Name: C0M6CRegister Address: Module 04h, Index

Page 83 - 2.3 Supply Configuration

MAXQ7665/MAXQ7666 User’s Guide4-43Register Description: CAN 0 Message Center 8 Control RegisterRegister Name: C0M8CRegister Address: Module 04h, Index

Page 84 - 2.5 Power-On Reset

MAXQ7665/MAXQ7666 User’s Guide4-44Register Description: CAN 0 Message Center 10 Control RegisterRegister Name: C0M10CRegister Address: Module 04h, Ind

Page 85 - 2.5.1 Power-Up Counter

MAXQ7665/MAXQ7666 User’s Guide4-45Register Description: CAN 0 Message Center 12 Control RegisterRegister Name: C0M12CRegister Address: Module 04h, Ind

Page 86

MAXQ7665/MAXQ7666 User’s Guide4-46Register Description: CAN 0 Message Center 14 Control RegisterRegister Name: C0M14CRegister Address: Module 04h, Ind

Page 87 - 2.5.3 Reset Output

MAXQ7665/MAXQ7666 User’s Guide4-474.3 CAN OperationsThe CAN2.0B protocol specifies two different message formats: the standard 11-bit (CAN2.0A) and th

Page 88

MAXQ7665/MAXQ7666 User’s Guide4-484.3.1.1.3 Control Field(Standard and extended format.) The control field is composed of six bits in two fields. The

Page 89 - 2.7 Reset Mode

MAXQ7665/MAXQ7666 User’s Guide4-49Figure 4-6. CRC FieldCRC FIELDCRC SEQUENCECRCDELIMITERACK FIELDDATA FIELD ORCONTROL FIELDFigure 4-7. Acknowledge Fie

Page 90 - 2.7.3 Internal System Reset

1.2.3.6 Pseudo-Von Neumann Memory AccessThe pseudo-Von Neumann memory mapping is straightforward if there is no memory overlapping among the program,

Page 91 - SECTION 3: ANALOG I/O MODULE

MAXQ7665/MAXQ7666 User’s Guide4-504.3.1.2 Remote Frame(Standard and extended format.) The remote frame is transmitted by a CAN controller to request t

Page 92

MAXQ7665/MAXQ7666 User’s Guide4-514.3.1.3 Error FrameThe error frame is transmitted by a CAN controller when the CAN processor detects a bus error. Th

Page 93

MAXQ7665/MAXQ7666 User’s Guide4-524.4 General CAN Protocol-Related Issues4.4.1 Bit StuffingThe CAN processor performs a function termed bit stuffing i

Page 94

MAXQ7665/MAXQ7666 User’s Guide4-534.6 Initializing the CAN ControllerSoftware initialization of the CAN controller begins with the setting of the soft

Page 95

MAXQ7665/MAXQ7666 User’s Guide4-54Figure 4-12. CAN Interrupt LogicUPDATE CAN 0INTERRUPTREGISTERCAN 0/1 STATUS REGISTERCAN 0STATUSREGISTERREADCAN 0 CON

Page 96 - 3.1.1 Analog I/O Pins

MAXQ7665/MAXQ7666 User’s Guide4-554.8 Arbitration/Masking ConsiderationsThe CAN processor is designed to evaluate and determine if an incoming message

Page 97

MAXQ7665/MAXQ7666 User’s Guide4-564.9 Transmitting and Receiving MessagesAll CAN data is sent and received through message centers. All CAN message ce

Page 98 - Register Name: ACNT

MAXQ7665/MAXQ7666 User’s Guide4-574.9.4 Receiving/Responding to Remote Frame RequestsThe remote frame request is handled like a data frame with data l

Page 99 - 1 1 Reserved

MAXQ7665/MAXQ7666 User’s Guide4-58Case 2: Software-Initiated Reply(Using TIH as gating control.) CAN module wants to receive an RFR and wait for softw

Page 100 - Maxim Integrated

MAXQ7665/MAXQ7666 User’s Guide4-59Case 4: Software-Initiated Reply(Reply through different message center, using TIH as gating control.) CAN controlle

Page 101

• The utility ROM can be accessed as data with offset at 8000h.• One page (byte access mode) or two pages (word access mode) can be accessed as data w

Page 102

MAXQ7665/MAXQ7666 User’s Guide4-60Important Information Concerning ID Changes When Awaiting Data from a Previous Remote Frame RequestThe use of accept

Page 103

MAXQ7665/MAXQ7666 User’s Guide4-61Case 2: WTOE = 0 (Overwrites Disabled)1) Software configures message centers 1 and 2 with the same arbitration value

Page 104 - Section 2

MAXQ7665/MAXQ7666 User’s Guide4-62The autobaud feature for the CAN module is enabled by setting the autobaud bit (C0C.2). Setting this bit activates a

Page 105

MAXQ7665/MAXQ7666 User’s Guide4-634.14 BUSON/BUSOFF Recovery and Error Counter OperationThe CAN module contains two peripheral registers that allow so

Page 106

MAXQ7665/MAXQ7666 User’s Guide4-644.15 Bit TimingBit timing in the CAN2.0B specification is based on a unit called the nominal bit time. The nominal b

Page 107 - Section 3.4

MAXQ7665/MAXQ7666 User’s Guide4-65The CAN 0 bus timing register 0 (C0BT0) contains the control bits for the PHASE_SEG1 and PHASE_SEG2 time segments as

Page 108 - Table 3-2. ADC Signals

MAXQ7665/MAXQ7666 User’s Guide4-66The following restrictions apply to the above equations: The nominal bit time applies when a synchronization edge fa

Page 109

MAXQ7665/MAXQ7666 User’s Guide4-674.16 CAN Bus ActivityThe CAN bus activity (CAN0BA) status is active when a CAN bus activity is detected on the CAN i

Page 110 - Section 3.3.10

MAXQ7665/MAXQ7666 User’s Guide5-1This section contains the following information:5.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 111 - 3.3.4 Unipolar/Bipolar

MAXQ7665/MAXQ7666 User’s Guide5-2Figure 5-1. Oscillator/Clock Generation Module Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . .5-4F

Page 112 - 3.3.5 Transfer Function

For the modulo increment or decrement operation, the selected range of bits in AP are incremented or decremented. However, if thesebits roll over or u

Page 113

MAXQ7665/MAXQ7666 User’s Guide1-18Figure 1-5. CDA Functions (Word Access Mode)PHYSICAL DATA0000h8000h0100hDATA MEMORY015CDA1 = 0CDA1 = 1MAXQ7665/MAXQ7

Page 114

MAXQ7665/MAXQ7666 User’s Guide5-3SECTION 5: OSCILLATOR/CLOCK GENERATION MODULEThe MAXQ7665/MAXQ7666 oscillator/clock generation module supplies the sy

Page 115 - Section 3.3.5

5-4MAXQ7665/MAXQ7666 User’s GuideFigure 5-1. Oscillator/Clock Generation Module Block DiagramPOWER-ON RESETDVDDRESETXIN/HF-CLKXOUTSTOPHFIC(1:0)HIGH-FR

Page 116 - 3.3.7 Analog Input Protection

5-5MAXQ7665/MAXQ7666 User’s Guide5.2 Oscillator/Clock Generation RegistersThe MAXQ7665/MAXQ7666 oscillator/clock generation module registers are descr

Page 117 - 3.3.9 Auto Shutdown Mode

5.2.2 Oscillator Control Register (OSCC)The OSCC register contains the oscillator enable and configuration bits.Register Description: Oscillator Contr

Page 118

Bits 9 and 8: High-Frequency Crystal Input Capacitance Select 1 and 0 (HFIC1 and HFIC0). These bits select the input capaci-tance of the on-chip high-

Page 119

5.2.3 System Clock Control Register (CKCN)The 8-bit CKCN register is part of the system register group and used to support system clock generation. It

Page 120

MAXQ7665/MAXQ7666 User’s Guide5-9• The SPI module’s SS (slave select input) signal is asserted in slave mode.• A CAN bus activity on its data input (C

Page 121

MAXQ7665/MAXQ7666 User’s Guide5-105.2.4 Watchdog Timer Control Register (WDCN)The 8-bit WDCN register is part of the system register group and used to

Page 122 - 3.3.11 ADC Interrupts

Bit 2: Watchdog Reset Flag (WTRF). This flag is set to 1 when the watchdog resets the processor. Software can check this bit fol-lowing a reset to det

Page 123 - 3.3.12 Using the ADC

MAXQ7665/MAXQ7666 User’s Guide5-125.3 System Clock GenerationAll functional modules in the MAXQ7665/MAXQ7666 are synchronized to a single system clock

Page 124 - 3.4 Temperature Sensor

MAXQ7665/MAXQ7666 User’s Guide1-19Figure 1-6. CDA Functions (Byte Access Mode)UTILITY ROMPHYSICAL DATA0000h8000hA000h9000hFFFFhA100h0000h8000h0200hFFF

Page 125 - Sections 15

Figure 5-2. Oscillator Startup FlowYESYESPOWER-ON RESETSTART UP 7.6MHzINTERNAL RC OSCILLATOR8.6ms POWER-UP COUNTER DELAYRESET 16-BITPOWER-UP COUNTERIN

Page 126 - TEMPERATURE (°C)

MAXQ7665/MAXQ7666 User’s Guide5-14The crystal oscillator/resonator is disabled upon power-up, as the default mode for the MAXQ7665/MAXQ7666 is to run

Page 127 - Section 3.4.2

MAXQ7665/MAXQ7666 User’s Guide5-15ENABLE HF OSCILLATORHFE = 1SELECT CLOCK DIVIDE VALUE:PMME, CD1 AND CD0 BITSCRYSTAL/RESONATOR-BASEDCODE EXECUTIONSELE

Page 128 - Table 3-12. DAC Signals

MAXQ7665/MAXQ7666 User’s Guide5-165.3.3 External Clock (Direct Input)The MAXQ7665/MAXQ7666 can also obtain the system clock signal directly from an ex

Page 129

5.3.5 External Crystal-Fail Detection and Automatic SwitchoverThe MAXQ7665/MAXQ7666 have a high-frequency oscillator-fail detection circuit. An automa

Page 130 - 3.5.5 Using the DAC

MAXQ7665/MAXQ7666 User’s Guide5-185.4 Watchdog TimerThe watchdog timer is a user-programmable clock counter that can serve as a time-base generator, a

Page 131

Table 5-4. Interrupt and Reset Functions for WatchdogTable 5-5. Watchdog Timeout SelectionsThe watchdog timeout selection is made using bits WD1 (WDCN

Page 132

MAXQ7665/MAXQ7666 User’s Guide5-205.5 Power Management ModeThere are two major sources of power dissipation in CMOS circuitry. The first is static dis

Page 133 - LIST OF TABLES

5.5.2 Switchback ModeWhen power management mode is active, the MAXQ7665/MAXQ7666 operate at a reduced clock rate. Although execution continuesas norma

Page 134 - 4.1 Architecture

MAXQ7665/MAXQ7666 User’s Guide6-1This section contains the following information:6.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 135

1.2.3.9 Program and Data Memory Mapping Example 1: MAXQ7665BFigures 1-7, 1-8, and 1-9 show the mapping of physical memory segments into the program an

Page 136 - 4.2 CAN Controller Registers

MAXQ7665/MAXQ7666 User’s Guide6-2Figure 6-1. UART Synchronous Mode (Mode 0) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 137

SECTION 6: SERIAL I/O MODULEThe MAXQ7665/MAXQ7666 serial I/O module provides access to a universal asynchronous receiver/transmitter (UART) for serial

Page 138

MAXQ7665/MAXQ7666 User’s Guide6-4Figure 6-1. UART Synchronous Mode (Mode 0)DIVIDEBY 12D7D6D5D4D3D2D1D0LOADCLOCKOUTPUT SHIFT REGISTERS0LATCHRECEIVE DAT

Page 139

6.1.1 UART PinsThe MAXQ7665/MAXQ7666 UART supports dedicated transmit and receive pins as described in Table 6-2.Table 6-2. MAXQ7665/MAXQ7666 UART Pin

Page 140

MAXQ7665/MAXQ7666 User’s Guide6-6Serial Mode DefinitionBit 6: Serial Port Mode Bit 1 (SM1). See theSerial Mode Definitiontable.Bit 5: Serial Port Mode

Page 141

6.2.2 Serial Port 0 Mode Register (SMD0)Register Description: Serial Port 0 Mode RegisterRegister Name: SMD0Register Address: Module 00h, Index 1EhBit

Page 142

6.2.3 Phase Register 0 Register (PR0)Register Description: Phase Register 0Register Name: PR0Register Address: Module 00h, Index 1FhBits 15 to 0: Phas

Page 143

6.3 Modes of OperationA detailed description of the MAXQ7665/MAXQ7666 UART modes is given in this section.6.3.1 UART Mode 0This mode is used to commun

Page 144

MAXQ7665/MAXQ7666 User’s Guide6-10Figure 6-3. UART Mode 0DIVIDEBY 12D7D6D5D4D3D2D1D0LOADCLOCKOUTPUT SHIFT REGISTERS0LATCHRECEIVE DATA BUFFER WRSBUF0RD

Page 145

MAXQ7665/MAXQ7666 User’s Guide6-11Figure 6-4. UART Mode 1DIVIDEBY 4D7D6D5D4D3D2D1D001LOADCLOCKTRANSMIT SHIFT REGISTERS0LATCHRECEIVE DATA BUFFER WRSBUF

Page 146

MAXQ7665/MAXQ7666 User’s Guide1-2132k x 16PROGRAM FLASHPROGRAMSPACEEXECUTING FROMDATA SPACE(BYTE MODE)DATA SPACE(WORD MODE)0000h7FFFh4k x 16UTILITY RO

Page 147

MAXQ7665/MAXQ7666 User’s Guide6-126.3.3 UART Mode 2This mode uses a total of 11 bits in asynchronous, full-duplex communication as illustrated in Figu

Page 148

MAXQ7665/MAXQ7666 User’s Guide6-13Figure 6-5. UART Mode 2DIVIDEBY 2D7D6D5D4D3D2D1D001LOADCLOCKTRANSMIT SHIFT REGISTERS0LATCHRECEIVE DATA BUFFER WRSBUF

Page 149

MAXQ7665/MAXQ7666 User’s Guide6-14Figure 6-6. UART Mode 3D0 D1 D2 D3 D4 D5 D6 D7 RB8 STOPD0 D1 D2 D3 D4 D5 D6 D7 TB8 STOPRECEIVE TIMINGTRANSMIT TIMING

Page 150

MAXQ7665/MAXQ7666 User’s Guide6-156.4 Baud-Rate GenerationEach mode of operation has a baud-rate generation technique associated with it. The baud-rat

Page 151

MAXQ7665/MAXQ7666 User’s Guide6-166.4.4 Baud-Clock GeneratorThe baud-clock generator is basically a phase accumulator that produces a baud clock as th

Page 152

MAXQ7665/MAXQ7666 User’s Guide6-176.5 Framing Error DetectionA framing error occurs when a valid stop bit is not detected. This results in the possibl

Page 153

MAXQ7665/MAXQ7666 User’s Guide7-1SECTION 7: TYPE 2 TIMER/COUNTER MODULEThis section contains the following information:7.1 Architecture . . . . . . .

Page 154

MAXQ7665/MAXQ7666 User’s Guide7-27.4 Type 2 Timer/Counter Capture Application Examples . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .7-

Page 155

MAXQ7665/MAXQ7666 User’s Guide7-3SECTION 7: TYPE 2 TIMER/COUNTER MODULEThe MAXQ7665/MAXQ7666 microcontrollers have three Type 2 timer/counter modules.

Page 156

MAXQ7665/MAXQ7666 User’s Guide7-4T2Vx REGISTER16-BIT UP COUNTERT2Rx REGISTER16-BIT RELOADCAPTUREEQUALOVERFLOWRELOADCLOCKT2Cx REGISTER16-BIT CAPTURE/CO

Page 157

1.2.3.10 Program and Data Memory Mapping Example 2: MAXQ7666Figures 1-10, 1-11, and 1-12 show the mapping of physical memory segments into the program

Page 158

MAXQ7665/MAXQ7666 User’s Guide7-5T2CLx REGISTER(LOWER BYTE OF T2Cx)8-BIT CAPTURE/COMPARE LOWT2Lx REGISTER(LOWER BYTE OF T2Vx)8-BIT UP COUNTER LOWT2RLx

Page 159

7.1.1 Type 2 Timer/Counter I/O PinsEach Type 2 timer/counter module normally supports one primary input/output pin that is referred to as Tx. Table 7-

Page 160

MAXQ7665/MAXQ7666 User’s Guide7-77.2.1 Type 2 Status/Control RegistersThe MAXQ7665/MAXQ7666 timer/counter module registers T2CFGx (configuration), T2C

Page 161

MAXQ7665/MAXQ7666 User’s Guide7-8Bits 2 and 1: Capture/Compare Function Select Bits (CCF1 and CCF0). These bits, in conjunction with the C/T2 bit, sel

Page 162

MAXQ7665/MAXQ7666 User’s Guide7-9Bit 6: Type 2 Timer Output Enable 0 (T2OE0). This register bit enables the timer output function for the external Tx

Page 163

MAXQ7665/MAXQ7666 User’s Guide7-10Bit 0: Gating Enable (G2EN). This bit enables the external Tx pin to gate the input clock to the 16-bit (T2MD = 0) o

Page 164

MAXQ7665/MAXQ7666 User’s Guide7-117.2.2 Type 2 Timer Value RegistersThe MAXQ7665/MAXQ7666 timer/counter registers T2Vx (timer value) and T2Hx (timer v

Page 165

7.2.2.2 Type 2 Timer/Counter Value High Register (T2Hx)Register Description: Type 2 Timer/Counter Value High RegisterRegister Name: T2Hx (x = 0, 1, 2)

Page 166

MAXQ7665/MAXQ7666 User’s Guide7-137.2.3 Type 2 Reload RegistersThe MAXQ7665/MAXQ7666 timer/counter module registers T2Rx (timer reload) and T2RHx (tim

Page 167

7.2.3.2 Type 2 Timer/Counter Reload High Register (T2RHx)Register Description: Type 2 Timer/Counter Reload High RegisterRegister Name: T2RHx (x = 0, 1

Page 168

MAXQ7665/MAXQ7666 User’s Guide1-23PROGRAMSPACEDATA SPACE(BYTE MODE)DATA SPACE(WORD MODE)8k x 16PROGRAM FLASH0000h1FFFh16k x 8PROGRAM FLASH(CDA0 = 0)00

Page 169

MAXQ7665/MAXQ7666 User’s Guide7-157.2.4 Type 2 Capture/Compare RegistersThe MAXQ7665/MAXQ7666 timer/counter module registers T2Cx (timer capture/compa

Page 170

7.2.4.2 Type 2 Timer/Counter Capture/Compare High Register (T2CHx)Register Description: Type 2 Timer/Counter Capture/Compare High RegisterRegister Nam

Page 171

MAXQ7665/MAXQ7666 User’s Guide7-177.3 Type 2 Timer/Counter Operation ModesThe MAXQ7665/MAXQ7666 Type 2 timer/counter supports six operation modes. Tab

Page 172

MAXQ7665/MAXQ7666 User’s Guide7-18T2CLxEDGE DETECTIONAND GATINGC/T2TR2LT2MDT2CLKCCF[1:0]G2ENTR2SS2T2POL[0]T2LxT2Lx COMPARE MATCHT2Vx COMPARE MATCHOR T

Page 173

MAXQ7665/MAXQ7666 User’s Guide7-197.3.1 16-Bit Timer: Auto-Reload/CompareThe 16-bit auto-reload/compare mode for the Type 2 timer is in effect when th

Page 174

MAXQ7665/MAXQ7666 User’s Guide7-207.3.2 16-Bit Timer: Capture ModeThe 16-bit capture mode requires that some event trigger the capture. Normally, this

Page 175

MAXQ7665/MAXQ7666 User’s Guide7-21T2DIV[2:0]SYSTEM CLOCKT2CLKDIVIDE-BY-NPRESCALEFigure 7-5. Type 2 Timer Clock7.3.4 Dual 8-Bit TimersThe dual 8-bit ti

Page 176

MAXQ7665/MAXQ7666 User’s Guide7-227.4 Type 2 Timer/Counter Capture Application ExamplesThe following examples are used to demonstrate some of the Type

Page 177 - 4.3 CAN Operations

MAXQ7665/MAXQ7666 User’s Guide7-237.4.2 Measure High-Pulse Duration RepeatedlyTo measure the duration of high pulses seen on the T0 input pin repeated

Page 178

MAXQ7665/MAXQ7666 User’s Guide7-247.4.3 Measure Period To measure the period of the signal seen on the T0 input pin, the Type 2 timer is configured fo

Page 179

1.2.4.2 Interrupt System OperationThe interrupt handler hardware responds to any interrupt event when it is enabled. An interrupt event occurs when an

Page 180 - 4.3.1.2 Remote Frame

MAXQ7665/MAXQ7666 User’s Guide7-257.4.4 Measure Duty Cycle RepeatedlyTo measure the duty cycle of the signal seen on the T0 input pin, the Type 2 time

Page 181 - 4.3.1.4 Overload Frame

MAXQ7665/MAXQ7666 User’s Guide7-267.4.5 Overflow/Interrupt on Cumulative TimeTo cause an overflow only when the T0 pin has been low for some cumulativ

Page 182 - 4.5 External Pins

7.5 Type 2 Timer/Counter Compare Application ExampleThe following example is used to demonstrate the Type 2 timer compare function.7.5.1 A Simple Wave

Page 183 - 4.7 CAN Interrupts

MAXQ7665/MAXQ7666 User’s Guide8-1This section contains the following information:8.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 184

SECTION 8: GENERAL-PURPOSE I/O MODULE The MAXQ7665/MAXQ7666 smart data-acquisition microcontrollers provide 8 port pins for general-purpose I/O, which

Page 185 - 4.8.1 Message Center 15

8.1.1 Port PinsThe MAXQ7665/MAXQ7666 port P0 pins are summarized in Table 8-1.8.2 Port RegistersThe following peripheral registers control the general

Page 186 - 4.9.2 Receiving Data Messages

8.2.2 External Interrupt Flag Register (Port 0) (EIF0)Register Description: External Interrupt Flag Register (Port 0)Register Name: EIF0Register Addre

Page 187

Bit 2: Bit 2 Edge Detect (IE2). This bit is set when a negative edge (IT2 = 1) or a positive edge (IT2 = 0) is detected on the interrupt2 pin. Setting

Page 188

8.2.4 External Interrupt Enable Register (Port 0) (EIE0)Register Description: External Interrupt Enable Register (Port 0)Register Name: EIE0Register A

Page 189

8.2.5 Port 0 Direction Register (PD0)Register Description: Port 0 Direction RegisterRegister Name: PD0Register Address: Module 00h, Index 10hBits 15 t

Page 190

MAXQ7665/MAXQ7666 User’s Guide1-25SYSTEM MODULESWDIF(WATCHDOG)EWDI(LOCAL ENABLE)MODULE 1IM1(MODULE 1 ENABLE)MODULE 0IE0ESI(LOCAL ENABLES)EX0-EX7IE1IE7

Page 191

8.2.6 External Interrupt Edge Select Register (Port 0) (EIES0)Register Description: External Interrupt Edge Select Register (Port 0)Register Name: EIE

Page 192

8.3 GPIO OperationFrom a software perspective, the MAXQ7665/MAXQ7666 port P0 appears as a group of peripheral registers with unique addresses andis ad

Page 193

Table 8-3. Port Pin Special and Alternate FunctionsMAXQ7665/MAXQ7666 User’s Guide8-10PORT PINFUNCTIONTYPEFUNCTION ENABLED WHEN MULTIPLEXING/PRIORITIZA

Page 194 - 4.15 Bit Timing

8.3.4 Port Pin Examples8.3.4.1 Port Pin Example 1: Driving Outputs on Port 0move PO0, #000h ; Set all outputs lowmove PD0, #0FFh ; Set all P0 pins to

Page 195

MAXQ7665/MAXQ7666 User’s Guide9-1This section contains the following information:9.1 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 196

MAXQ7665/MAXQ7666 User’s Guide9-2Figure 9-1. SPI Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 197 - 4.16 CAN Bus Activity

SECTION 9: SERIAL PERIPHERAL INTERFACE (SPI) MODULEThe MAXQ7665/MAXQ7666 serial peripheral interface (SPI) module provides an independent serial commu

Page 198

MAXQ7665/MAXQ7666 User’s Guide9-49.1.1 SPI PinsThe SPI signals are shown in Table 9-1.Table 9-1. MAXQ7665/MAXQ7666 SPI Pins9.2 SPI Peripheral Register

Page 199

9.2.2 SPI Control Register (SPICN)Register Description: SPI Control RegisterRegister Name: SPICNRegister Address: Module 01h, Index 07hBits 15 to 8: R

Page 200 - 5.1 Architecture

MAXQ7665/MAXQ7666 User’s Guide9-6Bit 3: Mode-Fault Flag (MODF). This bit is the mode-fault flag for SPI master mode operation. When mode fault detecti

Page 201

1.2.4.4 Interrupt Prioritization by SoftwareAll interrupt sources of the MAXQ7665/MAXQ7666 microcontrollers naturally have the same priority. However,

Page 202

9.2.3 SPI Configuration Register (SPICF)Register Description: SPI Configuration RegisterRegister Name: SPICFRegister Address: Module 01h, Index 08hBit

Page 203

MAXQ7665/MAXQ7666 User’s Guide9-89.2.4 SPI Clock Register (SPICK)Register Description: SPI Clock RegisterRegister Name: SPICKRegister Address: Module

Page 204 - Section 3

9.3 SPI OperationThe MAXQ7665/MAXQ7666 SPI can be viewed as a synchronous serial I/O port that shifts a data stream of 8 or 16 bits between periph-era

Page 205 - Access rw r r rw rw rw rw rw

MAXQ7665/MAXQ7666 User’s Guide9-109.3.2 SPI Slave OperationThe MAXQ7665/MAXQ7666 SPI module operates in slave mode when the MSTM bit is cleared to log

Page 206

9.3.3 SPI Transfer FormatsDuring an SPI transfer, data is simultaneously transmitted and received over two serial data lines with respect to a single

Page 207

MAXQ7665/MAXQ7666 User’s Guide9-129.3.4 SPI Character LengthsTo flexibly accommodate different SPI transfer data lengths, the character length for any

Page 208

9.5.2 Receive OverrunSince the receive direction of the MAXQ7665/MAXQ7666 SPI is double buffered, there is no overrun condition as long as the receive

Page 209 - 5.3 System Clock Generation

This section contains the following information:10.1 TAP Overview . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 210

MAXQ7665/MAXQ7666 User’s Guide10-2Figure 10-1. MAXQ7665/MAXQ7666 TAP and TAP Controller . . . . . . . . . . . . . . . . . . . . . . . . . . .10-3Figur

Page 211

SECTION 10: TEST ACCESS PORT (TAP)10.1 TAP OverviewThe MAXQ7665/MAXQ7666 incorporate a test access port (TAP) and TAP controller for communication wit

Page 212

MAXQ7665/MAXQ7666 User’s Guide1-27INTERRUPT MODULE ENABLE BIT LOCAL ENABLE BIT INTERRUPT FLAGWatchdog Interrupt IMS (IMR.7) EWDI (WDCN.6) WDIF (WDC

Page 213

MAXQ7665/MAXQ7666 User’s Guide10-410.2.1 TAP PinsThe TAP is formed by four interface signals as described in Table 10-1. The TAP signals are multiplex

Page 214

10.3 TAP Interface ControlOnce an application has been loaded and starts running, the MAXQ7665/MAXQ7666 JTAG TAP interface can be controlled by the TA

Page 215 - 5.4 Watchdog Timer

MAXQ7665/MAXQ7666 User’s Guide10-610.4 TAP Controller OperationThe MAXQ7665/MAXQ7666 TAP controller is formed by a finite state machine that provides

Page 216

MAXQ7665/MAXQ7666 User’s Guide10-710.4.2 Run-Test-IdleAs illustrated in Figure 10-2, the run-test-idle state is an intermediate state for getting to o

Page 217 - 5.5 Power Management Mode

10.4.4 DR-Scan SequenceOnce the instruction register has been configured to a desired state (mode), transactions are performed via a data buffer regis

Page 218 - 5.5.3 Stop Mode

MAXQ7665/MAXQ7666 User’s Guide10-9Figure 10-3. TAP Controller Debug Mode—IR-Scan ExampleNEW INSTRUCTIONINSTRUCTION REGISTERTCKTMSTDITDOCONTROLSTATEIR

Page 219 - SECTION 6: SERIAL I/O MODULE

MAXQ7665/MAXQ7666 User’s Guide10-10Figure 10-4. TAP Controller Debug Mode—DR-Scan ExampleOLD DATANEW DATADATA REGISTERTCKTMSTDITDOCONTROLSTATESHIFTREG

Page 220

MAXQ7665/MAXQ7666 User’s Guide__________________________________________________________________________________11-1SECTION 11: IN-CIRCUIT DEBUG MODET

Page 221

MAXQ7665/MAXQ7666 User’s Guide11-2Figure 11-1. In-Circuit Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 222

SECTION 11: IN-CIRCUIT DEBUG MODEThe MAXQ7665/MAXQ7666 are equipped with embedded debug hardware and embedded ROM firmware developed for the purposeof

Page 223 - 6.2 UART Registers

MAXQ7665/MAXQ7666 User’s Guide1-1SECTION 1: MAXQ7665/MAXQ7666 CORE ARCHITECTUREThis section contains the following information:1.1 Overview . . . . .

Page 224 - Serial Mode Definition

MAXQ7665/MAXQ7666 User’s Guide1-28INTERRUPT MODULE ENABLE BIT LOCAL ENABLE BIT INTERRUPT FLAGCAN 0 Message Center 3 Receive IM4 (IMR.4) ERI (C0M3C.5

Page 225

The debug engine is supported by five functional registers:• ICDB: The ICDB register is an 8-bit data register that supports exchanging command/data b

Page 226 - — — — — — — —

11.2.2 In-Circuit Debug Temporary 1 Register (ICDT1)The ICDT1 register is read/write accessible by the CPU only in background mode or debug mode. This

Page 227 - 6.3 Modes of Operation

Bit 5: Break-On Register Enable (REGE). The REGE bit is used to enable the break-on register function. When the REGE bit is set to1, BP4 and BP5 are u

Page 228

11.2.4 In-Circuit Debug Flag Register (ICDF)Register Description: In-Circuit Debug Flag RegisterRegister Name: ICDFRegister Address: Module 02h, Index

Page 229

11.2.6 In-Circuit Debug Address Register (ICDA)The debug engine uses the ICDA register to store addresses so that ROM code may view that information.

Page 230 - 6.3.4 UART Mode 3

11.2.8 System Control Register (SC)Register Description: System Control RegisterRegister Name: SCRegister Address: Module 08h, Index 08hBit 7: Test Ac

Page 231

11.3 Debug Engine OperationTo enable a communication link between the host and the MAXQ7665/MAXQ7666 debug engine, the debug instruction (010b) mustbe

Page 232

Table 11-1 shows the background mode commands supported by the MAXQ7665/MAXQ7666. Encodings not listed in this table arenot supported in background mo

Page 233 - 6.4 Baud-Rate Generation

11.3.2 Breakpoint RegistersThe MAXQ7665/MAXQ7666 incorporate six host-configurable breakpoint registers (BP0–BP5) for establishing different types of

Page 234 - 6.4.4 Baud-Clock Generator

11.3.2.2 Breakpoint Register 4 (BP4)Register Description: Breakpoint Register 4Register Name: BP4This register is accessible only via background mode

Page 235 - 6.5 Framing Error Detection

1.3 ProgrammingThe following section provides a programming overview of the MAXQ7665/MAXQ7666. For full details on the instruction set, as well asSyst

Page 236

11.3.2.3 Breakpoint Register 5 (BP5)This register is accessible only through background mode read/write commands.When (REGE = 0): This register serves

Page 237

11.3.4 Debug ModeThere are two ways to enter debug mode from background mode: 1) issuance of the debug command directly by the host through theTAP com

Page 238 - 7.1 Architecture

Internally, the ROM can ascertain when new data is available or when it can output the next data byte via the TXC flag. The TXC flagis an important in

Page 239

11.3.6 Read-Register Map Command Host-ROM InstructionA read-register map command reads out data contents for all implemented system and peripheral reg

Page 240

11.3.9 Debug Mode Special ConsiderationsThe following are special considerations when using debug mode.The debug engine cannot be operated reliably wh

Page 241

11.3.10.3 Data Memory Write CommandWhen invoking this command, ICDA should be set to the word address of the location to write to, and ICDD should be

Page 242

MAXQ7665/MAXQ7666 User’s Guide12-1SECTION 12: IN-SYSTEM PROGRAMMINGThis section contains the following information:12.1 Bootstrap-Loader Mode . . . .

Page 243

SECTION 12: IN-SYSTEM PROGRAMMINGThe MAXQ7665/MAXQ7666 are equipped with a bootstrap loader as part of the utility ROM firmware. The main function of

Page 244 - Capture Mode:

12.2 In-System Programming Peripheral RegistersThe MAXQ7665/MAXQ7666 in-system programming peripheral registers are described here. All the in-system

Page 245

12.2.2 System Control Register (SC)Register Description: System Control RegisterRegister Name: SCRegister Address: Module 08h, Index 08hBit 7: Test Ac

Page 246

Generally, prefixing operations can be inserted automatically by the assembler as needed, so that (for example)move DP[0], #1234hactually assembles a

Page 247

12.3 JTAG Bootloader OperationThe MAXQ7665/MAXQ7666 JTAG bootloader uses the same status bit handshaking hardware as is used for in-circuit debugging.

Page 248 - 7.2.3 Type 2 Reload Registers

12.4.1 Entering a PasswordA password can be entered via the TAP interface directly by issuing the unlock-password debug-mode command. The unlock-passw

Page 249

All commands in Family 0 can be executed without first matching the password. All other commands (in Families 1x through Fx) arepassword protected; th

Page 250

Command 05h—Get Supported CommandsThe SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value that indicates which command families this bootloade

Page 251

Command 09h—Get Utility ROM VersionCommand 0Ah—Set Word/Byte Mode AccessThe Mode byte should be 0 to set byte access mode or 1 to set word access mode

Page 252

12.5.3 Family 2 Commands: Dump Variable Length (Password Protected)Command 20h—Dump Code Variable LengthThis command has a slightly different format d

Page 253

12.5.5 Family 4 Commands: Verify Variable Length (Password Protected)Command 40h—Verify Code Variable LengthThis command operates in the same manner a

Page 254

12.5.8 Family 9 Commands: Load Fixed Length (Password Protected)Command 90h—Load Code Fixed LengthThis command loads a block of 128 bytes into the pro

Page 255 - 7.3.3 16-Bit Counter

MAXQ7665/MAXQ7666 User’s Guide13-1SECTION 13: HARDWARE MULTIPLIER MODULEThis section contains the following information:13.1 Hardware Multiplier Organ

Page 256 - 7.3.4 Dual 8-Bit Timers

MAXQ7665/MAXQ7666 User’s Guide13-2SECTION 13: HARDWARE MULTIPLIER MODULEThe MAXQ7665/MAXQ7666 microcontrollers include a hardware multiplier module to

Page 257

1.3.3.4.1 8-Bit Destination ← Low Byte (16-Bit Source)The simplest transfer possibility would be loading an 8-bit register with the low byte of a 16-b

Page 258

13.2 Hardware Multiplier Peripheral Registers13.2.1 Hardware Multiplier Control Register (MCNT)Register Description: Hardware Multiplier Control Regis

Page 259 - 7.4.3 Measure Period

Bit 3: Operand Count Select (OPCS). This bit defines how many operands must be loaded to trigger a multiply or multiply-accumu-late/subtract operation

Page 260

13.2.3 Multiplier Operand B Register (MB)Register Description: Multiplier Operand B RegisterRegister Name: MBRegister Address: Module 001, Index 02hBi

Page 261

13.2.5 Multiplier Accumulator 1 Register (MC1)Register Description: Multiplier Accumulator 1 RegisterRegister Name: MC1Register Address: Module 001, I

Page 262

13.2.7 Multiplier Read Register 1 (MC1R)Register Description: Multiplier Read Register 1Register Name: MC1RRegister Address: Module 001, Index 0ChBits

Page 263

13.3 Hardware Multiplier ControlsThe selection of operation to be performed by the multiplier is determined by four control bits in the MCNT register:

Page 264 - 8.1 Architecture

13.8 Accessing the MultiplierThere are no restrictions on how quickly data is entered into the operand registers or on the order of data entry. The on

Page 265 - 8.2 Port Registers

13.9 MAXQ7665/MAXQ7666 Hardware Multiplier ExamplesThe following are code examples of multiplier operations.;Unsigned Multiply 16-bit x 16-bitmove MC

Page 266

MAXQ7665/MAXQ7666 User’s Guide14-1SECTION 14: MAXQ7665/MAXQ7666 INSTRUCTION SET SUMMARYThis section contains the following information:ADD/ADDC src .

Page 267

MAXQ7665/MAXQ7666 User’s Guide14-2RETI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 268

If the high byte needs to be cleared to 00h, the operation can be shortened by transferring only the GRL byte to the 16-bit destination(example follow

Page 269

MAXQ7665/MAXQ7666 User’s Guide14-3SECTION 14: MAXQ7665/MAXQ7666 INSTRUCTION SET SUMMARYMNEMONIC DESCRIPTION 16-BIT INSTRUCTION WORD STATUS BITS AFFECT

Page 270

MAXQ7665/MAXQ7666 User’s Guide14-4MNEMONIC DESCRIPTION 16-BIT INSTRUCTION WORD STATUS BITS AFFECTED AP INC/DEC NOTES {L/S}JUMP src IP  IP + src or

Page 271 - 8.3 GPIO Operation

MAXQ7665/MAXQ7666 User’s Guide14-5ADD/ADDC srcAdd/Add with CarryDescription: The ADD instruction sums the active accumulator (Acc or A[AP]) and the sp

Page 272

MAXQ7665/MAXQ7666 User’s Guide14-6AND srcLogical ANDDescription: Performs a logical-AND between the active accumulator (Acc) and the specified src dat

Page 273 - 8.3.4 Port Pin Examples

MAXQ7665/MAXQ7666 User’s Guide14-7{L/S}CALLsrc{Long/Short} Call to SubroutineDescription: Performs a call to the subroutine destination specified by s

Page 274

MAXQ7665/MAXQ7666 User’s Guide14-8CMPsrcCompare AccumulatorDescription: Compare for equality between the active accumulator and the least significant

Page 275

MAXQ7665/MAXQ7666 User’s Guide14-9CPL C Complement Carry FlagDescription: Logically complements the Carry (C) Flag.Status Flags: COperation: C ← ~CEnc

Page 276 - 9.1 Architecture

MAXQ7665/MAXQ7666 User’s Guide14-10{L/S}JUMPsrcUnconditional {Long/Short} JumpDescription: Performs an unconditional jump as determined by the src spe

Page 277 - 9.2 SPI Peripheral Registers

MAXQ7665/MAXQ7666 User’s Guide14-11{L/S}JUMP C/{L/S}JUMP NC, srcConditional {Long/Short} Jump on Status FlagL/S}JUMP Z/{L/S}JUMP NZ, src{{L/S}JUMP E/{

Page 278

MAXQ7665/MAXQ7666 User’s Guide14-12JUMP NZ Z=0: IP ← IP + src (relative) -or- src (absolute)Operation: Z=1: IP ← IP + 1Encoding: 15 0Example(s): JUMP

Page 279

• XOR src (Logical XOR active accumulator with source)• CPL (Bit-wise complement active accumulator)• NEG (Negate active accumulator)• SLA (Arithmetic

Page 280

MAXQ7665/MAXQ7666 User’s Guide14-13MOVE dst, srcMove DataDescription: Moves data from a specified source (src) to a specified destination (dst). A lis

Page 281

MAXQ7665/MAXQ7666 User’s Guide14-14MOVE dst, srcMove DataTable 14-3. Destination Specifier CodesData Transfer dst (16-bit) ← src (16-bit): dst[15:0]

Page 282 - 9.3 SPI Operation

MAXQ7665/MAXQ7666 User’s Guide14-15Example(s): MOVE A[0], A[3] ; A[0] ← A[3]MOVE DP[0], #110h ; DP[0] ← #0110h (PFX[0] register used); MOVE PFX[0],

Page 283 - 9.3.2 SPI Slave Operation

MAXQ7665/MAXQ7666 User’s Guide14-16MOVE C, Acc.<b> Move Accumulator Bit to Carry FlagDescription: Replaces the Carry (C) status flag with the sp

Page 284 - 9.3.3 SPI Transfer Formats

MAXQ7665/MAXQ7666 User’s Guide14-17MOVE C, #1 Set Carry FlagDescription: Sets the Carry (C) processor status flag.Status Flag: C ← 1Operation: C ← 1En

Page 285 - 9.5 SPI System Errors

MAXQ7665/MAXQ7666 User’s Guide14-18NEG Negate AccumulatorDescription: Performs a negation (2's complement) of the active accumulator and returns

Page 286 - 9.6 SPI Interrupts

MAXQ7665/MAXQ7666 User’s Guide14-19OR Acc.<b>Logical OR Carry Flag with Accumulator BitDescription: Performs a logical-OR between the Carry (C)

Page 287

MAXQ7665/MAXQ7666 User’s Guide14-20POPI dst Pop Word from the Stack Enable InterruptsDescription: Pops a single word from the stack (@SP) to the speci

Page 288

MAXQ7665/MAXQ7666 User’s Guide14-21RET Return from SubroutineDescription: RET pops a single word from the stack (@SP) into the Instruction Pointer (IP

Page 289 - 10.2 Architecture

MAXQ7665/MAXQ7666 User’s Guide14-22RET NCOperation: C=0: IP ← @SP--C=1: IP ← IP +1Encoding: 15 0Example(s): RET NC ; C=1, return (RET) does not occurR

Page 290 - 10.2.1 TAP Pins

For the modulo increment or decrement operation, the selected range of bits in AP are incremented or decremented. However, if thesebits roll over or u

Page 291 - 10.3 TAP Interface Control

MAXQ7665/MAXQ7666 User’s Guide14-23RETI Return from InterruptDescription: RETI pops a single word from the stack (@SP) into the Instruction Pointer (I

Page 292 - 10.4 TAP Controller Operation

MAXQ7665/MAXQ7666 User’s Guide14-24RETI ZOperation: Z=1: IP ← @SP--INS ← 0Z=0: IP ← IP + 1Encoding: 15 0Example(s): RETI Z ; Z=0, return from interrup

Page 293 - 10.4.3 IR-Scan Sequence

MAXQ7665/MAXQ7666 User’s Guide14-25RL/RLC Rotate Left AccumulatorCarry Flag (Ex/In)clusiveDescription: Rotates the active accumulator left by a single

Page 294 - 10.4.5 Communication via TAP

MAXQ7665/MAXQ7666 User’s Guide14-26RR/RRC Rotate Right AccumulatorCarry Flag (Ex/In)clusiveDescription: Rotates the active accumulator right by a sing

Page 295

MAXQ7665/MAXQ7666 User’s Guide14-27SLA/SLA2/SLA4 Shift Accumulator Left ArithmeticallyOne, Two, or Four TimesDescription: Shifts the active accumulato

Page 296

MAXQ7665/MAXQ7666 User’s Guide14-28SR/SRA/SRA2/SRA4 Shift Accumulator Right/Shift Accumulator Right ArithmeticallyOne, Two, or Four TimesDescription:

Page 297

MAXQ7665/MAXQ7666 User’s Guide14-29SRA2 Operation: 15 Active Accumulator (Acc) 0 Carry FlagAcc.[13:0] ← Acc.[15:2]Acc.[15:14] ← Acc.

Page 298

MAXQ7665/MAXQ7666 User’s Guide14-30SUB/SUBB srcSubtract /Subtract with BorrowDescription: Subtracts the specified src from the active accumulator (Acc

Page 299 - 11.1 Architecture

MAXQ7665/MAXQ7666 User’s Guide14-31XCH Exchange Accumulator BytesDescription: Exchanges the upper and lower bytes of the active accumulator.Status Fla

Page 300

MAXQ7665/MAXQ7666 User’s Guide14-32XOR src Logical XORDescription: Performs a logical-XOR between the active accumulator (Acc or A[AP]) and the specif

Page 301

1.3.5.4 ALU Operations Using Only the Active AccumulatorThe following arithmetic and logical operations operate only on the active accumulator.cpl ; A

Page 302

SECTION 15: UTILITY ROM (SPECIFIC TOMAXQ7665A–MAXQ7665D WITH TYPE A FLASH)MAXQ7665/MAXQ7666 User’s Guide15-1This section contains the following inform

Page 303 - Section 12

MAXQ7665/MAXQ7666 User’s Guide15-2SECTION 15: UTILITY ROM (SPECIFIC TO MAXQ7665A–MAXQ7665DWITH TYPE A FLASH)The MAXQ7665 utility ROM includes routines

Page 304

15.1 In-Application Programming FunctionsFunction: flashEraseSectorSummary: Erases (programs to FFFFh) a sector of flash memory.Inputs: A[0]: Word add

Page 305 - Section 1

Function: moveDP0incSummary: Reads the byte/word value pointed to by DP[0], then increments DP[0].Inputs: DP[0]: Address to read from.Outputs: GR: Dat

Page 306 - 11.3 Debug Engine Operation

Function: moveDP1decSummary: Reads the byte/word value pointed to by DP[1], then decrements DP[1].Inputs: DP[1]: Address to read from.Outputs: GR: Dat

Page 307

MAXQ7665/MAXQ7666 User’s Guide15-6Function: copyBufferSummary: Copies LC[0] bytes/words from DP[0] to BP[OFFS].Inputs: DP[0]: Address to copy from.BP[

Page 308 - 11.3.2 Breakpoint Registers

MAXQ7665/MAXQ7666 User’s Guide15-715.4 ROM Example 1: Calling A MAXQ7665 Utility ROM Function DirectlyThis example shows the direct addressing method

Page 309

MAXQ7665/MAXQ7666 User’s Guide15-815.5 ROM Example 2: Calling A MAXQ7665 Utility ROM Function IndirectlyThe second example shows the indirect addressi

Page 310 - 11.3.3 Using Breakpoints

SECTION 16: UTILITY ROM (SPECIFIC TO MAXQ7666 WITH TYPE F FLASH)MAXQ7665/MAXQ7666 User’s Guide16-1This section contains the following information:16.1

Page 311 - 11.3.5 Debug Mode Commands

MAXQ7665/MAXQ7666 User’s Guide16-2SECTION 16: UTILITY ROM (SPECIFIC TO MAXQ7666 WITH TYPE FFLASH)The MAXQ7666 utility ROM includes routines that provi

Page 312

1.3.6.2 Zero FlagThe Zero flag (PSF.7) is a dynamic flag that reflects the current state of the active accumulator Acc. If all bits in the active accu

Page 313 - 11.3.8 Return

16.1 In-Application Programming FunctionsFunction: programFlashWritePageSummary: Writes an entire 32-word/64-byte program flash page.Inputs: DP[0]: Wo

Page 314

Function: programFlashEraseAllSummary: Erases (programs to FFFFh) all locations in program flash memory.Inputs: None.Outputs: Carry: Set on error and

Page 315

MAXQ7665/MAXQ7666 User’s Guide16-5Function: dataFlashErasePageSummary: Erases (programs to FFFFh) two pages (1 page = 1 word) of the data flash memory

Page 316

MAXQ7665/MAXQ7666 User’s Guide16-616.2 Data Transfer FunctionsFunction: moveDP0Summary: Reads the byte/word value pointed to by DP[0].Inputs: DP[0]: A

Page 317 - 12.1 Bootstrap-Loader Mode

Function: moveDP1incSummary: Reads the byte/word value pointed to by DP[1], then increments DP[1].Inputs: DP[1]: Address to read from.Outputs: GR: Dat

Page 318 - Section 11

MAXQ7665/MAXQ7666 User’s Guide16-8Function: moveFPdecSummary: Reads the byte/word value pointed to by BP[OFFS] then decrements OFFS.Inputs: BP[OFFS]:

Page 319

MAXQ7665/MAXQ7666 User’s GuideREVISION NUMBERREVISION DATEDESCRIPTIONPAGES CHANGED 0 12/07 Initial release. —REVISION HISTORY386Maxim Integrated 160

Page 320 - Section 12.5

• MOVE Acc.<b>, C (Set selected active accumulator bit to Carry)• AND Acc.<b> (Carry = Carry AND selected active accumulator bit)• OR Acc.

Page 321 - 12.5 JTAG Bootloader Protocol

1.3.3.1 Loading an 8-Bit Register with an Immediate Value . . . . . . . . . . . . . . . . . . . . .1-301.3.3.2 Loading a 16-Bit Register with a 16-Bi

Page 322

1.3.7.3 Conditional JumpsConditional jumps transfer program execution based on the value of one of the status flags (C, E, Z, S). Except where noted f

Page 323

If loop execution speed is critical and a relative jump cannot be used, one might consider preloading an internal 16-bit register withthe src loop add

Page 324

INS is set automatically on entry to the interrupt handler and cleared automatically on exit (RETI).IntHandler:push PSF ; save C since used in identi

Page 325

The POP instruction removes a value from the stack and then decrements the stack pointer. The @SP-- stack access mnemonic is theassociated source spec

Page 326

Each data pointer (DP[n]) and Frame Pointer base (BP) register is actually implemented internally as a 17-bit register (e.g., 16:0). The FramePointer

Page 327

move @BP[--Offs], @BP[Offs++]move @DP[0], @DP[0]++move @DP[1], @DP[1]++move @BP[Offs], @BP[Offs++]move @DP[0], @DP[0]--move @DP[1], @DP[1]--move @BP[O

Page 328

MAXQ7665/MAXQ7666 User’s Guide1-44REGISTER BITREGISTER1514131211109876543210 — — — — AP.3 AP.2 AP.1 AP.0 AP 08h[00h] 0 0 0 0 0 0 0 0 CLR IDS —

Page 329

MAXQ7665/MAXQ7666 User’s Guide1-45REGISTER BITREGISTER1514131211109876543210GR.15 GR.14 GR.13 GR.12 GR.11 GR.10 GR.9 GR.8 GR.7 GR.6 GR.5 GR.4 GR.3 GR.

Page 330

MAXQ7665/MAXQ7666 User’s Guide1-461.4.1 Accumulator Pointer Register (AP)Register Description: Accumulator Pointer RegisterRegister Name: APRegister A

Page 331

Bits 2 to 0: Accumulator Pointer Auto-Increment/Decrement Modulus (MOD2 to MOD0). If these bits are set to a non-zero value,the accumulator pointer (A

Page 332

1.3.10 Accessing Data Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-411.4 System Register Descr

Page 333

1.4.4 Interrupt and Control Register (IC)Register Description: Interrupt and Control RegisterRegister Name: ICRegister Address: Module 08h, Index 05hB

Page 334

1.4.6 System Control Register (SC)Register Description: System Control RegisterRegister Name: SCRegister Address: Module 08h, Index 08hBit 7: Test Acc

Page 335 - 13.6 Operand Count Selection

1.4.7 Interrupt Identification Register (IIR)The first six bits in this register indicate interrupts pending in modules 0 to 5, one bit per module. Th

Page 336 - 13.8 Accessing the Multiplier

1.4.9 Watchdog Timer Control Register (WDCN)The 8-bit WDCN register is part of the system register group and used to provide system control. It contro

Page 337

1.4.11 Prefix Register (PFX[n])Register Description: Prefix RegisterRegister Name: PFX[n]Register Address: Module 0Bh, Index 0nhBits 15 to 0: Prefix R

Page 338

1.4.12 Instruction Pointer Register (IP)Register Description: Instruction Pointer RegisterRegister Name: IPRegister Address: Module 0Ch, Index 00hBits

Page 339

1.4.14 Interrupt Vector Register (IV)Register Description: Interrupt Vector RegisterRegister Name: IVRegister Address: Module 0Dh, Index 02hBits 15 to

Page 340

1.4.16 Loop Counter 1 Register (LC[1])Register Description: Loop Counter 1 RegisterRegister Name: LC[1]Register Address: Module 0Dh, Index 07hBits 15

Page 341

1.4.18 Data Pointer Control Register (DPC)Register Description: Data Pointer Control RegisterRegister Name: DPCRegister Address: Module 0Eh, Index 04h

Page 342

1.4.19 General Register (GR)Register Description: General RegisterRegister Name: GRRegister Address: Module 0Eh, Index 05hBits 15 to 0: General Regist

Page 343 - Acc.<b>

Figure 1-1. MAXQ7665/MAXQ7666 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .1-5Figure 1-2. MAXQ7665/MAXQ7666 Tr

Page 344

1.4.21 Frame Pointer Base Register (BP)Register Description: Frame Pointer Base RegisterRegister Name: BPRegister Address: Module 0Eh, Index 07hBits 1

Page 345 - 1000 1010 0001 1010

1.4.23 General Register High Byte (GRH)Register Description: General Register High ByteRegister Name: GRHRegister Address: Module 0Eh, Index 09hBits 7

Page 346 - 1101 1010 0010 1010

1.4.25 Frame Pointer Register (FP)Register Description: Frame Pointer RegisterRegister Name: FPRegister Address: Module 0Eh, Index 0BhBits 15 to 0: Fr

Page 347

1.4.27 Data Pointer 1 Register (DP[1])Register Description: Data Pointer 1 RegisterRegister Name: DP[1]Register Address: Module 0Fh, Index 07hBits 15

Page 348

Note: Names that appear in bold italics indicate that all bits of a register are read-only.Table 1-10. MAXQ7665/MAXQ7666 Peripheral Register MapMAXQ76

Page 349 - 0111 1100 ssss ssss

MAXQ7665/MAXQ7666 User’s Guide1-63REGISTER BITREGISTER1514131211109876543210— — — — — — — — PO0.7 PO0.6 PO0.5 PO0.4 PO0.3 PO0.2 PO0.1 PO0.0 PO0 00h[00

Page 350

MAXQ7665/MAXQ7666 User’s Guide1-64REGISTER BITREGISTER15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — OF MCW CLD SQU OPCS MSUB MMAC SUS MCNT 01h[

Page 351

MAXQ7665/MAXQ7666 User’s Guide1-65REGISTER BITREGISTER1514131211109876543210— — — — — — — — ET2 T2OE0 T2POL0 TR2L TR2 CPRL2 SS2 G2EN T2CNA0 02h[00h] 0

Page 352 - 1111 1010 bbbb 1010

MAXQ7665/MAXQ7666 User’s Guide1-66REGISTER BITREGISTER1514131211109876543210— — — — — — — — — T2DIV2 T2DIV1 T2DIV0 T2MD CCF1 CCF0 C/T2 T2CFG1 02h[11h]

Page 353 - 1110 1010 bbbb 1010

MAXQ7665/MAXQ7666 User’s Guide1-67REGISTER BITREGISTER15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — ET2 T2OE0 T2POL0 TR2L TR2 CPRL2 SS2 G2EN T2

Page 354 - 1ddd dddd 1bbb 0111

SECTION 1: MAXQ7665/MAXQ7666 CORE ARCHITECTURE1.1 OverviewThe MAXQ7665/MAXQ7666 are low-power, high-performance, 16-bit RISC microcontrollers based on

Page 355 - 1000 1010 1001 1010

MAXQ7665/MAXQ7666 User’s Guide1-68REGISTER BITREGISTER15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — ERIE STIE PDE SIESTA CRST AUTOB ERCS SWINT

Page 356 - .<b>

MAXQ7665/MAXQ7666 User’s Guide1-69REGISTER BITREGISTER15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — MSRDY ETI ERI INTRQ EXTRQ MTRQ ROW/TIH DTUP

Page 357

MAXQ7665/MAXQ7666 User’s Guide1-70REGISTER BITREGISTER15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0— — — — — — — — — — VIOBI1 VIOBI0 VDBI1 VDBI0 VDBR1 VDBR0 V

Page 358

MAXQ7665/MAXQ7666 User’s Guide2-1SECTION 2: POWER-SUPPLY/SUPERVISORY MONITORING MODULEThis section contains the following information:2.1 Architecture

Page 359 - 1100 1100 0000 1101

MAXQ7665/MAXQ7666 User’s Guide2-2Figure 2-1. MAXQ7665/MAXQ7666 Power-Supply Block Diagram . . . . . . . . . . . . . . . . . . . . . . . .2-4Figure 2-

Page 360 - 1110 1100 1000 1101

SECTION 2: POWER-SUPPLY/SUPERVISORY MONITORING MODULEThe MAXQ7665/MAXQ7666 power-supply/supervisory monitoring module supports dedicated supply pins t

Page 361 - 1100 1100 1000 1101

MAXQ7665/MAXQ7666 User’s Guide2-4Figure 2-1. MAXQ7665/MAXQ7666 Power-Supply Block DiagramAVDDAGNDAGNDDVDDIODVDDIOREGENGNDIOANALOGMODULE(MUX, ADC, PGA,

Page 362 - 1000 1010 0101 1010

2.1.1 Power-Supply/Supervisory Module PinsThe power-supply module signals are shown in Table 2-1.Table 2-1. MAXQ7665/MAXQ7666 Power-Supply/Supervisory

Page 363 - 1000 1010 1101 1010

MAXQ7665/MAXQ7666 User’s Guide2-62.2 Power-Supply/Supervisory Monitoring RegistersThe MAXQ7665/MAXQ7666 power-supply/supervisory monitoring peripheral

Page 364 - 1000 1010 0110 1010

Bits 3, 2: DVDD Brownout Interrupt Threshold Bits 1, 0 (VDBI1, VDBI0). These bits are used to select the brownout interrupt thresh-old level for the D

Page 365 - 1000 1010 1111 1010

1.1.2 Instruction SetAs part of the MAXQ family, the MAXQ7665/MAXQ7666 use the standard 16-bit MAXQ20 instruction set, with all instructions a fixed 1

Page 366 - 1000 1010 1011 1010

MAXQ7665/MAXQ7666 User’s Guide2-82.2.2 Analog Power Enable Register (APE)The APE register contains the power-enable bits to control and turn on/off th

Page 367

2.2.3 Analog Interrupt Enable Register (AIE)The AIE register is used to enable interrupts from a variety of analog sources including DVDDIO and DVDD b

Page 368 - 1000 1010 1000 1010

MAXQ7665/MAXQ7666 User’s Guide2-102.2.4 Analog Status Register (ASR)The ASR register reports the status of the DVDD and DVDDIO supply brownout detecti

Page 369 - 1011 1010 bbbb 1010

2.3 Supply ConfigurationThe MAXQ7665/MAXQ7666 use three supplies to power the internal analog, digital core, and digital I/O circuits. The supplies ar

Page 370

MAXQ7665/MAXQ7666 User’s Guide2-122.4 Linear RegulatorThe MAXQ7665/MAXQ7666 contain a +3.3V, low dropout (LDO) linear regulator. The regulator powers

Page 371 - WITH TYPE A FLASH)

2.5.1 Power-Up CounterAn independent power-up counter functions as the startup counter to count 65,536 cycles of the internal 7.6MHz RC oscillator fro

Page 372 - 15.2 Data Transfer Functions

MAXQ7665/MAXQ7666 User’s Guide2-14Figure 2-5. MAXQ7665/MAXQ7666 Brownout ResetNOMINALDVDD (+3.3V)+3.06V+2.77VDGNDDVDD BROWNOUT RESETTHRESHOLD RANGEVDB

Page 373

2.5.3 Reset OutputThe MAXQ7665/MAXQ7666 assert the RESET signal during power-up and also during reset conditions caused by an internal source(such as

Page 374

MAXQ7665/MAXQ7666 User’s Guide2-16Figure 2-7. DVDD Brownout Interrupt Threshold DetectionNOMINALDVDD (+3.3V)BROWNOUTRESET TRIGGERPOINTBROWNOUTINTERRUP

Page 375

Figure 2-8. DVDDIO Brownout Interrupt Threshold Detection NOMINALDVDDIO (+5.0V)DVDDIOBROWNOUTINTERRUPTDVDDIO BROWNOUTINTERRUPT THRESHOLDRANGE VIOBI[1:

Page 376

1.2 ArchitectureThe MAXQ7665/MAXQ7666 architecture is designed to be modular and expandable. Top-level instruction decoding is extremely sim-ple and b

Page 377

2.7.2 External ResetDuring normal operation, the MAXQ7665/MAXQ7666 devices are placed into an external reset mode by holding the RESET pin low forat l

Page 378 - TYPE F FLASH)

MAXQ7665/MAXQ7666 User’s Guide3-1SECTION 3: ANALOG I/O MODULEThis section contains the following information:3.1 Architecture . . . . . . . . . . . .

Page 379

3.4 Temperature Sensor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .3-343.4.1 Tem

Page 380

MAXQ7665/MAXQ7666 User’s Guide3-3Figure 3-1. Analog I/O Module Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 381

MAXQ7665/MAXQ7666 User’s Guide3-4Table 3-1. Analog I/O Module Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

Page 382

SECTION 3: ANALOG I/O MODULEThe MAXQ7665/MAXQ7666 contain an ultra-low-power precision analog I/O module for measuring and controlling a host of senso

Page 383 - 16.2 Data Transfer Functions

3.1.1 Analog I/O PinsThe analog I/O module has 24 pins associated with the analog functions on the microcontroller. Table 3-1 shows the external inter

Page 384

3.2 Analog I/O Module Control and Status RegistersThe analog I/O module uses the following control and status registers.3.2.1 Analog Power Enable Regi

Page 385

3.2.2 ADC Control Register (ACNT)Register Description: ADC Control RegisterRegister Name: ACNTRegister Address: Module 05h, Index 02hBits 15 to 11: AD

Page 386 - REVISION HISTORY

When ADCMX4 is cleared, the ADC input channel is configured for a differential voltage measurement. When ADCMX0 is set, the ADC’spositive and negative

Modèles reliés MAXQ7665

Commentaires sur ces manuels

Pas de commentaire