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

  • 发资料

  • 发帖

  • 提问

  • 发视频

创作活动
MAXQ3120-FFN

MAXQ3120-FFN

  • 厂商:

    DALLAS

  • 封装:

  • 描述:

    MAXQ3120-FFN - High-Precision ADC Mixed-Signal Microcontroller - Dallas Semiconductor

  • 数据手册
  • 价格&库存
MAXQ3120-FFN 数据手册
Rev 1; 8/05 High-Precision ADC Mixed-Signal Microcontroller General Description The MAXQ3120 microcontroller is a high-performance, 16-bit microcontroller that incorporates dual, true-differential, 16-bit sigma-delta analog-to-digital converters (ADCs), a liquid-crystal display (LCD) interface that can drive up to 112 segments, and a real-time clock (RTC) module with a dedicated battery-backup supply. The MAXQ3120 is uniquely suited for the single-phase electricity metering market, but can be used in any application that requires high-performance operation. The device can operate at a maximum of 8MHz (DVDD = 3.3V). The MAXQ3120 has 16kWords of flash memory, 256 words of RAM, three 16-bit timers, and two universal synchronous/asynchronous receiver/transmitters (USARTs). The microcontroller core and I/O are powered by a single 3.3V supply, and an additional battery supply keeps the RTC running during power outages. Features ♦ High-Performance, Low-Power, 16-Bit RISC Core DC to 8MHz Operation, Approaching 1MIPS per MHz 3.3V Core and I/O 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) ♦ Program and Data Memory 16kWords Flash Memory 1,000,000 Flash Write/Erase Cycles 256 Words of Internal Data RAM JTAG Bootloader for Programming ♦ Dual, 16-Bit Sigma-Delta ADCs Differential Analog Input Channels Programmable Gain of 1x or 16x Integrated Sinc3 Filters Digital Phase Compensation and Trimmable Bandgap Reference ♦ Peripheral Features Up to 32 General-Purpose I/O Pins 112-Segment LCD Driver Up to 4 COM and 28 Segments Static, 1/2, and 1/3 LCD Bias Supported No External Resistors Required Two Serial USARTs, One with Infrared PWM Support One-Cycle, 16 x 16 Hardware Multiply/ Accumulate with 40-Bit Accumulator Three 16-Bit Programmable Timers/Counters, One with Infrared PWM Support 8-Bit, Subsecond, System Timer/Alarm Battery-Backed, 32-Bit RTC with Time-of-Day Alarm and Digital Trim Programmable Watchdog Timer ♦ Flexible Programming Interface Bootloader Simplifies Programming In-System Programming Through JTAG Supports In-Application Programming of Flash Memory ♦ Power Consumption < 28mA at 8MHz, 3.3V Flash Operation 320µA Standby Current in Sleep Mode Low-Power Divide-by-256 Mode 1 MAXQ3120 Applications Single-Phase Electricity Metering 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 Ordering Information PART MAXQ3120-FFN MAXQ3120-FFN+ TEMP RANGE -40°C to +85°C -40°C to +85°C PIN-PACKAGE 80 MQFP 80 MQFP +Denotes a Pb-free/RoHS-compliant device. Selector Guide, Typical Operating Circuit, and Pin Configuration appear at end of data sheet. MAXQ is a trademark of Maxim Integrated Products, 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 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. High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 ABSOLUTE MAXIMUM RATINGS Voltage Range on DVDD Relative to DGND ..........-0.3V to +4.0V Voltage Range on AVDD Relative to AGND...........-0.3V to +4.0V Voltage Range on AGND Relative to DGND .........-0.3V to +0.3V Voltage Range on AVDD Relative to DVDD ............-0.3V to +0.3V Voltage Range on Any Pin Relative to DGND Except AN0+, AN0-, AN1+, AN1-.........-0.3V to (DVDD + 0.5V) Voltage Range on AN0+, AN0-, AN1+, AN1- Relative to AGND ......................................-4.0V to +4.0V Operating Temperature Range ...........................-40°C to +85°C Junction Temperature ......................................................+150°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 (DVDD, AVDD = VRST to 3.6V, VREF = 1.25V (external), fHFXIN = 8MHz, TA = -40°C to +85°C, unless otherwise noted.) (Note 1) PARAMETER Digital Supply Voltage Digital Supply Ramp Rate Digital Power-Fail Reset VRST IDD1 Active Current (Note 2) IDD2 IDD3 IDD4 IDD5 Stop-Mode Current (DVDD plus AVDD) Battery Supply Voltage Battery Current Input High Voltage Input Low Voltage Input Hysteresis (Schmitt) Output High Voltage (All Ports) Output Low Voltage (All Ports, RESET) Input Low Current (All Ports) RESET Pullup Resistance Input Leakage (All Ports) ISTOP VBAT IBAT VIH VIL VIHYS VOH VOL IIL RRST IL Weak pullup disabled IOH = +1.5mA IOH = +2.5mA IOL = 3mA sink current IOL = 3.65mA sink current VIL = 0.4V; weak pullup enabled -50 50 -1 100 200 +1 DVDD - 0.4 DVDD - 0.5 0.4 0.5 RTCE = 1, DVDD = 0V, VBAT = 3.6V 0.7 x DVDD -0.3 0.6 1.8 5.1 /1 mode /2 mode /4 mode /8 mode PMM mode SYMBOL DVDD Can be controlled by placing a 1µF or higher capacitor between DVDD and ground CONDITIONS MIN VRST -16 2.8 2.9 21 11 5.7 3.1 1.0 320 760 3.8 10 DVDD + 0.3 0.3 x DVDD µA V µA V V V V V µA kΩ µA mA TYP 3.3 MAX 3.6 +16 3.03 28 UNITS V V/ms V 2 _____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller ELECTRICAL CHARACTERISTICS (continued) (DVDD, AVDD = VRST to 3.6V, VREF = 1.25V (external), fHFXIN = 8MHz, TA = -40°C to +85°C, unless otherwise noted.) (Note 1) PARAMETER Analog Supply Voltage Active Analog Supply Current Power-Down Analog Supply Current SYMBOL AVDD IAVDD AVDD = DVDD Normal operation APD2:0 = 111b CONDITIONS MIN 2.8 TYP 3.3 2.65 250 MAX 3.6 3.5 635 UNITS V mA µA MAXQ3120 ANALOG-TO-DIGITAL CONVERTER DC ACCURACY No missing codes, with software lowpass ADC Resolution filter (see Appendix A) Offset Error Gain = 1 Gain Error Gain-Error Drift Gain-Error Match DC Power-Supply Rejection PSRR AN0+, AN0- = AGND; AVDD = 3.0V to 3.6V DVDD = 3.3V, AVDD = 3.3V, AN0 = 25mV, peak-to-peak sine wave at 65Hz, gain = 16 Signal-to-Noise Ratio SNR With software lowpass filter, cutoff at 21st harmonic (see Appendix A) With software lowpass filter, cutoff at 7th harmonic (see Appendix A) Total Harmonic Distortion THD DVDD = 3.3V, AVDD = 3.3V, AN0 = 25mV, peak-to-peak sine wave at 65Hz, gain = 16 (up to 21st harmonic) ANALOG-TO-DIGITAL CONVERTER DYNAMIC SPECIFICATIONS 48 Gain = 1 16 ±5.0 ±5.0 ±10 ±0.5 80 bits mV % ppm % dB 57 71 74 dB -79 -55 dB ANALOG-TO-DIGITAL CONVERTER INPUTS Input-Voltage Range Input Sampling Capacitance (Note 3) Input Sampling Rate Sample Output Rate Input Impedance to AGND (Note 5) Differential Input Impedance (Note 6) Input Bandwidth (-3dB) Reference Input Voltage Reference Input Sampling Capacitance Reference Input Sampling Rate fS VREF 1.2 Gain = 1 Gain = 16 Gain = 1 Gain = 16 CIN fS AN0+, AN0-; AN1+, AN1- to AGND Channel 0 (Note 4) Gain = 1 Gain = 16 -1 1 16 1.33 fHFXIN / 384 750 46 1500 93 5.5 1.25 2 1.33 1.3 +1 V pF MHz sample / sec kΩ kΩ kHz V pF MHz _____________________________________________________________________ 3 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 ELECTRICAL CHARACTERISTICS (continued) (DVDD, AVDD = VRST to 3.6V, VREF = 1.25V (external), fHFXIN = 8MHz, TA = -40°C to +85°C, unless otherwise noted.) (Note 1) PARAMETER INTERNAL REFERENCE Reference Output Voltage Reference-Output Temperature Coefficient Load Regulation LCD INTERFACE LCD Reference Voltage LCD Bias Voltage 1 LCD Bias Voltage 2 LCD Adjustment Voltage (Note 7) LCD Bias Resistor LCD Adjust Resistor VLCD VLCD1 VLCD2 VADJ RLCD RLADJ LRA4:LRA0 = 0 Segment is driven at VLCD; VLCD = 3V, ISEGxx = -3µA, guaranteed by design Segment is driven at VLCD1; VLCD1 = 2V, ISEGxx = -3µA, guaranteed by design Segment is driven at VLCD2; VLCD2 = 1V, ISEGxx = -3µA, guaranteed by design Segment is driven at VADJ; VADJ = 0V, ISEGxx = +3µA, guaranteed by design CLOCK SOURCE External Crystal Frequency REAL-TIME CLOCK RTC Input Frequency JTAG/FLASH PROGRAMMING JTAG Clock Rate Flash Erase Time Flash Programming Time Write/Erase Cycles Data Retention 1,000,000 20 fTCK Mass erase Page erase 904 313 17 sysclk / 8 ms µs Cycles Years f32KIN 32kHz watch crystal 32.768 kHz fHFXIN 1 8 MHz VLCD 0.02 VLCD1 0.02 VLCD2 0.02 VADJ Guaranteed by design Guaranteed by design Guaranteed by design VADJ + 2/3 (VLCD - VADJ) VADJ + 1/3 (VLCD - VADJ) 0 20 40 VLCD VLCD1 VLCD2 0.1 0.4 x VLCD DVDD V V V V kΩ kΩ V V V V With VREF bandgap trimming (ATRM[4:0] = 01111b) IREF = ±2µA, CL = 12pF 1.25 ±120 ±35 ±50 ±500 ppm/°C µV/µA V SYMBOL CONDITIONS MIN TYP MAX UNITS LCD Segment Voltage VSEGxx Note 1: Specifications to -40°C are guaranteed by design and not production tested. All typical values are guaranteed by design characterization and are not production tested. Note 2: Tested with TA = +25°C, DVDD = 3.3V, and all peripherals inactive except for port pins. Note 3: These numbers are guaranteed by design and are not tested. Note 4: Can be calculated as (fHFXIN / 6). Note 5: Can be calculated as 6 / (fHFXIN x CIN). Note 6: Can be calculated as 12 / (fHFXIN x CIN). Note 7: Assumes that no external components are connected to VLCD, VLCD1, VLCD2, or VADJ. 4 _____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Typical Operating Characteristics (TA = +25°C, unless otherwise noted.) DIGITAL SUPPLY CURRENT vs. CLOCK FREQUENCY MAXQ3120 toc01 PORT PIN HIGH OUTPUT VOLTAGE vs. SOURCE CURRENT MAXQ3120 toc02 PORT PIN LOW-OUTPUT VOLTAGE vs. SINK CURRENT 0.9 0.8 0.7 VOL (V) TA = +85°C DVDD = 2.8V MAXQ3120 toc03 25 DVDD = +3.6V 20 IDD1 (mA) 2.8 2.7 2.6 2.5 VOH (V) 2.4 2.3 2.2 TA = +85°C TA = +25°C DVDD = 2.8V 1.0 0.6 0.5 0.4 0.3 TA = -40°C TA = +25°C 15 TA = +85°C 10 2.1 TA = -40°C, +25°C 2.0 1.9 TA = -40°C 0.2 0.1 0 5 2 3 4 5 fHFXIN (MHz) 6 7 8 1.8 0 2 4 IOH (mA) 6 8 10 0 2 4 IOL (mA) 6 8 10 REFERENCE VOLTAGE OUTPUT vs. LOAD CURRENT MAXQ3120 toc04 SIGNAL-TO-NOISE RATIO vs. INPUT FREQUENCY MAXQ3120 toc05 1.29 AVDD = 3.3V 1.28 60 TA = +25°C, +85°C 55 SNR (dB) 50 VREF = +1.25V AVDD = 3.3V 45 VREF (V) 1.27 TA = +85°C TA = +25°C TA = -40°C 1.26 1.25 1.24 -100 -50 0 IREF (µA) 50 100 0 1 2 3 4 5 6 7 8 9 10 INPUT FREQUENCY (kHz) _____________________________________________________________________ 5 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Pin Description PIN 22, 38, 60, 74 19, 37, 43, 59, 75 44 52 12 NAME DVDD DGND AVDD AGND VLCD Digital Supply Voltage (+3.3V) Digital Ground Analog Supply Voltage Analog Ground LCD Bias-Control Voltage. Highest LCD drive voltage used in all bias modes. This pin must be connected to an external supply when using the LCD display controller. LCD Bias, Voltage 1. Next highest LCD drive voltage, used in 1/2 and 1/3 LCD bias modes. An internal resistor-divider sets the voltage at this pin. External resistors and capacitors can be used to change LCD voltage or drive capability at this pin. This pin must be shunted externally to VLCD2 when using 1/2 bias mode. LCD Bias, Voltage 2. Third highest LCD drive voltage, used in 1/3 LCD bias mode only. An internal resistor-divider sets the voltage at this pin. External resistors and capacitors can be used to change LCD voltage or drive capability at this pin. This pin must be shunted externally to VLCD1 when using 1/2 bias mode. LCD Adjustment Voltage. Lowest LCD drive voltage, used in all bias modes. Connect to DGND through 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 a 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 between HFXIN and HFXOUT to generate the high-frequency system clock. HFXIN and HFXOUT contain integral 16pF load capacitors, so no external capacitor is required. High-Frequency Crystal Output. Connect an external crystal between HFXIN and HFXOUT to generate the high-frequency system clock. HFXIN and HFXOUT contain integral 16pF load capacitors, so no external capacitor is required. Digital Battery-Backup Supply. This supply provides an optional battery backup for the RTC when DVDD power is removed. If this supply is not provided, all functions of the device operate as normal, but the RTC is cleared upon power-on reset (POR). 32kHz Crystal Input. Connect an external, 32kHz watch crystal between 32KIN and 32KOUT to generate the 32kHz system clock. This clock is required for the RTC to operate. 32kHz Crystal Output. Connect an external, 32kHz watch crystal between 32KIN and 32KOUT to generate the 32kHz system clock. This clock is required for the RTC to operate. Voltage Reference Input/Output. Bias voltage (+1.25V) for the ADCs. An external reference voltage can be connected to this pin when extremely high accuracy is required. Negative Input for Sigma-Delta ADC Channel 0 Positive Input for Sigma-Delta ADC Channel 0 Negative Input for Sigma-Delta ADC Channel 1 Positive Input for Sigma-Delta ADC Channel 1 FUNCTION 13 VLCD1 14 VLCD2 15 VADJ 63 RESET 20 HFXIN 21 HFXOUT 53 VBAT 61 62 51 45 46 47 48 32KIN 32KOUT VREF AN0AN0+ AN1AN1+ 6 _____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller Pin Description (continued) PIN NAME FUNCTION General-Purpose, Digital, I/O, Type-D Port; External Edge-Selectable Interrupt. These port pins function as bidirectional I/O pins only. All port pins default to input mode with weak pullups enabled after a reset. Port pins P0.3, P0.4, and P0.5 can be configured as external interrupt inputs. All alternate functions must be enabled from software. P0.0–P0.7/ SQW, RXD0, TXD0, INT0–INT2/ T2A, T2B/ T0G, T0, T1 PIN 64 65 66 67 68 69 70 71 PORT P0.0 P0.1 P0.2 P0.3 P0.4 P0.5 P0.6 P0.7 ALTERNATE FUNCTIONS RTC Square-Wave Output Serial Port 0 Receive Serial Port 0 Transmit Timer 0 Gate Input Timer 0 Input Timer 1 Input/Output Timer 2 Input/Output A (T2P) Timer 2 Input/Output B (T2PB) — — — INT0 INT1 INT2 — — MAXQ3120 64–71 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 default to input mode with weak pullups enabled after a reset. Setting the LCD enable (PCFx) bit for a group of four port pins enables the LCD function and disables the general-purpose I/O function on all pins in that group. PIN 76 77 78 79 80 1 2 3 PORT P1.0 P1.1 P1.2 P1.3 P1.4 P1.5 P1.6 P1.7 LCD SEGMENT SEG19 SEG18 SEG17 SEG16 SEG15 SEG14 SEG13 SEG12 PCF0 LCD ENABLE 76–80, 1, 2, 3 P1.0–P1.7/ SEG19– SEG12 PCF1 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 default to input mode with weak pullups enabled after a reset. Setting the LCD enable (PCFx) bit for a group of four port pins enables the LCD function and disables the general-purpose I/O function on all pins in that group. PIN P2.0–P2.7/ SEG20– SEG27 28 29 30 31 32 33 34 39 PORT P2.0 P2.1 P2.2 P2.3 P2.4 P2.5 P2.6 P2.7 LCD SEGMENT SEG20 SEG21 SEG22 SEG23 SEG24 SEG25 SEG26 SEG27 PCF3 PCF2 LCD ENABLE 28–34, 39 _____________________________________________________________________ 7 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Pin Description (continued) PIN NAME FUNCTION General-Purpose, 8-Bit, Digital, I/O, Type-C Port. These port pins function as bidirectional I/O pins only. All port pins default to input mode with weak pullups enabled after a reset. JTAG functions are enabled by default following reset; all other alternate functions must be enabled from software. PIN 40, 41, 42, 54–58 P3.0–P3.7/ TDO, TDI, TMS, TCK, TXDI, RXDI 40 41 42 54 55 56 57 58 23 18 17 16 11 10 9 8 7 6 5 4 27 26 25 24 35, 36, 49, 50, 72, 73 SEG0 SEG1 SEG2 SEG3 SEG4 SEG5 SEG6 SEG7 SEG8 SEG9 SEG10 SEG11 COM0 COM1 COM2 COM3 N.C. PORT P3.0 P3.1 P3.2 P3.3 P3.4 P3.5 P3.6 P3.7 ALTERNATE FUNCTION TDO–JTAG Data Out TDI–JTAG Data In TMS–JTAG Mode Select TCK–JTAG Clock — — Serial Port 1 Transmit Serial Port 1 Receive LCD Segment 0 Driver. Dedicated LCD drive output. LCD Segment 1 Driver. Dedicated LCD drive output. LCD Segment 2 Driver. Dedicated LCD drive output. LCD Segment 3 Driver. Dedicated LCD drive output. LCD Segment 4 Driver. Dedicated LCD drive output. LCD Segment 5 Driver. Dedicated LCD drive output. LCD Segment 6 Driver. Dedicated LCD drive output. LCD Segment 7 Driver. Dedicated LCD drive output. LCD Segment 8 Driver. Dedicated LCD drive output. LCD Segment 9 Driver. Dedicated LCD drive output. LCD Segment 10 Driver. Dedicated LCD drive output. LCD Segment 11 Driver. Dedicated LCD drive output. LCD Common 0 Driver. Dedicated LCD common-voltage output. LCD Common 1 Driver. Dedicated LCD common-voltage output. LCD Common 2 Driver. Dedicated LCD common-voltage output. LCD Common 3 Driver. Dedicated LCD common-voltage output. No Connection 8 _____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller Functional Diagram AVDD AN0+ ADC ANALOG FRONT END AN0AN1+ AN1AGND MAXQ3120 CHANNEL 0 OUTPUT CHANNEL 0 SINC3 FILTER CHANNEL 1 OUTPUT MAXQ3120 FRONT CHANNEL 1 SINC3 FILTER CHANNEL 0 AND 1 PHASE DELAY CHANNEL 0 MODULATOR CHANNEL 1 MODULATOR VREF DVDD T0INT TIMER 0 T1INT TIMER 1 T2INT TIMER 2 T0 T0G T1 T2 T2B P0.3/INT0/T0G P0.4/INT1/T0 P0.5/INT2/T1 P0.6/T2A P0.7/T2B P0.0/SQW INFRARED CONTROL U0INT SERIAL USART 0 RXD0 TXD0 RXD1 SERIAL USART 1 TXD1 PORT PIN PAD DRIVERS P0.1/RXD0 P0.2/TXD0 P3.7/RXD1 P3.6/TXD1 WDC INTERRUPT CONTROLLER EXTINT WATCHDOG TIMER U1INT REGISTER FILE DVDD DP[0] DP[1] P3.3/TCK P3.2/TMS P3.1/TDI P3.0/TDO JTAG BOOTLOAD AND DEBUG INTERFACE 16-BIT RISC CPU CORE BP[Offs] P3.4 P3.5 P1[7:0] SEG[12:19] P2[7:0] SEG[27:20] DGND 16k x 16 (32kB) FLASH SEG[27:12] VLCD RESET DGND TIME OF DAY, INTERVAL HFXIN HFXOUT HF OSC CLK DIV WD DIV WDC 256 x 16 SRAM VLCD1 16 x 16 HW MULTIPLY LCD DRIVER 14 x 8 LCD DISPLAY RAM DGND SEG[11:0] COM[3:0] VBAT 32kHz CLOCK VADJ VLCD2 TIMER CLOCKS 32KIN 32KOUT 32K OSC REAL-TIME CLOCK, ALARMS (BATTERY BACKED) _____________________________________________________________________ 9 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 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. 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 8-bit 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. The following types of instructions require the use of the prefix register, PFX, to supply additional data. • Loading a 16-bit immediate value (with a nonzero high byte) into any register • Branching to a 16-bit absolute destination address (LJMP or LCALL) • Selecting one of the upper 8 registers in a system register module as a destination • Selecting one of the upper 16 registers in a peripheral register module as a source • Selecting one of the upper 24 registers in a peripheral register module as a destination For any of these instruction types, the prefix register is used to supply the additional immediate value bits, source bits, and destination bits as needed. This prefix register write is inserted automatically by the assembler and requires only one additional execution cycle for any or all of these conditions. MAXQ Core Architecture The MAXQ3120 is a low-cost, high-performance, CMOS, 16-bit RISC microcontroller with flash memory and an integrated 112-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 8 million instructionsper-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, the application speed is greatly increased. 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. System registers control functionality common to all MAXQ microcontrollers, while peripheral registers control peripherals and functions specific to the MAXQ3120. All registers 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 system 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 10 Memory Organization The device incorporates several memory areas: • 2kWords utility ROM • 16kWords of flash memory for program storage • 256 words of SRAM for storage of temporary variables • 16-level, 16-bit-wide 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. The configuration of program and data space depends on the current execution location. • When executing code from flash memory, the SRAM and utility ROM are accessible in data space. • When executing code from SRAM, the flash memory and utility ROM are accessible in data space. • When executing code from the utility ROM, the flash memory and SRAM are accessible in data space. ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Refer to the user’s guide supplement for this device for more details. In all cases, whichever memory segment is currently being executed from cannot be accessed in data space. To allow the use of lookup tables and similar constructs in the flash memory, the utility ROM contains a set of lookup and block copy routines (refer to the user’s guide supplement for this device for more details). The incorporation of flash memory allows the device 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. itly to store and retrieve data by using the PUSH, POP, and POPI instructions. 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 stack location pointed to by SP. The RET, RETI, POP, and POPI operations retrieve the value at the stack location pointed to by SP, and then decrement SP. Utility ROM The utility ROM is a 2kWord 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 (bootloader) over the JTAG interface • In-circuit debug routines • Test routines (internal memory tests, memory loader, etc.) • User-callable routines for in-application flash programming and code space table lookup DATA SPACE (BYTE MODE) DATA SPACE (WORD MODE) 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 explic- SYSTEM REGISTERS x0h 8xh 9xh Bxh Cxh Dxh Exh Fxh AP A PFX IP SP DPC DP xFh PROGRAM SPACE A0FFh 256 x 16 DATA SRAM A000h PERIPHERAL REGISTERS x0h 0xh 1xh 2xh 3xh M0 M1 M2 M3 16k x 16 PROGRAM FLASH OR MASKED ROM x1Fh 2k x 16 UTILITY ROM 87FFh 4k x 8 UTILITY ROM 8000h 3FFFh 8FFFh 2k x 16 UTILITY ROM 8000h 87FFh 8000h 01FFh 512 x 8 DATA SRAM 0000h 0000h 256 x 16 DATA SRAM 00FFh 16 x 16 STACK 0000h Figure 1. Memory Map ____________________________________________________________________ 11 High-Precision ADC Mixed-Signal Microcontroller Following any reset, execution begins in the utility ROM. The ROM software determines whether the program execution should immediately jump to the start of user-application code (located at address 0000h), 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 user’s guide supplement for this device. 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. 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 the password. The password is automatically set to all ones following a mass erase. Activating the JTAG interface and loading the test access port (TAP) with the system programming instruction invokes the bootloader. Setting the SPE bit to 1 during reset through the JTAG interface executes the bootloader-mode program that resides in the utility ROM. When programming is complete, the bootloader 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 bootloader functions are supported: • Load • Dump • CRC • Verify • 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 useraccessible flash programming functions that erase and program flash memory. These functions are described in detail in the user’s guide supplement for this device. MAXQ3120 Programming The flash memory of the microcontroller can be programmed by two different methods: in-system programming and in-application programming. Both 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, system software can be upgraded in-system, eliminating the need for a costly hardware retrofit when software 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/Dallas Semiconductor. If insystem programmability is not required, a commercial gang programmer can be used for mass programming. 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 MAXQ3120 register set. 12 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 1. System Register Map REGISTER INDEX 0xh 1xh 2xh 3xh 4xh 5xh 6xh 7xh 8xh 9xh Axh Bxh Cxh Dxh Exh Fxh 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 — — — LC[0] LC[1] — — — — — — — — DPC (Eh) — — — Offs DPC GR GRL BP GRS GRH GRXL BP[offs] — — — — DP (Fh) — — — DP[0] — — — DP[1] — — — — — — — — 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. ____________________________________________________________________ 13 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 2. System Register Bit Functions REGISTER AP APC PSF IC IMR SC IIR CKCN WDCN A[0..15] PFX IP SP IV LC[0] LC[1] Offs DPC GR GRL BP GRS GRH GRXL BP[offs] DP[0] DP[1] GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 GR.7 GR.6 GR.5 GR.4 GR.3 GR.2 GR.1 GR.0 — — — — — — — — — GR (16 bits) GR.7 GR.6 GR.5 GR.4 GR.3 GR.2 GR.1 GR.9 GR.9 GR.1 GR.0 GR.8 GR.8 GR.0 BP (16 bits) GR.15 GR.14 GR.15 GR.14 GR.7 GR.6 BP[offs] (16 bits) DP[0] (16 bits) DP[1] (16 bits) GR.13 GR.12 GR.11 GR.10 GR.13 GR.12 GR.11 GR.10 GR.5 GR.4 GR.3 GR.2 — — — — — — — — — — REGISTER BIT 15 14 13 12 11 10 9 8 7 — 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) WBS2 WBS1 WBS0 SDPS1 SDPS0 — — — SP (4 bits) 6 — IDS S — — — — — EWDI 5 — — — CGDS — — — — WD1 4 — — GPF1 — — — — STOP WD0 — GPF0 — IM3 — II3 SWB WDIF 3 2 MOD2 OV — IM2 ROD II2 PMME WTRF 1 MOD1 C INS IM1 PWL II1 CD1 EWT 0 MOD0 E IGE IM0 — II0 CD0 RWT AP (4 bits) 14 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 3. System Register Reset Values REGISTER AP APC PSF IC IMR SC IIR CKCN WDCN A[0..15] PFX IP SP IV LC[0] LC[1] Offs DPC GR GRL BP GRS GRH GRXL BP[offs] DP[0] DP[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 0 0 0 0 0 0 0 0 0 0 0 i 0 1 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 i 0 0 0 0 0 0 REGISTER BIT 15 14 13 12 11 10 9 8 7 0 0 i 0 0 1 0 1 s i 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 0 0 i 0 0 0 0 0 s i 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 0 0 0 0 0 i 0 0 0 i 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0 0 0 0 0 i 0 0 0 i 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 3 0 0 0 0 0 i 0 0 0 i 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 s i 0 0 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 s i 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 i 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 Note: Bits marked with an “i” have an indeterminate value upon reset. Bits marked with an “s” have special behavior upon reset. Refer to the user’s guide supplement for this device for more details. ____________________________________________________________________ 15 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 4. Peripheral Register Map REGISTER INDEX 00h 01h 02h 03h 04h 05h 06h 07h 08h 09h 0Ah 0Bh 0Ch 0Dh 0Eh 0Fh 10h 11h 12h 13h 14h 15h 16h 17h 18h 19h 1Ah 1Bh 1Ch 1Dh 1Eh 1Fh M0 (0h) PO0 PO1 PO2 PO3 — — EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 — — — PD0 PD1 PD2 PD3 — — — — RTRM RCNT RTSS RTSH RTSL RSSA RASH RASL M1 (1h) T0CN T0L T0H SCON0 SBUF0 SCON1 SBUF1 — — SMD0 PR0 SMD1 PR1 — — — — — — — — — — — — — — ICDF — — — — M2 (2h) T1CN T1L T1H T2CNA T2H T2RH T2CH IRCN T1CL T1CH T1MD T2CNB T2V T2R T2C T2CFG — — — — — — — — — — — — — — — — M3 (3h) MCNT MA MB MC2 MC1 MC0 MC1R MC0R ADCN PHC AD0 AD1 ATRM LCRA LCFG — LCD0 LCD1 LCD2 LCD3 LCD4 LCD5 LCD6 LCD7 LCD8 LCD9 LCD10 LCD11 LCD12 LCD13 — — M4 (4h) — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — M5 (5h) — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — — 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 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 5. Peripheral Register Bit Functions REGISTER PO0 PO1 PO2 PO3 EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 PD0 PD1 PD2 PD3 RTRM RCNT RTSH RTSL RSSA RASH RASL T0CN T0L T0H SCON0 SBUF0 SCON1 SBUF1 SMD0 PR0 SMD1 PR1 EPWM PR0 (16 bits) — PR1 (16 bits) — — — — ESI SMOD FEDE OFS — SM0/FE SM1 SM2 SM0/FE SM1 SM2 — — — — — — RASL (16 bits) ET0 T0M TF0 TR0 GATE C/T M1 M0 — WE — — — — — FT SQE — ALSF — ALDF TSGN RDYE RDY — — — — — — — — — REGISTER BIT 15 14 13 12 11 10 9 8 7 6 5 4 3 2 1 0 PO0 (8 bits) PO1 (8 bits) PO2 (8 bits) PO3 (8 bits) — — — — IE2 EX2 IE1 EX1 IE0 EX0 PI0 (8 bits) PI1 (8 bits) PI2 (8 bits) PI3 (8 bits) — — IT2 IT1 IT0 PD0 (8 bits) PD1 (8 bits) PD2 (8 bits) PD3 (8 bits) TRM (5 bits) BUSY ASE ADE RTCE RTSH (16 bits) RTSL (16 bits) RSSA (11 bits) — — RASH (4 bits) T0L (8 bits) T0H (8 bits) REN TB8 RB8 TI RI SBUF0 (8 bits) REN TB8 RB8 TI RI SBUF1 (8 bits) — — ESI SMOD FEDE ____________________________________________________________________ 17 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 5. Peripheral Register Bit Functions (continued) REGISTER ICDF T1CN T1L T1H T2CNA T2H T2RH T2CH IRCN T1CL T1CH T1MD T2CNB T2V T2R T2C T2CFG MCNT MA MB MC2 MC1 MC0 MC1R MC0R ADCN PHC AD0 AD1 ATRM LCRA LCFG LCD[0..13] — — — DUTY1 DUTY0 FRM3 FRM2 FRM1 G3 ZPS G2 — G1 — G0 — — — APD2 — APD1 — AD0 (16 bits) AD1 (16 bits) — FRM0 PCF3 — LCCS PCF2 — LRIG PCF1 — PCF0 ABGT (5 bits) LRA3 — LRA2 — LRA1 OPM LRA0 DPE — — — — — — — — MC1 (16 bits) MC0 (16 bits) MC1R (16 bits) MC0R (16 bits) APD0 UFF EDBI FLU1 FLU0 PH (9 bits) FOV1 FOV0 ABF1 ABF0 — ET2L — — — — — ET2 T2OE0 T2POL0 15 14 13 12 11 10 9 8 REGISTER BIT 7 6 — TF1 — EXF1 5 — T1OE 4 — DCEN 3 PSS1 EXEN1 2 PSS0 TR1 1 SPE C/T1 0 — CPRL1 T1L (8 bits) T1H (8 bits) TR2L TR2 CPRL2 SS2 G2EN T2V[15:8] (8 bits) T2R[15:8] (8 bits) T2C[15:8] (8 bits) — — IREN IRTX IRBB T1CL (8 bits) T1CH (8 bits) — — — TF2 — TCC2 ET1 TF2L T1M TC2L T2OE1 T2POL1 T2V (16 bits) T2R (16 bits) T2C (16 bits) T2CI OF DIV2 MCW DIV1 CLD DIV0 SQU T2MD OPCS CCF1 CCF0 C/T2 SUS MSUB MMAC MA (16 bits) MB (16 bits) MC2 (8 bits) LCD[n] (8 bits) 18 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 6. Peripheral Register Bit Reset Values REGISTER PO0 PO1 PO2 PO3 EIF0 EIE0 PI0 PI1 PI2 PI3 EIES0 PD0 PD1 PD2 PD3 RTRM RCNT RTSS RTSH RTSL RSSA RASH RASL T0CN T0L T0H SCON0 SBUF0 SCON1 SBUF1 SMD0 PR0 SMD1 PR1 ICDF T1CN T1L 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s s s s s s s s s 0 s s 0 s s 0 s s 0 s s 0 s s s s s s s s s 0 0 0 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 0 0 s s s s 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 1 1 1 1 0 0 s s s s 0 0 0 0 0 0 0 s s s s 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 5 1 1 1 1 0 0 s s s s 0 0 0 0 0 s 0 s s s s 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 1 1 1 1 0 0 s s s s 0 0 0 0 0 s 0 s s s s 0 s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 1 1 1 1 0 0 s s s s 0 0 0 0 0 s 1 s s s s s s 0 0 0 0 0 0 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 0 s s s s s s 0 0 0 0 0 0 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 0 s s s s s s 0 0 0 0 0 0 0 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 s s s s 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ____________________________________________________________________ 19 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Table 6. Peripheral Register Bit Reset Values (continued) REGISTER T1H T2CNA T2H T2RH T2CH IRCN T1CL T1CH T1MD T2CNB T2V T2R T2C T2CFG MCNT MA MB MC2 MC1 MC0 MC1R MC0R ADCN PHC AD0 AD1 ATRM LCRA LCFG LCD[0..13] 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 s s i i 0 0 0 0 0 0 0 s 0 i i 0 0 0 0 0 0 0 s 0 i i 0 0 0 0 0 0 0 s 0 i i 0 0 0 0 0 0 0 0 0 i i 0 0 0 0 0 0 0 s 0 i i 0 0 0 0 0 0 0 s 0 i i 0 0 0 0 0 0 0 s s i i 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 s i i 0 0 0 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 s i i 0 0 0 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 s i i 0 0 0 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 s i i s 0 0 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 s i i s 0 0 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 s i i s 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 s i i 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 s i i s 0 0 0 Note: Bits marked with an “i” have an indeterminate value upon reset. Bits marked with an “s” have special behavior upon reset. Refer to the user’s guide supplement for this device for more details. 20 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller System Timing The MAXQ3120 generates its internal system clock from an external high-frequency crystal. Because the MAXQ3120 includes internal capacitors for this purpose, no external capacitors are required to use the high-frequency crystal. The MAXQ3120 should not be driven directly by an external 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. 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, two additional low-power modes are available. • Divide-by-256 power-management mode (PMM) (PMME = 1, CD1:0 = 00b) • Stop mode (STOP = 1) In PMM, one system clock is 256 oscillator cycles, significantly reducing power consumption while the microcontroller functions at reduced speed. The optional switchback feature allows enabled interrupt sources, such as the external interrupts and USARTs, to cause the processor to quickly exit PMM mode and return to a faster internal clock rate. MAXQ3120 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 POWER-ON RESET STOP XDOG COUNT RESET XDOG STARTUP TIMER CLK INPUT CRYSTAL KILL HF CRYSTAL XDOG DONE RESET DOG WATCHDOG TIMER RWT RESET WATCHDOG RESET WATCHDOG INTERRUPT MAXQ3120 STOP ENABLE CLOCK GENERATION POWER-ON RESET SYSTEM CLOCK 32kHz CRYSTAL REAL-TIME CLOCK LCD CONTROLLER DIV 1 DIV 2 DIV 4 DIV 8 PWM GLITCH-FREE MUX CLOCK DIVIDER INPUT CRYSTAL MONITOR ENABLE POWER MONITOR SELECTOR DEFAULT SWB INTERRUPT/SERIAL PORT RESET STOP Figure 2. Clock Sources ____________________________________________________________________ 21 High-Precision ADC Mixed-Signal Microcontroller Power consumption reaches its minimum in stop mode. In this mode, the external high-frequency oscillator, system clock, and all code execution 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 time-of-day alarm is activated. The 32kHz clock continues running during stop mode, enabling the following peripherals to keep running during stop mode. • The RTC always continues running during stop mode. • The LCD controller continues running during stop mode if it is running from the 32kHz clock (LCCS = 0). MAXQ3120 • • • • • Serial Port 0 Receive and Transmit Interrupts Serial Port 1 Receive and Transmit Interrupts Timer 0 Overflow Interrupt Timer 1 Overflow and External Trigger Interrupts Timer 2 Low Compare, Low Overflow, Capture/ Compare, and Overflow Interrupts 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 32kHz oscillator continue to oscillate. Internal resets such as the power-on and watchdog resets assert the RESET pin low. 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 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 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. • Watchdog Interrupt • External Interrupts 0 to 2 • RTC Time-of-Day and Subsecond Alarms 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 DV DD climbs above the VRST level. At this point, the following events occur: • All registers and circuits enter their reset state (except for the RTC, if it is battery-backed) • The POR flag (WDCN.7) is set to indicate the source of the reset • Code execution begins at location 8000h 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. External System Reset Asserting the external R ESET 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 RESET pin is released. I/O Ports The microcontroller uses the Type C and Type D bidirectional I/O ports described in the M AXQ Family User’s Guide. The use of two 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. 22 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller 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 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 tri-stated 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. 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 proportional/integral/ derivative (PID) algorithm-based 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) • Square-accumulate signed (16 bit) MAXQ3120 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), a 40-bit accumulator that is formed by three VDDIO WEAK PD.x SF DIRECTION MUX VDDIO SF ENABLE PO.x SF OUTPUT MUX MAXQ3120 I/O PAD PORT PIN PI.x OR SF INPUT FLAG INTERRUPT FLAG DETECT CIRCUIT EIES.x TYPE D PORT ONLY Figure 3. Type C/D Port Pin Schematic ____________________________________________________________________ 23 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 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 8 seconds 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. An internal crystal oscillator clocks the RTC using integrated 6pF load capacitors, and gives 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 using the digital RTC trim function. The frequency accuracy of a crystalbased oscillator circuit is dependent upon crystal accuracy, the match between the crystal and the oscillator capacitor load, ambient temperature, etc. Timer 1 The timer 1 peripheral includes the following: • 16-bit autoreload timer/counter • 16-bit capture • 16-bit counter • Clock generation output 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 Infrared carrier generation support Watchdog Timer An internal watchdog timer greatly increases system reliability. The timer resets the processor if software execution is disturbed. The watchdog timer is a freerunning 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 2 12 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 61.7s, depending on the system clock mode. Programmable Timers The MAXQ3120 incorporates one instance each of the timer 0, timer 1, and timer 2 peripherals. 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 as well as carrier generation support for infrared transmit/receive functions using serial port 0. Timer 0 The timer 0 peripheral includes the following: • • • • 8-bit autoreload timer/counter 13-bit or 16-bit timer/counter Dual 8-bit timer/counter External pulse counter 24 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller 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 4 shows a block diagram of the in-circuit debugger. The in-circuit debug features include: • Hardware debug engine • Set of registers able to set breakpoints on register, code, or data accesses • 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. MAXQ3120 MAXQ3120 DEBUG SERVICE ROUTINES (UTILITY ROM) CPU DEBUG ENGINE TMS TCK TDI TDO TAP CONTROLLER CONTROL BREAKPOINT ADDRESS DATA Figure 4. In-Circuit Debugger Serial Peripherals The MAXQ3120 incorporates two 8051-style universal synchronous/asynchronous receiver/transmitters. The USARTs allow the device to conveniently communicate with other RS-232 interface-enabled 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. MODE Mode 0 Mode 1 Mode 2 Mode 3 TYPE Synchronous Asynchronous Asynchronous Asynchronous START BITS — 1 1 1 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. Serial port 0 contains additional functionality to support low-speed infrared transmission in combination with the PWM function of timer 2. When enabled in this mode, the serial port automatically outputs a waveform generated by combining the normal serial port output waveform with the PWM carrier waveform output by timer 2, using a logical OR or logical NOR function. The output of serial port 0 in this mode can be used to drive an infrared LED to communicate using a fixed-frequency carrier modulated signal. Depending on the drive strength required, the output may require a buffer when used for this purpose. DATA BITS 8 8 8+1 8+1 STOP BIT — 1 1 1 MAX BAUD RATE AT 8MHz 2Mbps 250kbps 250kbps 250kbps ____________________________________________________________________ 25 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 LCD Driver The MAXQ3120 microcontroller incorporates an LCD driver that interfaces to common low-voltage displays. By incorporating the LCD driver 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 drive up to 112 LCD glass segments by multiplexing combinations of 28 segment (SEG0–SEG27) outputs and four common-signal outputs (COM0–COM3). Eight of the segment outputs can also be used as general-purpose port pins, if they are not needed to drive the LCD. The segments are easily addressed by writing to dedicated display memory. Once the LCD driver settings and display memory have been initialized, the 14-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 driver 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 voltagedividers to control display contrast. If desired, contrast can also be controlled by an external resistance. The features of the LCD driver 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 28 segment outputs and four common-signal outputs • 14 bytes (112 bits) of display memory • Adjustable frame frequency • Internal voltage-divider resistors eliminate requirement for external components • Internal adjustable resistor allows contrast adjustment without external components • 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 MAXQ3120 microcontroller. A two-character LCD is controlled, with each character containing seven segments plus decimal point. The LCD driver 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. MAXQ3120 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 26 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller Analog Front-End The MAXQ3120 microcontroller incorporates an analog front-end for dedicated analog-to-digital conversion. This peripheral converts and digitally filters two differential signal channels with no CPU overhead. The two conversion channels operate completely in parallel, running at the same sample rate whether one channel or both channels are enabled. If one or both channels are not in use, they may be powered down to conserve supply current. The two input signals for each channel form a true differential pair. Each of the two signals (AN0+ and AN0- for channel 0, AN1+ and AN1- for channel 1) can vary across the entire +1V to -1V analog input range, without regard to the level of the other signal in the pair. The initial stage for each channel is a programmable gain function (1x, 16x) that can be set by software independently for each channel. Next, a second-order sigmadelta modulator samples each input signal. When using both channels to measure the same signal (as is the case when measuring voltage and current for power calculations), a phase-correction buffer is provided to compensate for any phase shift between the two channels caused by external circuitry. The phasecorrection buffer operates digitally on the output bit stream of one of the two channels and can delay either channel’s bit stream with respect to the other channel’s bit stream by up to 140 bits. Next, the bit streams for the two channels travel through two digital sinc3 lowpass filters, which convert the bit streams to 16-bit PCM values for additional processing. MAXQ3120 AN0+ AN0- CHANNEL 0 PROGRAMMABLE GAIN CHANNEL 0 SIGMA-DELTA MODULATOR CHANNEL 0 SINC3 FILTER AD0 (1x, 16x) PHASE CORRECTION AN1+ AN0- CHANNEL1 PROGRAMMABLE GAIN CHANNEL 1 SIGMA-DELTA MODULATOR CHANNEL 1 SINC3 FILTER AD1 (1x, 16x) Figure 6. Analog Front-End Block Diagram ____________________________________________________________________ 27 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Applications Information The low-power, high-performance RISC architecture of the MAXQ3120 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 dual-differential channel, 16-bit sigma-delta ADC, and 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 112 segments (4 x 28), 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 MAXQ3120 is ideally suited for single-phase electricity metering applications as well as other applications that require high-precision analog-to-digital conversion and signal processing. • The M AXQ Family User’s Guide: MAXQ3120 Supplement, which contains detailed information on features specific to the MAXQ3120, available at www.maxim-ic.com/MAXQ3120UG. 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. Definitions Offset Error For an ideal converter, the first transition occurs at 0.5 LSB above zero. Offset error is the amount of deviation between the measured first transition point and the ideal point. 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 programming, device features, and operation. The following documents can be downloaded from www.maxim-ic.com/microcontrollers. • The MAXQ3120 data sheet, which contains electrical/timing specifications and pin descriptions, available at www.maxim-ic.com/MAXQ3120. • The MAXQ3120 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, avaliable at www.maximic.com/MAXQUG. Gain Error With a full-scale analog voltage applied to the ADC (resulting in all ones in the digital code), gain error is defined as the amount of deviation between the ideal transfer function and the measured transfer function (with the offset error removed). Gain error is usually expressed in LSB or as a percentage of full-scale range (%FSR). Power-Supply Rejection Ratio Power-supply rejection ratio (PSRR) is the ratio of changes in the power supply (V) to changes in the converter output (V). It is typically measured in decibels. 28 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller Appendix A: Applying a Lowpass Filter (LPF) for ApplicationOptimized ADC Performance The MAXQ3120 gives a user application program direct access to the ADC data stream right after its sinc3 filters. This unique feature permits the MAXQ3120 to be optimized for its target applications. With the device’s 8MIPS processing power and the 1-cycle MAC, a linear FIR filter can be easily computed in the user application program. This section provides a simple LP FIR filter to improve the SNR and THD performance of the MAXQ3120 for the power-metering application. Filter Specifications and Coefficients Input signal frequency (fIN) = 60Hz Sampling frequency (fS) = 20833Hz Window = hamming Cutoff frequency (attenuates after 7th harmonic) = 0.06π = 625Hz Cutoff frequency (for 21st harmonic) = 0.18π = 1875Hz Transition width = 0.35π = 3646Hz Filter length = 23 MAXQ3120 1) LPF coefficients (up to 21st harmonic). Note that these coefficients have been converted to 16-bit fixed-point numbers. A shift of 17 places is required after the multiply-accumulate operation. FILTER_COEFFICIENT_0 FILTER_COEFFICIENT_1 FILTER_COEFFICIENT_2 FILTER_COEFFICIENT_3 FILTER_COEFFICIENT_4 FILTER_COEFFICIENT_5 FILTER_COEFFICIENT_6 FILTER_COEFFICIENT_7 FILTER_COEFFICIENT_8 FILTER_COEFFICIENT_9 FILTER_COEFFICIENT_10 FILTER_COEFFICIENT_11 -19 -288 -786 -1402 -1670 -876 1627 6018 11739 17547 21893 23506 FILTER_COEFFICIENT_12 FILTER_COEFFICIENT_13 FILTER_COEFFICIENT_14 FILTER_COEFFICIENT_15 FILTER_COEFFICIENT_16 FILTER_COEFFICIENT_17 FILTER_COEFFICIENT_18 FILTER_COEFFICIENT_19 FILTER_COEFFICIENT_20 FILTER_COEFFICIENT_21 FILTER_COEFFICIENT_22 — 21893 17547 11739 6018 1627 -876 -1670 -1402 -786 -288 -19 — 2) LPF coefficients (up to 7th harmonic). Note that these coefficients have been converted to 16-bit fixed-point numbers. A shift of 18 places is required after the multiply-accumulate operation. FILTER_COEFFICIENT_0 FILTER_COEFFICIENT_1 FILTER_COEFFICIENT_2 FILTER_COEFFICIENT_3 FILTER_COEFFICIENT_4 FILTER_COEFFICIENT_5 FILTER_COEFFICIENT_6 FILTER_COEFFICIENT_7 FILTER_COEFFICIENT_8 FILTER_COEFFICIENT_9 FILTER_COEFFICIENT_10 FILTER_COEFFICIENT_11 849 1420 2553 4334 6754 9700 12966 16269 19291 21720 23295 23840 FILTER_COEFFICIENT_12 FILTER_COEFFICIENT_13 FILTER_COEFFICIENT_14 FILTER_COEFFICIENT_15 FILTER_COEFFICIENT_16 FILTER_COEFFICIENT_17 FILTER_COEFFICIENT_18 FILTER_COEFFICIENT_19 FILTER_COEFFICIENT_20 FILTER_COEFFICIENT_21 FILTER_COEFFICIENT_22 — 23295 21720 19291 16269 12966 9700 6754 4334 2553 1420 849 — ____________________________________________________________________ 29 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Filter Results Below is the summary of the SNR and THD values before and after applying the above LPFs, for 60 MAXQ3120 units. An application engineer can easily implement his own favorite lowpass filters to optimize MAXQ3120 for his target applications. However, he does need to consider the filter complexity and its processor resource requirement (CPU cycles and storage space) to strike an optimal balance. The above 23-tap LPF takes 23 x 2 bytes of RAM and 107 clock cycles of the MAXQ3120 to complete. Note that the number of cycles varies from filter to filter because the number of shifts required to normalize the multiply-accumulate result will vary. CONDITION Before LPF After LPF, 21st Harmonic After LPF, 7th Harmonic SNR MIN 56.5 68.2 71.5 AVG 56.8 70.7 73.8 MAX 57.1 71.4 74.7 MIN -84.5 -85.8 -88.9 THD AVG -81.1 -83.1 -85.7 MAX -77.3 -79.4 -82.0 Selector Guide PART MAXQ3120-FFN MAXQ3120-FFN+ TEMP RANGE -40°C to +85°C -40°C to +85°C PROGRAM MEMORY 16kWord Flash 16kWord Flash DATA MEMORY 256 Word SRAM 256 Word SRAM LCD SEGMENTS 112 112 EXTERNAL INTERRUPTS 3 3 USARTS 2 2 PINPACKAGE 80 MQFP 80 MQFP +Denotes a Pb-free/RoHS-compliant device. 30 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller Pin Configuration 67 P0.3/INT0/T0G 69 P0.5/INT2/T1 68 P0.4/INT1/T0 80 P1.4/SEG15 79 P1.3/SEG16 78 P1.2/SEG17 77 P1.1/SEG18 76 P1.0/SEG19 65 P0.1/RXD0 MAXQ3120 75 DGND 74 DVDD 73 N.C. P1.5/SEG14 P1.6/SEG13 P1.7/SEG12 SEG11 SEG10 SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 VLCD VLCD1 VLCD2 VADJ SEG3 SEG2 SEG1 DGND HFXIN HFXOUT DVDD SEG0 COM3 72 N.C. TOP VIEW 66 P0.2/TXD0 71 P0.7/T2B 70 P0.6/T2A 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 30 31 25 26 28 29 32 33 34 35 36 38 27 37 39 40 64 63 62 61 60 59 58 57 56 P0.0/SQW RESET 32KOUT 32KIN DVDD DGND P3.7/RXD1 P3.6/TXD1 P3.5 P3.4 P3.3/TCK VBAT AGND VREF N.C. N.C. AN1+ AN1AN0+ AN0AVDD DGND P3.2/TMS P3.1/TDI MAXQ3120 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 P2.0/SEG20 P2.1/SEG21 P2.2/SEG22 P2.3/SEG23 P2.4/SEG24 P2.5/SEG25 P2.6/SEG26 MQFP ____________________________________________________________________ P2.7/SEG27 P3.0/TDO COM2 COM1 COM0 DGND N.C. N.C. DVDD 31 High-Precision ADC Mixed-Signal Microcontroller MAXQ3120 Typical Operating Circuit LCD DISPLAY INFRARED Tx/Rx 67 P0.3/INT0/T0G 69 P0.5/INT2/T1 68 P0.4/INT1/T0 80 P1.4/SEG15 79 P1.3/SEG16 78 P1.2/SEG17 77 P1.1/SEG18 76 P1.0/SEG19 72 N.C. 66 P0.2/TXD0 65 P0.1/RXD0 71 P0.7/T2B 70 P0.6/T2A 75 DGND 74 DVDD 73 N.C. RS-485 Tx/Rx P1.5/SEG14 P1.6/SEG13 P1.7/SEG12 SEG11 SEG10 SEG9 SEG8 SEG7 SEG6 SEG5 SEG4 VLCD VLCD1 VLCD2 VADJ SEG3 SEG2 SEG1 DGND HFXIN HFXOUT 8MHz DVDD SEG0 COM3 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 30 31 25 26 28 29 32 33 34 35 36 38 27 37 39 40 64 63 62 61 60 59 58 57 56 P0.0/SQW RESET 32KOUT 32KIN DVDD DGND P3.7/RXD1 P3.6/TXD1 P3.5 P3.4 P3.3/TCK VBAT AGND VREF N.C. N.C. AN1+ AN1AN0+ AN0AVDD DGND P3.2/TMS P3.1/TDI VOLTAGEDIVIDER 32.768kHz MAXQ3120 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 P2.0/SEG20 P2.1/SEG21 P2.2/SEG22 P2.3/SEG23 P2.4/SEG24 P2.5/SEG25 P2.6/SEG26 P2.7/SEG27 P3.0/TDO N.C. N.C. COM2 COM1 COM0 DGND DVDD SERIAL EEPROM AC LINE IN CURRENT SHUNT AC NEUTRAL IN AC LINE OUT AC NEUTRAL OUT 32 ____________________________________________________________________ High-Precision ADC Mixed-Signal Microcontroller 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). MAXQ3120 Revision History Rev 0; 7/05: Rev 1; 8/05: Original release. Added clarification to ADC Resolution condition (No missing codes, with software lowpass filter, see Appendix A). Deleted paragraph on Integral Nonlinearity. 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 ____________________ 33 © 2005 Maxim Integrated Products Printed USA is a registered trademark of Maxim Integrated Products, Inc. is a registered trademark of Dallas Semiconductor Corporation. Quijano
MAXQ3120-FFN 价格&库存

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

免费人工找货