DATASHEET SEARCH SITE | WWW.ALLDATASHEET.COM

Document overview

  • Manufacturer or author: Provided By ALLDATASHEET.COM(FREE DATASHEET DOWNLOAD SITE)
  • PDF pages: 23

Technical content

Features

♦ High-Performance, Low-Power 16-Bit RISC Core ♦ DC to 12MHz Operation Across Entire Operating Range ♦ 1.70V to 3.6V Operating Voltage Range ♦ 33 Total Instructions for Simplified Programming ♦ Three Independent Data Pointers Accelerate Data Movement with Automatic Increment/Decrement ♦ Dedicated Pointer for Direct Read from Code Space ♦ 16-Bit Instruction Word, 16-Bit Data Bus ♦ 16 x 16-Bit General-Purpose Working Registers ♦ Memory Features 36KB ROM 1.28KB Data SRAM ♦ Additional Peripherals Power-Fail Warning Power-On Reset/Brownout Reset Automatic IR Carrier Frequency Generation and Modulation Two 16-Bit, Programmable Timers/Counters with Prescaler and Capture/Compare Programmable Watchdog Timer 8kHz Nanopower Ring Oscillator Wake-Up Timer Up to 24 (MAXQ61HA) General-Purpose I/Os ♦ Low Power Consumption 0.2µA (typ), 2.0µA (max) in Stop Mode T A = +25°C, Power-Fail Monitor Disabled 2.0mA (typ) at 12MHz in Active Mode 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. Note: Contact factory for information about masked ROM devices. +Denotes a lead(Pb)-free/RoHS-compliant package. *Contact factory for availability. EP = Exposed pad. Pin Configuration appears at end of data sheet. MAXQ is a registered trademark of Maxim Integrated Products, Inc. PART TEMP RANGE OPERATING VOLTAGE (V) PROGRAM MEMORY (KB) DATA MEMORY (KB) PIN-PACKAGE MAXQ61HA-0000+ 0°C to +70°C 1.70 to 3.6 36 ROM 1.28 32 TQFN-EP MAXQ61HX-0000+* 0°C to +70°C 1.70 to 3.6 36 ROM 1.28 Bare die Ordering Information/Selector Guide

16-Bit Microcontroller with Infrared Module TABLE OF CONTENTS

16-Bit Microcontroller with Infrared Module RECOMMENDED DC OPERATING CONDITIONS (VDD = VRST to 3.6V, TA = 0°C to +70°C.) (Note 1) 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. Voltage Range on Any Lead with Respect PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS Supply Voltage VDD V RST 3.6 V 1.8V Internal Regulator VREG18 1.62 1.8 1.98 V Power-Fail Warning Voltage for Supply (Note 2) VPFW Monitors V DD 1.75 1.8 1.85 V Power-Fail Reset Voltage (Note 3) V RST Monitors V DD 1.64 1.67 1.70 V Power-On Reset Voltage VPOR Monitors V DD 1.0 1.45 V RAM Data-Retention Voltage V DRV (Note 4) 1.0 V Active Current (Note 5) IDD_1 Sysclk = 12MHz 2.5 3.75 mA TA = +25 °C 0.15 2.0 IS1 Power-Fail Off TA = 0°C to +70 °C 0.15 8 TA = +25 °C 22 31 Stop-Mode Current IS2 Power-Fail On TA = 0°C to +70 °C 27.6 38 μA Current Consumption During Power-Fail IPFR (Notes 4, 6) [(3 x IS2) + ((PCI - 3) x (IS1 + INANO))]/PCI μA Power Consumption During Power-On Reset IPOR (Note 7) 100 nA Stop-Mode Resume Time tON 375 + 8192t HFXIN μs Power-Fail Monitor Startup Time t PRM_ON (Note 4) 150 μs Power-Fail Warning Detection Time t PFW (Notes 4, 8) 10 μs Input Low Voltage for IRTX, IRRX, RESET, and All Port Pins V IL V GND 0.3 x VDD V Input High Voltage for IRTX, IRRX, RESET, and All Port Pins V IH 0.7 x VDD V DD V Input Hysteresis (Schmitt) VIHYS 300 mV Input Low Voltage for HFXIN V IL_HFXIN V GND 0.3 x VDD V ABSOLUTE MAXIMUM RATINGS

16-Bit Microcontroller with Infrared Module RECOMMENDED DC OPERATING CONDITIONS (continued) (VDD = VRST to 3.6V, TA = 0°C to +70°C.) (Note 1) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS Input High Voltage for HFXIN V IH_HFXIN 0.7 x VDD V DD V IRRX Input Filter Pulse-Width Reject tIRRX_R 50 ns IRRX Input Filter Pulse-Width Accept t IRRX_A 300 ns VDD = 3.6V, IOL = 25mA (Note 4) 1.0 VDD = 2.35V, IOL = 10mA (Note 4) 1.0 Otuput Low Voltage for IRTX V OL_IRTX VDD = 1.85V, IOL = 4.5mA 1.0 V VDD = 3.6V, IOL = 11mA (Note 4) 0.4 0.5 VDD = 2.35V, IOL = 8mA (Note 4) 0.4 0.5 Output Low Voltage for RESET and All Port Pins (Note 9) V OL VDD = 1.85V, IOL = 4.5mA 0.4 0.5 V Output High Voltage for IRTX and All Port Pins VOH I OH = -2mA VDD -

0.5 V DD V

Input/Output Pin Capacitance for All Port Pins C IO (Note 4) 15 pF Input Leakage Current IL Internal pullup disabled -100 +100 nA VDD = 3.0V, VOL = 0.4V (Note 4) 16 28 39 Input Pullup Resistor for RESET, IRTX, IRRX, and All Port Pins RPU VDD = 2.0V, VOL = 0.4V 17 30 41 k EXTERNAL CRYSTAL/RESONATOR Crystal/Resonator f HFXIN DC 12 MHz Crystal/Resonator Period tHFXIN 1/fHFXIN ns Crystal/Resonator Warmup Time t XTAL_RDY From initial oscillation 8192 x tHFXIN ms Oscillator Feedback Resistor R OSCF (Note 4) 0.5 1.0 1.5 M EXTERNAL CLOCK INPUT External Clock Frequency fXCLK DC 12 MHz External Clock Period tXCLK 1/f XCLK ns External Clock Duty Cycle t XCLK_DUTY 45 55 % fHFINSystem Clock Frequency fCK HFXOUT = GND f XCLK MHz System Clock Period tCK 1/f CK MHz NANOPOWER RING OSCILLATOR TA = +25 °C 3.0 8.0 20.0 Nanopower Ring Oscillator Frequency fNANO TA = +25 °C, VDD = POR voltage (Note 4) 1.7 2.4 kHz Nanopower Ring Oscillator Duty Cycle t NANO (Note 4) 40 60 % Nanopower Ring Oscillator Current I NANO Typical at V DD = 1.64V, TA = +25 °C (Note 4) 40 400 nA

16-Bit Microcontroller with Infrared Module RECOMMENDED DC OPERATING CONDITIONS (continued) (VDD = VRST to 3.6V, TA = 0°C to +70°C.) (Note 1) PARAMETER SYMBOL CONDITIONS MIN TYP MAX UNITS WAKE-UP TIMER Wake-Up Timer Interval tWAKEUP 1/fNANO 65,535/ fNANO s IR Carrier Frequency fIR (Note 4) f CK/2 Hz Note 1: Specifications to 0°C are guaranteed by design and are not production tested. Note 2: The power-fail warning monitor and the power-fail reset monitor track each other with a minimum delta between the two of 0.11V. Note 3: The power-fail reset and power-on-reset (POR) detectors operate in tandem to ensure that one or both signals are active at all times when V DD < VRST. Doing so ensures the device maintains the reset state until the minimum operating voltage is achieved. Note 4: Guaranteed by design and not production tested. Note 5: Measured on the VDD pin and the part not in reset. All inputs are connected to GND or VDD. Outputs do not source/sink any current. Note 6: The power-check interval (PCI) can be set to always on, 1024, 2048, or 4096 nanopower ring oscillator clock cycles. Note 7: Current consumption during POR when powering up while VDD < VPOR. Note 8: The minimum amount of time that VDD must be below VPFW before a power-fail event is detected. Note 9: The maximum total current, IOH (max) and IOL (max), for all listed outputs combined should not exceed 32mA to satisfy the maximum specified voltage drop. This does not include the IRTX output.

16-Bit Microcontroller with Infrared Module Pin Description PIN NAME FUNCTION POWER PINS 15, 29 V DD Supply Voltage

14 REGOUT

Regulator Capacitor. This pin must be connected to ground through a 1. 0μF external ceramic- chip capacitor in series with a 2 to 10 resistor. The capacitor must be placed as close to this pin as possible . No other external devices other than the capacitor should be connected to this pin. 13, 22, 30 GND Ground — EP (GND) Exposed Pad/Ground. The GND contact is through the exposed paddle located on the underside of the package. It must be directly connected to the gr ound plane. RESET PINS

28 RESET

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

18 HFXIN

19 HFXOUT

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 unconnected. IR FUNCTION PINS

31 IRTX

IR Transmit Output. IR transmit pin capable of sinking 25mA. This pin defaults to a high- impedance input with the weak pullup disabled during all forms of reset. Software must configure this pin after release from reset to remove the high-impedance input condition.

32 IRRX

IR Receive Input. IR receive pin. This pin defaults to a high-impedance input with the weak pullup disabled during all forms of reset. Software must configure this pin after release from reset to remove the high-impedance input condition. GENERAL-PURPOSE I/O AND SPECIAL FUNCTION PINS General-Purpose, Digital, I/O, Type-D Port. These port pins function as bidirectional I/O pins. All port pins default to high-impedance mode after a reset. Software must configure these pins after release from reset to remove the high-impedance input condition. All alternate functions must be enabled from software. Port 0 can optionally be defined with INT8–INT15. PIN PORT SPECIAL FUNCTION 1 P0.0 IRTXM/INT8 2 P0.1 INT9 3 P0.2 INT10 4 P0.3 INT11 5 P0.4 INT12 6 P0.5 TBA0/TBA1/INT13 7 P0.6 TBB0/INT14 1–8 P0.0–P0.7; IRTXM; TBA0, TBA1; TBB0, TBB1; INT8–INT15 8 P0.7 TBB1/INT15

16-Bit Microcontroller with Infrared Module 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 or as interrupts. All port pins default to high-impedance mode after a reset. Software must configure these pins after release from reset to remove the high- impedance input condition. All interrupt functions must be enabled from software. PIN PORT SPECIAL FUNCTION 9 P1.0 INT0 10 P1.1 INT1 11 P1.2 INT2 12 P1.3 INT3 16 P1.4 INT4 17 P1.5 INT5 20 P1.6 INT6 9–12, 16, 17, 20, 21 P1.0–P1.7; INT0–INT7 21 P1.7 INT7 General-Purpose, Digital, I/O, Type-C Port. These port pins function as bidirectional I/O pins. Software must configure these pins after release from reset to remove the high-impedance input condition. All alternate functions must be enabled from software. Enabling the pin’s special function disables the general-purpose I/O on the pin. The JTAG pins (P2.4–P2.7) default to their JTAG function with weak pullups enabled after a reset. The JTAG function can be disabled using the TAP bit in the SC register. P2.7 functions as the JTAG test-data output on reset and defaults to an input with a weak pullup. The output function of the test data is only enabled during the TAP’s Shift_IR or Shift_DR states. PIN PORT SPECIAL FUNCTION 24 P2.4 TCK 25 P2.5 TDI 26 P2.6 TMS 24–27 P2.4–P2.7; TCK, TDI, TMS, TDO 27 P2.7 TDO NO CONNECTION PINS 23 N.C. No Connection

16-Bit Microcontroller with Infrared Module Detailed Description The MAXQ61H microcontroller provides integrated, low-cost solutions that simplify the design of IR commu- nications equipment such as universal remote controls. Standard features include the highly optimized, single- cycle, MAXQ 16-bit RISC core, 36KB of user ROM memory, 1.28KB data RAM, a soft stack, 16 general- purpose registers, and three data pointers. The MAXQ core offers the industry’s best MIPS/mA rating, allowing developers to achieve the same performance as com- peting microcontrollers at substantially lower clock rates. Combining reduced active-mode current with the MAXQ61H stop-mode current (0.2µA, typical) results in increased battery life. Application-specific peripherals include flexible timers for generating IR carrier frequen- cies and modulation, a high-current IR drive pin capa- ble of sinking up to 25mA current, and output pins capable of sinking up to 5mA ideal for IR applications, general-purpose I/O pins ideal for keypad matrix input, and a power-fail-detection circuit to notify the applica- tion when the supply voltage is nearing the minimum operating voltage of the microcontroller. At the heart of the MAXQ61H is the MAXQ 16-bit RISC core. The MAXQ61H operates from DC to 12MHz and almost all instructions execute in a single clock cycle (83.3ns at 12MHz), enabling nearly 12MIPS true code operation. When active device operation is not required, an ultra-low-power stop mode can be invoked from software, resulting in quiescent current consump- tion of less than 0.2µA (typ) and 2.0µA (max). The com- bination of high-performance instructions and ultra-low stop-mode current increases battery life over compet- ing microcontrollers. An integrated POR circuit with brownout support resets the device to a known condi- tion following a power-up cycle or brownout condition. Additionally, a power-fail warning flag is set and a power-fail interrupt can be generated when the system voltage falls below the power-fail warning voltage, V PFW. The power-fail warning feature allows the appli- cation to notify the user that the system supply is low and appropriate action should be taken. Microprocessor The MAXQ61H is based on Maxim’s low-power, 16-bit MAXQ family of RISC cores. The core supports the Harvard memory architecture with separate 16-bit pro- gram and data address buses. A fixed 16-bit instruction word is standard, but data can be arranged in 8 or 16 bits. The MAXQ core in the MAXQ61H family is imple- mented as a pipelined processor with performance approaching 1MIPS/MHz. The 16-bit data path is imple- mented around register modules, and each register module contributes specific functions to the core. The accumulator module consists of sixteen 16-bit registers and is tightly coupled with the arithmetic logic unit (ALU). A configurable soft stack supports program flow. Execution of instructions is triggered by data transfer between functional register modules or between a func- tional register module and memory. Because data movement involves only source and destination mod- ules, circuit-switching activities are limited to active modules only. For power-conscious applications, this approach localizes power dissipation and minimizes switching noise. The modular architecture also provides a maximum of flexibility and reusability that is important for a microprocessor used in embedded applications. The MAXQ instruction set is highly orthogonal. All arith- metical and logical operations can use any register in conjunction with the accumulator. Data movement is supported from any register to any other register. Memory is accessed through specific data-pointer reg- isters with automatic increment/decrement support. Memory The MAXQ61H incorporates several memory types that include the following:

  • 36KB user ROM
  • 1.28KB SRAM data memory
  • 1.024KB utility ROM
  • Soft stack Block Diagram 16-BIT MAXQ RISC CPU 8kHz NANO RING 1.28KB SRAM IR TIMER 36KB USER ROM SECURE MMU 16-BIT TIMER16-BIT TIMER GPIO VOLTAGE MONITOR IR DRIVERREGULATOR WATCHDOG CLOCK 1.024KB ROM MAXQ61H

using the PUSH, POP, and POPI instructions.

  • Test routines (internal memory tests, memory loader, etc.)
  • User-callable routines for 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 system code, or to one of the special rou- tines 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 functions is contained in the MAXQ610 User’s Guide. Watchdog Timer An internal watchdog timer greatly increases system reliability. The timer resets the device if software execu- tion is disturbed. The watchdog timer is a free-running counter designed to be periodically reset by the appli- cation software. If software is operating correctly, the counter is periodically reset and never reaches its max- imum count. However, if software operation is interrupt- ed, the timer does not reset, triggering a system reset and optionally a watchdog timer interrupt. This protects the system against electrical noise or 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 functions as the source of both the watchdog-timer timeout and the watchdog-timer reset. The timeout period can be programmed in a range of 15 to 224 system clock cycles. An interrupt is generat- ed when the timeout period expires if the interrupt is enabled. All watchdog-timer resets follow the pro- grammed interrupt timeouts by 512 system clock cycles. If the watchdog timer is not restarted for another full interval in this time period, a system reset occurs when the reset timeout expires. See Table 1. IR Carrier Generation and Modulation Timer The dedicated IR timer/counter module simplifies low- speed IR communication. The IR timer implements two pins (IRTX and IRRX) for supporting IR transmit and receive, respectively. The IRTX pin has no correspond- ing port pin designation, so the standard PD, PO, and PI port control status bits are not present. However, the IRTX pin output can be manipulated high or low using the PWCN.IRTXOUT and PWCN.IRTXOE bits when the IR timer is not enabled (i.e., IREN = 0). The IR timer is composed of two separate timing enti- ties: a carrier generator and a carrier modulator. The 16-Bit Microcontroller with Infrared Module WD[1:0] WATCHDOG CLOCK WATCHDOG INTERRUPT TIMEOUT WATCHDOG RESET AFTER WATCHDOG INTERRUPT (μs) 00 Sysclk/2 15 2.7ms 42.7 01 Sysclk/2 18 21.9ms 42.7 10 Sysclk/2 21 174.7ms 42.7 11 Sysclk/2 24 1.4s 42.7

Table 1. Watchdog Interrupt Timeout (Sysclk = 12MHz, CD[1:0] = 00)

carrier generation module uses the 16-bit IR Carrier register (IRCA) to define the high and low time of the carrier through the IR carrier high byte (IRCAH) and IR carrier low byte (IRCAL). The carrier modulator uses the IR data bit (IRDATA) and IR Modulator Time register (IRMT) to determine whether the carrier or the idle con- dition is present on IRTX. The IR timer is enabled when the IR enable bit (IREN) is set to 1. The IR Value register (IRV) defines the begin- ning value for the carrier modulator. During transmis- sion, the IRV register is initially loaded with the IRMT value and begins down counting towards 0000h, whereas in receive mode it counts upward from the ini- tial IRV register value. During the receive operation, the IRV register can be configured to reload with 0000h when capture occurs on detection of selected edges or can be allowed to continue free-running throughout the receive operation. An overflow occurs when the IR timer value rolls over from 0FFFFh to 0000h. The IR overflow flag (IROV) is set to 1 and an interrupt is generated if enabled (IRIE = 1). Carrier Generation Module The IRCAH byte defines the carrier high time in terms of the number of IR input clocks, whereas the IRCAL byte defines the carrier low time. IR Input Clock (f IRCLK) = fSYS/2IRDIV[1:0] Carrier Frequency (fCARRIER) = fIRCLK/(IRCAH + IRCAL + 2) Carrier High Time = IRCAH + 1 Carrier Low Time = IRCAL + 1 Carrier Duty Cycle = (IRCAH + 1)/(IRCAH + IRCAL + 2) During transmission, the IRCA register is latched for each IRV downcount interval and is sampled along with the IRTXPOL and IRDATA bits at the beginning of each new IRV downcount interval so that duty-cycle variation and frequency shifting is possible from one interval to the next, which is illustrated in Figure 1. Figure 2 illustrates the basic carrier generation and its path to the IRTX output pin. The IR transmit polarity bit (IRTXPOL) defines the starting/idle state and the carrier polarity of the IRTX pin when the IR timer is enabled. IR Transmission During IR transmission (IRMODE = 1), the carrier gener- ator creates the appropriate carrier waveform, while the carrier modulator performs the modulation. The carrier modulation can be performed as a function of carrier cycles or IRCLK cycles dependent on the setting of the IRCFME bit. When IRCFME = 0, the IRV downcounter is clocked by the carrier frequency and thus the modula- tion is a function of carrier cycles. When IRCFME = 1, the IRV downcounter is clocked by IRCLK, allowing car- rier modulation timing with IRCLK resolution. The IRTXPOL bit defines the starting/idle state as well as the carrier polarity for the IRTX pin. If IRTXPOL = 1, the IRTX pin is set to a logic-high when the IR timer module is enabled. If IRTXPOL = 0, the IRTX pin is set to a logic-low when the IR timer is enabled. A separate register bit, IR data (IRDATA), is used to determine whether the carrier generator output is out- put to the IRTX pin for the next IRMT carrier cycles. When IRDATA = 1, the carrier waveform (or inversion of this waveform if IRTXPOL = 1) is output on the IRTX pin during the next IRMT cycles. When IRDATA = 0, the idle condition, as defined by IRTXPOL, is output on the IRTX pin during the next IRMT cycles. The IR timer acts as a downcounter in transmit mode. An IR transmission starts when 1) the IREN bit is set to 1 when IRMODE = 1, 2) the IRMODE bit is set to 1 when IREN = 1, or 3) when IREN and IRMODE are both set to 1 in the same instruction. The IRMT and IRCA registers, along with the IRDATA and IRTXPOL bits, are sampled at the beginning of the transmit process and every time the IR timer value reloads its value. When the IRV reaches 0000h value, on the next carrier clock, it does the following: 1) Reloads IRV with IRMT. 2) Samples IRCA, IRDATA, and IRTXPOL. 3) Generates IRTX accordingly. 4) Sets IRIF to 1. 5) Generates an interrupt to the CPU if enabled (IRIE = 1). To terminate the current transmission, the user can switch to receive mode (IRMODE = 0) or clear IREN to 0. Carrier Modulation Time = IRMT + 1 carrier cycles MAXQ61H 16-Bit Microcontroller with Infrared Module

1 SAMPLE

Figure 2. IR Transmit Carrier Generation and Carrier Modulator Control Figure 1. IR Transmit Frequency Shifting Example (IRCFME = 0)

Figure 3. IR Transmission Waveform (IRCFME = 0) 10b, the modulator/envelope is output to the IRTXM pin. should trigger IR timer capture function. fied capture event as defined by IRRXSEL happens. IRCLK clocks the IRV register. rising edge occurs, IRDATA = 1. 2) Transfers its current IRV value to the IRMT. 3) Resets IRV content to 0000h (if IRXRL = 1). (IRMODE = 1) or clearing IREN = 0.

ed usage of the receive burst-count mode.

  • 16-bit timer/counter
  • 16-bit up/down autoreload
  • Counter function of external pulse
  • 16-bit timer with capture
  • 16-bit timer with compare
  • Input/output enhancements for pulse-width modulation
  • Set/reset/toggle output state on comparator match
  • Prescaler with 2n divider (for n = 0, 2, 4, 6, 8, 10) MAXQ61H 16-Bit Microcontroller with Infrared Module 1 4 TO 2 3 4 6 7 CARRIER FREQUENCY CALCULATION IRRX IRV IRMT IRMT = PULSE COUNTING IRMT = PULSE COUNTING IRV = CARRIER CYCLE COUNTING CAPTURE INTERRUPT (IRIF = 1). IRV ≥ IRMT. IRV = 0 (IF IRXRL = 1). SOFTWARE SETS IRCA = CARRIER FREQUENCY. SOFTWARE SETS RXBCNT = 1 (WHICH CLEARS IRMT = 0001 IN HARDWARE). SOFTWARE CLEARS IRCFME = 0 SO THAT IRV COUNTS CARRIER CYCLES. IRV IS RESET TO 0 ON QUALIFIED EDGE DETECTION IF IRXRL = 1. SOFTWARE ADDS TO IRMT THE NUMBER OF PULSES USED FOR CARRIER MEASUREMENT. IRCA x 2x COUNTER FOR SPACE CAN BEGIN IMMEDIATELY (QUALIFIED EDGE RESETS). QUALIFIED EDGE DETECTED: IRMT++ IRV RESET TO 0 IF IRXRL = 1. IRCA x 2 PERIOD ELAPSES: IRIF = 1; CARRIER ABSENCE = SPACE. BURST MARK = IRMT PULSES. SOFTWARE CLEARS RXBCNT = 0 SO THAT WE CAPTURE ON THE NEXT QUALIFIED EDGE. QUALIFIED EDGE DETECTED: IRIF = 1, CAPTURE IRV ≥ IRMT AS THE BURST SPACE (PLUS UP TO ONE CARRIER CYCLE). SOFTWARE SET RXBCNT = 1 AS IN (5). CONTINUE (5) TO (8) UNTIL LEARNING SPACE EXCEEDS SOME DURATION. IRV ROLLOVERS CAN BE USED.

Figure 6. Receive Burst-Count Example

  • CMOS output drivers
  • Schmitt trigger inputs
  • Optional weak pullup to V DD when operating in input mode While the microcontroller is in a reset state, all port pins become high impedance with weak pullups disabled, unless otherwise noted. From a software perspective, each port appears as a group of peripheral registers with unique addresses. Special function pins can also be used as general-pur- pose I/O pins when the special functions are disabled. For a detailed description of the special functions avail- able for each pin, refer to the part-specific user manual. The MAXQ610 User’s Guidedescribes all special func- tions available on the MAXQ61H. On-Chip Oscillator An external quartz crystal or a ceramic resonator can be connected between HFXIN and HFXOUT on the MAXQ61H, as illustrated in Figure 7. Noise at HFXIN and HFXOUT can adversely affect on- chip clock timing. It is good design practice to place the crystal and capacitors near the oscillator circuitry and connect HFXIN and HFXOUT to ground with a direct short trace. The typical values of external capaci- tors vary with the type of crystal to be used and should be initially selected based on the load capacitance as suggested by the crystal manufacturer. Operating Modes The lowest power mode of operation for the MAXQ61H is stop mode. In this mode, CPU state and memories are preserved, but the CPU is not actively running. Wake-up sources include external I/O interrupts, the power-fail warning interrupt, or a power-fail reset. Any time the microcontroller is in a state where code does not need to be executed, the user software can put the MAXQ61H into stop mode. The nanopower ring oscilla- tor is an internal ultra-low-power (400nA) 8kHz ring oscillator that can be used to drive a wake-up timer that exits stop mode. The wake-up timer is programmable by software in steps of 125µs up to approximately 8s. The power-fail monitor is always on during normal oper- ation. However, it can be selectively disabled during stop mode to minimize power consumption. This fea- ture is enabled using the power-fail monitor disable (PFD) bit in the PWCN register. The reset default state for the PFD bit is 1, which disables the power-fail moni- tor function during stop mode. If power-fail monitoring is disabled (PFD = 1) during stop mode, the circuitry responsible for generating a power-fail warning or reset is shut down and neither condition is detected. Thus, the V DD < VRST condition does not invoke a reset state. 16-Bit Microcontroller with Infrared Module MAXQ61H VDD STOP CLOCK CIRCUIT RF HFXIN HFXOUT RF = 1MΩ ±50% C1 = C2 = 30pF

Figure 7. On-Chip Oscillator

DD < VRST), the CPU goes into reset. response during normal and stop mode operation.

  • Always on—continuous monitoring 11 nanopower ring oscillator clocks (~256ms)
  • 2 12 nanopower ring oscillator clocks (~512ms)
  • 2 13 nanopower ring oscillator clocks (~1.024s) In the case where the power-fail circuitry is periodically turned on, the power-fail detection is turned on for two nanopower ring oscillator cycles. If V DD > VRST during detection, VDD is monitored for an additional nanopow- er ring oscillator period. If V DD remains above VRST for the third nanopower ring period, the CPU exits the reset state and resumes normal operation from utility ROM at 8000h after satisfying the crystal warmup period. If a reset is generated by any other event, such as the RESET pin being driven low externally or the watchdog timer, the power-fail, internal regulator, and crystal remain on during the CPU reset. In these cases, the CPU exits the reset state in less than 20 external clock cycles after the reset source is removed. MAXQ61H 16-Bit Microcontroller with Infrared Module A B C D F G H I E VDD VPFW VRST VPOR INTERNAL RESET (ACTIVE HIGH) t < tPFW t ≥ tPFW t ≥ tPFW t ≥ tPFW

Figure 8. Power-Fail Detection During Normal Operation

Crystal warmup time, t XTAL_RDY. D On On On — Power drop too short. fail interrupt is generated (if enabled). CPU continues normal operation. Power-fail monitor turns on periodically. Crystal warmup time, t XTAL_RDY. CPU resumes normal operation from 8000h. Power-fail monitor is turned on periodically. Table 2. Power-Fail Detection States During Normal Operation

Application enters stop mode. B On Off Off Yes Power drop too short. Power-fail warning detected. Turn on regulator and crystal. Crystal warmup time, t XTAL_RDY. Application enters stop mode. Power-fail monitor is turned on periodically. Device held in reset. No operation allowed. Table 3. Stop Mode Power-Fail Detection States with Power-Fail Monitor Enabled Figure 9. Stop Mode Power-Fail Detection States with Power-Fail Monitor Enabled

Application enters stop mode. fail warning, and sets the power-fail interrupt flag. Turn on regulator and crystal. Table 4. Stop Mode Power-Fail Detection States with Power-Fail Monitor Disabled Figure 10. Stop Mode Power-Fail Detection with Power-Fail Monitor Disabled

is essential to allow the use of dedicated power planes. ure (unintentional modification of memory contents). microcontroller and seriously damage the device. these transients that can corrupt system memory.

  • This MAXQ61H data sheet, which contains electrical/ timing specifications and pin descriptions.
  • The MAXQ61H revision-specific errata sheet (www.maxim-ic.com/errata).
  • The MAXQ 610 User's Guide, which contains detailed information on core features and operation, including programming. MAXQ61H 16-Bit Microcontroller with Infrared Module STATE POWER-FAIL INTERNAL REGULATOR CRYSTAL OSCILLATOR SRAM RETENTION COMMENTS D Off Off Off Yes Application enters stop mode. VDD > VRST. CPU in stop mode. E On (Periodically) Off Off Yes VPOR < VDD < VRST. An interrupt occurs that causes the CPU to exit stop mode. Power-fail monitor is turned on, detects a power- fail, puts CPU in reset. Power-fail monitor is turned on periodically. F Off Off Off — VDD < VPOR. Device held in reset. No operation allowed.

Table 4. Stop Mode Power-Fail Detection States with Power-Fail Monitor Disabled (continued)

16-Bit Microcontroller with Infrared Module 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
  • 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 Technical support is available at https://support.maxim- ic.com/micro. PACKAGE TYPE PACKAGE CODE OUTLINE NO. LAND PATTERN NO.

32 TQFN-EP T3255+3 21-0140 90-0001

(5mm × 5mm) TOP VIEW P0.1/INT9 P0.3/INT11 P0.4/INT12 P0.5/TBA0/TBA1/INT13 P0.6/TBB0/INT14 P0.0/IRTXM/INT8 N.C. P1.7/INT7 P1.6/INT6 P2.4/TCK HXFOUT HFXIN RESET 4567 23 24 22 20 19 18 VDD GND REGOUT GND P1.3/INT3 P1.2/INT2 P0.2/INT10 GND 31 10IRTX P1.1/INT1 32 9IRRX P1.0/INT0 P2.7/TDO 26 15 VDDP2.6/TMS 25 16 P1.4/INT4 P0.7/TBB1/INT15 P1.5/INT5 P2.5/TDI MAXQ61H *EP *EXPOSED PAD = GND. Pin Configuration

Package Information

For the latest package outline information and land patterns, go to www.maxim-ic.com/packages . Note that a “+”, “#”, or “-” in the package code indicates RoHS status only. Package drawings may show a different suffix character, but the drawing pertains to th e package regardless of RoHS status.

16-Bit Microcontroller with Infrared Module 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 ____________________ 23 © 2010 Maxim Integrated Products Maxim is a registered trademark of Maxim Integrated Products, Inc.

Revision History

0 5/09 Initial release — Changed the DATA MEMORY from 2KB to 1.28KB in the Ordering Information/Selector Guide table 1 Moved the stop-mode current value from the MIN to the TYP column in the Recommended DC Operating Conditions table 41 7/09 Changed tIRRX_A from 200ns (min) to 300ns (min) in the Recommended DC Operating Conditions table 5 2 5/10 Added the lead and soldering temperatures to the Absolute Maximum Ratings section; corrected the pinout in the Pin Description and Pin Configuration 4, 7, 8, 22