Rev 0; 6/07
IT
TION K
VALUA
E
BLE
AVAILA
Mixed-Signal Microcontroller with Analog
Comparators, LCD, and RTC
General Description
The MAXQ3100 microcontroller is a low-power, 16-bit
RISC device that incorporates an integrated liquid-crystal
display (LCD) interface that can drive up to 160 seg-
ments, two analog comparators with precision internal
1.25V reference voltage, and a real-time clock (RTC)
module with a dedicated battery-backup supply. An inter-
nal temperature sensor allows software to monitor device
temperature and optionally interrupt to alert when a tem-
perature conversion is complete. The MAXQ3100 is
uniquely suited for single-phase electricity metering appli-
cations that require an external analog front-end, but can
be used in any application that requires high-perfor-
mance operation. The device operates at a fixed
4.194MHz, generated from the 32.76kHz RTC crystal. The
device has 8kWords of EEPROM, 512 words of RAM,
three 16-bit timers, and two universal synchronous/asyn-
chronous receiver/transmitters (USARTs). The microcon-
troller 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
4.194MHz 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
8kWords EEPROM
200,000 EEPROM Write/Erase Cycles
512 Words of Internal Data RAM
JTAG-Compatible Debug Port Bootloader for
Programming
♦
Peripheral Features
Up to 27 General-Purpose I/O Pins, Most 5V
Tolerant
160-Segment LCD Driver
Up to 4 COM and 40 Segments
Static, 1/2, and 1/3 LCD Bias Supported
No External Resistors Required
Two Analog Comparators with Internal +1.25V
Precision Reference
Two Serial USARTs, One with Infrared PWM
Support
Digital Temperature Sensor
Three 16-Bit Programmable Timers/Counters
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 Debug Port
Supports In-Application Programming of EEPROM
♦
Power Consumption
1.9mA at 4.194MHz, 3.6V Operation
1.9µA Standby Current in Sleep Mode
Low-Power Divide-by-256 Mode
1
MAXQ3100
Applications
Utility Meters
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
MAXQ3100-EMN+
TEMP RANGE
-40°C to +85°C
PIN-PACKAGE
80 MQFP
+Denotes
a Pb-free/RoHS-compliant device.
Typical Application Circuits and Pin Configuration appear
at end of data sheet.
MAXQ is a registered trademark of Maxim Integrated Products, Inc.
Note:
Some revisions of this device may incorporate deviations
from published specifications known as errata. Multiple revi-
sions 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 Direct at 1-888-629-4642,
or visit Maxim’s website at www.maxim-ic.com.
Mixed-Signal Microcontroller with Analog
Comparators, LCD, and RTC
MAXQ3100
ABSOLUTE MAXIMUM RATINGS
Voltage Range on DV
DD
Relative to DGND ..........-0.5V to +6.0V
Voltage Range on Any Pin Relative to DGND
(3V Tolerant) .........................................-0.5V to (DV
DD
+ 0.5V)
Continuous Output Current
(Any Single I/O Pin)..........................................................25mA
(All I/O Pins Combined) ...................................................25mA
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
(DV
DD
= V
RST
to 3.6V, f
32KIN
= 32.768kHz, T
A
= -40°C to +85°C, unless otherwise noted.) (Note 1)
PARAMETER
Digital Supply Voltage
Digital Power-Fail Reset
Battery Supply Voltage
SYMBOL
DV
DD
V
RST
V
BAT
I
DD1
Active Current
(Note 2)
I
DD2
I
DD3
I
DD4
I
DD5
/1 mode
/2 mode
/4 mode
/8 mode
PMM1 mode
Brownout detector disabled
(Note 3), T
A
= +25°C
I
STOP1
Stop-Mode Current
Brownout detector disabled
(Note 3), T
A
= +60°C
Brownout detector disabled
(Note 3), T
A
= +85°C
I
STOP2
I
STOP3
ANALOG VOLTAGE COMPARATOR
Comparator Input-Voltage Range
Internal Voltage Reference
Input Offset Voltage
Input Common-Mode Voltage
Common-Mode Rejection Ratio
DC Input-Leakage Current
Comparator Setup Time
Response Time (CMPx Change
to CMO Valid)
Current Consumed By
Comparator
V
INPUT
V
REF
V
OS
V
CMR
CMMR
(Note 4)
(Note 4)
(Note 4)
T
A
= +25°C, CMPx pin in tri-state mode
t
CMP_SETUP
f
SYS
= 4.194MHz, V = 20mV (Note 4)
t
CMP_RESP
f
SYS
= 4.194MHz, transition CMPx from
DGND to DV
DD
in ~2ns, t
SYS
= 1/f
SYS
(Note 4)
Per enabled comparator, CMONx = 1,
brownout detector enabled, CMPx pins in
tri-state mode
GND
1.15
-10
1
55
-50
0.8
140 +
(2 x
t
SYS)
18.0
+50
1.6
600 +
(2 x
t
SYS)
39.0
1.25
DV
DD
1.35
+10
DV
DD
V
V
mV
V
dB
nA
μs
ns
Brownout detector enabled (Note 3)
Brownout detector enabled, RTC enabled
(Note 3)
CONDITIONS
MIN
V
RST
2.34
2.0
1.9
1.3
1.0
0.8
0.7
1.9
2.1
3.3
16.3
16.4
TYP
3.3
2.5
MAX
3.6
2.71
3.8
2.6
1.8
1.4
1.2
1.0
5.0
10.0
μA
35.0
63.0
64.0
mA
UNITS
V
V
V
I
DD_CMP
μA
2
_______________________________________________________________________________________
Mixed-Signal Microcontroller with Analog
Comparators, LCD, and RTC
ELECTRICAL CHARACTERISTICS (continued)
(DV
DD
= V
RST
to 3.6V, f
32KIN
= 32.768kHz, T
A
= -40°C to +85°C, unless otherwise noted.) (Note 1)
PARAMETER
DIGITAL I/O
Input High Voltage (Port 0, 1, 3,
RESET)
Input High Voltage (Port 2)
Input Low Voltage
Output High Voltage (All Ports)
Output Low Voltage (All Ports,
RESET)
Input Pullup Current
Input Leakage (All Ports)
TEMPERATURE SENSOR
10-bit resolution, f
SYS
= 4.194MHz
Temperature Conversion Time
T
CONV
11-bit resolution, f
SYS
= 4.194MHz
12-bit resolution, f
SYS
= 4.194MHz
13-bit resolution, f
SYS
= 4.194MHz
12.5
25
50
100
±2
Measured on V
BAT
pin, V
BAT
= 3.6V,
DV
DD
= 0V, RTC enabled
Measured on V
BAT
pin, V
BAT
= 3.6V,
DV
DD
= 3.6V, RTC enabled
One 32.768kHz clock per 10s (Note 4)
V
LCD
V
LCD1
V
LCD2
V
ADJ
(Note 4)
(Note 4)
(Note 4)
Measured on DV
DD
pin; LCFG = 0xF7,
LCRA = 0x1B20, LCDx = 0xFF; LCD pins
are unconnected
LRA3:LRA0 = 1111
3.05
2.4
V
ADJ
+ 2/3
(V
LCD
- V
ADJ
)
V
ADJ
+ 1/3
(V
LCD
- V
ADJ
)
0
0.4 x
V
LCD
0.1
40
80
DV
DD
°C
ms
V
IH1
V
IH2
V
IL
V
OH
V
OL
I
PULLUP
I
L
I
SOURCE
= 3mA
I
SINK
= 4mA
DV
DD
= 3.6V, input mode with weak pullup
enabled
Input mode with weak pullup disabled
40
-50
120
DV
DD
-
0.4
0.8 x
DV
DD
0.8 x
DV
DD
5.5
DV
DD
+ 0.3
0.2 x
DV
DD
DV
DD
0.4
250
+50
V
V
V
V
V
μA
nA
SYMBOL
CONDITIONS
MIN
TYP
MAX
UNITS
MAXQ3100
Temperature Sensor Accuracy
RTC
Battery Supply Current, Battery-
Backed Mode
Battery Supply Leakage Current
Trimming Resolution
LCD
LCD Supply Voltage
LCD Bias Voltage 1
LCD Bias Voltage 2
LCD Adjustment Voltage
I
BAT
I
BATL
1.76
4
3.1
200
μA
nA
ppm
V
V
V
V
LCD Digital Operating Current
LCD Bias Resistor
LCD Adjust Resistor
I
LCD
R
LCD
R
LADJ
μA
k
k
_______________________________________________________________________________________
3
Mixed-Signal Microcontroller with Analog
Comparators, LCD, and RTC
MAXQ3100
ELECTRICAL CHARACTERISTICS (continued)
(DV
DD
= V
RST
to 3.6V, f
32KIN
= 32.768kHz, T
A
= -40°C to +85°C, unless otherwise noted.) (Note 1)
PARAMETER
SYMBOL
CONDITIONS
Segment is driven at V
LCD
; V
LCD
= 3V,
I
SEGxx
= -3μA, guaranteed by design
Segment is driven at V
LCD1
; V
LCD1
= 2V,
I
SEGxx
= -3μA, guaranteed by design
Segment is driven at V
LCD2
; V
LCD2
= 1V,
I
SEGxx
= -3μA, guaranteed by design
Segment is driven at V
ADJ
; V
ADJ
= 0V,
I
SEGxx
= +3μA, guaranteed by design
CLOCK SOURCES
External Crystal Frequency
Internal Clock Frequency
System Clock Frequency
JTAG-COMPATIBLE PROGRAMMING
TCK Frequency
MEMORY CHARACTERISTICS
EEPROM Write/Erase Cycles
EEPROM Data Retention
Theta-JA = +25°C
Theta-JA = +85°C
Theta-JA = +85°C
200,000
50,000
50
Cycles
Years
f
TCK
JTAG programming (Note 4)
0
f
SYS
/ 8
MHz
f
32KIN
f
CLK
f
SYS
f
32KIN
= 32.768kHz, DV
DD
= 3.6V
f
SYS
= f
CLK
/ system clock divisor
4.110
f
CLK /
256
32.768
4.194
4.278
f
CLK
kHz
MHz
MIN
V
LCD
-
0.06
V
LCD1
-
0.04
V
LCD2
-
0.02
V
ADJ
TYP
MAX
V
LCD
V
LCD1
V
V
LCD2
0.1
UNITS
LCD Segment Voltage
V
SEGxx
Note 1:
Note 2:
Note 3:
Note 4:
Specifications to -40°C are guaranteed by design and are not production tested.
Measured on the DV
DD
pin with DV
DD
= 3.6V, V
BAT
= 3.8V, f
32KIN
= 32.768kHz, executing from EEPROM.
Measured on the DV
DD
pin with DV
DD
= 3.6V, V
BAT
= 3.8V, f
32KIN
= 32.768kHz, all I/O pins disconnected, and not in reset.
Specification guaranteed by design but not production tested.
4
_______________________________________________________________________________________
Mixed-Signal Microcontroller with Analog
Comparators, LCD, and RTC
Pin Description
PIN
1, 11, 52,
58, 75
6, 53, 59,
76
NAME
DGND
DV
DD
Digital Ground
Digital Supply Voltage (+3.3V)
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. All port pins can be configured as external interrupt inputs. All
alternate functions must be enabled from software.
PIN
P0.0–P0.7;
INT0–INT7;
TXD0, RXD0,
T0G, T0, T1, EX
77
78
79
80
2
3
4
5
7–10
12–43
COM0–COM3
SEG1–SEG31
P0.0
P0.1
P0.2
P0.3
P0.4
P0.5
P0.6
P0.7
NAME
INT0
INT1
INT2
INT3
INT4
INT5
INT6
INT7
SPECIAL/ALTERNATE FUNCTION
NAME
TXD0
RXD0
T0G
T0
T1
T1EX
—
—
FUNCTION
Serial Port 0 Transmit
Serial Port 0 Receive
Timer 0 Gate Input
Timer 0 Input
Timer 1 Input/Output
Timer 1 External Capture/Reload Input
—
—
FUNCTION
MAXQ3100
2–5, 77–80
Dedicated LCD Common-Voltage Outputs
Dedicated LCD Drive Outputs
General-Purpose, Digital, I/O, Type C Port; LCD Segment-Driver Output.
These port pins
function as bidirectional I/O pins and LCD segment-driver outputs. All alternate functions
must be enabled from software.
PIN
44
NAME
P2.0
P2.1
P2.2
P2.3
P2.4
P2.5
P2.6
P2.7
SPECIAL/ALTERNATE FUNCTION
NAME
SEG32
SEG33
SEG34
SEG35
SEG36
SEG37
SEG38
SEG39
FUNCTION
LCD Segment 32
LCD Segment 33
LCD Segment 34
LCD Segment 35
LCD Segment 36
LCD Segment 37
LCD Segment 38
LCD Segment 39
44–51
P2.0–P2.7;
SEG32–SEG39
45
46
47
48
49
50
51
54
V
LCD
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 V
LCD2
when using 1/2 bias mode.
55
V
LCD1
_______________________________________________________________________________________
5