0
登录后你可以
  • 下载海量资料
  • 学习在线课程
  • 观看技术视频
  • 写文章/发帖/加入社区
会员中心
创作中心
发布
  • 发文章

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MAXQ2000-RBX

MAXQ2000-RBX

  • 厂商:

    MAXIM(美信)

  • 封装:

  • 描述:

    MAXQ2000-RBX - Low-Power LCD Microcontroller - Maxim Integrated Products

  • 数据手册
  • 价格&库存
MAXQ2000-RBX 数据手册
Rev 2; 12/04 Low-Power LCD Microcontroller General Description The MAXQ2000 microcontroller is a low-power, 16-bit device that incorporates a liquid-crystal display (LCD) interface that can drive up to 100 (-RBX) or 132 (-RAX) segments. The MAXQ2000 is uniquely suited for the blood-glucose monitoring market, but can be used in any application that requires high performance and lowpower operation. The device can operate at a maximum of either 14MHz (VDD > 1.8V) or 20MHz (VDD > 2.25V). The MAXQ2000 has 32kWords of flash memory, 1kWord of RAM, three 16-bit timers, and one or two universal synchronous/asynchronous receiver/transmitters (UARTs). Flash memory aids prototyping and low-volume production. The microcontroller core is powered by a 1.8V supply, with a separate I/O supply for optimum flexibility. An ultra-low-power sleep mode makes these parts ideal for battery-powered, portable equipment. Features ♦ High-Performance, Low-Power, 16-Bit RISC Core DC to 20MHz Operation, Approaching 1MIPS per MHz Dual 1.8V Core/3V I/O Enables Low Power/Flexible Interfacing 33 Instructions, Most Single Cycle Three Independent Data Pointers Accelerate Data Movement with Automatic Increment/Decrement 16-Level Hardware Stack 16-Bit Instruction Word, 16-Bit Data Bus 16 x 16-Bit, General-Purpose Working Registers Optimized for C-Complier (High-Speed/Density Code) ♦ Program and Data Memory 32kWords Flash Memory, Mask ROM for HighVolume Applications 10,000 Flash Write/Erase Cycles 1kWord of Internal Data RAM JTAG/Serial Boot Loader for Programming ♦ Peripheral Features Up to 50 General-Purpose I/O Pins 100/132 Segment LCD Driver Up to 4 COM and 36 Segments Static, 1/2, and 1/3 LCD Bias Supported No External Resistors Required SPITM and 1-Wire® (-RAX Only) Hardware I/O Ports One or Two Serial UARTs One-Cycle, 16 x 16 Hardware Multiply/Accumulate with 48-Bit Accumulator Three 16-Bit Programmable Timers/Counters 8-Bit, Subsecond, System Timer/Alarm 32-Bit, Binary Real-Time Clock with Time-of-Day Alarm Programmable Watchdog Timer ♦ Flexible Programming Interface Bootloader Simplifies Programming In-System Programming Through JTAG Supports In-Application Programming of Flash Memory ♦ Ultra-Low Power Consumption 190µA typ at 8MHz Flash Operation, PMM1 at 2.2V 700nA typ in Lowest Power Stop Mode Low-Power 32kHz Mode and Divide-by-256 Mode MAXQ2000 Applications Medical Instrumentation Battery-Powered and Portable Devices Electrochemical and Optical Sensors Industrial Control Data-Acquisition Systems and Data Loggers Home Appliances Consumer Electronics Thermostats/Humidity Sensors Security Sensors Gas and Chemical Sensors HVAC Smart Transmitters Typical Operating Circuit and Pin Configurations appear at end of data sheet. Ordering Information PART MAXQ2000-RAX MAXQ2000-RBX TEMP RANGE -40°C to +85°C -40°C to +85°C PROGRAM MEMORY 32kWord Flash 32kWord Flash DATA MEMORY 1kWord SRAM 1kWord SRAM LCD SEGMENTS 132 100 EXTERNAL INTERRUPTS 16 14 UARTS 2 1 PINPACKAGE 68 QFN 56 TQFN MAXQ is a trademark of Maxim Integrated Products, Inc. SPI is a trademark of Motorola, Inc. 1-Wire is a registered trademark of Dallas Semiconductor Corp. Note: Some revisions of this device may incorporate deviations from published specifications known as errata. Multiple revisions of any device may be simultaneously available through various sales channels. For information about device errata, go to: www.maxim-ic.com/errata. ______________________________________________ Maxim Integrated Products 1 For pricing, delivery, and ordering information, please contact Maxim/Dallas Direct! at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. Low-Power LCD Microcontroller MAXQ2000 ABSOLUTE MAXIMUM RATINGS Voltage Range on Any Pin Relative to Ground Except VDD .................................-0.5V to (VDDIO + 0.5)V Voltage Range on VDD Relative to Ground .........-0.5V to +2.75V Voltage Range on VDDIO Relative to Ground........-0.5V to +3.6V Operating Temperature Range ...........................-40°C to +85°C Storage Temperature Range .............................-65°C to +150°C Soldering Temperature ....................See IPC/JEDEC J-STD-020 .................................................................................Specification Stresses beyond those listed under “Absolute Maximum Ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated in the operational sections of the specifications is not implied. Exposure to absolute maximum rating conditions for extended periods may affect device reliability. ELECTRICAL CHARACTERISTICS (VDD = VDD(MIN) to VDD(MAX), VDDIO = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER Core Supply Voltage I/O Supply Voltage SYMBOL VDD VDDIO IDD1 IDD2 Active Current, fHFIN = 14MHz (Note 2) IDD3 IDD4 IDD5 IDD6 IDD1 IDD2 Active Current, fHFIN = 20MHz (Note 2) IDD3 IDD4 IDD5 IDD6 /1 mode /2 mode /4 mode /8 mode PMM1 mode PMM2 mode; 32KIN = 32.768kHz /1 mode /2 mode /4 mode /8 mode PMM1 mode PMM2 mode; 32KIN = 32.768kHz Execution from flash memory, 20MHz, VDD = 2.2V, TA = +25°C Execution from flash memory, 8MHz, /8 mode, VDD = 2.2V, TA = +25°C Active Current Execution from flash memory, 8MHz, PMM1 mode, VDD = 2.2V, TA = +25°C Execution from RAM, 8MHz, /8 mode, VDD = 2.2V, TA = +25°C Execution from RAM, 1MHz, /1 mode, VDD = 2.2V, TA = +25°C Stop-Mode Current Digital I/O Supply Current Input High Voltage: HFIN and 32KIN ISTOP(VDD) IDDIO VIH1 -40°C < TA < +25°C TA = +85°C RTC enabled; HFIN ≥ 14MHz; all I/O disconnected 0.75 x VDDIO 32k x 16 flash Flash programming CONDITIONS MIN 1.8 2.25 VDD 6.0 5.6 3.4 1.9 0.5 4.8 6.5 5.9 3.8 2.2 0.6 4.8 5.1 0.85 0.19 0.30 0.14 0.7 20 1 55 550 50 VDDIO µA µA V mA TYP 2.5 2.5 MAX 2.75 2.75 3.6 9.2 8.6 5.1 2.9 0.7 7.6 10.4 9.6 6.2 3.8 1.4 8.1 mA mA UNITS V V 2 _____________________________________________________________________ Low-Power LCD Microcontroller ELECTRICAL CHARACTERISTICS (continued) (VDD = VDD(MIN) to VDD(MAX), VDDIO = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER Input High Voltage: P6.4–P6.5 and P7.0–P7.1 Input High Voltage: All Other Pins Input Low Voltage: HFIN and 32KIN Input Low Voltage: All Other Pins Output High Voltage: P6.4–P6.5 and P7.0–P7.1 Output High Voltage: All Other Pins Output Low Voltage for All Other Pins Output Low Voltage for P6.4–P6.5 and P7.0–P7.1 Input Leakage Current Input Pullup Current LCD INTERFACE LCD Reference Voltage LCD Bias Voltage 1 LCD Bias Voltage 2 LCD Adjustment Voltage LCD Bias Resistor LCD Adjustment Resistor VLCD VLCD1 VLCD2 VADJ RLCD RLADJ LRA4:LRA0 = 0 When segment is driven at VLCD level; VLCD = 3V; ISEGxx = -3µA; guaranteed by design When segment is driven at VLCD1 level; VLCD1 = 2V; ISEGxx = -3µA; guaranteed by design LCD Segment Voltage VSEGxx When segment is driven at VLCD2 level; VLCD2 = 1V; ISEGxx = -3µA; guaranteed by design When segment is driven at VADJ level; VADJ = 0V; ISEGxx = -3µA; guaranteed by design VLCD2 0.02 VLCD2 VLCD 0.02 1/3 bias 1/3 bias Guaranteed by design 2.7 3.3 3.6 V V V V kΩ kΩ VLCD VADJ + 2/3 (VLCD - VADJ) VADJ + 1/3 (VLCD - VADJ) 0.4 x 0 100 200 SYMBOL VIH2 VIH3 VIL1 VIL2 VOH1 VOH2 VOL1 VOL2 IL IIP SVS on; IOH(MAX) = 0.75mA; VLCD = 2.7V IOH(MAX) = 0.75mA; VDDIO =1.8V IOL = 1.0mA; VDDIO = 1.8V IOL = 1.4mA; VDDIO = 2.7V Internal pullup disabled Internal pullup enabled CONDITIONS SVS on, VLCD = 3.3V MIN 0.75 x VDDIO 0.75 x VDDIO 0 0 VLCD 0.2 VDDIO 0.2 GND GND -100 -20 0.2 0.2 +100 -5 TYP MAX VLCD VDDIO 0.2 x VDDIO 0.25 x VDDIO UNITS V V V V V V V V nA µA MAXQ2000 VLCD1 0.02 VLCD1 V -0.1 VADJ _____________________________________________________________________ 3 Low-Power LCD Microcontroller MAXQ2000 ELECTRICAL CHARACTERISTICS (continued) (VDD = VDD(MIN) to VDD(MAX), VDDIO = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER EXTERNAL CLOCK SOURCE External oscillator, VDD ≥ 2.25V External oscillator, VDD < 2.25V External-Clock Frequency fHFIN External crystal, VDD ≥ 2.25V External crystal, VDD < 2.25V Flash programming, VDD ≥ 2.25V Flash programming, VDD < 2.25V External-Clock Period System-Clock Frequency System-Clock Period REAL-TIME CLOCK RTC Input Frequency JTAG/FLASH PROGRAMMING Flash Erase Time Flash Programming Time Write/Erase Cycles Data Retention SPI TIMING SPI Master Operating Frequency SPI Slave Operating Frequency SCLK Output Pulse-Width High/Low SCLK Input Pulse-Width High/Low MOSI Output Hold Time after SCLK Sample Edge MOSI Output Valid to Sample Edge MISO Input Valid to SCLK Sample Edge Rise/Fall Setup MISO Input to SCLK Sample Edge Rise/Fall Hold 1/tMCK 1/tSCK tMCH, tMCL tSCH, tSCL tMOH tMOV CL = 50pF tMCK / 2 - 25 tMCK / 2 - 25 30 tMCK / 2 - 25 tSCK / 2 fCK / 2 fCK / 8 MHz MHz ns ns ns ns Mass erase Page erase 200 20 2.5 10,000 100 5.0 ms ms cycles years f32KIN 32kHz watch crystal 32.768 kHz tCLCL fCK tCK 48% minimum duty cycle 2.25V ≤ VDD ≤ 2.75V 1.8V ≤ VDD ≤ 2.75V 0 0 3 3 2 2 50 0 0 50 20 14 20 14 20 14 20 14 ns MHz ns MHz SYMBOL CONDITIONS MIN TYP MAX UNITS tMIS ns tMIH 0 ns 4 _____________________________________________________________________ Low-Power LCD Microcontroller ELECTRICAL CHARACTERISTICS (continued) (VDD = VDD(MIN) to VDD(MAX), VDDIO = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER SCLK Inactive to MOSI Inactive MOSI Input to SCLK Sample Edge Rise/Fall Setup MOSI Input from SCLK Sample Edge Transition Hold MISO Output Valid after SCLK Shift Edge Transition SSEL Inactive SCLK Inactive to SSEL Rising MISO Output Disabled after CS Edge Rise SYMBOL tMLH CONDITIONS MIN tMCK / 2 - 25 30 TYP MAX UNITS ns MAXQ2000 tSIS ns tSIH tCK + 25 ns tSOV tSSH tSD tSLH tCK + 25 tCK + 25 3tCK + 25 ns ns ns 2tCK + 50 ns Note 1: Specifications to -40°C are guaranteed by design and not production tested. Note 2: Measured on the VDD pin with VDD = 2.75V and not in reset. _____________________________________________________________________ 5 Low-Power LCD Microcontroller MAXQ2000 SPI Master Timing SHIFT SSEL SAMPLE SHIFT SAMPLE SCLK CKPOL/CKPHA 0/1 or 1/0 tMCK SCLK CKPOL/CKPHA 0/0 or 1/1 tMCH tMCL tMOH tMOV MOSI MSB MSB-1 LSB tMLH tMIS MISO MSB MSB-1 tMIH LSB SPI Slave Timing SHIFT tSSE SSEL SAMPLE SHIFT SAMPLE tSSH SCLK CKPOL/CKPHA 0/1 or 1/0 tSCK tSD SCLK CKPOL/CKPHA 0/0 or 1/1 tSCH tSCL tSIS MOSI MSB tSIH MSB-1 LSB tSOV MISO MSB MSB-1 LSB tSLH 6 _____________________________________________________________________ Low-Power LCD Microcontroller MAXQ2000 Typical Operating Characteristics DIGITAL SUPPLY CURRENT vs. CLOCK FREQUENCY 7 6 IDD1 (mA) 5 4 3 2 1 VDD = 2.75V 0 0 5 10 fHFIN (MHz) 15 20 TA = +25°C TA = +85°C TA = -40°C TA = 0°C MAXQ2000 toc01 8 Pin Description PIN TQFN 40 22 23, 35 45 QFN 49 27 28, 42 54 NAME VDD VDDIO GND VLCD Digital Supply Voltage I/O Supply Voltage Ground LCD Bias-Control Voltage. Highest LCD drive voltage used with static bias. Connected to an external source. LCD Bias, Voltage 1. LCD drive voltage used with 1/2 and 1/3 LCD bias. An internal resistordivider sets the voltage. External resistors and capacitors can be used to change the LCD voltage or drive capability at this pin. LCD Bias, Voltage 2. LCD drive voltage used with 1/3 LCD bias. An internal resistor-divider sets the voltage. External resistors and capacitors can be used to change LCD voltage or drive capability at this pin. LCD Adjustment Voltage. Connect to an external resistor to provide external control of the LCD contrast. Leave disconnected for internal contrast adjustment. Digital, Active-Low, Reset Input/Output. The CPU is held in reset when this is low and begins executing from the reset vector when released. The pin includes pullup current source and should be driven by an open-drain, external source capable of sinking in excess of 2mA. This pin is driven low as an output when an internal reset condition occurs. High-Frequency Crystal Input. Connect an external crystal or resonator between HFXIN and HFXOUT as the high-frequency system clock. Alternatively, HFXIN is the input for an external, high-frequency clock source when HFXOUT is floating. High-Frequency Crystal Output/Input. Connect an external crystal or resonator between HFXIN and HFXOUT as the high-frequency system clock. Alternatively, float HFXOUT when an external, high-frequency clock source is connected to the HFXIN pin. FUNCTION 46 55 VLCD1 47 56 VLCD2 48 57 VADJ 28 33 RESET 42 51 HFXIN 41 50 HFXOUT _____________________________________________________________________ 7 Low-Power LCD Microcontroller MAXQ2000 Pin Description (continued) PIN TQFN 29 QFN 34 NAME FUNCTION 32kHz Crystal Input. Connect an external, 32kHz watch crystal between 32KIN and 32KOUT as the low-frequency system clock. Alternatively, 32KIN is the input for an external, 32kHz clock source when 32KOUT is floating. 32kHz Crystal Output/Input. Connect an external, 32kHz watch crystal between 32KIN and 32KOUT as the low-frequency system clock. Alternatively, float 32KOUT when an external, 32kHz clock source is connected to the 32KIN pin. General-Purpose, 8-Bit, Digital, I/O, Type-C Port; LCD Segment-Driver Output. These port pins function as both bidirectional I/O pins and LCD segment-drive outputs. All port pins are defaulted as input with weak pullup after a reset. Enabling a pin’s LCD function disables the generalpurpose I/O on the pin. Setting the PCF1 bit enables the LCD for all pins on this port and disables the general-purpose I/O function on all pins. 56-PIN 68-PIN PORT ALTERNATE FUNCTION 1–8 66, 67, 68; 1–5 P1.0–P1.7; SEG8– SEG15 1 2 3 4 5 6 7 8 66 67 68 1 2 3 4 5 P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 32KIN 30 35 32KOUT General-Purpose, 8-Bit, Digital, I/O, Type-C Port; LCD Segment-Driver Output. These port pins function as both bidirectional I/O pins and LCD segment-drive outputs. All port pins are defaulted as input with weak pullup after a reset. Enabling a pin’s LCD function disables the generalpurpose I/O on the pin. Setting the PCF2 bit enables the LCD for all pins on this port and disables the general-purpose I/O function on all pins. ALTERNATE FUNCTIONS 56-PIN 68-PIN PORT 56-PIN 68-PIN 9–12 6–13 P2.0–P2.7; SEG16– SEG23 — — — — 9 10 11 12 6 7 8 9 10 11 12 13 P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 — — — — SEG16 SEG17 SEG18 SEG19 SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 8 _____________________________________________________________________ Low-Power LCD Microcontroller Pin Description (continued) PIN TQFN QFN NAME FUNCTION General-Purpose, Digital, I/O, Type-D Port; LCD Segment-Driver Output; External EdgeSelectable Interrupt. This port functions as both bidirectional I/O pins and LCD segment-drive outputs. All port pins are defaulted as inputs with weak pullups after a reset. The port pads can be configured as an external interrupt for pins 7 to 4. If the external interrupt is enabled, the LCD function on the associated pin is disabled. Setting the PCF3 bit enables the LCD for all pins on this port and disables the general-purpose I/O function on all pins. It is possible to mix the LCD and interrupt functions on the same port. To do this, the interrupt enable must be established prior to setting the PCF0 bit. Care must be taken not to enable the external interrupt while the LCD is in normal operational mode, as this could result in potentially harmful contention between the LCD controller output and the external source connected to the P3.0–P3.7; interrupt input. SEGx; ALTERNATE FUNCTIONS INT4–INT7 56-PIN 68-PIN PORT 56-PIN 68-PIN — — — — 13 14 15 16 14 15 16 17 18 19 20 21 P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 — — — — SEG20/INT4 SEG21/INT5 SEG22/INT6 SEG23/INT7 SEG24 SEG25 SEG26 SEG27 SEG28/INT4 SEG29/INT5 SEG30/INT6 SEG31/INT7 MAXQ2000 13–16 14–21 LCD Segment-Driver Output; LCD Common-Drive Output. The selection of a pin function as either segment or its alternative common-mode signal is controlled by the choice of duty cycle (DUTY1:0). 56-PIN 17–21 22–26 SEGx; COM3– COM0 17 18 19 20 21 68-PIN 22 23 24 25 26 FUNCTION 56-PIN SEG24 SEG25 SEG26 SEG27 — 68-PIN SEG32 SEG33 SEG34 SEG35 COM0 ALTERNATE FUNCTIONS — COM3 COM2 COM1 — General-Purpose, Digital, I/O, Type-D Port; Debug Port Signal; External Edge-Selectable Interrupt. Pins default to JTAG on POR; other functions must be enabled from software. 24–27 29–32 P4.0–P4.3; TCK/TDI/ TMS/TDO; INT8, INT9 56-PIN 24 25 26 27 68-PIN 29 30 31 32 PORT P4.0 P4.1 P4.2 P4.3 ALTERNATE FUNCTIONS TCK TDI TMS TDO INT8 INT9 — — _____________________________________________________________________ 9 Low-Power LCD Microcontroller MAXQ2000 Pin Description (continued) PIN TQFN — — 31 QFN 36 37 38 NAME P5.2/RX1/ INT10 P5.3/TX1/ INT11 P5.4/SS P5.5; MOSI P5.6; SCLK FUNCTION General-Purpose, Digital, I/O, Type-D Port; Serial Port 1 Receive; External Edge-Selectable Interrupt 10 General-Purpose, Digital, I/O, Type-D Port; Serial Port 1 Transmit; External Edge-Selectable Interrupt 11 General-Purpose, Digital, I/O, Type-C Port; Active-Low, SPI, Slave-Select Input. Becomes the slave-select input in SPI mode. General-Purpose, Digital, I/O, Type-C Port; SPI, Master-Out Slave-In Output. Data is clocked out of the microcontroller on SCLK’s falling edge and into the slave device on SCLK’s rising edge. Becomes MISO input in SPI mode. General-Purpose, Digital, I/O, Type-C Port; SPI, Clock Output. Becomes SCLK input in SPI mode but limited to SYSCLK / 8. 32 39 33 40 34 41 General-Purpose, Digital, I/O, Type-C Port; SPI, Master-In Slave-Out Input. Data is clocked out P5.7/MISO of the slave on SCLK’s falling edge and into the microcontroller on SCLK’s rising edge. Becomes MOSI output in slave mode. P6.0/T1B/ INT12 P6.1/T1/ INT13 P6.2/T2B/ OW_OUT P6.3/T2/ OW_IN P6.4/T0B/ WKOUT0 P6.5/T0/ WKOUT1 P7.0/TX0/ INT14 P7.1/RX0/ INT15 General-Purpose, Digital, I/O, Type-D Port; Timer 1 Alternative Output (PWM); External EdgeSelectable Interrupt 12 General-Purpose, Digital, I/O Type-D Port; Timer 1 Output (PWM); External Edge-Selectable Interrupt 13 General-Purpose, Digital, I/O, Type-D Port; Timer 2 Alternative Output (PWM); 1-Wire Data Output General-Purpose, Digital, I/O, Type-D Port; Timer 2 Output (PWM); 1-Wire Data Input General-Purpose, Digital, I/O, Type-C Port; Timer 0 Alternative Output (PWM); Wakeup Output 0 General-Purpose, Digital, I/O, Type-C Port; Timer 0 Output (PWM); Wakeup Output 1 General-Purpose, Digital, I/O, Type-D Port; Serial Port 0 Transmit; External, Edge-Selectable Interrupt 14 General-Purpose, Digital, I/O, Type-D Port; Serial Port 0 Receive; External Edge-Selectable Interrupt 15 36 37 — — 38 39 43 44 43 44 45 46 47 48 52 53 10 ____________________________________________________________________ Low-Power LCD Microcontroller Pin Description (continued) PIN TQFN QFN NAME FUNCTION General-Purpose, Digital, I/O, Type-D Port; LCD Segment-Driver Output; External EdgeSelectable Interrupt. This port functions as both bidirectional I/O pins and LCD segment-drive outputs. All port pins are defaulted as input with weak pullup after a reset. The port pads can be configured as an external interrupt for pins 7 to 4. If the external interrupt is enabled, the LCD function on the associated pin is disabled. Setting the PCF0 bit enables the LCD for all pins on this port and disables the general-purpose I/O function on all pins. It is possible to mix the LCD and interrupt functions on the same port. To do this, the interrupt enable must be established prior to setting the PCF0 bit. Care must be taken not to enable the external interrupt while the LCD is in normal operational mode, as this could result in potentially P0.0–P0.7; harmful contention between the LCD controller output and the external source connected to the SEG0– interrupt input. SEG7; 56-PIN 68-PIN PORT ALTERNATE FUNCTIONS INT0–INT3 49 58 P0.0 SEG0 — 50 51 52 53 54 55 56 — — EP 59 60 61 62 63 64 65 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 — — — INT0 INT1 INT2 INT3 MAXQ2000 49–56 58–65 Exposed Paddle. Exposed paddle is on the under side of the package. It should be left unconnected. ____________________________________________________________________ 11 Low-Power LCD Microcontroller MAXQ2000 Block Diagram VLCD SS SCLK 3/4-WIRE (SPI) INTERFACE MOSI MISO WKUP WK_OUT VDDIO P5.4/SS P5.5/MOSI P5.6/SCLK P5.7/MISO 3WINT MAXQ2000 1WINT INTERRUPT CONTROLLER T0INT T0CLK T1INT WDCLK WATCHDOG TIMER SYS_AL DAY_AL WDINT T1CLK T2INT T2CLK IOINT U1INT TIMER0 TIMER1 TIMER2 WKOUT_EN 1-WIRE INTERFACE OWOUT OWIN T0 T0B T1 T1B T2 T2B PAD DRIVERS P6.4/T0/WKOUT P6.5/T0B/WKOUT P6.1/T1/INT13 P6.0/T1B/INT12 P6.3/T2/OWIN P6.2/T2B/OWOUT TXD0 SERIAL UART1 SERIAL UART2 REGISTER FILE DPTR0 DPTR1 DPTR2 RXD0 TXD1 RXD1 P7.0/TX0/INT14 P7.1/RX0/INT15 P5.3/TX1/INT11 P5.2/RX1/INT10 SEG[28:31]/P3[4:7]/INT[4:7] U2INT VDD SEG[0]:SEG32 SEG[24:27]/P3[0:3] SEG[16:23]/P2[0:7] SEG[8:15]/P1[0:7] SEG[0:3]/P0[0:3] P4.0/TCK/INT8 P4.1/TDI/INT9 P4.2/TMS P4.3/TDO EMULATION/ DOWNLOAD 16-BIT RISC CPU 32k x 16 (64kByte) FLASH ROM OR MASK ROM 2k x 8 RAM 16 x 16 HW MULTIPLY 17 x 8 LCD DISPLAY RAM LCD CONTROLLER/ DRIVER SEG[4:7]/P0[4:7]/INT[0:3] VDDIO LCD BIAS CONTROL VLCD GND RESET GND HFXIN HFXOUT 32KIN 32KOUT 32k OSC 32KCLK HF OSC HFCLK SCLKDIV 2:1 MUX SYSCLK WDDIV WDCLK TCLKDIV 3 2:1 MUXES T0CLK T1CLK T2CLK RTC AND ALARMS VLCD1 SYS_AL DAY_AL VLCD2 32KHz HF OSC / 128 LCD CLK SELECT VADJ GNDIO SEG[32]/INT16 COM[0] COM[3:1]/SEG[33:35] 12 ____________________________________________________________________ Low-Power LCD Microcontroller Detailed Description The following is an introduction to the primary features of the microcontroller. More detailed descriptions of the device features can be found in the data sheets, errata sheets, and user’s guides described later in the Additional Documentation section. format field, this can either be an immediate value or a source register. If this field represents a register, the lower four bits contain the module specifier and the upper four bits contain the register index in that module. Bits 8 to 14 represent the destination for the transfer. This value always represents a destination register, with the lower four bits containing the module specifier and the upper three bits containing the register subindex within that module. Any time that it is necessary to directly select one of the upper 24 registers as a destination, the prefix register, PFX, is needed to supply the extra destination bits. This prefix register write is inserted automatically by the assembler and requires only one additional execution cycle. MAXQ2000 MAXQ Core Architecture The MAXQ2000 is a low-cost, high-performance, CMOS, fully static, 16-bit RISC microcontroller with flash memory and an integrated 100- or 132-segment LCD controller. It is structured on a highly advanced, accumulator-based, 16-bit RISC architecture. Fetch and execution operations are completed in one cycle without pipelining, because the instruction contains both the op code and data. The result is a streamlined 20 million instructions-per-second (MIPS) microcontroller. The highly efficient core is supported by a 16-level hardware stack, enabling fast subroutine calling and task switching. Data can be quickly and efficiently manipulated with three internal data pointers. Multiple data pointers allow more than one function to access data memory without having to save and restore data pointers each time. The data pointers can automatically increment or decrement following an operation, eliminating the need for software intervention. As a result, application speed is greatly increased. Memory Organization The device incorporates several memory areas: • 4kWords utility ROM, • 32kWords of flash memory for program storage, • 1kWord of SRAM for storage of temporary variables, and • 16-level stack memory for storage of program return addresses and general-purpose use. The memory is arranged by default in a Harvard architecture, with separate address spaces for program and data memory. A special mode allows data memory to be mapped into program space, permitting code execution from data memory. In addition, another mode allows program memory to be mapped into data space, permitting code constants to be accessed as data memory. The incorporation of flash memory allows the devices to be reprogrammed, eliminating the expense of throwing away one-time programmable devices during development and field upgrades. Flash memory can be password protected with a 16-word key, denying access to program memory by unauthorized individuals. A pseudo-Von Neumann memory map can also be enabled. This places the utility ROM, code, and data memory into a single contiguous memory map. This is useful for applications that require dynamic program modification or unique memory configurations. Instruction Set The instruction set is composed of fixed-length, 16-bit instructions that operate on registers and memory locations. The instruction set is highly orthogonal, allowing arithmetic and logical operations to use any register along with the accumulator. Special-function registers control the peripherals and are subdivided into register modules. The family architecture is modular, so that new devices and modules can reuse code developed for existing products. The architecture is transport-triggered. This means that writes or reads from certain register locations can also cause side effects to occur. These side effects form the basis for the higher-level op codes defined by the assembler, such as ADDC, OR, JUMP, etc. The op codes are actually implemented as MOVE instructions between certain register locations, while the assembler handles the encoding, which need not be a concern to the programmer. The 16-bit instruction word is designed for efficient execution. Bit 15 indicates the format for the source field of the instruction. Bits 0 to 7 of the instruction represent the source for the transfer. Depending on the value of the Stack Memory A 16-bit-wide internal stack provides storage for program return addresses and general-purpose use. The stack is used automatically by the processor when the CALL, RET, and RETI instructions are executed and interrupts serviced. The stack can also be used explicitly to store and retrieve data by using the PUSH, POP, and POPI instructions. ____________________________________________________________________ 13 Low-Power LCD Microcontroller MAXQ2000 PROGRAM MEMORY FFFFh FFFFh DATA MEMORY 0Fh 16 x 16 STACK 00h 8FFFh 4k x 16 UTILITY ROM FFh 7FFFh REGISTERS 1Fh 0Fh SPRs 32k x 16 FLASH MEMORY 07h 06h SFRs 03FFh 1k x 16 SRAM 00h 0000h 0000h Figure 1. Memory Map 14 ____________________________________________________________________ Low-Power LCD Microcontroller On reset, the stack pointer, SP, initializes to the top of the stack (0Fh). The CALL, PUSH, and interrupt-vectoring operations increment SP, then store a value at the location pointed to by SP. The RET, RETI, POP, and POPI operations retrieve the value @SP and then decrement SP. Utility ROM The utility ROM is a 4kWord block of internal ROM memory that defaults to a starting address of 8000h. The utility ROM consists of subroutines that can be called from application software. These include: • In-system programming (bootstrap loader) over JTAG or UART interfaces • In-circuit debug routines • Test routines (internal memory tests, memory loader, etc.) • User-callable routines for in-application flash programming and fast table lookup Following any reset, execution begins in the utility ROM. The ROM software determines whether the program execution should immediately jump to location 0000h, the start of user-application code, or to one of the special routines mentioned. Routines within the utility ROM are user-accessible and can be called as subroutines by the application software. More information on the utility ROM contents is contained in the MAXQ Family User’s Guide: MAXQ2000 Supplement. Some applications require protection against unauthorized viewing of program code memory. For these applications, access to in-system programming, inapplication programming, or in-circuit debugging functions is prohibited until a password has been supplied. The password is defined as the 16 words of physical program memory at addresses x0010h to x001Fh. A single password lock (PWL) bit is implemented in the SC register. When the PWL is set to one (power-on reset default), the password is required to access the utility ROM, including in-circuit debug and in-system programming routines that allow reading or writing of internal memory. When PWL is cleared to zero, these utilities are fully accessible without password. The password is automatically set to all ones following a mass erase. methods afford great flexibility in system design as well as reduce the life-cycle cost of the embedded system. These features can be password protected to prevent unauthorized access to code memory. In-System Programming An internal bootstrap loader allows the device to be reloaded over a simple JTAG interface. As a result, software can be upgraded in-system, eliminating the need for a costly hardware retrofit when updates are required. Remote software uploads are possible that enable physically inaccessible applications to be frequently updated. The interface hardware can be a JTAG connection to another microcontroller, or a connection to a PC serial port using a serial-to-JTAG converter such as the MAXQJTAG-001, available from Maxim Integrated Products. If in-system programmability is not required, a commercial gang programmer can be used for mass programming. Activating the JTAG interface and loading the test access port (TAP) with the system programming instruction invokes the bootstrap loader. Setting the SPE bit to 1 during reset through the JTAG interface executes the bootstrap-loader-mode program that resides in the utility ROM. When programming is complete, the bootstrap loader can clear the SPE bit and reset the device, allowing the device to bypass the utility ROM and begin execution of the application software. The following bootstrap loader functions are supported: • Load • Dump • CRC • Verify • Erase Optionally, the bootstrap loader can be invoked by the application code. In this mode, the application software would configure the SPE and PSS bits for UART communication, then jump to the start of the utility ROM. In this way, the bootstrap loader can be accessed through another UART-enabled peripheral, or a PC serial port through an RS-232 transceiver such as the MAX232. Because the bootstrap loader defaults to the JTAG configuration on reset, the UART versus JTAG selection must be made from the application code. As a result, bootstrap loader access through the UART is not possible in an unprogrammed device. MAXQ2000 Programming The flash memory of the microcontroller can be programmed by two different methods: in-system programming and in-application programming. Both ____________________________________________________________________ 15 Low-Power LCD Microcontroller In-Application Programming The in-application programming feature allows the microcontroller to modify its own flash program memory while simultaneously executing its application software. This allows on-the-fly software updates in missioncritical applications that cannot afford downtime. Alternatively, it allows the application to develop custom loader software that can operate under the control of the application software. The utility ROM contains user-accessible flash programming functions that erase and program flash memory. These functions are described in detail in the user’s guide supplement for this device. MAXQ2000 Register Set Most functions of the device are controlled by sets of registers. These registers provide a working space for memory operations as well as configuring and addressing peripheral registers on the device. Registers are divided into two major types: system registers and peripheral registers. The common register set, also known as the system registers, includes the ALU, accumulator registers, data pointers, interrupt vectors and control, and stack pointer. The peripheral registers define additional functionality that may be included by different products based on the MAXQ architecture. This functionality is broken up into discrete modules so that only the features required for a given product need to be included. Tables 1 and 4 show the MAXQ2000 register set. Table 1. System Register Map REGISTER INDEX 0xh 1xh 2xh 3xh 4xh 5xh 6xh 7xh 8xh 9xh Axh Bxh Cxh Dxh Exh Fxh MODULE NAME (BASE SPECIFIER) AP (8h) AP APC — — PSF IC IMR — SC — — IIR — — CKCN WDCN A (9h) A[0] A[1] A[2] A[3] A[4] A[5] A[6] A[7] A[8] A[9] A[10] A[11] A[12] A[13] A[14] A[15] PFX (Bh) PFX — — — — — — — — — — — — — — — IP (Ch) IP — — — — — — — — — — — — — — — SP (Dh) — SP IV — — — LC0 LC1 — — — — — — — — DPC (Eh) — — — Offs DPC GR GRL BP GRS GRH GRXL FP — — — — DP (Fh) — — — DP0 — — — DP1 — — — — — — — — Note: Names that appear in italics indicate that all bits of a register are read-only. Names that appear in bold indicate that a register is 16 bits wide. Registers in module AP are bit addressable. 16 ____________________________________________________________________ Table 2. System Register Bit Functions REGISTER BIT 13 — CLR Z — IMS TAP IIS — POR A[n] (16 bits) PFX (16 bits) IP (16 bits) — IV (16 bits) LC[0] (16 bits) LC[1] (16 bits) Offs (8 bits) — GR.13 GR.7 BP (16 bits) GR.5 GR.15 GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 FP (16 bits) DP[0] (16 bits) DP[1] (16 bits) GR.4 GR.3 GR.2 GR.1 GR.0 GR.15 GR.14 GR.14 GR.6 GR.13 GR.13 GR.5 GR.12 GR.12 GR.4 GR.11 GR.11 GR.3 GR.10 GR.10 GR.2 GR.9 GR.9 GR.1 GR.8 GR.8 GR.0 GR.6 GR.12 GR.11 GR.10 GR.9 GR.8 GR.7 GR.6 — — — — — — — — GR.5 GR.5 WBS2 GR.4 GR.4 WBS1 GR.3 GR.3 WBS0 GR.2 GR.2 SDPS1 GR.1 GR.1 SDPS0 GR.0 GR.0 — — — — — — — — — SP (4 bits) EWDI WD1 WD0 WDIF WTRF RGSL RGMD STOP SWB PMME CD1 EWT — — II4 II3 II2 II1 — — CDA0 — ROD PWL — — IM4 IM3 IM2 IM1 IM0 — II0 CD0 RWT — CGDS — — — INS IGE S — GPF1 GPF0 OV C E IDS — — — MOD2 MOD1 MOD0 — — — AP (4 bits) 12 11 10 9 8 7 6 5 4 3 2 1 0 REGISTER 15 14 AP APC PSF IC IMR SC IIR CKCN WDCN A[n] (0..15) PFX IP SP — — IV LC[0] LC[1] Offs DPC — — GR GR.15 GR.14 GRL BP GRS GR.7 GR.6 GRH GRXL GR.7 GR.7 FP DP[0] MAXQ2000 ____________________________________________________________________ DP[1] Low-Power LCD Microcontroller 17 Low-Power LCD Microcontroller MAXQ2000 Table 3. System Register Bit Reset Values REGISTER AP APC PSF IC IMR SC IIR CKCN WDCN A[n] (0..15) PFX IP SP IV LC[0] LC[1] Offs DPC GR GRL BP GRS GRH GRXL FP DP0 DP1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 REGISTER BIT 15 14 13 12 11 10 9 8 7 0 0 1 0 0 0 0 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 s s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 s 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 18 ____________________________________________________________________ Low-Power LCD Microcontroller Table 4. Peripheral Register Map REGISTER INDEX 0xh 1xh 2xh 3xh 4xh 5xh 6xh 7xh 8xh 9xh Axh Bxh Cxh Dxh Exh Fxh 10xh 11xh 12xh 13xh 14xh 15xh 16xh 17xh 18xh 19xh 1Axh 1Bxh 1Cxh 1Dxh 1Exh 1Fxh MODULE NAME (BASE SPECIFIER) M0 (x0h) PO0 PO1 PO2 PO3 — — EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 — — — PD0 PD1 PD2 PD3 — — — — — RCNT RTSS RTSH RTSL RSSA RASH RASL M1 (x1h) PO4 PO5 PO6 PO7 — — EIF1 EIE1 PI4 PI5 PI6 PI7 EIES1 — — — PD4 PD5 PD6 PD7 — — — — — — — — — — SVS WKO M2 (x2h) MCNT MA MB MC2 MC1 MC0 SCON0 SBUF0 SMD0 PR0 — MC1R MC0R LCRA LCFG LCD16 LCD0 LCD1 LCD2 LCD3 LCD4 LCD5 LCD6 LCD7 LCD8 LCD9 LCD10 LCD11 LCD12 LCD13 LCD14 LCD15 M3 (x3h) T2CNA0 T2H0 T2RH0 T2CH0 — SPIB SCON1 SBUF1 SMD1 PR1 — — T2CNB0 T2V0 T2R0 T2C0 T2CFG0 — — OWA OWD SPICN SPICF SPICK ICDT0 ICDT1 ICDC ICDF ICDB ICDA ICDD TM M4 (x4h) T2CNA1 T2H1 T2RH1 T2CH1 T2CNA2 T2H2 T2RH2 T2CH2 T2CNB1 T2V1 T2R1 T2C1 T2CNB2 T2V2 T2R2 T2C2 T2CFG1 T2CFG2 — — — — — — — — — — — — — — M5 (x5h) — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — MAXQ2000 19 Note: Names that appear in italics indicate that all bits of a register are read-only. Names that appear in bold indicate that a register is 16 bits wide. ____________________________________________________________________ MAXQ2000 REGISTER BIT 13 PO0 (8 bits) PO1 (8 bits) PO2 (8 bits) PO3 (8 bits) IE7 EX7 PI0 (8 bits) PI1 (8 bits) PI2 (8 bits) PI3 (8 bits) IT7 PD0 (8 bits) PD1 (8 bits) PD2 (8 bits) PD3 (8 bits) ACS RTSH (16 bits) RTSL (16 bits) RSSA (8 bits) RASH (8 bits) RASL (16 bits) — — — PO5 (8 bits) PO6 (8 bits) — IE15 EX15 — — IE14 EX14 — — IE13 EX13 — PI5 (8 bits) PI6 (8 bits) — IT15 — — IT14 — — IT13 — PD5 (8 bits) PD6 (8 bits) — IT12 — IT11 — IT10 PD4 (5 bits) PI7 (2 bits) IT9 IT8 — IE12 EX12 — IE11 EX11 — IE10 EX10 PI4 (5 bits) PO7 (2 bits) IE9 EX9 IE8 EX8 PO4 (5 bits) — — — — — ALSF ALDF RDYE RDY BUSY RTSS (8 bits) ASE ADE RTCE IT6 IT5 IT4 IT3 IT2 IT1 IT0 EX6 EX5 EX4 EX3 EX2 EX1 IE6 IE5 IE4 IE3 IE2 IE1 IE0 EX0 12 11 10 9 8 7 6 5 4 3 2 1 0 Low-Power LCD Microcontroller 20 Table 5. Peripheral Register Bit Functions REGISTER 15 14 PO0 PO1 PO2 PO3 EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 PD0 PD1 PD2 PD3 RCNT WE X32D RTSS RTSH RTSL RSSA RASH RASL PO4 ____________________________________________________________________ PO5 PO6 PO7 EIF1 EIE1 PI4 PI5 PI6 PI7 EIES1 PD4 PD5 PD6 Table 5. Peripheral Register Bit Functions (continued) REGISTER BIT 13 — SV67 — OF MA (16 bits) MB (16 bits) MC2 (16 bits) MC1 (16 bits) MC0 (16 bits) SM0/FE SBUF0 (8 bits) — PR0 (16 bits) MC1R (16 bits) MC0R (16 bits) — PCF3 ET2 T2OE0 T2POL0 PCF2 PCF1 DUTY1 DUTY0 FRM3 FRM2 FRM1 FRM0 LCCS LRIG LRA4 PCF0 TR2L LRA3 — LCD[0..15] (8 bits) TR2 CPRL2 SS2 T2V0.9 T2R0.9 T2C0.9 SM1 — PR1 (16 bits) ET2L T2V0.8 T2R0.8 T2V0.7 T2R0.7 T2C0.7 T2CI — STBY T2R0.9 T2OE1 T2V0.6 T2R0.6 T2C0.6 DIV2 — SPIC T2POL1 T2V0.5 T2R0.5 T2C0.5 DIV1 — ROVR TR2L T2V0.4 T2R0.4 T2C0.4 DIV0 — WCOL TF2 T2V0.3 T2R0.3 T2C0.3 T2MD — OWD (8 bits) MODF MODFE MSTM SPIEN TF2L T2V0.2 T2R0.2 T2C0.2 CCF1 A2 TCC2 T2V0.1 T2R0.1 T2C0.1 CCF0 A1 TC2L T2V0.0 T2R0.0 T2C0.0 C/T2 A0 — SM2 — REN — TB8 SBUF1 (8 bits) — ESI1 SMOD1 FEDE1 RB8 TI G2EN T2V0.8 T2R0.8 T2C0.8 RI T2V0.15 T2V0.14 T2V0.13 T2V0.12 T2V0.11 T2V0.10 T2R0.15 T2R0.14 T2R0.13 T2R0.12 T2R0.11 T2R0.10 T2C0.15 T2C0.14 T2C0.13 T2C0.12 T2C0.11 T2C0.10 SPIB (16 bits) SM0/FE LRA2 — LRA1 OPM LRA0 DPE — — — — ESI0 SMOD0 FEDE0 SM1 SM2 REN TB8 RB8 TI RI MCW CLD SQU OPCS MSUB MMAC SUS — — — — WKL WKE1 WKE0 SV66 SV65 SV64 — — SV71 SV70 — — — — — PD7 (2 bits) 12 11 10 9 8 7 6 5 4 3 2 1 0 REGISTER 15 14 PD7 SVS WKO MCNT MA MB MC2 MC1 MC0 SCON0 SBUF0 SMD0 PR0 MC1R MC0R LCRA — — LCFG LCD[0..15] T2CNA0 T2H0 T2RH0 T2CH0 SPIB SCON1 SBUF1 SMD1 PR1 T2CNB0 T2V0 T2V0.15 T2V0.14 T2V0.13 T2V0.12 T2V0.11 T2V0.10 T2V0.9 T2R0 T2R0.15 T2R0.14 T2R0.13 T2R0.12 T2R0.11 T2R0.10 T2C0 T2C0.15 T2C0.14 T2C0.13 T2C0.12 T2C0.11 T2C0.10 T2C0.9 T2C0.8 T2CFG0 OWA OWD MAXQ2000 ____________________________________________________________________ SPICN Low-Power LCD Microcontroller 21 MAXQ2000 REGISTER BIT 13 ESPI1 CKR7 DME — ICDB (8 bits) ICDA (16 bits) ICDD (16 bits) ET2 T2V1.15 T2V1.14 T2V1.13 T2V1.12 T2V1.11 T2V1.10 T2R1.15 T2R1.14 T2R1.13 T2R1.12 T2R1.11 T2R1.10 T2C1.15 T2C1.14 T2C1.13 T2C1.12 T2C1.11 T2C1.10 ET2 T2OE0 T2POL0 TR2L TR2 CPRL2 T2V2.15 T2V2.14 T2V2.13 T2V2.12 T2V2.11 T2V2.10 T2R2.15 T2R2.14 T2R2.13 T2R2.12 T2R2.11 T2R2.10 T2C2.15 T2C2.14 T2C2.13 T2C2.12 T2C2.11 T2C2.10 ET2L T2V1.8 T2R1.8 T2C1.7 ET2L T2V2.8 T2R2.8 T2C2.7 T2CI T2CI T2R2.7 T2V2.7 T2V2.6 T2R2.6 T2C2.6 DIV2 DIV2 T2R2.9 T2OE1 T2C1.6 T2R1.7 T2R1.6 T2R1.5 T2C1.5 T2POL1 T2V2.5 T2R2.5 T2C2.5 DIV1 DIV1 T2V1.7 T2V1.6 T2V1.5 T2R1.9 T2OE1 T2POL1 TR2L T2V1.4 T2R1.4 T2C1.4 TR2L T2V2.4 T2R2.4 T2C2.4 DIV0 DIV0 TF2 T2V1.3 T2R1.3 T2C1.3 TF2 T2V2.3 T2R2.3 T2C2.3 T2MD T2MD TF2L T2V1.2 T2R1.2 T2C1.2 TF2L T2V2.2 T2R2.2 T2C2.2 CCF1 CCF1 T2OE0 T2POL0 TR2L TR2 CPRL2 SS2 T2V1.9 T2R1.9 T2C1.9 SS2 T2V2.9 T2R2.9 T2C2.9 TCC2 T2V1.1 T2R1.1 T2C1.1 TCC2 T2V2.1 T2R2.1 T2C2.1 CCF0 CCF0 G2EN T2V1.8 T2R1.8 T2C1.8 G2EN T2V2.8 T2R2.8 T2C2.8 TC2L T2V1.0 T2R1.0 T2C1.0 TC2L T2V2.0 T2R2.0 T2C2.0 C/T2 C/T2 — — — PSS1 PSS0 SPE TXC — REGE — CMD3 CMD2 CMD1 CMD0 CKR6 CKR5 CKR4 CKR3 CKR2 CKR1 CKR0 — — — — CHR CKPHA CKPOL 12 11 10 9 8 7 6 5 4 3 2 1 0 Low-Power LCD Microcontroller 22 Table 5. Peripheral Register Bit Functions (continued) REGISTER 15 14 SPICF SPICK ICDC ICDF ICDB ICDA ICDD T2CNA1 T2H1 T2RH1 T2CH1 T2CNA2 T2H2 T2RH2 T2CH2 T2CNB1 T2V1 T2V1.15 T2V1.14 T2V1.13 T2V1.12 T2V1.11 T2V1.10 T2V1.9 T2R1 T2R1.15 T2R1.14 T2R1.13 T2R1.12 T2R1.11 T2R1.10 T2C1 T2C1.15 T2C1.14 T2C1.13 T2C1.12 T2C1.11 T2C1.10 T2C1.9 T2C1.8 T2CNB2 T2V2 T2V2.15 T2V2.14 T2V2.13 T2V2.12 T2V2.11 T2V2.10 T2V2.9 T2R2 T2R2.15 T2R2.14 T2R2.13 T2R2.12 T2R2.11 T2R2.10 T2C2 T2C2.15 T2C2.14 T2C2.13 T2C2.12 T2C2.11 T2C2.10 T2C2.9 T2C2.8 ____________________________________________________________________ T2CFG1 T2CFG2 Low-Power LCD Microcontroller Table 6. Peripheral Register Reset Values REGISTER PO0 PO1 PO2 PO3 EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 PD0 PD1 PD2 PD3 RCNT RTSS RTSH RTSL RSSA RASH RASL PO4 PO5 PO6 PO7 EIF1 EIE1 PI4 PI5 PI6 PI7 EIES1 PD4 PD5 PD6 PD7 SVS WKO 0 0 0 0 0 0 0 0 s s s s s s s s s s s s s s s s 0 s s 0 0 0 0 0 REGISTER BIT 15 14 13 12 11 10 9 8 7 1 1 1 1 0 0 s s s s 0 0 0 0 0 s s s s 0 0 0 0 1 1 0 0 0 0 s s 0 0 0 0 0 0 0 0 6 1 1 1 1 0 0 s s s s 0 0 0 0 0 s s s s 0 0 0 0 1 1 0 0 0 0 s s 0 0 0 0 0 0 0 0 5 1 1 1 1 0 0 s s s s 0 0 0 0 0 0 s s s 0 0 0 0 1 1 0 0 0 0 s s 0 0 0 0 0 0 0 0 4 1 1 1 1 0 0 s s s s 0 0 0 0 0 0 s s s 0 0 0 1 1 1 0 0 0 s s s 0 0 0 0 0 0 0 0 3 1 1 1 1 0 0 s s s s 0 0 0 0 0 1 s s s 0 0 0 1 1 1 0 0 0 s s s 0 0 0 0 0 0 0 0 2 1 1 1 1 0 0 s s s s 0 0 0 0 0 s s s s 0 0 0 1 1 1 0 0 0 s s s 0 0 0 0 0 0 0 0 1 1 1 1 1 0 0 s s s s 0 0 0 0 0 s s s s 0 0 0 1 1 1 1 0 0 s s s s 0 0 0 0 0 0 0 0 1 1 1 1 0 0 s s s s 0 0 0 0 0 s s s s 0 0 0 1 1 1 1 0 0 s s s s 0 0 0 0 0 0 0 MAXQ2000 23 ____________________________________________________________________ Low-Power LCD Microcontroller MAXQ2000 Table 6. Peripheral Register Reset Values (continued) REGISTER MCNT MA MB MC2 MC1 MC0 SCON0 SBUF0 SMD0 PR0 MC1R MC0R LCRA LCFG LCD[0..15] T2CNA0 T2H0 T2RH0 T2CH0 SPIB SCON1 SBUF1 SMD1 PR1 T2CNB0 T2V0 T2R0 T2C0 T2CFG0 OWA OWD SPICN SPICF SPICK ICDC ICDF ICDB ICDA ICDD T2CNA1 s s s s s s s s s s s s s s s s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 REGISTER BIT 15 14 13 12 11 10 9 8 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s 0 24 ____________________________________________________________________ Low-Power LCD Microcontroller Table 6. Peripheral Register Reset Values (continued) REGISTER T2H1 T2RH1 T2CH1 T2CNA2 T2H2 T2RH2 T2CH2 T2CNB1 T2V1 T2R1 T2C1 T2CNB2 T2V2 T2R2 T2C2 T2CFG1 T2CFG2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 REGISTER BIT 15 14 13 12 11 10 9 8 7 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 MAXQ2000 ____________________________________________________________________ 25 Low-Power LCD Microcontroller MAXQ2000 System Timing For maximum versatility, the MAXQ2000 generates its internal system clock from one of five possible sources: • Internal ring oscillator • External high-frequency crystal or ceramic resonator, using an internal oscillator • External high-frequency clock source • External 32kHz crystal or ceramic resonator, using an internal oscillator • External 32kHz clock source A crystal warmup counter enhances operational reliability. Each time the external crystal oscillation must restart, such as after exiting Stop mode, the device initiates a crystal warmup period of 65,536 oscillations. This allows time for the crystal amplitude and frequency to stabilize before using it as a clock source. While in the warmup mode, the device can begin operation from the internal ring oscillator and automatically switch back to the crystal as soon as it is ready. POWER-ON RESET STOP RWT RESET XDOG STARTUP TIMER CLK INPUT CRYSTAL KLL HF CRYSTAL XDOG COUNT RESET DOG WATCHDOG TIMER XDOG DONE RESET WATCHDOG RESET WATCHDOG INTERRUPT MAXQ2000 STOP GLITCH-FREE MUX POWER-ON RESET GLITCH-FREE MUX CLOCK DIVIDER ENABLE CLOCK GENERATION SYSTEM CLOCK RING ENABLE DIV 1 DIV 2 DIV 4 DIV 8 32kHz PWM 32kHz CRYSTAL WAKE-UP ALARM TIMERS SELECTOR DEFAULT RING SELECT SWB INTERRUPT/SERIAL PORT RESET STOP INPUT CRYSTAL MONITOR ENABLE RGMD POWER-ON RESET XDOG DONE RGSL Figure 2. Clock Sources 26 ____________________________________________________________________ Low-Power LCD Microcontroller Power Management Advanced power-management features minimize power consumption by dynamically matching the processing speed of the device to the required performance level. This means device operation can be slowed and power consumption minimized during periods of reduced activity. When more processing power is required, the microcontroller can increase its operating frequency. Software-selectable clock-divide operations allow flexibility, selecting whether a system clock cycle is 1, 2, 4, or 8 oscillator cycles. By performing this function in software, a lower power state can be entered without the cost of additional hardware. For extremely power-sensitive applications, three additional low-power modes are available: • PMM1: divide-by-256 power-management mode (PMME = 1, CD1:0 = 00b) • PMM2: 32kHz power-management mode (PMME = 1, CD1:0 = 11b) • Stop mode (STOP = 1) In PMM1, one system clock is 256 oscillator cycles, significantly reducing power consumption while the microcontroller functions at reduced speed. In PMM2, the device can run even slower by using the 32kHz oscillator as the clock source. The optional switchback feature allows enabled interrupt sources including external interrupts, UARTs, and the SPI module to quickly exit the power-management modes and return to a faster internal clock rate. Power consumption reaches its minimum in Stop mode. In this mode, the external oscillator, system clock, and all processing activity is halted. Stop mode is exited when an enabled external interrupt pin is triggered, an external reset signal is applied to the RESET pin, or the RTC timeof-day alarm is activated. Upon exiting Stop mode, the microcontroller can choose to wait for the external highfrequency crystal to complete its warmup period, or it can start execution immediately from its internal ring oscillator while the warmup period completes. repeated interrupts from the same source. Application software must ensure a delay between the write to the flag and the RETI instruction to allow time for the interrupt hardware to remove the internal interrupt condition. Asynchronous interrupt flags require a one-instruction delay and synchronous interrupt flags require a twoinstruction delay. When an enabled interrupt is detected, software jumps to a user-programmable interrupt vector location. The IV register defaults to 0000h on reset or power-up, so if it is not changed to a different address, the user program must determine whether a jump to 0000h came from a reset or interrupt source. Once software control has been transferred to the ISR, the interrupt identification register (IIR) can be used to determine if a system register or peripheral register was the source of the interrupt. The specified module can then be interrogated for the specific interrupt source and software can take appropriate action. Because the interrupts are evaluated by user software, the user can define a unique interrupt priority scheme for each application. The following interrupt sources are available. Sources marked with an asterisk are not available on the 56-pin version. • Watchdog Interrupt • External Interrupts 0 to 15 (INT10*, INT11*) • RTC Time-of-Day and Subsecond Alarms • Serial Port 0 Receive and Transmit Interrupts • Serial Port 1 Receive and Transmit Interrupts* • SPI Mode Fault, Write Collision, Receive Overrun, and Transfer Complete Interrupts • Timer 0 Low Compare, Low Overflow, Capture/Compare, and Overflow Interrupts • Timer 1 Low Compare, Low Overflow, Capture/Compare, and Overflow Interrupts • Timer 2 Low Compare, Low Overflow, Capture/Compare, and Overflow Interrupts • 1-Wire Presence Detect, Transmit Buffer Empty, Transmit Shift Register Empty, Receive Buffer Full, and Shift Register Full, Short, and Low Interrupts* MAXQ2000 Interrupts Multiple reset sources are available for quick response to internal and external events. The MAXQ architecture uses a single interrupt vector (IV), single interrupt-service routine (ISR) design. For maximum flexibility, interrupts can be enabled globally, individually, or by module. When an interrupt condition occurs, its individual flag is set, even if the interrupt source is disabled at the local, module, or global level. Interrupt flags must be cleared within the user-interrupt routine to avoid Reset Sources Several reset sources are provided for microcontroller control. Although code execution is halted in the reset state, the high-frequency oscillator and the ring oscillator continue to oscillate. Internal resets such as the poweron and watchdog resets assert the RESET pin low. ____________________________________________________________________ 27 Low-Power LCD Microcontroller MAXQ2000 Power-On Reset An internal power-on reset circuit enhances system reliability. This circuit forces the device to perform a power-on reset whenever a rising voltage on VDDIO climbs above approximately 1.8V. At this point the following events occur: • All registers and circuits enter their reset state • The POR flag (WDCN.7) is set to indicate the source of the reset • The ring oscillator becomes the clock source and • Code execution begins at location 8000h I/O Ports The microcontroller uses the type C and type D bidirectional I/O ports described in the MAXQ Family User’s Guide. The use of three port types allows for maximum flexibility when interfacing to external peripherals. Each port has eight independent, general-purpose I/O pins and three configure/control registers. Many pins support alternate functions such as timers or interrupts, which are enabled, controlled, and monitored by dedicated peripheral registers. Using the alternate function automatically converts the pin to that function. Type-C port pins have Schmitt Trigger receivers and full CMOS output drivers, and can support alternate functions. The pin is either tri-stated or weak pullup when defined as an input, dependent on the state of the corresponding bit in the output register. Type-D port pins have Schmitt Trigger receivers and full CMOS output drivers, and can support alternate functions. The pin is either tri-stated or weak pullup when defined as an input, dependent on the state of the corresponding bit in the output register. All type-D pins also have interrupt capability. Watchdog Timer Reset The watchdog timer functions are described in the MAXQ Family User’s Guide. Execution resumes at location 8000h following a watchdog timer reset. Asserting the external RESET pin low causes the device to enter the reset state. The external reset functions as described in the MAXQ Family User’s Guide. Execution resumes at location 8000h after the R ESET pin is released. External System Reset VDDIO WEAK PD.x SF DIRECTION MUX VDDIO SF ENABLE PO.x SF OUTPUT MUX MAXQ2000 I/O PAD PIN.x PI.x OR SF INPUT FLAG INTERRUPT FLAG DETECT CIRCUIT EIES.x TYPE-D PORT ONLY Figure 3. Type-C/D Port Pin Schematic 28 ____________________________________________________________________ Low-Power LCD Microcontroller High-Speed Hardware Multiplier The hardware multiplier module performs high-speed multiply, square, and accumulate operations, and can complete a 16-bit x 16-bit multiply-and-accumulate operation in a single cycle. The hardware multiplier consists of two 16-bit parallel-load operand registers (MA, MB), an accumulator that is formed by up to three 16-bit parallel registers (MC2, MC1, and MC0), and a status/control register (MCNT). Loading the registers can automatically initiate the operation, saving time on repetitive calculations. The accumulate function of the hardware multiplier is an essential element of digital filtering, signal processing, and PID control systems. The hardware multiplier module supports the following operations: • Multiply unsigned (16 bit x 16 bit) • Multiply signed (16 bit x 16 bit) • Multiply-Accumulate unsigned (16 bit x 16 bit) • • • • Multiply-Accumulate signed (16 bit x 16 bit) Square unsigned (16 bit) Square signed (16 bit) Square-Accumulate unsigned (16 bit) An internal crystal oscillator clocks the RTC using integrated 6pF load capacitors, and give the best performance when mated with a 32.768kHz crystal rated for a 6pF load. No external load capacitors are required. Higher accuracy can be obtained by supplying an external clock source to the RTC. The frequency accuracy of a crystal-based oscillator circuit is dependent upon crystal accuracy, the match between the crystal and the oscillator capacitor load, ambient temperature, etc. An error of 20ppm is equivalent to approximately 1 minute per month. MAXQ2000 Programmable Timers The microcontroller incorporates three 16-bit programmable instances of the Timer 2 peripheral, denoted TR2A, TR2B, and TR2C. These timers can be used in counter/timer/capture/compare/PWM functions, allowing precise control of internal and external events. Timer 2 supports optional single-shot, external gating, and polarity control options. Timer 2 The Timer 2 peripheral includes the following: • 16-bit autoreload timer/counter • 16-bit capture • 16-bit counter • 8-bit capture and 8-bit timer • 8-bit counter and 8-bit timer • Square-Accumulate signed (16 bit) Real-Time Clock A binary real-time clock keeps the time of day in absolute seconds with 1/256-second resolution. The 32-bit second counter can count up to approximately 136 years and be translated to calendar format by the application software. A time-of-day alarm and independent subsecond alarm can cause an interrupt, or wake the device from Stop mode. The independent subsecond alarm runs from the same RTC, and allows the application to perform periodic interrupts up to ones with a granularity of approximately 3.9ms. This creates an additional timer that can be used to measure long periods without performance degradations. Traditionally, long time periods have been measured using multiple interrupts from shorter programmable timers. Each timer interrupt required servicing, with each accompanying interruption slowing system operation. By using the RTC subsecond timer as a long-period timer, only one interrupt is needed, eliminating the performance hit associated with using a shorter timer. Watchdog Timer An internal watchdog timer greatly increases system reliability. The timer resets the device if software execution is disturbed. The watchdog timer is a free-running counter designed to be periodically reset by the application software. If software is operating correctly, the counter will be periodically reset and never reach its maximum count. However, if software operation is interrupted, the timer does not reset, triggering a system reset and optionally a watchdog timer interrupt. This protects the system against electrical noise or electrostatic discharge (ESD) upsets that could cause uncontrolled processor operation. The internal watchdog timer is an upgrade to older designs with external watchdog devices, reducing system cost and simultaneously increasing reliability. ____________________________________________________________________ 29 Low-Power LCD Microcontroller The watchdog timer is controlled through bits in the WDCN register. Its timeout period can be set to one of four programmable intervals ranging from 212 to 221 system clocks in its default mode, allowing flexibility to support different types of applications. The interrupt occurs 512 system clocks before the reset, allowing the system to execute an interrupt and place the system in a known, safe state before the device performs a total system reset. At 16MHz, watchdog timeout periods can be programmed from 256µs to 33.5s, depending on the system clock mode. MAXQ2000 1-Wire Bus Master The MAXQ2000-RAX includes a Dallas Semiconductor 1-Wire bus master, which communicates to other 1-Wire peripherals, including iButton® products, through a simple bidirectional signaling scheme over a single electrical connection. The bus master provides complete control of the 1-Wire bus and transmit and receive activities, and generates all timing and control sequences of the 1-Wire bus. Communication between the CPU and the bus master is achieved through read/write access of the 1-Wire master address (OWA) and 1-Wire master data (OWD) peripheral registers. Detailed operation of the 1-Wire bus is described in the Book of i Button Standards ( www.maxim-ic.com/ iButtonbook). Serial Peripherals The microcontroller incorporates several common serial-peripheral interfaces for interconnection with popular external devices. Multiple formats provide maximum flexibility and lower cost when designing a system. Serial-Peripheral Interface (SPI) Module The SPI port is a common, high-speed, synchronous peripheral interface that shifts a bit stream of variable length and data rate between the microcontroller and other peripheral devices. The SPI can be used to communicate with other microcontrollers, serial shift registers, or display drivers. Multiple master and slave modes permit communication with multiple devices in the same system. Programmable clock frequency, character lengths, polarity, and error handling enhance the usefulness of the peripheral. The maximum baud rate of the SPI interface is 1/2 the system clock for master mode operation and 1/8 the system clock for slave mode operation. UARTs Serial interfacing is provided through one (-RBX) or two (-RAX) 8051-style universal synchronous/asynchronous receiver/transmitters. The UART allows the device to conveniently communicate with other RS-232 interfaceenabled devices, as well as PCs and serial modems when paired with an external RS-232 line driver/receiver. The dual independent UARTs can communicate simultaneously at different baud rates with two separate peripherals. The UART can detect framing errors and indicate the condition through a user-accessible software bit. The time base of the serial ports is derived from either a division of the system clock or the dedicated baud clock generator. The following table summarizes the operating characteristics as well as the maximum baud rate of each mode: MODE Mode 0 Mode 1 Mode 2 Mode 3 TYPE Synchronous Asynchronous Asynchronous Asynchronous START BITS N/A 1 1 1 DATA BITS 8 8 8+1 8+1 STOP BIT N/A 1 1 1 MAX BAUD RATE AT 16MHz 4Mbps 500kbps 500kbps 500kbps iButton is a registered trademark of Dallas Semiconductor Corp. 30 ____________________________________________________________________ Low-Power LCD Microcontroller In-Circuit Debug Embedded debugging capability is available through the JTAG-compatible Test Access Port. Embedded debug hardware and embedded ROM firmware provide in-circuit debugging capability to the user application, eliminating the need for an expensive in-circuit emulator. Figure 4 shows a block diagram of the in-circuit debugger. The in-circuit debug features include: • a hardware debug engine, • a set of registers able to set breakpoints on register, code, or data accesses, and • a set of debug service routines stored in the utility ROM. The embedded hardware debug engine is an independent hardware block in the microcontroller. The debug engine can monitor internal activities and interact with selected internal registers while the CPU is executing user code. Collectively, the hardware and software features allow two basic modes of in-circuit debugging: • Background mode allows the host to configure and set up the in-circuit debugger while the CPU continues to execute the application software at full speed. Debug mode can be invoked from background mode. • Debug mode allows the debug engine to take control of the CPU, providing read/write access to internal registers and memory, and single-step trace operation. LCD Controller The MAXQ2000 microcontroller incorporates an LCD controller that interfaces to common low-voltage displays. By incorporating the LCD controller into the microcontroller, the design requires only an LCD glass rather than a considerably more expensive LCD module. Every character in an LCD glass is composed of one or more segments, each of which is activated by selecting the appropriate segment and common signal. The microcontroller can multiplex combinations of up to 33 segment (SEG0–SEG32) outputs and four common signal outputs (COM0–COM3). Unused segment outputs can be used as general-purpose port pins. The segments are easily addressed by writing to dedicated display memory. Once the LCD controller settings and display memory have been initialized, the 17-byte display memory is periodically scanned, and the segment and common signals are generated automatically at the selected display frequency. No additional processor overhead is required while the LCD controller is running. Unused display memory can be used for general-purpose storage. The design is further simplified and cost-reduced by the inclusion of software-adjustable internal voltage dividers to control display contrast, using either VDDIO or an external voltage. If desired, contrast can also be controlled with an external resistance. The features of the LCD controller include the following: • Automatic LCD segment and common-drive signal generation • Four display modes supported: Static (COM0) 1/2 duty multiplexed with 1/2 bias voltages (COM0, COM1) 1/3 duty multiplexed with 1/3 bias voltages (COM0, COM1, COM2) 1/4 duty multiplexed with 1/3 bias voltages (COM0, COM1, COM2, COM3) • Up to 36 segment outputs and four common-signal outputs • 17 bytes (136 bits) of display memory • Flexible LCD clock source, selectable from 32kHz or HFClk / 128 • Adjustable frame frequency • Internal voltage-divider resistors eliminate requirement for external components • Internal adjustable resistor allows contrast adjustment without external components MAXQ2000 MAXQ2000 DEBUG SERVICE ROUTINES (UTILITY ROM) CPU DEBUG ENGINE TMS TCK TDI TDO TAP CONTROLLER CONTROL BREAKPOINT ADDRESS DATA Figure 4. In-Circuit Debugger ____________________________________________________________________ 31 Low-Power LCD Microcontroller MAXQ2000 • Flexibility to use external resistors to adjust drive voltages and current capacity A simple LCD-segmented glass interface example demonstrates the minimal hardware required to interface to a MAXQ2000 microcontroller. A two-character LCD is controlled, with each character containing seven segments plus decimal point. The LCD controller is configured for 1/2 duty cycle operation, meaning the active segment is controlled using a combination of segment signals, and COM0 or COM1 signals are used to select the active display. reduces component count and board space, critical factors in the design of portable systems. The MAXQ2000 is ideally suited for applications such as medical instrumentation, portable blood glucose equipment, and data collection devices. For blood glucose measurement, the microcontroller integrates an SPI interface that directly connects with analog front ends for measuring test strips. Additional Documentation Designers must have four documents to fully use all the features of this device. This data sheet contains pin descriptions, feature overviews, and electrical specifications. Errata sheets contain deviations from published specifications. The user’s guides offer detailed information about device features and operation. The following documents can be downloaded from www.maxim-ic.com/microcontrollers. • The MAXQ2000 errata sheet, available at www.maxim-ic.com/errata. • The M AXQ Family User’s Guide , which contains detailed information on core features and operation, including programming. • The M AXQ Family User’s Guide: MAXQ2000 Supplement, which contains detailed information on features specific to the MAXQ2000. Applications The low-power, high-performance RISC architecture of the MAXQ2000 makes it an excellent fit for many portable or battery-powered applications that require cost-effective computing. The high-throughput core is complemented by a 16-bit hardware multiplier-accumulator, allowing the implementation of sophisticated computational algorithms. Applications benefit from a wide range of peripheral interfaces, allowing the microcontroller to communicate with many external devices. With integrated LCD support of up to 100 or 132 segments, applications can support complex user interfaces. Displays are driven directly with no additional external hardware required. Contrast can be adjusted using a built-in, adjustable resistor. The simplified architecture MAXQ2000 SEG0:7 SEG0 SEG4 SEG1 SEG5 SEG2 SEG3 COM0 COM1 CONNECTED TO DARK GREY SEGMENTS CONNECTED TO LIGHT GREY SEGMENTS SEG6 SEG7 Figure 5. Two-Character, 1/2 Duty, LCD Interface Example 32 ____________________________________________________________________ Low-Power LCD Microcontroller Development and Technical Support A variety of highly versatile, affordably priced development tools for this microcontroller are available from Maxim/ Dallas Semiconductor and third-party suppliers, including: • Compilers • In-circuit emulators • Integrated development environments (IDEs) • JTAG-to-serial converters for programming and debugging A partial list of development tool vendors can be found on our website at www.maxim-ic.com/microcontrollers. Technical support is available through email at maxq.support@dalsemi.com. MAXQ2000 Pin Configurations 65 SEG7/P0.7/INT3 64 SEG6/P0.6/INT2 63 SEG5/P0.5/INT1 62 SEG4/P0.4/INT0 53 P7.1/RX0/INT15 68 SEG10/P1.2 TOP VIEW 60 SEG2/P0.2 54 VLCD 52 P7.0/TX0/INT14 51 50 49 48 47 46 45 44 67 SEG9/P1.1 66 SEG8/P1.0 61 SEG3/P0.3 59 SEG1/P0.1 58 SEG0/P0.0 56 VLCD2 SEG11/P1.3 SEG12/P1.4 SEG13/P1.5 SEG14/P1.6 SEG15/P1.7 SEG16/P2.0 SEG17/P2.1 SEG18/P2.2 SEG19/P2.3 SEG20/P2.4 SEG21/P2.5 SEG22/P2.6 SEG23/P2.7 SEG24/P3.0 SEG25/P3.1 SEG26/P3.2 SEG27/P3.3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 23 18 19 21 22 20 55 VLCD1 57 VADJ HFXIN HFXOUT VDD P6.5/T0/WKOUT1 P6.4/T0B/WKOUT0 P6.3/T2/OW_IN P6.2/T2B/OW_OUT P6.1/T1/INT13 P6.0/T1B/INT12 GND P5.7/MISO P5.6/SCLK P5.5/MOSI P.4/SS P5.3/TX1/INT11 P5.2/RX1/INT10 32KOUT MAXQ2000 43 42 41 40 39 38 37 36 (132-SEGMENT LCD) 24 25 26 27 28 29 31 30 32 33 34 32KIN 35 SEG28/P3.4/INT4 SEG29/P3.5/INT5 SEG30/P3.6/INT6 SEG31/P3.7/INT7 P4.0/TCK/INT8 P4.1/TDI/INT9 SEG33/COM3 SEG34/COM2 SEG35/COM1 SEG32 QFN ____________________________________________________________________ P4.2/TMS P4.3/TDO RESET COM0 VDDIO GND 33 Low-Power LCD Microcontroller MAXQ2000 Pin Configurations (continued) 44 P7.1/RXO/INT15 TOP VIEW 48 VADJ 43 P7.0/TXO/INT14 42 41 40 39 38 37 36 56 SEG7/P0.7/INT3 55 SEG6/P0.6/INT2 54 SEG5/P0.5/INT1 53 SEG4/P0.4/INT0 52 SEG3/P0.3 51 SEG2/P0.2 50 SEG1/P0.1 49 SEG0/P0.0 47 VLCD2 46 VLCD1 SEG8/P1.0 SEG9/P1.1 SEG10/P1.2 SEG11/P1.3 SEG12/P1.4 SEG13/P1.5 SEG14/P1.6 SEG15/P1.7 SEG16/P2.4 SEG17/P2.5 SEG18/P2.6 SEG19/P2.7 SEG20/P3.4/INT4 SEG21/P3.5/INT5 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 17 45 VLCD HFXIN HFXOUT VDD P6.5/T0/WKOUT1 P6.4/T0B/WKOUT0 P6.1/T1/INT13 P6.0/T1B/INT12 GND P5.7/MISO P5.6/SCLK P5.5/MOSI P5.4/SS 32KOUT 32KIN MAXQ2000 35 34 33 32 31 30 (100-SEGMENT LCD) 20 21 22 23 24 25 26 27 28 RESET 29 SEG22/P3.6/INT6 SEG23/P3.7/INT7 P4.0/TCK/INT8 P4.1/TDI/INT9 P4.2/TMS SEG25/COM3 SEG26/COM2 SEG27/COM1 TQFN 34 ____________________________________________________________________ P4.3/TDO SEG24 COM0 VDDIO GND Low-Power LCD Microcontroller Typical Operating Circuit MAXQ2000 VSS GLUCOSE MICROCONTROLLER RS-232 SERIAL PORT PC_RX +3.3V TX +3.3V RS-232 RX PC_TX CHIP INTERFACE CABLE SERIAL DATA DOWNLOAD CONNECTOR VLCD (+3.3V) P7.1RX0/INT15 P7.0TX0/INT14 VSS GND 1-WIRE INTERFACE GND VLCD (+3.3V) TDO JTAG DOWNLOAD/ DEBUG CONNECTOR TMS TDI TCK P4.3/TDO P4.2/TMS P4.1/TDI/INT9 P4.0/TCK/INT8 GNDIO VDDIO P6.1/T1/INT13 PIEZO BUZZER P6.0/T1B/INT12 GNDIO VDDIO VDDIO 200kΩ 200kΩ STRIP INSERTED SEG31/P3.7/INT7 SEG29/P3.5/INT5 GNDIO VLCD (+3.3V) VLCD OR GND GNDIO VSS P6.5/T0/WKOUT TIMER 0 32KCLK VDDIO VDD DIFFERENTIALLY DRIVEN AT ±6.6V AND -2kHz TO 10kHz MAX 1678 VBATT AVDD 2 AAA OR 1 LITHIUM COIN CELL (+1.8V TO +3.6V) DVDD JTAG 4-WIRE SPI INTERFACE VDDIO P5.5/MOSI P5.7/MISO P5.6/SCLK P5.4/SS GNDIO DIN DOUT SCLK CSI UPIO2 UPIO3 UPIO4 UART1 VDDIO P6.2/T2B/OW_OUT P6.3/T2/OW_IN CPOUT 1-WIRE EEPROM GND DATA CAL PORT CONNECTOR 1-WIRE EPROM DATA METER CAL PARAMETERS AND PATIENT DATA STORAGE GND VSS TEST STRIP CAL PARAMETERS MAXQ2000 5kΩ MAX1358 MAX1359 MAX1360 OUTA SWA FBA TEST STRIP PORT CONNECTOR DACA OUTB TEST STRIP AGND DGND UPI01 ON VSS WAKEUP SWB FBB REGULATED +3.3V CPOUT ADC DACB SNO1 VSS VLCD1 VSS CF+ CHARGEPUMP DOUBLER SCM1 SNC1 OUT1 INM1 LINEAR REG INP1 BG REF 116 SEGMENT LCD GLASS SEG[28:5] SEG[0:3] SEG[32] COM[3:1]/SEG[35:33] COM[0] VLCD2 LCD DRIVERS CFREG STRIP INSERTED VADJ VSS DVDD NOTE THAT UP TO 132 LCD SEGMENTS CAN BE DRIVEN IF OTHER MUXED PIN FUNCTIONS ARE NOT USED 32/64kB FLASH/ MASK RTC AND SYSTEM TIMERS/ ALARMS SNO2 GNDIO VSS 32KIN 32.768kHz WATCH XTAL 32K OSC 1-5MHz FLL AIN1 AIN2 SCM2 SNC2 VSS REMOTE TEMPERATURE MEASUREMENT DIODE 32KOUT 32K OSC 32KIN HFXIN VDDIO 16-BIT RISC MICRO INT INT INT GNDIO 200kΩ 200kΩ 200kΩ HF OSC HFXOUT 32KOUT 32kHz MICRO CLOCK (OPTIONAL) CLK32K HIGH-FREQUENCY MICRO CLOCK CLK VSS RESET SEG4/P0.4/INTO MAX1358/9/60 INTERRUPT RESET INT SEG30/ MEM P3.6/INT6 P5.3/ UP TX1/INT11 P5.2/ DOWN RX1/INT10 VSS WATCHDOG TIMER GLUCOSE METER CIRCUIT BOARD ____________________________________________________________________ 35 Low-Power LCD Microcontroller MAXQ2000 Package Information (The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to www.maxim-ic.com/DallasPackInfo). PACKAGE OUTLINE, 68L QFN, 10x10x0.9 MM 1 C 21-0122 2 36 ____________________________________________________________________ 68L QFN.EPS Low-Power LCD Microcontroller Package Information (continued) (The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to www.maxim-ic.com/DallasPackInfo). MAXQ2000 PACKAGE OUTLINE, 68L QFN, 10x10x0.9 MM 1 C 21-0122 2 ____________________________________________________________________ 37 Low-Power LCD Microcontroller MAXQ2000 Package Information (continued) (The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to www.maxim-ic.com/DallasPackInfo). 38 ____________________________________________________________________ 56L THIN QFN.EPS Low-Power LCD Microcontroller Package Information (continued) (The package drawing(s) in this data sheet may not reflect the most current specifications. For the latest package outline information, go to www.maxim-ic.com/DallasPackInfo). MAXQ2000 Maxim cannot assume responsibility for use of any circuitry other than circuitry entirely embodied in a Maxim product. No circuit patent licenses are implied. Maxim reserves the right to change the circuitry and specifications without notice at any time. Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 ____________________ 39 © 2004 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products. is a registered trademark of Dallas Semiconductor Corporation.
MAXQ2000-RBX 价格&库存

很抱歉,暂时无法提供与“MAXQ2000-RBX”相匹配的价格&库存,您可以联系我们找货

免费人工找货