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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MAXQ2010

MAXQ2010

  • 厂商:

    MAXIM(美信)

  • 封装:

  • 描述:

    MAXQ2010 - 16-Bit Mixed-Signal Microcontroller with LCD Interface - Maxim Integrated Products

  • 数据手册
  • 价格&库存
MAXQ2010 数据手册
Rev 1; 12/08 16-Bit Mixed-Signal Microcontroller with LCD Interface General Description The MAXQ2010 microcontroller is a low-power, 16-bit device that incorporates a high-performance, 12-bit, multichannel ADC and a liquid-crystal display (LCD) interface. A combination of high performance, low power, and mixed-signal integration makes the MAXQ2010 ideal for a wide variety of applications. The MAXQ2010 has 64KB of flash memory, 2KB of RAM, three 16-bit timers, and two universal synchronous/asynchronous receiver/transmitters (USARTs). Flash memory aids prototyping and is available for mass production. Mask ROM versions are available for large production volumes when cost is a critical factor. The microcontroller runs from a 2.7V to 3.6V operating supply. For the ultimate in low-power performance, the MAXQ2010 includes a low-power sleep mode, the ability to selectively disable peripherals, and multiple power-saving operating modes. Features ♦ High-Performance, Low-Power, 16-Bit MAXQ® RISC Core ♦ DC to 10MHz Operation, Approaching 1MIPS per MHz ♦ 2.7V to 3.6V Operating Voltage ♦ 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-Compiler (High-Speed/Density Code) ♦ On-Chip FLL Reduces External Clock Frequency ♦ Memory Features 64KB Flash Memory (In-Application and In-System Programmable) 2KB Internal Data RAM JTAG Bootloader for Programming and Debug ♦ Peripheral Features 12-Bit SAR ADC with Internal Reference and Autoscan Eight Single-Ended or Four Differential Inputs Up to 312.5ksps Sample Rate Supply Voltage Monitor with Adjustable Threshold One-Cycle, 16 x 16 Hardware Multiply/Accumulate with 48-Bit Accumulator Three 16-Bit Programmable Timers/Counters with PWM Outputs 32-Bit Binary Real-Time Clock with Digital Trim Capability Integrated LCD 160 Segments No External Resistors Required Two USARTs, I2C Master/Slave, and SPI™ Master/ Slave Communications Ports On-Chip Power-On Reset/Brownout Reset Programmable Watchdog Timer ♦ Low Power Consumption 1mA (typ) at 1MHz Flash Operation at 2.7V 370nA (typ) in Stop Mode Low-Power Power-Management Mode (PMM) MAXQ2010 Applications Battery-Powered and Portable Devices Portable Medical Equipment Blood Glucose Meters 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 Medical Instrumentation Ordering Information PART MAXQ2010-RFX+ TEMP RANGE -40°C to +85°C PIN-PACKAGE 100 LQFP +Denotes a lead(Pb)-free/RoHS-compliant package. Typical Application Circuit, Pin Configuration, and Selector Guide appear at end of data sheet. MAXQ is a registered trademark of Maxim Integrated Products, Inc. SPI is a trademark of Motorola, Inc. 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 Direct at 1-888-629-4642, or visit Maxim’s website at www.maxim-ic.com. 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 TABLE OF CONTENTS Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 Recommended DC Operating Conditions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .4 I2C Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 I2C Bus Controller Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .11 I2C Bus Controller Timing (Acting As I2C Master) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .12 I2C Bus Controller Timing (Acting As I2C Slave) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Typical Operating Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .14 Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .15 Pin Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .16 Detailed Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 MAXQ Core Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Memory Organization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Stack Memory . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .21 Utility ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 (Bootloader) In-System Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 In-Application Programming . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Register Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 System Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .23 Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 I/O Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .24 Supply Voltage Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 Serial Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 USART Serial Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 I2C Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Serial Peripheral Interface (SPI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Real-Time Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Programmable Timers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 Watchdog Timer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Hardware Multiplier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 Analog-to-Digital Converter . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .27 LCD Controller . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 In-Circuit Debug . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Applications Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 Grounds and Bypassing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 Pin Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .31 2 _______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 TABLE OF CONTENTS (continued) Typical Application Circuit . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .32 Additional Documentation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Development and Technical Support . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Selector Guide . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .33 Revision History . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .34 LIST OF FIGURES Figure 1. SPI Master Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Figure 2. SPI Slave Timing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .9 Figure 3. Series Resistors (RS) for Protecting Against High-Voltage Spikes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .10 Figure 4. I2C Bus Controller Timing Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .13 Figure 5. MAXQ2010 Default Memory Map . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .22 Figure 6. Type C/D Port Pin Schematic . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .25 Figure 7. ADC Block Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .28 Figure 8. Two-Character, 1/2 Duty, LCD Interface Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .29 Figure 9. In-Circuit Debugger . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .30 LIST OF TABLES Table 1. Serial Port Operating Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .26 _______________________________________________________________________________________ 3 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 ABSOLUTE MAXIMUM RATINGS Voltage Range on All Pins (including AVDD, DVDD) Relative to Ground .................................-0.5V to +3.6V Voltage Range on Any Pin Relative to Ground Except AVDD, DVDD .............-0.5V to (VDVDD + 0.5V) Operating Temperature Range ...........................-40°C to +85°C Continuous Output Current Any Single I/O Pin ............................................................20mA All I/O Pins Combined....................................................100mA Storage Temperature Range .............................-65°C to +150°C Soldering Temperature...........................Refer to the 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. RECOMMENDED DC OPERATING CONDITIONS (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER D igital Supply Voltage D igital Supply Voltage Output Analog Supply Voltage Ground D igital Power-Fail Reset Voltage Active Current, FLL Disabled (Note 3) SYMBOL VDVDD VREGOUT VAVDD GND VRST IDD_HFX1 IDD_HFX2 IDD1_FLL Active Current, FLL Enabled (Note 5) IDD2_FLL IDD3_FLL IDD4_FLL IDD5_FLL I STOP_1 (Note 7) Stop-Mode Current (Note 6) I STOP_2 (Note 8) I STOP_3 (Note 9) t STOP_1 Stop-Mode Resume Time (Note 4) t STOP_2 t STOP_3 Input Low Voltage on HFXIN and 32KIN Input Low Voltage on All Other Pins VIL1 VIL2 (Note 2) VAVDD = VDVDD AGND = DGND M onitors VDVDD fCK = 10MHz, VDVDD = VAVDD = 2.7V, FREQMD = 0 fCK = 10MHz, VDVDD = VAVDD = 3.6V, FREQMD = 0 (Note 4) D ivide-by-1 mode, FREQMD = 0 D ivide-by-2 mode, FREQMD = 0 (Note 4) D ivide-by-4 mode, FREQMD = 1 (Note 4) D ivide-by-8 mode, FREQMD = 1 (Note 4) PMM mode, FREQMD = 1 (Note 4) TA = + 25°C TA = + 85°C TA = + 25°C TA = + 85°C TA = + 25°C TA = + 85°C Internal regulator on Internal regulator off, brownout or SVM on, SVMSTOP = 1 Internal regulator, brownout, and SVM off DGND DGND 2.7 0 2.55 2.6 3.1 3.2 3.15 2.9 2.25 1.4 0.5 0.37 0.68 0.94 1.3 195 225 4tCLCL 30 30 160 320 0.20 x VDVDD 0.30 x VDVDD V V μs CONDITIONS MIN 2.7 1.8 3.6 0 2.65 3.75 mA 4.0 4 3.6 3 2 0.7 4 6.5 5 6.5 295 335 μA mA TYP MAX 3.6 UNITS V V V V V 4 _______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface RECOMMENDED DC OPERATING CONDITIONS (continued) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER Input High Voltage on HFXIN and 32KIN Input High Voltage on All Other Pins Input Hysteresis (Schmitt) Output Low Voltage for All Port Pins (Note 10) Output High Voltage for All Port Pins (Note 10) I/O Pin Capacitance I/O Pin Capacitance SCL, SDA (Note 11) RST Pullup Resistance Input Low Current for RST P in Input Low Current for All Other Pins Input Leakage Current Input Pullup Resistor CLOCK SOURCE External Clock Frequency External Clock Period External Clock Duty Cycle System Clock Frequency FREQUENCY-LOCKED LOOP (FLL) FLL Output Frequency FLL Output Frequency Delta fFLL fFLL f32KIN = 3 2.768kHz f32KIN = 3 2.768kHz 8.4 1.5 ±5 MHz % fHFIN tCLCL t XCLK_DUTY fCK DC 100 40 DC 60 10 10 MHz ns % MHz SYMBOL VIH1 VIH2 VIHYS VOL VOH CIO CIO_I2C RRST I IL1 I IL2 IL RPU VIN = 0.4V VIN = 0.4V Internal pullup disabled I OL = +4mA I OH = -4mA Guaranteed by design Guaranteed by design 30 -85 -85 -150 30 DGND VDVDD - 0.4 15 10 85 -30 -30 +150 85 CONDITIONS MIN 0.75 x VDVDD 0.70 VDVDD 0.18 0.4 TYP MAX VDVDD VDVDD UNITS V V V V V pF pF k μA μA nA k MAXQ2010 Specifications to -40°C are guaranteed by design and are not production tested. Typical value presented for reference only. Do not draw current from this pin. FLL disabled. Crystal connected across HFXIN and HFXOUT. Operating in divide-by-1 mode. Measured on the DVDD pin and part executing program code from flash. All inputs are connected to GND or DVDD. Outputs do not source/sink any current. Timer B enabled. Note 4: This parameter is guaranteed by design and is not production tested. Note 5: FLL enabled. f32KIN = 32.768kHz, HFXIN = disconnected, FLL = 8.39MHz, measured on the DVDD pin, part executing program code from flash. All inputs are connected to GND or DVDD. Outputs do not source/sink any current. Timer B enabled. Note 6: ISTOP is the total current into the device when the device is in stop mode. This includes both the digital and analog current (current into DVDD and AVDD). Note 7: Regulator, brownout monitor, LCD, and RTC disabled. Note 8: Regulator, brownout monitor, and LCD disabled; RTC enabled. Note 9: Regulator enabled, brownout monitor enabled, and LCD and RTC disabled. Note 10: IOH(MAX) + IOL(MAX) for all outputs combined should not exceed 35mA to meet the specification. Note 11: When DVDD is switched off, SDA and SCL may obstruct the line. Note 1: Note 2: Note 3: _______________________________________________________________________________________ 5 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 RECOMMENDED DC OPERATING CONDITIONS (continued) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER FLASH PROGRAMMING System Clock During Flash Programming/Erase F lash Erase Time F lash Programming Time per Word (Note 12) Write/Erase Cycles Data Retention ANALOG-TO-DIGITAL CONVERTER (Note 13) Serial Clock Frequency Input Voltage Range Analog Input Capacitance Current Consumption (Note 4) f SCLK VAIN CAIN IAVDD1 IAVDD2 f SCLK = 5 MHz, internal reference f SCLK = 5 MHz, external reference (internal reference disabled) 12 INL DNL VOS ±0.5 ±1 ±0.5 SINAD SFDR tCONV tADC_SETUP (Note 15) I ILA Shutdown or conversion stopped, ANx and VAEREF All channels active f IN = 1 kHz f IN = 1 kHz 16 SCLK samples Not including tACQ 2.6 4 ±1 39 65 68 312.5 No missing codes over temperature ±1 ±2 ±1 ±2 Unipolar (single-ended) Bipolar (differential) (Note 14) 0.1 0 -VREF/2 16 1.9 1.1 2.5 1.3 mA 5 VREF +VREF/2 MHz V pF TA = +25°C 20,000 100 Mass erase Page erase 2 24 24 66 MHz ms μs Cycles Years SYMBOL CONDITIONS MIN TYP MAX UNITS ANALOG-TO-DIGITAL CONVERTER PERFORMANCE (VREF = VAVDD, 0.1μF capacitor on VREF, fSCLK = 5MHz) Resolution Integral Nonlinearity D ifferential Nonlinearity Offset Error Offset Temperature Coefficient Gain Error Gain Temperature Coefficient Signal-to-Noise Plus Distortion Spurious-Free Dynamic Range Throughput Conversion Time ADC Setup Time Input Leakage Current Autoscan Throughput Bits LSB LSB LSB ppm/°C % ppm/°C dB dB ksps μs μs μA ksps per channel V μs ANALOG-TO-DIGITAL CONVERTER REFERENCE Internal Reference Voltage Internal Reference Voltage Startup Time VAIREF tAIREF 1.47 1.5 1.53 50 6 _______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface RECOMMENDED DC OPERATING CONDITIONS (continued) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER External Reference Voltage Input Internal Reference Voltage Drift Reference Settle Time (Switching ADC Reference from Either Internal or External Reference to AVDD) (Note 16) SUPPLY VOLTAGE MONITOR Supply Voltage Set Point Supply Voltage Increment Resolution (Note 18) Supply Voltage Default Set Point Supply Voltage Monitor Current Consumption Supply Voltage Monitor Setup Time (Time from Supply Voltage Monitor Enabled to SVMRDY Is Set to 1) (Note 18) R EAL-TIME CLOCK RTC Input Frequency RTC Operating Current LCD 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 L RA[3:0] = 15 Pin is driven at VLCD = 3V, I SEGxx = -3μA LCD Segment and COM Voltage (Note 18) Pin is driven at VLCD1 = 2V, I SEGxx = -3μA Pin is driven at VLCD2 = 1V, I SEGxx = -3μA Pin is driven at VADJ = 0V, I SEGxx = -3μA LCD Output Rise Time tLCD_RISE COM output load = 5000pF, SEG output load = 200pF, VLCD = 3 .3V VLCD 0.02 VLCD1 0.02 VLCD2 0.02 -0.1 1/3 bias 1/3 bias Guaranteed by design 0 40 80 VLCD VLCD1 + 0.02 VLCD2 + 0.02 +0.1 200 μs VDVDD 3.6 V V V V k k VADJ + 2/3 (VLCD - VADJ) VADJ + 2/3 (VLCD - VADJ) 0.4 x VLCD f32KIN IRTC 32kHz watch crystal VDVDD = 2 .7V, guaranteed by design VDVDD = 3 .6V 32,768 0.45 0.5 0.7 0.8 Hz μA I SVM VSVM SVINC 2.7 0.08 0.1 2.7 20 3.5 0.12 V V μA μs SYMBOL VAEREF VADRIFT tAAVDD_ SETUP MAXQ2010 CONDITIONS MIN 0.9 TYP MAX VAVDD + 0.05 ±50 UNITS V ppm/°C Guaranteed by design 4 Samples (Note 17) t SVM_SU 15 25 μs VSEGxx V _______________________________________________________________________________________ 7 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 RECOMMENDED DC OPERATING CONDITIONS (continued) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 1) PARAMETER S PI (See Figures 1 and 2) 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 SCLK Inactive to MOSI Inactive SSEL Active to First Shift Edge 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 SSEL Edge Rise 1/tMCK 1/t SCK tMCH, tMCL t SCH, t SCL tMOH tMOV tMIS tMIH tMLH t SSE t SIS t SIH t SOV t SSH t SD t SLH tCK + 25 tCK + 25 2tCK + 50 CL = 5 0pF (tMCK/2) - 25 (tMCK/2) - 25 25 0 (tMCK/2) - 25 4tCK 20 tCK + 25 3tCK + 25 (tMCK/2) - 25 t SCK/2 fCK/2 fCK/8 MHz MHz ns ns ns ns ns ns ns ns ns ns ns ns ns ns SYMBOL CONDITIONS MIN TYP MAX UNITS Note 12: Programming time does not include overhead associated with the utility ROM interface. Note 13: VREF = AVDD. Note 14: The operational input voltage range for each individual input of a differentially configured pair is from GND to AVDD. The operational input voltage difference is from -VREF/2 to +VREF/2. Note 15: The typical value is applied when a conversion is requested with ADPMO = 0. Under these conditions, the minimum delay is met. If ADPMO = 1, the user is responsible for ensuring the 4µs delay time is met. Note 16: Switching ADC reference from either internal or external reference to AVDD. Sample accuracy is not guaranteed prior to ADC reference settlement. Note 17: Total on-board decoupling capacitance on the AVDD pin < 100nF. The output impedance of the regulator driving the AVDD pin < 10Ω. Note 18: This parameter is guaranteed by design and is not production tested. 8 _______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 SHIFT SSEL tMCK SCLK CKPOL/CKPHA 0/1 OR 1/0 tMCH SCLK CKPOL/CKPHA 0/0 OR 1/1 tMOH tMOV MOSI MSB MSB-1 tRF LSB tMLH tMCL SAMPLE SHIFT SAMPLE tMIS MISO MSB MSB-1 tMIH LSB Figure 1. SPI Master Timing SHIFT SSEL tSSE SAMPLE SHIFT SAMPLE tSSH tSCK SCLK CKPOL/CKPHA 0/1 OR 1/0 tSCH SCLK CKPOL/CKPHA 0/0 OR 1/1 tSCL tSD tSIS MOSI MSB tSOV MISO MSB MSB-1 MSB-1 tSIH LSB tRF LSB tSLH Figure 2. SPI Slave Timing _______________________________________________________________________________________ 9 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 I2C ELECTRICAL CHARACTERISTICS (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) PARAMETER Input Low Voltage (Note 19) Input High Voltage (Note 19) Input Hysteresis (Schmitt) Output Logic-Low (Open Drain or Open Collector) Output Fall Time from VIH_MIN to VIL_MAX w ith Bus Capacitance from 10pF to 400pF (Notes 20, 21) Pulse Width of Spike Filtering That Must Be Suppressed by Input Filter Input Current on I/O I/O Capacitance SYMBOL VIL_I2C VIH_I2C VIHYS_I2C VDVDD > 2V VOL_I2C VDVDD > 2V, 3mA sink current 0 0.4 TEST CONDITIONS STANDARD MODE MIN -0.5 0.7 x VDVDD MAX 0.3 x VDVDD FAST MODE MIN -0.5 0.05 x VDVDD 0 0.4 MAX 0.3 x VDVDD UNITS V V V V 0.7 x VDVDD VDVDD + 0.5V t OF_I2C 250 20 + 0.1CB 250 ns t SP_I2C Input voltage from 0.1 x VDVDD to 0.9 x VDVDD 0 50 ns I IN_I2C CIO_I2C -10 +10 10 -10 +10 10 μA pF Note 19: Devices that use nonstandard supply voltages that do not conform to the intended I2C bus system levels must relate their input levels to the voltage to which the pullup resistors RP are connected. See Figure 3. Note 20: CB—Capacitance of one bus line in pF. Note 21: The maximum fall time of 300ns for the SDA and SCL bus lines shown in the I2C Bus Controller Timing table is longer than the specified maximum tOF_I2C of 250ns for the output stages. This allows series protection resistors (RS) to be connected between the SDA/SCL pins and the SDA/SCL bus lines as shown in the I2C Bus Controller Timing (Acting as I2C Slave) table without exceeding the maximum specified fall time. See Figure 3. VDVDD I2C DEVICE MAXQ2010 RS P6.7 P6.6 SDA SCL RS I2C DEVICE RP RS RS RP Figure 3. Series Resistors (RS) for Protecting Against High-Voltage Spikes 10 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface I2C BUS CONTROLLER TIMING (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Note 22) (Figure 4) PARAMETER Operating Frequency Hold Time After (Repeated) START C lock Low Period C lock High Period Setup Time for Repeated START Hold Time for Data Setup Time for Data SDA/SCL Fall Time SDA/SCL Rise Time Setup Time for STOP Bus-Free Time Between STOP and START Capacitive Load for Each Bus Line Noise Margin at the Low Level for Each Connected Device (Including Hysteresis) Noise Margin at the High Level for Each Connected Device (Including Hysteresis) SYMBOL f I2C tHD:STA tLOW_I2C tHIGH_I2C t SU:STA tHD:DAT t SU:DAT tF_I2C tR_I2C t SU:STO tBUF CB 4.0 4.7 400 STANDARD MODE MIN 0 4.0 4.7 4.0 4.7 0 (Note 23) 250 300 1000 3.45 (Note 24) MAX 100 MIN 0 0.6 1.3 0.6 0.6 0 (Note 23) 100 (Note 25) 20 + 0.1CB (Note 26) 20 + 0.1CB (Note 26) 0.6 1.3 400 300 300 0.9 (Note 24) FAST MODE MAX 400 UNITS kHz μs μs μs μs μs ns ns ns μs μs pF MAXQ2010 VNL_I2C 0.1 x VDVDD 0.1 x VDVDD V VNH_I2C 0.2 x VDVDD 0.2 x VDVDD V Note 22: All values referenced to VIH_I2C(MIN) and VIL_I2C(MAX). Note 23: A device must internally provide a hold time of at least 300ns for the SDA signal (referred to as the VIH_I2C(MIN) of the SCL signal) to bridge the undefined region of the falling edge of SCL. Note 24: The maximum tHD:DAT need only be met if the device does not stretch the low period (tLOW_I2C) of the SCL signal. Note 25: A fast-mode I2C bus device can be used in a standard-mode I2C bus system, but the requirement tSU:DAT ≥ 250ns must be met. This is automatically the case if the device does not stretch the low period of the SCL signal. If such a device does stretch the low period of the SCL signal, it must output the next data bit to the SDA line tR_I2C(MAX) + tSU:DAT = 1000 + 250 = 1250ns (according to the standard-mode I2C specification) before the SCL line is released. Note 26: CB—Total capacitance of one bus line in pF. ______________________________________________________________________________________ 11 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 I2C BUS CONTROLLER TIMING (ACTING AS I2C MASTER) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Figure 4) PARAMETER System Frequency Operating Frequency Hold Time After (Repeated) START C lock Low Period C lock High Period Setup Time for Repeated START Hold Time for Data Setup Time for Data SDA/SCL Fall Time SDA/SCL Rise Time Setup Time for STOP Bus-Free Time Between STOP and START Capacitive Load for Each Bus Line Noise Margin at the Low Level for Each Connected Device (Including Hysteresis) Noise Margin at the High Level for Each Connected Device (Including Hysteresis) SYMBOL f SYS f I2C tHD:STA tLOW_I2C tHIGH_I2C t SU:STA tHD:DAT t SU:DAT tF_I2C tR_I2C t SU:STO tBUF CB tHIGH_I2C tLOW_I2C 400 tHIGH_I2C 5t SYS 3t SYS tLOW_I2C 0 250 300 1000 3.45 STANDARD MODE MIN 0.90 f SYS/8 tHIGH_I2C 5t SYS 3t SYS tLOW_I2C 0 100 20+ 0.1CB 20+ 0.1CB tHIGH_I2C tLOW_I2C 400 300 300 0.9 MAX MIN 3.60 f SYS/8 FAST MODE MAX UNITS MHz Hz μs μs μs μs μs ns ns ns μs μs pF VNL_I2C 0.1 x VDVDD 0.1 x VDVDD V VNH_I2C 0.2 x VDVDD 0.2 x VDVDD V 12 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface I2C BUS CONTROLLER TIMING (ACTING AS I2C SLAVE) (VDVDD = VAVDD = 2.7V to 3.6V, TA = -40°C to +85°C.) (Figure 4) PARAMETER System Frequency Operating Frequency System Clock Period Hold Time After (Repeated) START C lock Low Period C lock High Period Setup Time for Repeated START Hold Time for Data Setup Time for Data SDA/SCL Fall Time SDA/SCL Rise Time Setup Time for STOP Bus-Free Time Between STOP and START Capacitive Load for Each Bus Line Noise Margin at the Low Level for Each Connected Device (Including Hysteresis) Noise Margin at the High Level for Each Connected Device (Including Hysteresis) SYMBOL f SYS f I2C t SYS tHD:STA tLOW_I2C tHIGH_I2C t SU:STA tHD:DAT t SU:DAT tF_I2C tR_I2C t SU:STO tBUF CB 3t SYS 5t SYS 400 1/f I2C 3t SYS 5t SYS 3t SYS 5t SYS 0 250 300 1000 3.45 3t SYS 5t SYS 3t SYS 5t SYS 0 100 20 + 0.1CB 20 + 0.1CB 3t SYS 5t SYS 400 300 300 0.9 STANDARD MODE MIN 0.9 f SYS/8 MAX MIN 3.60 f SYS/8 1/f I2C FAST MODE MAX UNITS MHz Hz μs μs μs μs μs μs ns ns ns μs μs pF MAXQ2010 VNL_I2C 0.1 x VDVDD 0.1 x VDVDD V VNH_I2C 0.2 x VDVDD 0.2 x VDVDD V S SR P S SDA tF_I2C tLOW SCL tHD:STA tHIGH tR_I2C tSU:DAT tSU:STA tBUF tHD:DAT tSU:STO NOTE: TIMING REFERENCED TO VIH_I2C(MIN) AND VIL_I2C(MAX). Figure 4. I2C Bus Controller Timing Diagram ______________________________________________________________________________________ 13 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Typical Operating Characteristics (TA = +25°C, unless otherwise noted.) VDD SUPPLY CURRENT vs. CLOCK FREQUENCY MAXQ2010 toc01 PORT PIN LOW-OUTPUT VOLTAGE vs. SINK CURRENT MAXQ2010 toc02 PORT PIN HIGH-OUTPUT VOLTAGE vs. SOURCE CURRENT TA = +25°C, VDVDD = 3.6V MAXQ2010 toc03 3.5 CLOCK SOURCE DRIVEN ON HFXIN, TA = +25°C, FLL DISABLED 40 35 30 TA = +25°C, VDVDD = 3.6V 0 -10 -20 IOH (mA) -30 -40 -50 -60 3.0 IDD1 (mA) IOL (mA) 2.5 FREQMD = 0 2.0 FREQMD = 1 1.5 25 20 15 10 5 1.0 0 2 4 6 8 10 fHFXIN (MHz) 0 0 0.4 0.8 1.2 1.6 2.0 2.4 2.8 3.2 3.6 VOL (V) 0 0.4 0.8 1.2 1.6 2.0 2.4 2.8 3.2 3.6 VOH (V) INTEGRAL NONLINEARITY (INL) vs. CODE MAXQ2010 toc04 DIFFERENTIAL NONLINEARITY (DNL) vs. CODE 0.8 0.6 0.4 DNL (LSB) 0.2 0 -0.2 -0.4 -0.6 -0.8 -1.0 -3 -4 0 1000 2000 CODE 3000 4000 2.96 3.06 TA = +25°C, VAVDD = 3.3V, VREF = 3.0V MAXQ2010 toc05 OFFSET ERROR vs. SUPPLY VOLTAGE TA = +25°C, VREF = 3.0V 3 OFFSET ERROR (LSB) 2 1 0 -1 -2 MAXQ2010 toc06 2.0 1.5 1.0 INL (LSB) 0.5 0 -0.5 -1.0 -1.5 -2.0 0 TA = +25°C, VAVDD = 3.3V, VREF = 3.0V 1.0 4 1000 2000 CODE 3000 4000 3.16 3.26 3.36 3.46 3.56 3.66 VDVDD (V) DIFFERENTIAL BIPOLAR TRANSFER MAXQ2010 toc07 SINGLE-ENDED UNIPOLAR TRANSFER FFF FFE OUTPUT CODE (HEX) FFD FS = VREF 1 LSB = VREF/4096 ZS = 0 MAXQ2010 toc08 7FF 7FE OUTPUT CODE (HEX) +FS = VREF/2 -FS = -VREF/2 1 LSB = VREF/4096 ZS = 0 001 000 FFF 004 003 002 FS - 0.5 LSB 001 000 801 800 -FS -FS + 0.5 LSB +FS - 0.5 LSB 0 INPUT VOLTAGE (LSB) +FS 1 2 3 4 FS INPUT VOLTAGE (LSB) 14 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface Block Diagram MAXQ2010 ADD REG ADDRESS GENERATOR IN-CIRCUIT DEBUGGER JTAG STACK IP DP CONTROL DEMUX STATUS SPR Acc 16 MAXQ2010 16 SFR INSTRUCTION DECODER PROGRAM MEMORY DATA MEMORY SPI HFX FLL 32kHz PMM STOP UART TIMER AVDD AGND SYSTEM CLOCK WATCHDOG POWER OSC UP BROWNOUT RESET RESET LCD DVDD DGND RTC I2C MAC INTERRUPT 12-BIT 8-CHANNEL ADC SUPPLY VOLTAGE MONITOR ______________________________________________________________________________________ MUX 15 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Pin Description PIN 40, 63, 96 41, 66, 95 98, 99 82 79 NAME POWER PINS DVDD DGND REGOUT AVDD AGND Digital Supply Voltage Digital Ground Regulator Capacitor. T hese pins must be shorted together at the pins and then connected to ground through a 1.0μF ceramic capacitor. Analog Supply Voltage Analog Ground ANALOG MEASUREMENT PINS 70 AVREF Analog Voltage Reference. When using an external reference source, this pin must be connected to 1μF and 0.01μF filter capacitors in parallel. When using an internal reference source, this pin must be connected to a 0.01μF capacitor. Analog Input 0:1. T his pair of analog inputs can function as two single-ended inputs or one differential pair. When functioning in differential mode, AN0 is the positive input and AN1 is the negative input. Analog Input 2:3. T his pair of analog inputs can function as two single-ended inputs or one differential pair. When functioning in differential mode, AN2 is the positive input and AN3 is the negative input. Analog Input 4:5. T his pair of analog inputs can function as two single-ended inputs or one differential pair. When functioning in differential mode, AN4 is the positive input and AN5 is the negative input. Analog Input 6:7. T his pair of analog inputs can function as two single-ended inputs or one differential pair. When functioning in differential mode, AN6 is the positive input and AN7 is the negative input. R ESET PIN Digital, Active-Low, Reset Input/Output. The CPU is held in reset when this pin 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 4mA. This pin is driven low as an output when an internal reset condition occurs. CLOCK PINS 81 80 64 65 32KIN 32KOUT HFXIN HFXOUT 32kHz Crystal Input/Output. Connect an external 6pF, 32kHz watch crystal between 32KIN and 32KOUT to generate the system clock. Alternatively, 32KIN is the input for an external clock source when 32KOUT is disconnected. 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 disconnected. LCD PINS 45 VLCD 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. FUNCTION 78, 77 AN0, AN1 76, 75 AN2, AN3 74, 73 AN4, AN5 72, 71 AN6, AN7 92 RST 44 VLCD1 16 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface Pin Description (continued) PIN 43 NAME VLCD2 FUNCTION 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. MAXQ2010 42 VADJ GENERAL-PURPOSE I/O, SPECIAL FUNCTION, AND LCD INTERFACE PINS Digital I/O, Type D Port 0; LCD Segment-Driver Output; External Edge-Selectable Interrupt. This port functions as either bidirectional I/O or alternate LCD segment-drive outputs. The reset condition of the port is with all bits at logic 1. In this state, a weak pullup holds the port high. This condition serves as an input mode. Each port pin can individually be configured to act as an external interrupt. Setting the PCF0 bit switches all pins on this port to LCD segment-drive outputs. 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 interrupt input. PIN 6 5 4 3 2 1 94 93 PORT P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 S PECIAL/ALTERNATE FUNCTION SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 6 –1, 94, 93 P0.0–P0.7; SEG0–SEG7; INT0–INT7 Digital I/O, Type C Port 1; LCD Segment-Driver Output. This port functions as either bidirectional I/O or alternate LCD segment-drive outputs. The reset condition of the port is with all bits at logic 1. In this state, a weak pullup holds the port high. This condition serves as an input mode. The port pins also contain a Schmitt voltage input. Setting the PCF1 bit switches all pins on this port to LCD segment-drive outputs. PIN 91–84 P1.0–P1.7; SEG8–SEG15 91 90 89 88 87 86 85 84 PORT P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 S PECIAL/ALTERNATE FUNCTION SEG8 SEG9 SEG10 SEG11 SEG12 SEG13 SEG14 SEG15 ______________________________________________________________________________________ 17 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Pin Description (continued) PIN NAME FUNCTION Digital I/O, Type C Port 2; LCD Segment-Driver Output. This port functions as either bidirectional I/O or alternate LCD segment-drive outputs. The reset condition of the port is with all bits at logic 1. In this state, a weak pullup holds the port high. This condition serves as an input mode. The port pins also contain a Schmitt voltage input. Setting the PCF2 bit switches all pins on this port to LCD segment-drive outputs. PIN 56–52, 48–46 P2.0–P2.7; SEG16–SEG23 56 55 54 53 52 48 47 46 PORT P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 SPECIAL/ALTERNATE FUNCTION SEG16 SEG17 SEG18 SEG19 SEG20 SEG21 SEG22 SEG23 Digital I/O, Type C Port 3; LCD Segment-Driver Output. This port functions as either bidirectional I/O or alternate LCD segment-drive outputs. The reset condition of the port is with all bits at logic 1. In this state, a weak pullup holds the port high. This condition serves as an input mode. The port pins also contain a Schmitt voltage input. Setting the PCF3 bit switches all pins on this port to LCD segment-drive outputs. PIN 36–33, 22–19 P3.0–P3.7; SEG24–SEG31 36 35 34 33 22 21 20 19 PORT P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 SPECIAL/ALTERNATE FUNCTION SEG24 SEG25 SEG26 SEG27 SEG28 SEG29 SEG30 SEG31 Digital I/O, Type-C Port 4; LCD Segment-Driver Output. This port functions as either bidirectional I/O or alternate LCD segment-drive outputs. The reset condition of the port is with all bits at logic 1. In this state, a weak pullup holds the port high. This condition serves as an input mode. The port pins also contain a Schmitt voltage input. Setting the PCF4 bit switches all pins on this port to LCD segment-drive outputs. PIN 18–11 P4.0–P4.7; SEG32–SEG39 18 17 16 15 14 13 12 11 PORT P4.0 P4.1 P4.2 P4.3 P4.4 P4.5 P4.6 P4.7 SPECIAL/ALTERNATE FUNCTION SEG32 SEG33 SEG34 SEG35 SEG36 SEG37 SEG38 SEG39 18 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface Pin Description (continued) PIN NAME FUNCTION LCD Segment-Driver Output; LCD Common Drive Output. These pins function as LCD segment or common drive outputs. Configuring a pin as a common drive output disables the segment function for that pin. PIN 10 9 8 7 COM0 P5.0/INT8/ TB0B/RX0 SPECIAL/ALTERNATE FUNCTION COM3 COM2 COM1 SEG40 SEG41 SEG42 MAXQ2010 10, 9, 8 COM3, COM2, COM1; SEG40, SEG41, SEG42 LCD Common Drive 0, Output. This pin functions as a LCD common-drive output. Digital I/O, Type D Port 5.0; Timer B0 Pin B; Serial Port 0 Receive; External Edge-Selectable Interrupt 8. T his pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as digital I/O. Digital I/O, Type D Port 5.1; Timer B0 Pin A; Serial Port 0 Transmit; External EdgeSelectable Interrupt 9. T his pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as generalpurpose I/O. Digital I/O, Type-D Port 5.2; External Edge-Selectable Interrupt 10; RTC Square-Wave Output. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 5.3; External Edge-Selectable Interrupt 11; Active-Low SPI SlaveSelect Input. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 5.4; External Edge-Selectable Interrupt 12; SPI Master Out-Slave In. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 5.5; External Edge-Selectable Interrupt 13; SPI Clock Output. This pin defaults as an input with a weak pullup after a reset and functions as general-purpose I/O. The port pad contains a Schmitt input circuitry and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 5.6; External Edge-Selectable Interrupt 14; SPI Master In-Slave Out. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 6.0; External Edge-Selectable Interrupt 15; JTAG Test Clock Input. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 6.1; External Edge-Selectable Interrupt 16; JTAG Test Data Input. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. 68 67 P5.1/INT9/ TB0A/TX0 61 P5.2/INT10/ SQW 60 P5.3/INT11/ SSEL 59 P5.4/INT12/ MOSI 58 P5.5/INT13/ SCLK 57 P5.6/INT14/ MISO 32 P6.0/INT15/ TCK 31 P6.1/INT16/ TDI ______________________________________________________________________________________ 19 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Pin Description (continued) PIN NAME P6.2/INT17/ TMS FUNCTION Digital I/O, Type D Port 6.2; External Edge-Selectable Interrupt 17; JTAG Test Mode Select Input. This pin defaults to an input with a weak pullup after reset and functions as generalpurpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type-D Port 6.3; External Edge-Selectable Interrupt 18; JTAG Test Data Output. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 6.4; External Edge-Selectable Interrupt 19; Timer B1 Pin B; Serial Port 1 Receive. T his pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 6.5; External Edge-Selectable Interrupt 20; Timer B1 Pin A; Serial Port 1 Transmit. This pin defaults to an input with a weak pullup after reset and functions as general-purpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. Digital I/O, Type D Port 6.6; External Edge-Selectable Interrupt 21; Timer B2 Pin B; I2C Clock I/O. This pin defaults to an input with a weak pullup after reset and functions as generalpurpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general purpose I/O. Digital I/O, Type D Port 6.7; External Edge-Selectable Interrupt 22; Timer B2 Pin A; I2C Data I/O. This pin defaults to an input with a weak pullup after reset and functions as generalpurpose I/O. The port pad contains a Schmitt voltage input and can be configured as an external interrupt. Enabling a special function disables the pin as general-purpose I/O. NO CONNECTION PINS 26, 27, 37, 38, 39, 49, 50, 51, 62, 69, 83, 97, 100 30 29 P6.3/INT18/ TDO 28 P6.4/INT19/ TB1B/RX1 25 P6.5/INT20/ TB1A/TX1 24 P6.6/INT21/ TB2B/SCL 23 P6.7/INT22/ TB2A/SDA N.C. No Connection. Reserved for future use. Leave these pins unconnected. 20 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface Detailed Description The following sections are an introduction to the primary features of the microcontroller. More detailed descriptions of the device features can be found in the errata sheets and user’s guides described later in the Additional Documentation section. 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 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. MAXQ2010 MAXQ Core Architecture The MAXQ2010 is a low-cost, high-performance, CMOS, fully static, 16-bit RISC microcontroller with flash memory and an integrated LCD controller. The MAXQ2010 supports up to a 160-segment LCD and supports 8 channels of high-performance measurement using a 12-bit successive approximation register (SAR) ADC with internal reference. The MAXQ2010 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 microcontroller performing at up to one million instructions-per-second (MIPS) for each MHz of the system operating frequency. A 16-level hardware stack, enabling fast subroutine calling and task switching, supports the highly efficient core. 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, including: • 4KB utility ROM • 64KB of flash memory for program storage • 2KB of SRAM for storage of temporary variables • 16-level stack memory for storage of program return addresses and general-purpose use The incorporation of flash memory allows the devices to be reprogrammed multiple times, allowing modifications to user applications post production. Additionally, the flash can be used to store application information including configuration data and log files. The default memory organization is organized as a Harvard architecture, with separate address spaces for program and data memory. Pseudo-Von Neumann memory organization is supported through the utility ROM for applications that require dynamic program modification and execution from RAM. The pseudo-Von Neumann memory organization places the code, data, and utility ROM memories into a single contiguous memory map. See Figure 5 for the memory map. 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, which 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. Stack Memory A 16-bit-wide hardware stack provides storage for program return addresses and can also be used as general-purpose data storage. The stack is used automatically by the processor when the CALL, RET, and RETI instructions are executed and when an interrupt is serviced. An application can also store values in the stack explicitly by using the PUSH, POP, and POPI instructions. 21 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 FFFFh WBSn = 1 FFFFh WBSn = 0 FFFFh 0Fh 16 x 16 STACK 00h PROGRAM SPACE REGISTERS FFh 87FFh 2K x 16 UTILITY ROM 8000h 7FFFh 1Fh 0Fh DATA SPACE SPRs 32K x 16 PROGRAM MEMORY 07h 06h SFRs 03FFh 1K x 16 DATA RAM 0000h 0000h 07FFh 00h 0000h Figure 5. MAXQ2010 Default Memory Map 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 at SP and then decrement SP. • 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: MAXQ2010 Supplement. Some applications require protection against unauthorized viewing of program code memory. For these Utility ROM The utility ROM is a 4KB 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 the following: • In-system programming (bootstrap loader) using JTAG interface • In-circuit debug routines 22 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface 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 0010h to 001Fh. A single password lock (PWL) bit is implemented in the SC register. When the PWL is set to 1 (power-on reset default) and the contents of the memory at addresses 0010h to 001Fh are any value other than all FFh or 00h, 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 0, these utilities are fully accessible without the password. The password is automatically set to all 1s following a mass erase. 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 mission-critical 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 MAXQ Family User’s Guide: MAXQ2010 Supplement. MAXQ2010 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. The documentation on the module and register functions is covered fully in the MAXQ Family User’s Guide and the M AXQ Family User’s Guide: MAXQ2010 Supplement. This information includes the locations of status and control bits and a detailed description of their function and reset values. Refer to these documents for a complete understanding of the features and operation of the microcontroller. Programming The microcontroller’s flash memory can be programmed by two different methods: in-system programming and in-application programming. Both methods afford great flexibility in system design and reduce the life-cycle cost of the embedded system. These features can be password protected to prevent unauthorized access to code memory. (Bootloader) 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 updates enable application updates to physically inaccessible equipment. 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. If in-system programmability is not required, use a commercial gang programmer 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 • Verify • Dump • CRC • Erase System Timing For maximum versatility, the device can generate its internal system clock from several sources: • External clock source • Internal oscillator using external crystal or resonator • FLL using 32kHz clock source (approximately 8MHz) • FLL with no external crystal (approximately 5MHz) Operation from an external clock source or internal oscillator using external crystal or resonator is similar to other microcontrollers. The designer must remember that the rated maximum speed of operation applies to the speed of the microcontroller core, not the external ______________________________________________________________________________________ 23 16-Bit Mixed-Signal Microcontroller with LCD Interface clock source. The device contains an FLL that is used as a clock source by itself (FLLEN = 0) or as a multiplier for the 32kHz crystal (FLLEN = 1). The 32kHz-modebased timing is more stable due to the use of the crystal as a time base. A crystal warmup counter enhances operational reliability. If the user has selected to run from the external crystal or clock source, 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 operates from the internal FLL and automatically switches back to the crystal as soon as it is ready. Programmable clock-divide control bits (CD1 and CD0) and the PMME bit provide the processor with the ability to slow the system clock, resulting in lower power consumption. The CD[1:0] bits default to 00b, selecting a divide-by-1 system clock, but five clock-divisor options allow the selection of different crystals to accommodate specific system needs. In power-management mode (PMM), one system clock is 256 oscillator cycles, significantly reducing power consumption while the microcontroller functions at reduced speed. The switchback feature allows the system to exit PMM in response to an external interrupt or serial port activity, quickly switching from the slower, power-saving mode to full speed. In addition, the lowest power stop mode allows the microcontroller to stop the internal oscillator, halting the system clock. 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 user software evaluates the interrupts, the user can define a unique interrupt priority scheme for each application. The following interrupt sources are supported: • Supply Voltage Monitor • External Interrupts 22 to 0 • Timer 2, 1, 0 • Serial Port 1, 0 • Watchdog Timer • RTC Time-of-Day or Subsecond Alarm • SPI • I2C • ADC When an enabled interrupt is detected, software jumps to the dedicated interrupt vector address reserved for that interrupt. User-application code at this address then routes program execution to a user-defined interrupt routine. MAXQ2010 I/O Ports The microcontroller uses Type C and Type D bidirectional I/O pins as described in the MAXQ Family User's Guide. Each port has up to eight independent, generalpurpose 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, overriding the general-purpose I/O functionality. Type C port pins have Schmitt trigger receivers and full CMOS output drivers, and can support alternate functions. The pin is either high impedance or a 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 high impedance or a 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. See Figure 6 for a Type C/D port pin schematic. Interrupts Multiple interrupt 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 the 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 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 two-instruction 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 24 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 VDDIO WEAK PD.x SF DIRECTION MUX MAXQ2010 VDDIO SF ENABLE PO.x SF OUTPUT MUX I/O PAD PORT PIN PI.x OR SF INPUT FLAG INTERRUPT FLAG DETECT CIRCUIT EIES.x TYPE D PORT ONLY Figure 6. Type C/D Port Pin Schematic Supply Voltage Monitor The supply voltage monitor can detect if the supply voltage has fallen below a user-selectable level. If this happens, the microcontroller can be programmed to generate an interrupt to inform the system. The detection level is set using the supply voltage threshold bit (SVTH) and can be adjusted from 2.7V to 3.5V in 0.1V increments. Setting the SVMEN bit to 1 enables the supply voltage monitor. Once the monitoring circuitry is stable and ready for operation, the supply voltage monitor ready (SVMRDY) flag is set to 1. The default set point is 2.7V (SVTH[3:0] = 07h). Care must be taken not to set the set point below 2.7V as SVM interrupts may not occur because the brownout monitor may activate first. The supply voltage monitor causes a switchback to occur if the supply voltage falls below the threshold value and the supply voltage monitor interrupt is enabled (SVMIE = 1). The supply voltage monitor remains operational in stop mode if the supply voltage monitor stop mode enable bit (SVMSTOP) is set to 1. Clearing SVMSTOP to 0 disables the supply voltage monitor on entry to stop mode if the SVM peripheral is enabled. If the supply voltage monitor is enabled during stop mode, an SVMI interrupt causes the processor to exit stop mode if enabled (SVMIE = 1). Serial Peripherals The microcontroller supports two independent USARTs as well as I2C master/slave and SPI master communication ports. USART Serial Ports The independent USARTs provide transmit and receive signals to 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 USARTs can communicate simultaneously at different baud rates with two separate peripherals. The USART can detect framing errors and indicate the condition through a user-accessible software bit. ______________________________________________________________________________________ 25 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 The time base of the serial ports is derived from either a division of the system clock or the dedicated baudclock generator. Table 1 summarizes the operating characteristics of each mode. Real-Time Clock A binary real-time clock (RTC) 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 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 support interrupts with a minimum interval of approximately 3.9ms. This creates an additional timer that can be used to measure long periods of time without performance degradation. Traditionally, long time periods have been measured using multiple interrupts from shorter interrupt intervals. 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. An internal crystal oscillator clocks the RTC using integrated 6pF load capacitors, and yields 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. I2C Bus The microcontroller integrates an internal I2C bus master/slave for communication with a wide variety of other I2C-enabled peripherals. The I2C bus is a 2-wire bidirectional bus using two bus lines, the serial data line (SDA), and the serial clock line (SCL), as well as a ground line. Both the SDA and SCL lines must be driven as open-collector/drain outputs. External resistors are required as shown in Figure 3 to pull the lines to a logic-high state. The MAXQ2010 is flexible in that it supports both the master and slave protocols. In the master mode, the device has ownership of the I2C bus and drives the clock and generates the START and STOP signals. This allows it to send data to a slave or receive data from a slave as required. In slave mode, the MAXQ2010 relies on an externally generated clock to drive SCL and responds to data and commands only when requested by the I2C master device. Serial Peripheral Interface (SPI) The integrated SPI provides an independent serial communication channel that communicates synchronously with peripheral devices in a multiple master or multiple slave system. The interface allows access to a 4-wire, full-duplex serial bus, and can be operated in either master mode or slave mode. Collision detection is provided when two or more masters attempt a data transfer at the same time. The maximum SPI master transfer rate is Sysclk/2. When operating as an SPI slave, the MAXQ2010 can support up to a Sysclk/4 SPI transfer rate. Data is transferred as an 8-bit or 16-bit value, MSB first. In addition, the SPI module supports configuration of active SSEL state through the slave-active select. Programmable Timers The microcontroller incorporates three instances of the 16-bit programmable Timer/Counter B peripheral, denoted TB0, TB1, and TB2. They can be used in counter/timer/capture/compare/PWM functions, allowing precise control of internal and external events. These timer/counters support clock input prescaling and set/reset/toggle PWM/output control functionality not found on other MAXQ timer implementations. A new register, TBC, supports certain PWM/output control functions in some implementations. A distinguishing characteristic of Timer/Counter B is that its count Table 1. Serial Port Operating Characteristics MODE Mode 0 Mode 1 Mode 2 Mode 3 TYPE Synchronous Asynchronous Asynchronous Asynchronous START BITS — 1 1 1 DATA BITS 8 8 8+1 8+1 STOP BIT — 1 1 1 26 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface ranges from 0000h to the value stored in the 16-bit capture/reload register (TBR), whereas in other implementations (e.g., Timer 1) the count ranges from the value in the reload register to FFFFh. These timers are fully described in the MAXQ Family User’s Guide. Timer B operational modes include the following: • Autoreload • Autoreload Using External Pin • Capture Using External Pin • Up/Down Count Using External Pin • Up-Count PWM/Output • Up/Down PWM/Output • Clock Output on TBB Pin Seven different multiply operations can be performed without requiring direct intervention of the microcontroller core. These include the following: • Unsigned 16-bit multiplication • Unsigned 16-bit multiplication and accumulation • Unsigned 16-bit multiplication and subtraction • Signed 16-bit multiplication • Signed 16-bit multiplication and negate • Signed 16-bit multiplication and accumulation • Signed 16-bit multiplication and subtraction Each of these operations is controlled and accessed through six SFR registers. The 8-bit multiplier control register (MCNT) selects the operation, data type, operand count, optional hardware-based square function, write option on the MC register, the overflow flag, and the clear control for operand registers and accumulator. Loading and unloading of the data is achieved through five 16-bit SFR registers. Only one cycle is needed for computation. This means that the result of an operation is ready in the next cycle immediately following the loading of the last operand. Back-to-back operations can be performed without wait states between operations, independent of data type and operand count. MAXQ2010 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 is periodically reset and never reaches 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. 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 8MHz, watchdog timeout periods can be programmed from 512µs to 67s, depending on the system clock mode. Analog-to-Digital Converter The MAXQ2010 contains a 12-bit successive approximation analog-to-digital converter (ADC) with an analog mux (Figure 7). The mux selects the ADC input from eight single-ended channels or four differential channels. An internal precision bandgap reference can be used for the ADC reference voltage, or the reference voltage can be externally driven. Additionally, the analog supply voltage (AVDD) can also be used as the voltage reference. The ADC runs off a 2.7V to 3.6V power supply and at a conversion rate up to 300ksps. The ADC block includes a 12-bit SAR core, ADC controls, a reference generator, and a circular block of sixteen 12-bit data buffers. The ADC is controlled by SFR registers. An autoscan feature allows the user to select up to eight sampling channels for storage in the 16 memory locations. There are two conversion modes: single-sequence mode and continuous-sequence mode. The ADC’s internal power-management system automatically powers down when the conversion(s) are done (ADCONV = 0). The start conversion bit, ADCONV, is used to start all conversion processes. If the ADC power-management override bit is cleared 27 Hardware Multiplier The internal hardware multiplier supports high-speed multiplications. The multiplier can complete a 16-bit x 16-bit multiply-and-accumulate/subtract operation in a single cycle with the support of a 48-bit accumulator. The multiplier is a fixed-point arithmetic unit. The operands can be either signed or unsigned numbers, but the data type must be defined by the application software prior to loading the operand registers. ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface (ADPMO = 0), the ADC waits for 20 ADCCLK before starting the first conversion. This allows the ADC time to set up. If ADPMO = 1, an ADC conversion is initiated as soon as ADCONV is set to 1. ADC operation is aborted upon entry into PMM or stop mode. The ADCONV bit is set at the beginning of the conversion process and remains set until the conversion process is finished. In single-sequence mode, this bit remains set until the ADC has finished conversion on the last channel in the sequence. In continuous mode, the ADCONV bit remains set until the continuous mode is stopped. Writing a 0 to the ADCONV bit stops ADC operation at the completion of the current ADC conversion. The new data is written to the data buffer. An A/D conversion takes 16 ADCCLK cycles to complete. Three of the 16 ADCCLK cycles are used for sample acquisition. The ADCCLK is derived from the system clock with divide ratio defined by the ADC clock divider bits (ADCCLK). Therefore, with 16 ADCCLK to acquire one data, the fastest ADC rate = sysclk/16 (ADCCLK = 0h, ADACQEN = 0h). With a 10MHz system clock, this is theoretically equivalent to 10MHz/16 value Msps. Note, however, that the ADC conversion is limited to 300ksps. If the ADC data-available interrupt is enabled (ADDAIE = 1), an interrupt is generated to the CPU when ADDAI = 1. Once set, the ADDAI flag can be cleared by software writing a 0 or at the start of a conversion process when ADCONV is set to 1. The data-available interrupt flag (ADDAI) can optionally be set by using the ADC data-available interrupt interval bits (ADDAINV). The MAXQ2010 ADDAI can be set in 1, 2, 3, 4, 5, 6, 7, 8, 12, or 16 samples intervals. For a sequence that uses only one configuration register, setting ADDAINV = 00 generates an interrupt with the same interval as ADDAINV = 01, both of which set the ADDAI at every ADC sample. When the ADDAI is set, the last memory location written by ADC will also be written to ADDADDR. LCD Controller The MAXQ2010 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 43 segment outputs (SEG0 to SEG42) and four common signal outputs (COM0 to 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 21-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- AVDD AVSS ADC CONTROL ADC INTERRUPT ADC REFERENCE INTERNAL REFERENCE EXTERNAL REFERENCE AVDD 12-BIT SAR INPUT MULTIPLEXER AND TRACK/HOLD AN7 AN6 AN5 AN4 AN3 AN2 AN1 AN0 Figure 7. ADC Block Diagram 28 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface 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 (COM[0:1]) 1/3 duty multiplexed with 1/3 bias voltages (COM[0:2]) 1/4 duty multiplexed with 1/3 bias voltages (COM[0:3]) • Up to 43 segment outputs and four common-signal outputs • 21 bytes (168 bits) of display memory • Flexible LCD clock source, selectable from 32kHz or HFClk/512 • Adjustable frame frequency • Internal voltage-divider resistors eliminate requirement for external components • Internal adjustable resistor allows contrast adjustment without external components A simple LCD-segmented glass interface example demonstrates the minimal hardware required to interface to a MAXQ2010 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. See Figure 8. MAXQ2010 In-Circuit Debug Embedded debugging capability is available through the JTAG-compatible TAP. 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 9 shows a block diagram of the in-circuit debugger. The in-circuit debug features include the following: • A hardware debug engine. • A set of registers able to set breakpoints on register, code, or data accesses. • 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. MAXQ2010 SEG0 SEG4 SEG[0:7] SEG1 SEG5 SEG2 SEG3 COM0 COM1 CONNECTED TO DARK GREY SEGMENTS CONNECTED TO LIGHT GREY SEGMENTS SEG6 SEG7 Figure 8. Two-Character, 1/2 Duty, LCD Interface Example ______________________________________________________________________________________ 29 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 MAXQ2010 DEBUG SERVICE ROUTINES (UTILITY ROM) CPU TMS TCK TDI TDO DEBUG ENGINE TAP CONTROLLER CONTROL BREAKPOINT ADDRESS DATA Figure 9. In-Circuit Debugger Applications Information The low-power, high-performance RISC architecture of this device 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 160 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 reduces component count and board space, critical factors in the design of portable systems. The MAXQ2010 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 frontends for measuring test strips. that could cause improper operation. The use of multilayer boards is essential to allow the use of dedicated power planes. The area under any digital components should be a continuous ground plane if possible. Keep any bypass capacitor leads short for best noise rejection and place the capacitors as close to the leads of the devices as possible. Separate ground areas must be provided for the analog (AGND) and digital (DGND) portions, connected together at a single point. CMOS design guidelines for any semiconductor require that no pin be taken above VDVDD or below DGND. Violation of this guideline can result in a hard failure (damage to the silicon inside the device) or a soft failure (unintentional modification of memory contents). Voltage spikes above or below the device’s absolute maximum ratings can potentially cause a devastating IC latchup. Microcontrollers commonly experience negative voltage spikes through either their power pins or generalpurpose I/O pins. Negative voltage spikes on power pins are especially problematic as they directly couple to the internal power buses. Devices such as keypads can conduct electrostatic discharges directly into the microcontroller and seriously damage the device. System designers must protect components against these transients that can corrupt system memory. Grounds and Bypassing Careful PCB layout significantly minimizes noise on the analog inputs, resulting in less noise on the digital I/O 30 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface Pin Configuration N.C. REGOUT REGOUT N.C. DVDD DGND P0.6/SEG6/INT6 P0.7/SEG7/INT7 RST P1.0/SEG8 P1.1/SEG9 P1.2/SEG10 P1.3/SEG11 P1.4/SEG12 P1.5/SEG13 P1.6/SEG14 MAXQ2010 P1.7/SEG15 TOP VIEW 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 84 83 82 81 80 79 78 77 76 + P0.5/SEG5/INT5 P0.4/SEG4/INT4 P0.3/SEG3/INT3 P0.2/SEG2/INT2 P0.1/SEG1/INT1 P0.0/SEG0/INT0 COM0 COM1/SEG42 COM2/SEG41 COM3/SEG40 P4.7/SEG39 P4.6/SEG38 P4.5/SEG37 P4.4/SEG36 P4.3/SEG35 P4.2/SEG34 P4.1/SEG33 P4.0/SEG32 P3.7/SEG31 P3.6/SEG30 P3.5/SEG29 P3.4/SEG28 P6.7/INT22/TB2A/SDA P6.6/INT21/TB2B/SCL P6.5/INT20/TB1A/TX1 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 56 55 54 53 52 51 32KOUT AGND AN0 AN1 AN2 32KIN AVDD N.C. AN3 AN4 AN5 AN6 AN7 AVREF N.C. P5.0/INT8/TB0B/RX0 P5.1/INT9/TB0A/TX0 DGND HFXOUT HFXIN DVDD N.C. P5.2/INT10/SQW P5.3/INT11/SSEL P5.4/INT12/MOSI P5.5/INT13/SCLK P5.6/INT14/MISO P2.0/SEG16 P2.1/SEG17 P2.2/SEG18 P2.3/SEG19 P2.4/SEG20 N.C. MAXQ2010 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 N.C. N.C. P6.4/INT19/TB1B/RX1 P6.3/INT18/TDO P6.2/INT17/TMS P6.1/INT16/TDI P6.0/INT15/TCK P3.3/SEG27 P3.2/SEG26 P3.1/SEG25 P3.0/SEG24 N.C. N.C. N.C. DVDD DGND VADJ LQFP ______________________________________________________________________________________ P2.7/SEG23 P2.6/SEG22 P2.5/SEG21 N.C. N.C. VLCD2 VLCD1 VLCD 31 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Typical Application Circuit 160-SEGMENT LCD DISPLAY AVDD DVDD AGND DGND OPTIONAL EXTERNAL REFERENCE COM3 COM2 COM1 COM0 UP TO 40 LCD SEGMENT PINS SEG PINS AVREF 1μF 10nF RX0 TX0 RX1 TX1 SERIAL 0 MAX3233E RS-232 TRANSCEIVER HOST INTERFACE SERIAL 1 AN0 AN1 AN2 AN3 AN4 AN5 AN6 AN7 32KIN 32.768kHz 32KOUT 22pF HFXIN 10MHz HFXOUT OPTIONAL 1kΩ RST REGOUT 1μF 22pF MAXQ2010 SSEL MOSI SCLK MISO DS1802 DUAL AUDIO TAPER POTENTIOMETER WITH PUSHBUTTON CONTROL* SCL SDA DS4404 FOUR CURRENT SOURCES CAPABLE OF SINKING OR SOURCING CURRENT* UP TO 55 DIGITAL I/O PINS JTAG PINS JTAG INTERFACE HOST INTERFACE *APPLICATION DEPENDENT. 32 ______________________________________________________________________________________ 16-Bit Mixed-Signal Microcontroller with LCD Interface 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. • This MAXQ2010 data sheet, which contains electrical/timing specifications and pin descriptions. • The MAXQ2010 revision-specific errata sheet (www.maxim-ic.com/errata). • The MAXQ Family User's Guide, which contains detailed information on core features and operation, including programming (www.maxim-ic.com/MAXQUG). • The MAXQ Family User's Guide: MAXQ2010 Supplement, which contains detailed information on features specific to the MAXQ2010. Development and Technical Support Maxim and third-party suppliers provide a variety of highly versatile, affordably priced development tools for this microcontroller, including the following: • 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 at www.maxim-ic.com/MAXQ_tools. For technical support, go to https://support.maximic.com/micro. MAXQ2010 Selector Guide PART MAXQ2010-RFX+ PROGRAM MEMORY (KB) 64 DATA MEMORY (KB) 2 LCD SEGMENTS 160 ADC CHANNELS 8 ADC RESOLUTION 12 Package Information For the latest package outline information and land patterns, go to www.maxim-ic.com/packages. PACKAGE TYPE 100 LQFP PACKAGE CODE — DOCUMENT NO. 21-0297 ______________________________________________________________________________________ 33 16-Bit Mixed-Signal Microcontroller with LCD Interface MAXQ2010 Revision History REVISION NUMBER 0 REVISION DATE 7/08 Initial release. Updated the title to include “LCD Interface.” 1 12/08 Corrected the axis titles for TOC2 in the T ypical Operating Characteristics section. Added the I2C Bus a nd Serial Peripheral Interface (SPI) sections. DESCRIPTION PAGES CHANGED — All 14 26 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. 34 ____________________Maxim Integrated Products, 120 San Gabriel Drive, Sunnyvale, CA 94086 408-737-7600 © 2008 Maxim Integrated Products is a registered trademark of Maxim Integrated Products, Inc.
MAXQ2010 价格&库存

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

免费人工找货