Maxim-integrated MAXQ Family Users Guide: MAXQ2000 Supplement Bedienungsanleitung Seite 1

Stöbern Sie online oder laden Sie Bedienungsanleitung nach Hardware Maxim-integrated MAXQ Family Users Guide: MAXQ2000 Supplement herunter. Maxim Integrated MAXQ Family Users Guide: MAXQ2000 Supplement User Manual Benutzerhandbuch

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 93
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 0
Functional Diagrams
Pin Configurations appear at end of data sheet.
Functional Diagrams continued at end of data sheet.
UCSP is a trademark of Maxim Integrated Products, Inc.
For pricing, delivery, and
ordering information, please contact Maxim Direct
at 1-888-629-4642, or visit Maxim’s website at www.maximintegrated.com.
MAXQ Family Users Guide:
MAXQ2000 Supplement
TABLE OF CONTENTS
Rev 3; 6/07
ADDENDUM TO SECTION 1: OVERVIEW 7
References 7
ADDENDUM TO SECTION 2: ARCHITECTURE 7
Instruction Set 7
Harvard Memory Architecture 7
Register Space 7
Memory Organization 9
Register Space 9
Program Stack 9
Data SRAM 9
Program Flash 9
Program and Data Memory Mapping 9
Clock Generation 11
External High-Frequency Oscillator Circuit or Clock 12
Internal Ring Oscillator 12
External 32kHz Crystal Oscillator Circuit or Clock 13
Interrupts 13
Reset Conditions 16
Power-On Reset 16
Watchdog Timer Reset 16
External Reset 16
MAXQ2000
132-SEGMENT
LCD CONTROLLER/
DRIVER
RTC
1-WIRE MASTER
TIMER/PWM
16-BIT MAXQ™
RISC CPU
32k x 16 FLASH ROM
(64kBytes)
1k x 16 DATA RAM
(2kBytes)
16 x 16 HARDWARE
MULTIPLY
JTAG DEBUG
SERIAL UART
SPI INTERFACE
17 x 8 DISPLAY
RAM
This document is provided as a supplement to the MAXQ Family User’s Guide, covering new or modified features specific to the MAXQ2000. This document
must be used in conjunction with the MAXQ Family User’s Guide, available from Dallas Semiconductor. Addenda are arranged by section number, which
correspond to sections in the MAXQ Family User’s Guide. Additions and changes, with respect to the MAXQ Family User’s Guide, are contained in this docu-
ment. This document is a work in progress, and updates/additions are added when available.
Seitenansicht 0
1 2 3 4 5 6 ... 92 93

Inhaltsverzeichnis

Seite 1 - MAXQ2000 Supplement

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

Seite 2

MAXQ Family User’s Guide:MAXQ2000 Supplement32k x 16PROGRAM FLASHOR MASKED ROMPROGRAMSPACEEXECUTING FROMDATA SPACE(BYTE MODE)DATA SPACE(WORD MODE)0000

Seite 3

MAXQ Family User’s Guide:MAXQ2000 SupplementClock GenerationAll functional modules in the MAXQ2000 are synchronized to a single system clock. This sys

Seite 4

MAXQ Family User’s Guide:MAXQ2000 SupplementTable 1. System Clock Generation and Control RegistersExternal High-Frequency Oscillator Circuit or ClockT

Seite 5

To select the ring oscillator as the system clock source, the RGSL bit (CKCN.6) must be set to 1. Setting this bit immediately switchesover the syste

Seite 6

MAXQ Family User’s Guide:MAXQ2000 SupplementTable 2. MAXQ2000 Interrupt Sources and Control BitsINTERRUPT MODULE ENABLE BIT LOCAL ENABLE BIT INTERRUPT

Seite 7

MAXQ Family User’s Guide:MAXQ2000 SupplementTable 2. MAXQ2000 Interrupt Sources and Control Bits (continued)INTERRUPT MODULE ENABLE BIT LOCAL ENABLE B

Seite 8

MAXQ Family User’s Guide:MAXQ2000 SupplementReset ConditionsThere are three possible reset sources for the MAXQ2000. While in the reset state, the ena

Seite 9

Power Management FeaturesThe MAXQ2000 provides the following features to assist in power management.• Divide-by-256 (PMM1) and 32kHz (PMM2) modes to r

Seite 10

MAXQ Family User’s Guide:MAXQ2000 SupplementThis power management mode is entered by setting the PMME bit (CKCN.2) to 1 while the CD1 and CD0 (CKCN[1:

Seite 11

Note that exiting Stop mode through external reset or power-on reset causes the processor to undergo a normal reset cycle, asopposed to resuming execu

Seite 12

MAXQ Family User’s Guide:MAXQ2000 SupplementPower Management Features 17Divide-by-256 Mode (PMM1) 1732kHz Mode (PMM2) 18Switchback Mode 18Stop Mode 18

Seite 13

MAXQ Family User’s Guide:MAXQ2000 SupplementTable 5. System Register Bit FunctionsREGBIT 15 BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8 BIT 7 BIT 6

Seite 14

Table 6. System Register Reset ValuesMAXQ Family User’s Guide:MAXQ2000 SupplementREGBIT 15 BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8 BIT 7 BIT 6

Seite 15

MAXQ Family User’s Guide:MAXQ2000 SupplementThe following section details the functionality of any System Registers contained in the MAXQ2000 that ope

Seite 16

Bits 5 and 6: (SC.5 and SC.6) ReservedBit 7: (SC.7) Test Access (JTAG) Port Enable0 = JTAG TAP functions are disabled and P4.0 through P4.3 can be use

Seite 17

MAXQ Family User’s Guide:MAXQ2000 SupplementMAXQ2000 System Clock ModesBit 0: (CKCN.0) Clock Divide 0 (CD0); Bit 1: (CKCN.1) Clock Divide 1 (CD1); Bit

Seite 18

Bit 3: (CKCN.3) Switchback Enable (SWB). Setting this bit to 1 enables Switchback mode. If power management mode (either divideby 256 or 32kHz) is act

Seite 19

MAXQ Family User’s Guide:MAXQ2000 SupplementADDENDUM TO SECTION 5: PERIPHERAL REGISTER MODULESRefer to the MAXQ Family User’s Guide.Table 7. Periphera

Seite 20

MAXQ Family User’s Guide:MAXQ2000 SupplementREG BIT 15BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8 BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1BIT 0PO0

Seite 21

MAXQ Family User’s Guide:MAXQ2000 SupplementREG BIT15BIT14BIT13BIT12BIT11BIT 10BIT 9BIT 8BIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0PD6PD6 (8 bits)PD7— —

Seite 22

MAXQ Family User’s Guide:MAXQ2000 SupplementREGBIT15BIT14 BIT13 BIT12 BIT11BIT 10 BIT 9 BIT 8 BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1BIT 0T2CH0T2C0.

Seite 23

ADDENDUM TO SECTION 17: IN-SYSTEM PROGRAMMING (JTAG) 57Bootloader Protocol 58Family 0 Commands (Not Password Protected) 59Family 1 Commands: Load Vari

Seite 24

MAXQ Family User’s Guide:MAXQ2000 SupplementREGBIT 15 BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8 BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1BIT 0PO0

Seite 25

MAXQ Family User’s Guide:MAXQ2000 SupplementREGBIT 15 BIT 14 BIT 13 BIT 12 BIT 11 BIT 10 BIT 9 BIT 8 BIT 7 BIT 6 BIT 5 BIT 4 BIT 3 BIT 2 BIT 1BIT 0PD6

Seite 26

MAXQ Family User’s Guide:MAXQ2000 SupplementREGBIT 15BIT 14BIT 13BIT 12BIT 11BIT 10BIT 9BIT 8BIT 7BIT 6BIT 5BIT 4BIT 3BIT 2BIT 1BIT 0T2RH000000000T2CH

Seite 27

MAXQ Family User’s Guide:MAXQ2000 SupplementADDENDUM TO SECTION 6: GENERAL-PURPOSE I/O MODULE(GPIO AND EXTERNAL INTERRUPTS)The MAXQ2000 provides 50 po

Seite 28

MAXQ Family User’s Guide:MAXQ2000 SupplementPORT PIN TYPE SPECIAL FUNCTION ENABLED WHEN P3.1 Analog LCD Segment SEG25 PCF3=1 and OPM=1 P3.2 Analog

Seite 29

MAXQ Family User’s Guide:MAXQ2000 SupplementPORT PIN TYPE SPECIAL FUNCTION ENABLED WHENP0.0 Analog LCD Segment SEG0 PCF0=1 and OPM=1P0.1 Analog LCD Se

Seite 30

MAXQ Family User’s Guide:MAXQ2000 SupplementThe port pins on the MAXQ2000 operate the same as standard MAXQ port pins, with input/output states define

Seite 31

The following peripheral registers control the general-purpose I/O and external interrupt features specific to the MAXQ2000.Register Name: PO0Register

Seite 32

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: PO3Register Description: Port 3 Output RegisterRegister Address: M0[03h]Bits 0 to 7: (PO3.0

Seite 33

Bit 0: (EIE0.0) External Interrupt 0 Enable (EX0)Bit 1: (EIE0.1) External Interrupt 1 Enable (EX1)Bit 2: (EIE0.2) External Interrupt 2 Enable (EX2)Bit

Seite 34

MAXQ Family User’s Guide:MAXQ2000 SupplementFigure 1. MAXQ2000 System and Peripheral Register Map 8Figure 2. Memory Map When Executing from Applicatio

Seite 35

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: PI3Register Description: Port 3 Input RegisterRegister Address: M0[0Bh]Each of the read-onl

Seite 36

Register Name: PD1Register Description: Port 1 Direction RegisterRegister Address: M0[11h]Each of the bits in this register controls the input/output

Seite 37

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: PO4Register Description: Port 4 Output RegisterRegister Address: M1[00h]Bits 0 to 4: (PO4.0

Seite 38

Register Name: PO7Register Description: Port 7 Output RegisterRegister Address: M1[03h]Bits 0 and 1: (PO7.0 and PO7.1) Port Output for P7.0 and P7.1.

Seite 39

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: EIE1Register Description: External Interrupt Enable 1 RegisterRegister Address: M1[07h]Each

Seite 40

Register Name: PI6Register Description: Port 6 Input RegisterRegister Address: M1[0Ah]Bits 0 to 7: (PI6.0 to PI6.7) Port Pin Input Bits for P6.0 to P6

Seite 41

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: PD4Register Description: Port 4 Direction RegisterRegister Address: M1[10h]Bits 0 to 4: (PD

Seite 42

Register Name: PD7Register Description: Port 7 Direction RegisterRegister Address: M1[13h]Bits 0 and 1: (PD7.0 and PD7.1) Port Direction Bits for P7.0

Seite 43

MAXQ Family User’s Guide:MAXQ2000 SupplementRegister Name: WKORegister Description: Wakeup Output RegisterRegister Address: M1[1Fh]Bit 0: (WKO.0) Wake

Seite 44

ADDENDUM TO SECTION 7: TIMER/COUNTER 0 MODULEThe MAXQ2000 does not provide these peripherals. Refer to the MAXQ Family User’s Guide.ADDENDUM TO SECTIO

Seite 45

Table 1. System Clock Generation and Control Registers 12Table 2. MAXQ2000 Interrupt Sources and Control Bits 14Table 3. System Power Management Regis

Seite 46

Timer 2 Example: Triggering a Periodic Interruptmove PD0, #0FFh ; Set P0.0-P0.7 to output modemove PO0, #000h ; Drive low on all Port 0 pinsmove

Seite 47

ADDENDUM TO SECTION 10: SERIAL I/O (UART) MODULEThe MAXQ2000 provides up to two serial UART modules (Serial 0 and 1 in the 68-pin package, Serial 0 in

Seite 48

MAXQ Family User’s Guide:MAXQ2000 SupplementADDENDUM TO SECTION 11: SERIAL PERIPHERAL INTERFACE (SPI)The MAXQ2000 provides a Serial Peripheral Interfa

Seite 49

ADDENDUM TO SECTION 12: HARDWARE MULTIPLIERThe MAXQ2000 provides a hardware multiplier module that provides the following features (detailed in the MA

Seite 50

MAXQ Family User’s Guide:MAXQ2000 SupplementADDENDUM TO SECTION 13: 1-Wire BUS MASTERThe MAXQ2000 provides a 1-Wire Bus Master (68-pin package only) t

Seite 51

1-Wire Example: Reset and Presence DetectOW_COMMAND equ 00hOW_BUFFER equ 01hOW_INTERRUPT equ 02hOW_INT_ENABLE equ 03hOW_CLOCK equ 04hOW_C

Seite 52

MAXQ Family User’s Guide:MAXQ2000 SupplementADDENDUM TO SECTION 15: TEST ACCESS PORT (TAP)The JTAG TAP port on the MAXQ2000 is multiplexed with port p

Seite 53

The first byte output by this command is the value 146 (092h), which represents the number of peripheral registers output. Table 25lists the remaining

Seite 54

MAXQ Family User’s Guide:MAXQ2000 SupplementBit 1: (ICDF.1) System Program Enable (SPE). This bit controls the behavior of the MAXQ2000 following rese

Seite 55

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

Seite 56

MAXQ Family User’s Guide:MAXQ2000 SupplementTable 32. LCD Display Memory Map (Static, 56-Pin Package) 76Table 33. LCD Display Memory Map (1/2 Duty, 56

Seite 57

MAXQ Family User’s Guide:MAXQ2000 SupplementCommand 05h—Get Supported CommandsThe SupportL (LSB) and SupportH (MSB) bytes form a 16-bit value that ind

Seite 58

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

Seite 59

MAXQ Family User’s Guide:MAXQ2000 SupplementFamily 2 Commands: Dump Variable Length (Password Protected)Command 20h—Dump Code Variable LengthThis comm

Seite 60

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

Seite 61

MAXQ Family User’s Guide:MAXQ2000 SupplementFamily E Commands: Erase Fixed Length (Password Protected)Command E0h—Erase Code Fixed LengthThis command

Seite 62

MAXQ Family User’s Guide:MAXQ2000 SupplementMNEMONIC DESCRIPTION16-BIT INSTRUCTIONWORDSTATUS BITSAFFECTEDAPINC/DECNOTESADD src Acc ← Acc + src f100 10

Seite 63

LCD CONTROLLER (SPECIFIC TO MAXQ2000)The MAXQ2000 provides an on-board LCD controller module that can generate segment and common signals for an LCD b

Seite 64

The following peripheral registers are used to control the LCD controller.Register Name: LCFGRegister Description: LCD Configuration RegisterRegister

Seite 65

Register Name: LCRARegister Description: LCD Adjust RegisterRegister Address: M2[0Dh]This register can only be written to when the LCD controller is i

Seite 66

The following registers (LCD0 to LCD15) contain display memory for the LCD controller.Register Name: LCD0Register Description: LCD Display Register 0R

Seite 67

ADDENDUM TO SECTION 1: OVERVIEWThe MAXQ2000 is a low-power, high-performance 16-bit RISC microcontroller based on the MAXQ™ architecture. It includes

Seite 68

Register Name: LCD4Register Description: LCD Display Register 4Register Address: M2[14h]Register Name: LCD5Register Description: LCD Display Register

Seite 69

Register Name: LCD8Register Description: LCD Display Register 8Register Address: M2[18h]Register Name: LCD9Register Description: LCD Display Register

Seite 70

Register Name: LCD12Register Description: LCD Display Register 12Register Address: M2[1Ch]Register Name: LCD13Register Description: LCD Display Regist

Seite 71

MAXQ Family User’s Guide:MAXQ2000 SupplementSTATIC DISPLAYRRVLCD2VADJRVLCDVLCD1RADJGNDIOLRIG1/2 BIASRRVLCD2VADJRVLCDVLCD1RADJGNDIOLRIG1/3 BIASRRVLCD2V

Seite 72

MAXQ Family User’s Guide:MAXQ2000 SupplementSTATIC DISPLAYRRVLCD2VADJRVLCDVLCD1RADJGNDIOLRIG = 1STATIC DISPLAYRRVLCD2VADJRVLCDVLCD1RADJGNDIOLRIG = 0RE

Seite 73

LCD Frame FrequencyThe LCD controller clock frequency (fLCD) can be sourced from either the 32kHz clock or the high-frequency clock divided by 128 ass

Seite 74

MAXQ Family User’s Guide:MAXQ2000 SupplementREGISTERBIT 7COM0BIT 6COM0BIT 5COM0BIT 4COM0BIT 3COM0BIT 2COM0BIT 1COM0BIT 0COM0LCD0 SEG7 SEG6 SEG5 SEG4 S

Seite 75

MAXQ Family User’s Guide:MAXQ2000 SupplementREGISTER BIT 7BIT 6COM2BIT 5COM1BIT 4COM0BIT 3BIT 2COM2BIT 1COM1BIT 0COM0LCD0 SEG1 SEG1 SEG1 SEG0 SEG0 SEG

Seite 76

MAXQ Family User’s Guide:MAXQ2000 SupplementREGISTERBIT 7COM0BIT 6COM0BIT 5COM0BIT 4COM0BIT 3COM0BIT 2COM0BIT 1COM0BIT 0COM0LCD0 SEG7 SEG6 SEG5 SEG4 S

Seite 77

MAXQ Family User’s Guide:MAXQ2000 SupplementREGISTER BIT 7BIT 6COM2BIT 5COM1BIT 4COM0BIT 3BIT 2COM2BIT 1COM1BIT 0COM0LCD0 SEG1 SEG1 SEG1 SEG0 SEG0 SEG

Seite 78

MAXQ Family User’s Guide:MAXQ2000 Supplement• 1-Wire Interface Master• LCD Controller (up to 132 segments)The lower 8 bits of all registers in modules

Seite 79

Display Waveform GenerationOnce the operational modes and display memory registers on the LCD controller have been properly initialized, the controlle

Seite 80

Table 40. Static Drive Example Common Signal SelectionAccording to the static memory map table, a value of 0F6h should be written to the LCD0 register

Seite 81

LCD Controller 1/2 Duty Cycle Drive ExampleIn this example, SEG0 through SEG3 are used to drive the LCD segments. The segments and common signals are

Seite 82

MAXQ Family User’s Guide:MAXQ2000 SupplementCOM1COM2COM0SEG2SEG1SEG0Figure 16. 1/3 Drive Example Display Connection1 FRAME (fFRAME)VLCDVLCD1GNDCOM0VLC

Seite 83

Table 44. 1/3 Duty Drive Example Common Signal SelectionAccording to the 1/3 duty drive memory map table, LCD0 should be set to 071h and LCD1 should b

Seite 84

LCD Controller 1/4 Duty Cycle Drive ExampleIn this example, SEG0 and SEG1 are used to drive the LCD segments. The segments and common signals are conn

Seite 85

MAXQ Family User’s Guide:MAXQ2000 Supplement1 FRAME (fFRAME)VLCDVLCD1VLCD2GNDSEG1VLCDVLCD1VLCD2GNDSEG0VLCDVLCD1VLCD2GNDCOM2VLCDVLCD1VLCD2GNDCOM1VLCDVL

Seite 86

UTILITY ROM (SPECIFIC TO MAXQ2000)The MAXQ2000 utility ROM includes routines that provide the following functions to application software.• In-applica

Seite 87

MAXQ Family User’s Guide:MAXQ2000 SupplementFunction: flashErasePage Summary: Erases (programs to 0FFFFh) a 256-word page of flash memory. Inputs: A

Seite 88

MAXQ Family User’s Guide:MAXQ2000 SupplementFunction: moveDP0dec Summary: Reads the byte/word value pointed to by DP[0], then decrements DP[0]. Inpu

Seite 89

Memory OrganizationAs with all MAXQ microcontrollers, the MAXQ2000 contains logically separate program and data memory spaces. All memory is inter-nal

Seite 90

MAXQ Family User’s Guide:MAXQ2000 SupplementFunction: moveFP Summary: Reads the byte/word value pointed to by BP[Offs].Inputs: BP[Offs]: Address to r

Seite 91

MAXQ Family User’s Guide:MAXQ2000 SupplementROM Example 1: Calling A Utility ROM Function DirectlyThis example shows the direct addressing method for

Seite 92

MAXQ Family User’s Guide:MAXQ2000 SupplementROM Example 2: Calling A Utility ROM Function IndirectlyThe second example shows the indirect addressing m

Seite 93

MAXQ Family User’s Guide:MAXQ2000 SupplementREVISION HISTORYRev 0; 10/04: Original release.Rev 1; 10/05: Family Commands section updated. Commands 11h

Kommentare zu diesen Handbüchern

Keine Kommentare