![]() |
|
If you can't view the Datasheet, Please click here to try to view without PDF Reader . |
|
Datasheet File OCR Text: |
M44C090-V Low-Current Microcontroller for Wireless Communication The M44C090-V is a member of Atmel Wireless & Microcontrollers' family of 4-bit single-chip microcontrollers. They offer highest integration for IR and RF data communication and remote-control applications. The M44C090-V is suitable for the transmitter side. It contains ROM, RAM, parallel I/O ports, one 8-bit programmable multifunction timer/counter with modulator function, voltage supervisor, interval timer with watchdog function and a sophisticated on-chip clock generation with external clock input, integrated RC-, 32-kHz crystal- and 4-MHz crystal-oscillators. Features / Benefits D Extended temperature range for very high temperature up to 125_C D 2-Kbyte ROM, 256 x 4-bit RAM D 12 bidirectional I/Os D Up to 6 external / internal interrupt sources D Multifunction timer/counter with - IR remote control carrier generator - Biphase-, Manchester- and pulse-width modulator V SS VDD D Programmable system-clock with prescaler and five different clock sources D Supply voltage range (1.8 to 6.5 V) D Very low sleep current (< 1 A) D Synchronous serial interface (2-wire, I2C, 3-wire) D Watchdog, POR and brown-out function D Voltage monitoring incl. Lo_BAT detect D Flash controller T48C893 available (SSO20) OSC1 OSC2 Brown-out protect. RESET Voltage monitor External input VMI External RC Crystal oscillators oscillators clock input Clock management UTCM Timer 1 interval- and watchdog timer ROM 2 K x 8 bit RAM 256 x 4 bit BP20/NTE Data direction Port 2 BP21 BP22 BP23 MARC4 4-bit CPU core I/O bus Data direction + interrupt control Port 5 Timer 2 8/12-bit timer with modulator SSI Serial interface T2I T2O SD SC Data direction + alternate function Port 4 BP42 BP40 INT3 T2O BP43 SC BP41 INT3 VMI SD T2I BP50 BP52 INT6 INT1 BP53 BP51 INT1 INT6 Figure 1. Block diagram M44C090-V Rev. A2, 21-Nov-01 1 (60) AA A A AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A AA A AA AA AAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAA AA A AA AAAA A AAAA A A AA A AAAAAAAAAAA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA A Table 1 Pin description M44C090-V 2 (60) nc nc BP53 BP52 BP51 BP50 BP43 BP42 BP41 BP40 BP23 BP22 BP21 BP20 nc nc VSS VDD OSC2 OSC1 Name Type I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O I/O -- -- -- -- O I Oscillator output Oscillator input Not connected Not connected Bidirectional I/O line of Port 5.3 Bidirectional I/O line of Port 5.2 Bidirectional I/O line of Port 5.1 Bidirectional I/O line of Port 5.0 Bidirectional I/O line of Port 4.3 Bidirectional I/O line of Port 4.2 Bidirectional I/O line of Port 4.1 Bidirectional I/O line of Port 4.0 Bidirectional I/O line of Port 2.3 Bidirectional I/O line of Port 2.2 Bidirectional I/O line of Port 2.1 Bidirectional I/O line of Port 2.0 Not connected Not connected Circuit ground Supply voltage BP40/INT3/SC BP53/INT1 Function BP50/INT6 BP51/INT6 BP52/INT1 OSC2 OSC1 VDD nc nc Figure 2. Pinning SSO20 package 10 4 6 5 2 8 7 3 1 9 M44C090-V 4-MHz crystal output or 32-kHz crystal output 4-MHz crystal input or 32-kHz crystal input or external clock input or external trimming resistor input INT1 external interrupt input INT1 external interrupt input INT6 external interrupt input INT6 external interrupt input SD serial data I/O or INT3-external interrupt input T2O Timer 2 output VMI voltage monitor input or T2I external clock input Timer 2 SC-serial clock or INT3 external interrupt input NTE-test mode enable Alternate Function 12 13 14 15 16 17 18 19 20 11 BP20/NTE BP22 BP42/T2O VSS nc nc BP21 BP23 BP41/VMI/T2I BP43/INT3/SD --- --- --- --- --- --- --- Rev. A2, 21-Nov-01 Pin-No. SSO20 12 19 18 17 16 15 14 13 10 20 11 8 7 9 3 4 5 6 2 1 NA -- -- -- -- NA NA Input Input Input Input Input Input Input Input Input Input Input Input Input Reset State M44C090-V Table of Contents 1 2 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . MARC4 Architecture . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 General Description . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 Components of MARC4 Core . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.1 ROM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.2 RAM . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.3 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.4 ALU . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.5 I/O Bus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.6 Instruction Set . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2.7 Interrupt Structure . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Software Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Hardware Interrupts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 Master Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.1 Power-on Reset and Brown-out Detection . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.2 Watchdog Reset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3.3 External Clock Supervisor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.4 Voltage Monitor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.4.1 Voltage Monitor Control / Status Register . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5 Clock Generation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5.1 Clock Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5.2 Oscillator Circuits and External Clock Input Stage . . . . . . . . . . . . . . . . . . . . . . . . RC-Oscillator 1 Fully Integrated . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . External Input Clock . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . RC-Oscillator 2 with External Trimming Resistor . . . . . . . . . . . . . . . . . . . . . . . . . 4-MHz Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32-kHz Oscillator . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5.3 Clock Management . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Clock Management Register (CM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . System Configuration Register (SC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.6 Power-Down Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Peripheral Modules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.1 Addressing Peripherals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2 Bidirectional Ports . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.1 Bidirectional Port 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Port 2 Data Register (P2DAT) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Port 2 Control Register (P2CR) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.2 Bidirectional Port 5 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.2.3 Bidirectional Port 4 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3 Universal Timer/Counter / Communication Module (UTCM) . . . . . . . . . . . . . . . . . . . . . . . . 3.3.1 Timer 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 1 Control Register 1 (T1C1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 5 5 6 6 6 7 9 9 9 9 11 11 11 12 13 13 13 14 15 15 16 16 16 16 16 17 17 17 18 18 19 19 21 21 21 21 22 24 25 26 27 3 Rev. A2, 21-Nov-01 3 (60) M44C090-V Table of Contents (continued) Timer 1 Control Register 2 (T1C2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Watchdog Control Register (WDC) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.2 Timer 2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Output Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Output Signals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Control Register (T2C) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Mode Register 1 (T2M1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Mode Register 2 (T2M2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Compare and Compare Mode Registers . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 Compare Mode Register (T2CM) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 COmpare Register 1 (T2CO1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Timer 2 COmpare Register 2 (T2CO2) Byte Write . . . . . . . . . . . . . . . . . . . . . . . . 3.3.3 Synchronous Serial Interface (SSI) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SSI Peripheral Configuration . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . General SSI Operation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-bit Synchronous Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9-bit Shift Mode (I2C compatible) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8-bit Pseudo I2C Mode . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . I2C Bus Protocol . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . SSI Interrupt . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Modulation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Interface Registers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Interface Control Register 1 (SIC1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Interface Control Register 2 (SIC2) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Interface Status and Control Register (SISC) . . . . . . . . . . . . . . . . . . . . . . . Serial Transmit Buffer (STB) - Byte Write . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Serial Receive Buffer (SRB) - Byte Read . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.3.4 Combination Modes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Combination Mode Timer 2 and SSI . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Electrical Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.1 Absolute Maximum Ratings . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.2 DC Operating Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4.3 AC Characteristics . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Package Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Ordering Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27 28 28 29 30 31 34 34 35 36 37 37 37 37 38 38 38 39 41 42 42 43 43 45 45 45 46 46 47 47 47 50 50 50 52 58 59 4 5 6 4 (60) Rev. A2, 21-Nov-01 M44C090-V 1 Introduction The M44C090-V is a member of Atmel Wireless & Microcontrollers's family of 4-bit single-chip microcontrollers. They contain ROM, RAM, parallel I/O ports, one 8-bit programmable multifunction timer/counter, Table 2 Available variants of M4xCx9x voltage supervisor, interval timer with watchdog function and a sophisticated on-chip clock generation with integrated RC-, 32-kHz crystaland 4-MHz crystal-oscillators. Table 2 provides an overview of the available variants. E2PROM Peripheral 64 byte 64 byte Packages SSO20 SSO20 Version Flash device Production Type T48C893 ROM 4 Kbyte EEPROM AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A M44C090-VAAAAAAAA 2 Kbyte mask ROM 2 MARC4 Architecture General Description 2.1 The MARC4 microcontroller consists of an advanced stack-based, 4-bit CPU core and on-chip peripherals. The CPU is based on the HARVARD architecture with physically separate program memory (ROM) and data memory (RAM). Three independent buses, the instruction bus, the memory bus and the I/O bus, are used for parallel communication between ROM, RAM and peripherals. This enhances program execution speed by allowing both instruction prefetching, and a simultaneous communication to the on-chip peripheral circuitry. The extremely powerful integrated interrupt controller with associated eight prioritized interrupt levels supports fast and efficient processing of hardware events. The MARC4 is designed for the high-level programming language qFORTH. The core includes both, an expression and a return stack. This architecture enables high-level language programming without any loss of efficiency or code density. Reset Reset Clock System clock Sleep Rev. A2, 21-Nov-01 IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIII I IIIIIIIIIIIIIIIIIIIII II IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIII I IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII IIIIIIIIIIIIIIIIIIIII MARC4 CORE PC X Y SP RP Program memory RAM 256 x 4-bit Instruction bus Instruction decoder Interrupt controller Memory bus TOS CCR ALU I/O bus On-chip peripheral modules Figure 3. MARC4 core 94 8973 5 (60) M44C090-V 2.2 Components of MARC4 Core 7FFFh 1F8 h 1F0h 1 E8h 1 E0h 1 E0 h 1 C0 h 18 0h INT7 INT6 INT5 INT4 INT3 INT2 INT1 INT0 (2 K x 8 bit) SCALL addresses ROM Z ero p age 14 0h 1 00 h 0 C0 h 0 80 h 1FFh Zero page 000h 0 20 h 01 8 h 01 0 h 00 8h 0 00 h 04 0h 00 8h 0 00 h $RESET $AUTOSLEEP 13391 Figure 4. ROM map of M44C090-V The core contains ROM, RAM, ALU, program counter, RAM address registers, instruction decoder and interrupt controller. The following sections describe each functional block in more detail: the return stack and data memory for variables and arrays. The RAM is addressed by any of the four 8-bit wide RAM address registers SP, RP, X and Y. Expression Stack The 4-bit wide expression stack is addressed with the expression stack pointer (SP). All arithmetic, I/O and memory reference operations take their operands from, and return their results to the expression stack. The MARC4 performs the operations with the top of stack items (TOS and TOS-1). The TOS register contains the top element of the expression stack and works in the same way as an accumulator. This stack is also used for passing parameters between subroutines and as a scratch pad area for temporary storage of data. Return Stack The 12-bit wide return stack is addressed by the return stack pointer (RP). It is used for storing return addresses of subroutines, interrupt routines and for keeping loop index counts. The return stack can also be used as a temporary storage area. The MARC4 instruction set supports the exchange of data between the top elements of the expression stack and the return stack. The two stacks within the RAM have a user definable location and maximum depth. 2.2.1 ROM The program memory (ROM) is mask programmed with the customer application program during the fabrication of the microcontroller. The ROM is addressed by a 12-bit wide program counter, thus predefining a maximum program bank size of 2 Kbytes. An additional 1 Kbyte of ROM exists which is reserved for quality control self-test software The lowest user ROM address segment is taken up by a 512 byte zero page which contains predefined start addresses for interrupt service routines and special subroutines accessible with single byte instructions (SCALL). The corresponding memory map is shown in figure 4. Look-up tables of constants can also be held in ROM and are accessed via the MARC4's built-in TABLE instruction. 2.2.2 RAM The M44C090-V contains 256 x 4-bit wide static random access memory (RAM). It is used for the expression stack, 6 (60) Rev. A2, 21-Nov-01 M44C090-V FCh FFh Global variables RAM address register: X Y SP RP 04h 00h Return stack Global v 07h variables 03h Figure 5. RAM map 2.2.3 Registers The MARC4 controller has seven programmable registers and one condition code register. They are shown in the following programming model. Program Counter (PC) The program counter (PC) is a 12-bit register which contains the address of the next instruction to be fetched 11 from the ROM. Instructions currently being executed are decoded in the instruction decoder to determine the internal micro-operations. For linear code (no calls or branches) the program counter is incremented with every instruction cycle. If a branch-, call-, return-instruction or an interrupt is executed, the program counter is loaded with a new address. The program counter is also used with the TABLE instruction to fetch 8-bit wide ROM constants. 0 PC 7 0 0 RP 7 0 0 0 SP 7 0 X 7 0 Y 3 0 TOS 3 0 CCR C -- B I Figure 6. Programming model Rev. A2, 21-Nov-01 IIIII IIIII TOS-1 Expression stack Return stack 11 0 RP Program counter Return stack pointer Expression stack pointer RAM address register (X) RAM address register (Y) Top of stack register Condition code register Interrupt enable Branch Reserved Carry / borrow III III 3 0 TOS TOS-1 TOS-2 4-bit 12-bit (192 x 4-bit) Autosleep RAM Expression stack SP IIIII IIIII I IIIII I IIIIIII IIIIIII IIIII IIIIIII IIIIII IIII IIIII IIIII 13392 7 (60) M44C090-V RAM Address Registers The RAM is addressed with the four 8-bit wide RAM address registers: SP, RP, X and Y. These registers allow access to any of the 256 RAM nibbles. Expression Stack Pointer (SP) The stack pointer (SP) contains the address of the next-totop 4-bit item (TOS-1) of the expression stack. The pointer is automatically pre-incremented if a nibble is moved onto the stack or post-decremented if a nibble is removed from the stack. Every post-decrement operation moves the item (TOS-1) to the TOS register before the SP is decremented. After a reset the stack pointer has to be initialized with " >SP S0 " to allocate the start address of the expression stack area. Return Stack Pointer (RP) The return stack pointer points to the top element of the 12-bit wide return stack. The pointer automatically preincrements if an element is moved onto the stack, or it post-decrements if an element is removed from the stack. The return stack pointer increments and decrements in steps of 4. This means that every time a 12-bit element is stacked, a 4-bit RAM location is left unwritten. This location is used by the qFORTH compiler to allocate 4-bit variables. After a reset the return stack pointer has to be initialized via ">RP FCh ". RAM Address Registers (X and Y) The X and Y registers are used to address any 4-bit item in the RAM. A fetch operation moves the addressed nibble onto the TOS. A store operation moves the TOS to the addressed RAM location. By using either the pre-increment or post-decrement addressing mode arrays in the RAM can be compared, filled or moved. Top Of Stack (TOS) The top of stack register is the accumulator of the MARC4. All arithmetic/logic, memory reference and I/O operations use this register. The TOS register receives data from the ALU, ROM, RAM or I/O bus. Condition Code Register (CCR) The 4-bit wide condition code register contains the branch, the carry and the interrupt enable flag. These bits indicate the current state of the CPU. The CCR flags are set or reset by ALU operations. The instructions SET_BCF, TOG_BF, CCR! and DI allow direct manipulation of the condition code register. Carry/Borrow (C) The carry/borrow flag indicates that the borrowing or carrying out of arithmetic logic unit (ALU) occurred during the last arithmetic operation. During shift and rotate operations, this bit is used as a fifth bit. Boolean operations have no affect on the C-flag. Branch (B) The branch flag controls the conditional program branching. Should the branch flag have been set by a previous instruction a conditional branch will cause a jump. This flag is affected by arithmetic, logic, shift, and rotate operations. Interrupt Enable (I) The interrupt enable flag globally enables or disables the triggering of all interrupt routines with the exception of the non-maskable reset. After a reset or on executing the DI instruction, the interrupt enable flag is reset thus disabling all interrupts. The core will not accept any further interrupt requests until the interrupt enable flag has been set again by either executing an EI, RTI or SLEEP instruction. 8 (60) Rev. A2, 21-Nov-01 M44C090-V 2.2.4 ALU The 4-bit ALU performs all the arithmetic, logical, shift and rotate operations with the top two elements of the expression stack (TOS and TOS-1) and returns the result to the TOS. The ALU operations affect the carry/borrow and branch flag in the condition code register (CCR). 2.2.5 I/O Bus The I/O ports and the registers of the peripheral modules are I/O mapped. All communication between the core and the on-chip peripherals takes place via the I/O bus and the associated I/O control. With the MARC4 IN and OUT instructions the I/O bus allows a direct read or write access to one of the 16 primary I/O addresses. More about the I/O access to the on-chip peripherals is described in the section "Peripheral Modules". The I/O bus is internal and is not accessible by the customer on the final microcontroller device, but it is used as the interface for the MARC4 emulation (see also the section "Emulation"). 2.2.6 Instruction Set The MARC4 instruction set is optimized for the high level programming language qFORTH. Many MARC4 instructions are qFORTH words. This enables the compiler to generate a fast and compact program code. The CPU has an instruction pipeline allowing the controller to prefetch an instruction from ROM at the same time as the present instruction is being executed. Rev. A2, 21-Nov-01 IIIII IIII IIIII III II II IIIIIIII IIII IIIIIIIII IIII I IIII II I III I IIIIIIIIIIIIII I III II I I IIIII IIIIIIIIIIII IIII IIII IIIIIIIIIIIIIIIIII II IIIIIIII IIIII IIII IIIII IIII RAM SP TOS-1 TOS-2 TOS-3 TOS-4 TOS ALU CCR Figure 7. ALU zero-address operations 94 8977 The MARC4 is a zero address machine, the instructions containing only the operation to be performed and no source or destination address fields. The operations are implicitly performed on the data placed on the stack. There are one and two byte instructions which are executed within 1 to 4 machine cycles. A MARC4 machine cycle is made up of two system clock cycles (SYSCL). Most of the instructions are only one byte long and are executed in a single machine cycle. For more information refer to the "MARC4 Programmer's Guide". 2.2.7 Interrupt Structure The MARC4 can handle interrupts with eight different priority levels. They can be generated from the internal and external interrupt sources or by a software interrupt from the CPU itself. Each interrupt level has a hard-wired priority and an associated vector for the service routine in the ROM (see table 2). The programmer can postpone the processing of interrupts by resetting the interrupt enable flag (I) in the CCR. An interrupt occurrence will still be registered, but the interrupt routine only started after the I flag is set. All interrupts can be masked, and the priority individually software configured by programming the appropriate control register of the interrupting module. (see section "Peripheral Modules"). 9 (60) M44C090-V INT7 7 6 Priority level 5 4 3 2 1 0 INT3 INT5 INT3 active Main / Autosleep Time Figure 8. Interrupt handling Interrupt Processing For processing the eight interrupt levels, the MARC4 includes an interrupt controller with two 8-bit wide "interrupt pending" and "interrupt active" registers. The interrupt controller samples all interrupt requests during every non-I/O instruction cycle and latches these in the interrupt pending register. If no higher priority interrupt is present in the interrupt active register, it signals the CPU to interrupt the current program execution. If the interrupt enable bit is set, the processor enters an interrupt acknowledge cycle. During this cycle a short call (SCALL) instruction to the service routine is executed and the current PC is saved on the return stack. An interrupt service routine is completed with the RTI instruction. This instruction sets the interrupt enable flag, resets the corresponding bits in the interrupt pending/active register and fetches the return address from the return stack to the program counter. When the interrupt enable flag is reset (triggering of interrupt routines are disabled), the execution of new interrupt service routines is inhibited but not the logging of the interrupt requests in the interrupt pending register. The execution of the interrupt is delayed until the interrupt enable flag is set again. Note that interrupts are only lost if an interrupt request occurs while the corresponding bit in the pending register is still set (i.e., the interrupt service routine is not yet finished). It should also be noted that automatic stacking of the RBR is not carried out by the hardware and so if ROM banking is used, the RBR must be stacked on the expression stack by the application program and restored before the RTI. After a master reset (power-on, brown-out or watchdog reset), the interrupt enable flag and the interrupt pending and interrupt active register are all reset. Interrupt Latency The interrupt latency is the time from the occurrence of the interrupt to the interrupt service routine being activated. In MARC4 this is extremely short (taking between 3 to 5 machine cycles depending on the state of the core). 10 (60) AAAA AAAA AAAA I AAAIIIIII IIIIIII A AAAI IA AAAAAAAAI IIIIII AIIII AAAAAI AAA AAAA AAA AAAA AAAA AAAA INT7 active RTI INT5 active INT2 RTI AAA AAA RTI INT2 pending INT2 active RTI SWI0 INT0 pending INT0 active RTI AAAAA AAAAA Main / Autosleep 94 8978 Rev. A2, 21-Nov-01 M44C090-V Table 3 Interrupt priority table Interrupt INT0 INT1 INT2 INT3 INT4 INT5 INT6 INT7 Priority lowest | | | | | ROM Address 040h 080h Interrupt Opcode C8h (SCALL 040h) D0h (SCALL 080h) Function Software interrupt (SWI0) External hardware interrupt, any edge at BP52 or BP53 Timer 1 interrupt SSI interrupt or external hardware interrupt at BP40 or BP43 Timer 2 interrupt Software interrupt (SW15) A A A AAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAA A AAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAAAAAAA 0C0h 100h 140h 180h D8h (SCALL 0C0h) E8h (SCALL 100h) E8h (SCALL 140h) F0h (SCALL 180h) 1C0h 1E0h F8h (SCALL 1C0h) External hardware interrupt, at any edge at BP50 or BP51 Voltage monitor (VM) interrupt highest FCh (SCALL 1E0h) Table 4 Hardware interrupts Interrupt INT1 INT2 INT3 INT4 INT6 INT7 Interrupt Mask Interrupt Source A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAA P5CR T1M P52M1, P52M2 P53M1, P53M2 T1IM SIM T2IM Any edge at BP52 any edge at BP53 Timer 1 SISC SSI buffer full / empty or BP40/BP43 interrupt Timer 2 compare match / overflow Any edge at BP50, any edge at BP51 T2CM P5CR VCM P50M1, P50M2 P51M1, P51M2 VIM External / internal voltage monitoring Register Bit Software Interrupts 2.3 Master Reset The programmer can generate interrupts by using the software interrupt instruction (SWI) which is supported in qFORTH by predefined macros named SWI0...SWI7. The software triggered interrupt operates exactly like any hardware triggered interrupt. The SWI instruction takes the top two elements from the expression stack and writes the corresponding bits via the I/O bus to the interrupt pending register. Therefore, by using the SWI instruction, interrupts can be re-prioritized or lower priority processes scheduled for later execution. Hardware Interrupts In the M44C090-V, there are eleven hardware interrupt sources with seven different levels. Each source can be masked individually by mask bits in the corresponding control registers. An overview of the possible hardware configurations is shown in table 4. The master reset forces the CPU into a well-defined condition. It is unmaskable and is activated independent of the current program state. It can be triggered by either initial supply power-up, a short collapse of the power supply, brown-out detection circuitry, watchdog time-out, or an external input clock supervisor stage (see figure 9). A master reset activation will reset the interrupt enable flag, the interrupt pending register and the interrupt active register. During the power-on reset phase the I/O bus control signals are set to 'reset mode' thereby initializing all on-chip peripherals. All bidirectional ports are set to input mode. Attention: During any reset phase, the BP20/NTE input is driven towards VDD by a strong pull-up transistor. Releasing the reset results in a short call instruction (opcode C1h) to the ROM address 008h. This activates the initialization routine $RESET which in turn has to initialize all necessary RAM variables, stack pointers and peripheral configuration registers (see table 7). Rev. A2, 21-Nov-01 11 (60) M44C090-V V DD Pull-up CL NRST res Reset timer Internal reset CL=SYSCL/4 Power-on reset Brown-out detection Watch- dog res Ext. clock supervisor Figure 9. Reset configuration VDD VSS VDD VSS CWD ExIn 13752 2.3.1 Power-on Reset and Brown-out Detection The M44C090-V has a fully integrated power-on reset and brown-out detection circuitry. For reset generation no external components are needed . These circuits ensure that the core is held in the reset state until the minimum operating supply voltage has been V DD reached. A reset condition will also be generated should the supply voltage drop momentarily below the minimum operating level except when a power down mode is activated (the core is in SLEEP mode and the peripheral clock is stopped). In this power-down mode the brownout detection is disabled. Two values for the brown-out voltage threshold are programmable via the BOT-bit in the SC-register. 2.0 V 1.7 V t d CPU Reset CPU Reset BOT = '1' td BOT = '0' td = 1.5 ms (typically) BOT = 1, low brown-out voltage threshold. (1.7 V) is reset value. BOT = 0, high brown-out voltage threshold (1.9 V). Figure 10. Brown-out detection td t 13753 12 (60) Rev. A2, 21-Nov-01 M44C090-V A power-on reset pulse is generated by a VDD rise across the default BOT voltage level (1.7 V). A brown-out reset pulse is generated when VDD falls below the brown-out voltage threshold. Two values for the brown-out voltage threshold are programmable via the BOT-bit in the SC-register. When the controller runs in the upper supply voltage range with a high system clock frequency, the high threshold must be used. When it runs with a lower system clock frequency, the low threshold and a wider supply voltage range may be chosen. For further details, see the electrical specification and the SC-register description for BOT programming. 2.4 Voltage Monitor 2.3.2 Watchdog Reset The watchdog's function can be enabled at the WDC-register and triggers a reset with every watchdog counter overflow. To supress the watchdog reset, the watchdog counter must be regularly reset by reading the watchdog register address (CWD). The CPU reacts in exactly the same manner as a reset stimulus from any of the above sources. The voltage monitor consists of a comparator with internal voltage reference. It is used to supervise the supply voltage or an external voltage at the VMI-pin. The comparator for the supply voltage has three internal programmable thresholds one lower threshold (2.2 V), one middle threshold (2.6 V). and one higher threshold (3.0 V). For external voltages at the VMI-pin, the comparator threshold is set to VBG = 1.3 V. The VMS-bit indicates if the supervised voltage is below (VMS = 0) or above (VMS = 1) this threshold. An interrupt can be generated when the VMS-bit is set or reset to detect a rising or falling slope. A voltage monitor interrupt (INT7) is enabled when the interrupt mask bit (VIM) is reset in the VMC-register. V DD Voltage monitor BP41/ VMI IN OUT INT7 2.3.3 External Clock Supervisor VMC : VM2 VM1 VM0 VIM The external input clock supervisor function can be enabled if the external input clock is selected within the CM- and SC-registers of the clock module. The CPU reacts in exactly the same manner as a reset stimulus from any of the above sources. VMST : - - res VMS 13754 Figure 11. Voltage monitor Rev. A2, 21-Nov-01 13 (60) M44C090-V 2.4.1 Voltage Monitor Control / Status Register Primary register address: 'F'hex Bit 3 VMC: Write VM2 --- Bit 2 VM1 --- Bit 1 VM0 Bit 0 VIM Reset value: 1111b AAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA 1 1 1 1 0 0 0 0 1 1 0 0 1 1 0 0 1 0 1 0 1 0 1 0 Disable voltage monitor Not allowed External (VIM-input), internal reference threshold (1.3 V), interrupt with negative slope External (VMI-input), internal reference threshold (1.3 V), interrupt with positive slope Internal (supply voltage), high threshold (3.0 V), interrupt with negative slope Internal (supply voltage), low threshold (2.2 V), interrupt with negative slope Not allowed Internal (supply voltage), middle threshold (2.6 V), interrupt with negative slope VIM Voltage Interrupt Mask bit VIM = 0, voltage monitor interrupt is enabled VIM = 1, voltage monitor interrupt is disabled VMS Voltage Monitor Status bit VMS = 0, the voltage at the comparator input is below Vref VMS = 1, the voltage at the comparator input is above Vref VMS = 1 V DD Low threshold Middle threshold High threshold 3.0 V 2.6 V 2.2 V Low threshold Middle threshold High threshold VMS = 0 AAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A AA AAAAAAAAAA A A AA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A AA A A AAA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAA AA VMST: Read reserved VMS Reset value: xx11b VM2: Voltage monitor Mode bit 2 VM1: Voltage monitor Mode bit 1 VM0: Voltage monitor Mode bit 0 VM2 VM1 VM0 Function Figure 12. Internal supply voltage supervisor Internal reference level Interrupt positive slope VMS = 1 VMS = 0 Interrupt negative slope Figure 13. External input voltage supervisor t VMI Negative slope VMS = 1 1.3 V VMS = 0 Positive slope 14 (60) Rev. A2, 21-Nov-01 M44C090-V 2.5 2.5.1 Clock Generation Clock Module maintained stable to within a tolerance of 15% over the full operating temperature and voltage range. The clock module is programmable via software with the clock management register (CM) and the system configuration register (SC). The required oscillator configuration can be selected with the OS1-bit and the OS0-bit in the SC-register. A programmable 4-bit divider stage allows the adjustment of the system clock speed. A special feature of the clock management is that an external oscillator may be used and switched on and off via a port pin for the power-down mode. Before the external clock is switched off, the internal RC-oscillator 1 must be selected with the CCS-bit and then the SLEEP mode may be activated. In this state an interrupt can wake up the controller with the RC-oscillator, and the external oscillator can be activated and selected by software. A synchronization stage avoids too short clock periods if the clock source or the clock speed is changed. If an external input clock is selected, a supervisor circuit monitors the external input and generates a hardware reset if the external clock source fails or drops below 500 kHz for more than 1 msec. The M44C090-V contains a clock module with 4 different internal oscillator types: two RC-oscillators, one 4-MHz crystal oscillator and one 32-kHz crystal oscillator. The pins OSC1 and OSC2 are the interface to connect a crystal either to the 4-MHz, or to the 32-kHz crystal oscillator. OSC1 can be used as input for external clocks or to connect an external trimming resistor for the RC-oscillator 2. All necessary circuitry except the crystal and the trimming resistor is integrated on-chip. One of these oscillator types or an external input clock can be selected to generate the system clock (SYSCL). In applications that do not require exact timing, it is possible to use the fully integrated RC-oscillator 1 without any external components. The RC-oscillator 1 center frequency tolerance is typically 50%. The RC-oscillator 2 is a trimmable oscillator whereby the oscillator frequency can be trimmed with an external resistor attached between OSC1 and VDD. In this configuration, the RC-oscillator 2 frequency can be RC oscillator 1 ExOut Stop RCOut2 Stop 4Out Stop Stop RCOut1 Control OSC1 Oscin Ext. clock ExIn SYSCL IN1 Cin IN2 Divider /2 /2 /2 /2 RC oscillator2 RTrim 4-MHz oscillator Oscin Oscout OSC2 Oscout 32-kHz oscillator Oscin Oscout 32Out Osc-Stop Sleep WDL Cin/16 CCS CSS1 CSS0 32 kHz SUBCL CM: NSTOP SC: BOT --- OS1 OS0 Figure 14. Clock module Table 5 Clock modes Mode OS1 1 0 1 0 OS0 1 1 0 0 1 2 3 4 Clock Source for SYSCL CCS = 1 CCS = 0 RC-oscillator 1 (intern) RC-oscillator 1 (intern) RC-oscillator 1 (intern) RC-oscillator 1 (intern) External input clock Clock Source for SUBCL Cin / 16 Cin / 16 Cin / 16 32 kHz AAAAAAAAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA A A AAA AAA A AAAAAAAAAA A A A A AAA AAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AA RC-oscillator 2 with external trimming resistor 4-MHz oscillator 32-kHz oscillator Rev. A2, 21-Nov-01 15 (60) M44C090-V The clock module generates two output clocks. One is the system clock (SYSCL) and the other the periphery (SUBCL). The SYSCL can supply the core and the peripherals and the SUBCL can supply only the peripherals with clocks. The modes for clock sources are programmable with the OS1-bit and OS0-bit in the SCregister and the CCS-bit in the CM-register. Ext. input clock Ext. OSC1 Clock ExOut ExIn Stop RcOut1 Osc-Stop CCS OSC2 Clock monitor Res 2.5.2 Oscillator Circuits and External Clock Input Stage Figure 16. External input clock 13759 RC-Oscillator 1 Fully Integrated For timing insensitive applications, it is possible to use the fully integrated RC oscillator 1. It operates without any external components and saves additional costs. The RC-oscillator 1 center frequency tolerance is better than 70% over the full temperature and voltage range. The basic center frequency of the RC-oscillator 1 is fO [3.8 MHz The RC oscillator 1 is selected by default after power-on reset. RC oscillator 1 RcOut1 Stop RcOut1 Osc-Stop Control 13758 Figure 15. RC-oscillator 1 External Input Clock The OSC1 can be driven by an external clock source provided it meets the specified duty cycle, rise and fall times and input levels. Additionally the external clock stage contains a supervisory circuit for the input clock. The supervisor function is controlled via the OS1, OS0-bit in the SC-register and the CCS-bit in the CMregister. If the external input clock fails and CCS = 0 is set in the CM-register, the supervisory circuit generates a hardware reset. The input clock has failed if the frequency is less than 500 kHz for more than 1 ms. 16 (60) AAAAAAAAAAAA A A AAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAA AA AAAAAAAAAAAA A AAAAAAAAAAAAAAAA AA A AA A AAAAAAAAAAAAAAAA AAAAAA AAAAA A 1 1 x 1 1 0 0 1 x enable disable disable The M44C090-V series consists of four different internal oscillators: two RC-oscillators, one 4-MHz crystal oscillator, one 32-kHz crystal oscillator and one external clock input stage. OS1 OS0 CCS Supervisor Reset Output (Res) RC-Oscillator 2 with External Trimming Resistor The RC-oscillator 2 is a high resolution trimmable oscillator whereby the oscillator frequency can be trimmed with an external resistor between OSC1 and VDD. In this configuration, the RC-oscillator 2 frequency can be maintained stable to within a tolerance of 15% over the full operating temperature and, voltage range from VDD = 2.0 V to 3.6V. For example: An output frequency at the RC-oscillator 2 of 2 MHz, can be obtained by connecting a resistor Rext = 360 k (see figure 17). VDD Rext OSC1 RC oscillator 2 RcOut2 RTrim Stop OSC2 13760 RcOut2 Osc-Stop Figure 17. RC-oscillator 2 4-MHz Oscillator The M44C090-V 4-MHz oscillator options need a crystal or ceramic resonator connected to the OSC1 and OSC2 pins to establish oscillation. All the necessary oscillator circuitry, with the exception of the actual crystal, resonator, C3 and C4 are integrated on-chip. Rev. A2, 21-Nov-01 M44C090-V OSC1 Oscin XTAL 4 MHz OSC2 4Out 4-MHz oscillator Stop Oscout 4Out 32-kHz Oscillator Some applications require long-term time keeping or low resolution timing. In this case, an on-chip, low power 32-kHz crystal oscillator can be used to generate both the SUBCL and the SYSCL. In this mode, power consumption is greatly reduced. The 32-kHz crystal oscillator can not be stopped while the power-down mode is in operation. OSC1 Oscin XTAL 32 kHz 32Out 32-kHz oscillator Oscout OSC2 Osc-Stop Figure 18. 4-MHz crystal oscillator 32Out C3 OSC1 Oscin Cer. Res OSC2 C2 = C3 = 22 pF Figure 19. Ceramic resonator 4Out 4-MHz oscillator Oscout Stop 4Out 4 MHz Osc-Stop Figure 20. 32-kHz crystal oscillator C4 2.5.3 Clock Management The clock management register controls the system clock divider and synchronization stage. Writing to this register triggers the synchronization cycle. Clock Management Register (CM) Auxiliary register address: '3'hex Bit 3 CM: NSTOP Bit 2 CCS Bit 1 CSS1 Bit 0 CSS0 Reset value: 1111b AAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AAAAAA A A A AA A A AAAAAA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A AA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAA A A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAA A A A A A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAAA NSTOP CCS Not STOP peripheral clock NSTOP = 0, stops the peripheral clock while the core is in SLEEP mode NSTOP = 1, enables the peripheral clock while the core is in SLEEP mode Core Clock Select CCS = 1, the internal RC-oscillator 1 generates SYSCL CCS = 0, the 4-MHz crystal oscillator, the 32-kHz crystal oscillator, an external clock source or the internal RC-oscillator 2 with the external resistor at OSC1 generates SYSCL dependent on the setting of OS0 and OS1 in the system configuration register Core Speed Select 1 Core Speed Select 0 CSS1 0 1 1 0 CSS1 CSS0 CSS0 0 1 0 1 Divider 16 8 4 2 Note Reset valueAAAAAA Rev. A2, 21-Nov-01 17 (60) M44C090-V System Configuration Register (SC) Primary register address: '3'hex Bit 3 Bit 2 --- Bit 1 OS1 Bit 0 OS0 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAA A AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA SC: write BOT Reset value: 1x11b BOT OS1 OS0 Brown-Out Threshold BOT = 1, low brown-out voltage threshold (1.7 V) BOT = 0, high brown-out voltage threshold (2.0 V) Oscillator Select 1 Oscillator Select 0 OS0 1 1 0 0 Input for SUBCL Cin / 16 Cin / 16 Cin / 16 32 kHz Mode 1 2 3 4 OS1 1 0 1 0 Selected Oscillators RC-oscillator 1 and external input clock RC-oscillator 1 and RC-oscillator 2 RC-oscillator 1 and 4-MHz crystal oscillator RC-oscillator 1 and 32-kHz crystal oscillator If the bit CCS = 0 in the CM-register the RC-oscillator 1 always stops. 2.6 Power-Down Modes instruction cycles (for example NOP NOP NOP) between the IN or OUT command and the SLEEP command. The total power consumption is directly proportional to the active time of the C. For a rough estimation of the expected average system current consumption, the following formula should be used: Itotal (VDD,fsyscl) = ISleep + (IDD IDD depends on VDD and fsyscl. tactive / ttotal) The sleep mode is a shut-down condition which is used to reduce the average system power consumption in applications where the C is not fully utilized. In this mode, the system clock is stopped. The sleep mode is entered via the SLEEP instruction. This instruction sets the interrupt enable bit (I) in the condition code register to enable all interrupts and stops the core. During the sleep mode the peripheral modules remain active and are able to generate interrupts. The C exits the sleep mode by carrying out any interrupt or a reset. The sleep mode can only be kept when none of the interrupt pending or active register bits are set. The application of the $AUTOSLEEP routine ensures the correct function of the sleep mode. For standard applications use the $AUTOSLEEP routine to enter the power-down mode. Using the SLEEP instruction instead of the $AUTOSLEEP following an I/O instruction requires to insert 3 non I/O Table 6 Power-down modes The M44C090-V has various power-down modes. During the sleep mode the clock for the MARC4 core is stopped. With the NSTOP-bit in the clock management register (CM) it is programmable if the clock for the on-chip peripherals is active or stopped during the sleep mode. If the clock for the core and the peripherals is stopped the selected oscillator is switched off. An exception is the 32-kHz oscillator, if it is selected it runs continously independent of the NSTOP-bit. If the oscillator is stopped or the 32 kHz oscillator is selected, power consumption is extremely low. Mode CPU Core Osc-Stop* Brown-out Function Active Active STOP RC-Oscillator 1 RC-Oscillator 2 4-MHz Oscillator RUN RUN 32-kHz Oscillator RUN RUN RUN External Input Clock YES YES AAAAAA A A A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A Active RUN NO NO Power-down SLEEP SLEEP SLEEP YES STOP STOP * Osc-Stop = SLEEP & NSTOP & WDL 18 (60) Rev. A2, 21-Nov-01 M44C090-V 3 3.1 Peripheral Modules Addressing Peripherals Accessing the peripheral modules takes place via the I/O bus (see figure 21). The IN or OUT instructions allow direct addressing of up to 16 I/O modules. A dual register addressing scheme has been adopted to enable direct addressing of the "primary register". To address the "auxiliary register", the access must be switched with an "auxiliary switching module". Thus a single IN (or OUT) to the module address will read (or write) into the module Module ASW Module M1 (Address Pointer) Subaddress Reg. Auxiliary Switch Module Bank of Primary Regs. Subport Fh 1 Subport Eh Subport 1 Subport 0 2 primary register. Accessing the auxiliary register is performed with the same instruction preceded by writing the module address into the auxiliary switching module. Byte wide registers are accessed by multiple IN- (or OUT-) instructions. For more complex peripheral modules, with a larger number of registers, extended addressing is used. In this case a bank of up to 16 subport registers are indirectly addressed with the subport address. The first OUT-instruction writes the subport address to the subaddress register, the second IN- or OUT-instruction reads data from or writes data to the addressed subport. Module M2 Aux. Reg. Module M3 5 Primary Reg. Primary Reg. Primary Reg. 3 4 6 I/O bus to other modules Indirect Subport Access (Subport Register Write) 3 1 2 Dual Register Access (Primary Register Write) OUT OUT 4 OUT IN (Primary Register Rea d) 3 Address(M 2) (Auxiliary Register Rea d) 4 Single Register Access (Prima ry Register Write) 6 Addr.(SPort) Addr.(M1) SPort_Data Addr.(M1) (Subport Register Read) Prim._Data Address(M2) OU T Prim._Data Address(M3) O UT (Prima ry Register Read) ( Auxiliary Register Write ) Address(M2) Address(ASW) OUT Aux._Data Address(M2) OUT 5 6 Address(M3) IN 1 2 Addr.(SPort) Addr.(M1) Addr.(M 1) Example of qFORTH Program Code (Subport Register Write Byte) 1 2 2 IN Addr.(SPort) Addr.(M1) SPort_Data(lo) Addr.(M1) OUT OUT 5 SPort_Data(hi) Addr.(M1) OUT (Subport Register Rea d Byte) Address(M2) Address(ASW) OUT Address(M 2) IN (Auxiliary Register Write Byte) 1 2 2 Addr.(SPort) Addr.(M1) Addr.(M 1) Addr.(M 1) OUT IN (hi) IN (lo) 4 5 5 Address(M2) Address(ASW) OUT Aux._Data(lo) Address(M2) OUT Aux._Data(hi) Address(M2) OUT Aux._Data (hi) = da ta to be written into Auxiliar y Register (high nibble) SPort_Data(lo) = data to be written into SubP ort (low nibble) SPort_Data(hi) = da ta to be written into Subport (high nibble) (lo) = SPort_Data (low nibble) (hi) = SPort_Data (high nibble) 13357 Addr.(ASW) = Auxiliary Switch Module Address Addr.(Mx) = Module Mx Addr ess Addr.(SPort) = Subport Address Prim._Data = data to be written into Primar y Register. Aux._Data = da ta to be written into Auxilia ry Register Aux. _Data (lo ) = data to be written into Auxiliar y Re gister (low nibble ) Figure 21. Example of I/O addressing Rev. A2, 21-Nov-01 19 (60) AAA A A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAA A AA A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AA AAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA AA A A A AA AA AA AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA AA AAA A AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AA A A AAA A AA A A AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAA A A A A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA A AA A AA A AA A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA AA A A A AA AA AA AA A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA A AA A AAA A AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA A A A AAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAA A AA AA A AA A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAA A AA A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA AAA A A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AA AA AA AA AAA A AA A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA Table 7 Peripheral addresses M44C090-V 20 (60) D A C B E F 9 8 7 6 5 4 3 2 1 Port Address Aux. Aux. Aux. Aux. Aux. Aux. B-F Subport address A 9 8 7 6 5 4 3 2 1 0AAAAA W T2C VMST VMC --- --- ---- ---- SIC2 SISC SIC1 SRB STB ASW WDC T1C2 T1C1 ---- ---- T2CO2 T2CO1 T2CM T2M2 T2M1 T12SUB ---- P5CR P5DAT P4CR P4DAT CM CWD SC P2CR P2DAT ---- Name Write /Read ---- ---- W/R W/R W/R W/R W/R W W W W W W W W W W W W W W W W W W R R R Reset Value xxxx xxxxb xxxx xxxxb 1111 1111b 1111 1111b 1111 1111b xx11b 1x11b 0000b 0000b xxxxb 1x11b 1111b 1111b 1111b 1111b 1111b x111b 1111b 1111b 1111b 1111b 1111b 1111b 1111b 1111b 1111b ---- ---- ---- ---- ---- ---- ---- ---- Voltage monitor status register Voltage monitor control register Reserved Reserved Reserved Reserved Serial interface control register 2 Serial interface status / control register Serial interface control register 1 Serial receive buffer (byte) Serial transmit buffer (byte) Auxiliary / switch register Reserved Watchdog control register Timer 1 control register 2 Timer 1 control register 1 Reserved Reserved Timer 2 compare register 2 (byte) Timer 2 compare register 1 Timer 2 compare mode register Timer 2 mode register 2 Timer 2 mode register 1 Timer 2 control register Data to Timer 1/2 subport Reserved Port 5 - control register (byte) Port 5 - data register / pin data Port 4 - control register (byte) Port 4 - data register / pin data Port 3 - clock management register Watchdog reset Port 3 - system configuration register Port 2 - control register Port 2 - data register / pin data Reserved Register Function Rev. A2, 21-Nov-01 Module Type ASW M3 M3 M2 M2 M1 M1 M1 M1 M1 M1 M1 M1 M1 M1 M2 M2 M2 M3 M3 M2 See Page 14 14 45 46 45 47 46 19 28 27 27 37 37 37 36 35 34 19 23 23 24 24 17 26 18 21 21 M44C090-V 3.2 Bidirectional Ports All ports (2, 4 and 5) are 4 bits wide. All ports may be used for data input or output. All ports are equipped with Schmitt trigger inputs and a variety of mask options for open drain, open source, full complementary outputs, pull up and pull down transistors. All Port Data Registers (PxDAT) are I/O mapped to the primary address register of the respective port address and the Port Control Register (PxCR), to the corresponding auxiliary register. There are three different directional ports available: Port 2 4-bit wide bitwise-programmable I/O port. Port 5 4-bit wide bitwise-programmable bidirectional port with optional strong pull-ups and programmable interrupt logic. Port 4 4-bit wide bitwise-programmable bidirectional port also provides the I/O interface to Timer 2, SSI, voltage monitor input and external interrupt input. 3.2.1 Bidirectional Port 2 This, and all other bidirectional ports include a bitwise programmable Control Register (P2CR), which enables the individual programming of each port bit as input or output. It also opens up the possibility of reading the pin condition when in output mode. This is a useful feature for self testing and for serial bus applications. Port 2 however, has an increased drive capability and an additional low resistance pull-up/-down transistor mask option. V I/O Bus Switched Pull-up * (Data out) I/O Bus D Q P2DATy S Master reset I/O Bus DSQ P2CRy (Direction) * DD Static Pull-up * BP2y * V DD * Switched Pull-down * Static Pull-down * Mask options Figure 22. Bidirectional Port 2 Port 2 Data Register (P2DAT) Primary register address: '2'hex Bit 3 * P2DAT P2DAT3 Bit 2 Bit 1 Bit 0 Reset value: 1111b AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAA A A A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAAAAAAAAAA AAAAA P2DAT2AAAAP2DAT0 P2DAT1 * Bit 3 -> MSB, Bit 0 -> LSB Port 2 Control Register (P2CR) Auxiliary register address: '2'hex AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A P2CR P2CR3 P2CR2 P2CR1 P2CR0 Reset value: 1111b Value: 1111b means all pins in input mode Rev. A2, 21-Nov-01 21 (60) Bit 3 Bit 2 Bit 1 Bit 0 M44C090-V Code 3210 xxx1 xxx0 xx1x xx0x x1xx x0xx 1xxx 0xxx BP20 in input mode BP21 in input mode BP22 in input mode BP23 in input mode BP20 in output mode BP21 in output mode BP22 in output mode BP23 in output mode Function AAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA 3.2.2 Bidirectional Port 5 This, and all other bidirectional ports include a bitwise programmable Control Register (P5CR), which allows the individual programming of each port bit as input or output. It also opens up the possibility of reading the pin condition when in output mode. This is a useful feature for self testing and for serial bus applications. The port pins can also be used as external interrupt inputs (see figures 24 & 25). The interrupts (INT1 and INT6) can be masked or independently configured to trigger on either edge. The interrupt configuration and port direction is controlled by the Port 5 Control Register (P5CR). An additional low resistance pull-up/-down transistor mask option provides an internal bus pull-up for serial bus applications. The Port 5 Data Register (P5DAT) is I/O mapped to the primary address register of address '5'h and the Port 5 Control Register (P5CR) to the corresponding auxiliary register. The P5CR is a byte-wide register and is configured by writing first the low nibble then the high nibble (see section 2.1 "Addressing peripherals"). Switched Pull-up V DD Static Pull-up I/O Bus * VDD (Data out) I/O Bus D Q P5DATy S Master reset IN enable Switched Pull-down * * BP5y * V DD Static * * Pull-down * Mask options Figure 23. Bidirectional Port 5 22 (60) Rev. A2, 21-Nov-01 M44C090-V INT1 Data in BP52 INT6 Data in BP51 Bidir. Port IN_Enable Bidir. Port IN_Enable I/O-bus I/O-bus Data in BP53 Data in BP50 Bidir. Port IN_Enable Decoder Decoder Decoder Decoder Bidir. Port IN_Enable P5CR: P53M2 P53M1 P52M2 P52M1 P51M2 P51M1 P50M2 P50M1 13764 Figure 24. Port 5 external interrupts Port 5 Data Register (P5DAT) AAAAAAAAAAAA A A A AA A AAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAA A AA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAA AA A Bit 3 Bit 2 Bit 1 Bit 0 P5DAT P5DAT3 P5DAT2 P5DAT1 P5DAT0 Reset value: 1111b Port 5 Control Register (P5CR) Byte Write Auxiliary register address: '5'hex Primary register address: '5'hex AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A AAAAAAAAA A AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A AAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAA Bit 3 Bit 7 Bit 2 Bit 6 Bit 1 Bit 5 Bit 0 Bit 4 P5CR First write cycle P51M2 P53M2 P51M1 P53M1 P50M2 P52M2 P50M1 P52M1 Reset value: 1111b Reset value: 1111b Second write cycle P5xM2, P5xM1 - Port 5x Interrupt mode/direction code Auxiliary Address: '5'hex First Write Cycle Second Write Cycle Function BP52 in input mode - interrupt disabled AAAAAAAAAAAAA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAA xx11 xx01 xx10 xx00 11xx 01xx 10xx 00xx x x 0 1 BP50 in input mode - rising edge interrupt x x 0 0 BP50 in output mode - interrupt disabled 1 1 x x BP51 in input mode - interrupt disabled BP52 in input mode - rising edge interrupt BP52 in output mode - interrupt disabled BP53 in input mode - interrupt disabled x x 1 0 BP50 in input mode - falling edge interrupt BP52 in input mode - falling edge interrupt 0 1 x x BP51 in input mode - rising edge interrupt 0 0 x x BP51 in output mode - interrupt disabled BP53 in input mode - rising edge interrupt BP53 in output mode - interrupt disabled 1 0 x x BP51 in input mode - falling edge interrupt BP53 in input mode - falling edge interrupt Rev. A2, 21-Nov-01 Code Function 3210 x x 1 1 BP50 in input mode - interrupt disabled Code 3210 23 (60) M44C090-V 3.2.3 Bidirectional Port 4 and SD line have an additional mode to generate an SSI- interrupt. All four Port 4 pins can be individually switched by the P4CR-register . Figure 26 shows the internal interfaces to bidirectional Port 4. The bidirectional Port 4 is both a bitwise configurable I/O port and provides the external pins for the Timer 2, SSI and the voltage monitor input (VMI). As a normal port, it performs in exactly the same way as bidirectional Port 2 (see figure 26). Two additional multiplexes allow data and port direction control to be passed over to other internal modules (Timer 2, VM or SSI). The I/O-pins for SC I/O Bus Intx PIn POut I/O Bus D S Master reset I/O Bus D (Direction) S Q Switched Pull-down Q PxDATy PxMRy V DD Static * VDD Switched Pull-up * Pull-up * BPxy * VDD Static * * Pull-down PxCRy PDir * Mask options Figure 25. Bidirectional Port 4 Port 4 Data Register (P4DAT) AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A AAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAA A AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAA A Bit 3 Bit 2 Bit 1 Bit 0 P4DAT P4DAT3 P4DAT2 P4DAT1 P4DAT0 Reset value: 1111b Port 4 Control Register (P4CR) Byte Write Auxiliary register address: '4'hex Primary register address: '4'hex AAAAAAAAA A A A A AA A A AAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A AAAAAAAAAAAAAAAA AAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA AAA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA Bit 3 Bit 7 Bit 2 Bit 6 Bit 1AAAA Bit 0 P40M1 P42M1 Bit 5AAAA Bit 4 P4CR First write cycle P41M2AAAA P40M2 P41M1 P43M2AAAA P42M2 P43M1 Reset value: 1111b Reset value: 1111b Second write cycle P4xM2, P4xM1 - Port 4x Interrupt mode/direction code 24 (60) Rev. A2, 21-Nov-01 M44C090-V A AA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A AAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA A A A AAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A Code Function 3210 x x 1 1 BP40 in input mode x x 1 0 BP40 in output mode Code 3210 Function x x 1 1AAAAAAAAAAAAA BP42 in input mode x x 1 0AAAAAAAAAAAAA BP42 in output mode x x 0 xAAAAAAAAAAAAA BP42 enable alternate function (T2O for Timer 2) 11xx 10xx 01xx 00xx --- BP43 in input mode x x 0 1 BP40 enable alternate function (SC for SSI) x x 0 0 BP40 enable alternate function (falling edge interrupt input for INT3) 1 1 x x BP41 in intput mode 1 0 x x BP41 in output mode BP43 in output mode BP43 enable alternate function (SD for SSI) BP43 enable alternate function (falling edge interrupt input for INT3) --- 0 1 x x BP41 enable alternate function (VMI for voltage monitor input) 0 0 x x BP41 enable alternate function (T2I external clock input for Timer 2) Auxiliary Address: '4'hex First Write Cycle Second Write Cycle 3.3 Universal Timer/Counter / Communication Module (UTCM) put (T2I) and an output (T2O). The Universal Timer/counter/ Communication Module (UTCM) consists of Timer 1, Timer 2 and a Synchronous Serial Interface (SSI). D Timer 1 is an interval timer that can be used to generate periodical interrupts and as prescaler for Timer 2, the serial interface and the watchdog function. D Timer 2 is an 8/12-bit timer with an external clock inSYSCL SUBCL from clock module D The SSI operates as two wire serial interface or as shift register for modulation. The modulator units work together with the timers and shift the data bits out of the shift register. There is a multitude of modes in which the timers and the serial interface can work together. Timer 1 Watchdog MUX Interval / Prescaler NRST INT2 T1OUT MUX Timer 2 4-bit Counter 2/1 Compare 2/1 Modu- lator 2 I/O bus T2O T2I POUT MUX DCG Control 8-bit Counter 2/2 INT4 Compare 2/2 TOG2 SSI Receive-Buffer 8-bit Shift-Register Transmit-Buffer SCL MUX Control INT3 SC SD Figure 26. UTCM block diagram Rev. A2, 21-Nov-01 25 (60) M44C090-V 3.3.1 Timer 1 The Timer 1 is an interval timer which can be used to generate periodical interrupts and as prescaler for Timer 2, Timer 3, the serial interface and the watchdog function. The Timer 1 consists of a programmable 14-stage divider that is driven by either SUBCL or SYSCL. The timer output signal can be used as prescaler clock or as SUBCL and as source for the Timer 1 interrupt. Because of other system requirements the Timer 1 output T1OUT is synchronized with SYSCL. Therefore in the power-down mode SLEEP (CPU core -> sleep and OSC-Stop -> yes) the output T1OUT is stopped (T1OUT=0). Nevertheless the Timer 1 can be active in SLEEP and generate Timer 1 interrupts. The interrupt is maskable via the T1IM bit and the SUBCL can be bypassed via the T1BP bit of the T1C2 register. The time interval for the timer output can be programmed via the Timer 1 control register T1C1. This timer starts running automatically after any SYSCL SUBCL power-on reset ! If the watchdog function is not activated, the timer can be restarted by writing into the T1C1 register with T1RM=1. Timer 1 can also be used as a watchdog timer to prevent a system from stalling. The watchdog timer is a 3-bit counter that is supplied by a separate output of Timer 1. It generates a system reset when the 3-bit counter overflows. To avoid this, the 3-bit counter must be reset before it overflows. The application software has to accomplish this by reading the CWD register. After power-on reset the watchdog must be activated by software in the $RESET initialization routine. There are two watchdog modes, in one mode the watchdog can be switched on and off by software, in the other mode the watchdog is active and locked. This mode can only be stopped by carrying out a system reset. The watchdog timer operation mode and the time interval for the watchdog reset can be programmed via the watchdog control register (WDC). WDCL MUX CL1 Prescaler 14 bit Watchdog 4 bit NRST INT2 T1CS T1MUX T1BP T1IM T1OUT 13766 Figure 27. Timer 1 module T1C1 T1RM T1C2 T1C1 T1C0 3 Write of the T1C1 register T1C2 T1BP T1IM Decoder MUX for interval timer T1MUX T1IM=0 INT2 T1IM=1 T1OUT RES Q1 Q2 Q3 Q4 Q5 CL1 CL Q6 Q8 Q8 Q11 Q11 Q14 SUBCL Q14 Watchdog Divider / 8 Decoder 2 WDC WDL WDR WDT1 WDT0 MUX for watchdog timer WDCL RES Read of the CWD register 13767 Divider RESET RESET (NRST) Watchdog mode control Figure 28. Timer 1 and watchdog 26 (60) Rev. A2, 21-Nov-01 M44C090-V Timer 1 Control Register 1 (T1C1) Address: '7'hex - Subaddress: '8'hex Bit 3 * T1C1 T1RM Bit 2 T1C2 Bit 1 T1C1 Bit 0 T1C0 Reset value: 1111b AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA A A A A AA A AAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAA * Bit 3 -> MSB, Bit 0 -> LSB T1RM Timer 1 Restart Mode T1RM = 0, write access without Timer 1 restart T1RM = 1, write access with Timer 1 restart Note: if WDL = 0, Timer 1 restart is impossible Timer 1 Control bit 2 Timer 1 Control bit 1 Timer 1 Control bit 0 T1C2 T1C1 T1C0 The three bits T1C[2:0] select the divider for timer 1. The resulting time interval depends on this divider and the timer 1 input clock source. The timer input can be supplied by the system clock, the 32kHz oscillator or via the T1C2 T1C1 T1C0 Divider 0 0 0 0 1 1 1 1 0 0 1 1 0 0 1 1 0 1 0 1 0 1 0 1 2 4 8 16 32 256 2048 16384 clock management. If the clock management generates the SUBCL, the selected input clock from the RC oscillator, 4MHz oscillator or an external clock is divided by 16. Time Interval with SUBCL = 32 kHz 61 s 122 s 244 s 488 s 0.977 ms 7.812 ms 62.5 ms 500 ms Time Interval with SUBCL SUBCL / 2 SUBCL / 4 SUBCL / 8 SUBCL / 16 SUBCL / 32 SUBCL / 256 SUBCL / 2048 SUBCL / 16384 Time Interval with SYSCL = 2/1 MHz 1 s / 2 s 2 s / 4 s 4 s / 8 s 8 s / 16 s 16 s / 32 s 128 s / 256 s 1024 s / 2048 s 8192 s / 16384 s Timer 1 Control Register 2 (T1C2) Address: '7'hex - Subaddress: '9'hex Bit 3 * T1C2 --- Bit 2 T1BP Bit 1 T1CS Bit 0 T1IM Reset value: x111b A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA * Bit 3 -> MSB, Bit 0 -> LSB T1BP Timer 1 SUBCL ByPassed T1BP = 1, TIOUT = T1MUX T1BP = 0, T1OUT = SUBCL T1CS Timer 1 input Clock Select T1CS = 1, CL1 = SUBCL (see figure 28) T1CS = 0, CL1 = SYSCL (see figure 28) Timer 1 Interrupt Mask T1IM = 1, disables Timer 1 interrupt T1IM = 0, enables Timer 1 interrupt T1IM Rev. A2, 21-Nov-01 27 (60) M44C090-V Watchdog Control Register (WDC) Address: '7'hex - Subaddress: 'A'hex Bit 3 * WDL Bit 2 Bit 1 Bit 0 A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA WDC WDR WDT1 WDT0 Reset value: 1111b * Bit 3 -> MSB, Bit 0 -> LSB WDL WatchDog Lock mode WDL = 1, the watchdog can be enabled and disabled by using the WDR-bit WDL = 0, the watchdog is enabled and locked. In this mode the WDR-bit has no effect. After the WDL-bit is cleared, the watchdog is active until a system reset or power-on reset occurs. WatchDog Run and stop mode WDR = 1, the watchdog is stopped / disabled WDR = 0, the watchdog is active / enabled WatchDog Time 1 WatchDog Time 0 WDR WDT1 WDT0 Both these bits control the time interval for the watchdog reset Delay Time to Reset with SUBCL = 32 kHz 15.625 ms 62.5 ms 0.5 s 4s WDT1 WDT0 Divider 0 0 1 1 0 1 0 1 512 2048 16384 131072 Delay Time to Reset with SYSCL = 2 / 1 MHz 0.256 ms / 0.512 ms 1.024 ms / 2.048 ms 8.2 ms / 16.4 ms 65.5 ms / 131 ms 3.3.2 Timer 2 pulse and duty-cycle Features: 8/12 bit timer for D Interrupt, square-wave, generation D Baud-rate generation for the internal shift register D Manchester and Biphase modulation together with the SSI D Carrier frequency generation together with the SSI and modulation is possible to use Timer 2 with a higher clock speed than SYSCL. Furthermore with that input clock the Timer 2 operates in the power-down mode SLEEP (CPU core -> sleep and OSC-Stop -> yes) as well as in the POWERDOWN (CPU core -> sleep and OSC-Stop -> no). All other clock sources supplied no clock signal in SLEEP. The 4-bit counter stages of Timer 2 have an additional clock output (POUT). Its output has a modulator stage that allows the generation of pulses as well as the generation and modulation of carrier frequencies. The Timer 2 output can modulate with the shift register internal data output to generate Biphase- or Manchester-code. If the serial interface is used to modulate a bitstream, the 4-bit stage of Timer 2 has a special task. The shift register can only handle bitstream lengths divisible by 8. For other lengths, the 4-bit counter stage can be used to stop the modulator after the right bitcount is shifted out. If the timer is used for carrier frequency modulation, the 4-bit stage works together with an additional 2-bit dutycycle generator like a 6-bit prescaler to generate carrier frequency and duty cycle. The 8-bit counter is used to enable and disable the modulator output for a programmable count of pulses. Rev. A2, 21-Nov-01 Timer 2 can be used as interval timer for interrupt generation, as signal generator or as baud-rate generator and modulator for the serial interface. It consists of a 4-bit and an 8-bit up counter stage which both have compare registers. The 4-bit counter stages of Timer 2 are cascadable as 12-bit timer or as 8-bit timer with 4-bit prescaler. The timer can also be configured as 8-bit timer and separate 4-bit prescaler. The Timer 2 input can be supplied via the system clock, the external input clock (T2I), the Timer 1 output clock or the shift clock of the serial interface. The external input clock T2I is not synchronized with SYSCL. Therefore it 28 (60) M44C090-V I/O-bus P4CR T2I T2M1 T2M2 SYSCL T1OUT SCL DCGO CL2/1 4-bit Counter 2/1 RES OVF1 POUT CL2/2 T2O DCG 8-bit Counter 2/2 RES OVF2 TOG2 INT4 OUTPUT M2 MOUT Biphase-, Manchester- modulator T2C Compare 2/1 CM1 Control Compare 2/2 to Modulator 3 T2CO1 SSI POUT T2CM T2CO2 SO Timer 2 modulator output-stage Control SSI I/O-bus SSI Figure 29. Timer 2 For programming the time interval, the timer has a 4-bit and an 8-bit compare register. For programming the timer function, it has four mode and control registers. The comparator output of stage 2 is controlled by a special compare mode register (T2CM). This register contains mask bits for the actions (counter reset, output toggle, timer interrupt) which can be triggered by a compare match event or the counter overflow. This architecture enables the timer function for various modes. Timer 2 compare data values The Timer 2 has a 4-bit compare register (T2CO1) and an 8-bit compare register (T2CO2). Both these compare registers are cascadable as a 12-bit compare register, or 8-bit compare register and 4-bit compare register. POUT (CL2/1 /16) CL2/1 For 12-bit compare data value: m = x +1 0 x 4095 For 8-bit compare data value: n = y +1 0 y 255 For 4-bit compare data value: l = z +1 0 z 15 Timer 2 Modes Mode 1: 12-bit compare counter The 4-bit stage and the 8-bit stage work together as a 12-bit compare counter. A compare match signal of the 4-bit and the 8-bit stage generates the signal for the counter reset, toggle flip-flop or interrupt. The compare action is programmable via the compare mode register (T2CM). The 4-bit counter overflow (OVF1) supplies the clock output (POUT) with clocks. The duty-cycle generator (DCG) has to be bypassed in this mode. 4-bit counter RES DCG 8-bit counter RES OVF2 TOG2 INT4 4-bit compare CM1 8-bit compare CM2 Timer 2 output mode and T2OTM-bit 4-bit register T2D1, 0 8-bit register T2RM T2OTM T2IM T2CTM 13778 Figure 30. 12-bit compare counter Rev. A2, 21-Nov-01 29 (60) M44C090-V Mode 2: 8-bit compare counter with 4-bit programmable prescaler DCGO POUT CL2/1 4-bit counter RES DCG 8-bit counter RES OVF2 TOG2 INT4 4-bit compare CM1 8-bit compare CM2 Timer 2 output mode and T2OTM-bit 4-bit register T2D1, 0 8-bit register T2RM T2OTM T2IM T2CTM 13778 Figure 31. 8-bit compare counter The 4-bit stage is used as programmable prescaler for the 8-bit counter stage. In this mode, a duty-cycle stage is also available. This stage can be used as an additional 2-bit prescaler or for generating duty cycles of 25%, 33% and 50%. The 4-bit compare output (CM1) supplies the clock output (POUT) with clocks. Mode 3/4: 8-bit compare counter and 4-bit programmable prescaler In these modes the 4-bit and the 8-bit counter stages work independently as a 4-bit prescaler and an 8-bit timer with an 2-bit prescaler or as a duty-cycle generator. Only in the mode 3 and mode 4, can the 8-bit counter be supplied via the external clock input (T2I) which is selected via the P4CR register. The 4-bit prescaler is started via activating of mode 3 and stopped and reset in mode 4. Changing mode 3 and 4 has no effect for the 8-bit timer stage. The 4-bit stage can be used as prescaler for the SSI or to generate the stop signal for modulator 2. DCGO T2I SYSCL CL2/2 DCG 8-bit counter OVF2 TOG2 INT4 RES CM2 Timer 2 output mode and T2OTM-bit P4CR P41M2, 1 T2D1, 0 8-bit compare 8-bit register T2RM T2OTM T2IM T2CTM T1OUT SYSCL SCL MUX CL2/1 4-bit counter RES CM1 POUT 4-bit compare T2CS1, 0 4-bit register 13779 Figure 32. 4-/8-bit compare counter 30 (60) Rev. A2, 21-Nov-01 M44C090-V Timer 2 Output Modes The signal at the timer output is generated via modulator 2. In the toggle mode, the compare match event toggles the output T2O. For high resolution dutycycle modulation 8 bits or 12 bits can be used to toggle the output. In the duty-cycle burst modulator modes the DCG output is connected to T2O and switched on and off either by the toggle flipflop output or the serial data line of the SSI. Modulator 2 also has 2 modes to output the content of the serial interface as Biphase or Manchester code. DCGO SO TOG2 RE Biphase/ Manchester modulator Toggle S1 RES/SET M2 S3 S2 T2O The modulator output stage can be configured by the output control bits in the T2M2 register. The modulator is started with the start of the shift register (SIR = 0) and stopped either by carrying out a shift register stop (SIR = 1) or compare match event of stage 1 (CM1) of Timer 2. For this task, Timer 2 mode 3 must be used and the prescaler has to be supplied with the internal shift clock (SCL). FE SSI CONTROL OMSK M2 T2M2 T2OS2, 1, 0 T2TOP Figure 33. Timer 2 modulator output stage 13395 Timer 2 Output Signals Timer 2 output mode 1: Toggle mode A: a Timer 2 compare match toggles the output flip-flop (M2) -> T2O Input Counter 2 T2R 0 0 0 1 2 3 4 0 1 2 3 4 0 1 2 3 4 0 1 Counter 2 CMx INT4 T2O 13781 Figure 34. Interrupt timer / square wave generator - the output toggles with each edge compare match event Rev. A2, 21-Nov-01 31 (60) M44C090-V Timer 2 output mode 1: Toggle mode B: a Timer 2 compare match toggles the output flip-flop (M2) -> T2O Input Counter 2 T2R Counter 2 CMx INT4 T2O Toggle by start 0 0 0 1 2 3 4 5 6 7 4095/ 255 0 1 2 3 4 5 6 T2O 13782 Figure 35. Pulse generator - the timer output toggles with the timer start if the T2TS-bit is set Timer 2 output mode 1: Toggle mode C: a Timer 2 compare match toggles the output flip-flop (M2) -> T2O Input Counter 2 T2R Counter 2 CMx OVF2 INT4 T2O Figure 36. Pulse generator - the timer toggles with timer overflow and compare match 0 0 0 1 2 3 4 5 6 7 4095/ 255 0 1 2 3 4 5 6 13783 Timer 2 output mode 2: Duty-cycle burst generator 1: the DCG output signal (DCGO) is given to the output, and gated by the output flip-flop (M2) DCGO 1 2 0 1 2 0 1 2 3 4 5 0 1 2 0 1 2 3 4 5 6 7 8 0 1 2 3 4 5 6 7 8 9 10 0 1 2 3 4 5 Counter 2 TOG2 M2 T2O Counter = compare register (=2) 13784 Figure 37. Carrier frequency burst modulation with Timer 2 toggle flip-flop output 32 (60) Rev. A2, 21-Nov-01 M44C090-V Timer 2 output mode 3: Duty-cycle burst generator 2: the DCG output signal (DCGO) is given to the output, and gated by the SSI internal data output (SO) DCGO 1201201201201201201201201201201201201201 Counter 2 Counter = compare register (=2) TOG2 SO T2O 13785 Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Figure 38. Carrier frequency burst modulation with the SSI data output Timer 2 output mode 4: Biphase modulator: Timer 2 modulates the SSI internal data output (SO) to Biphase code. TOG2 SC 8-bit SR-Data SO T2O 0 Bit 7 0 Data: 00110101 0 0 1 1 1 1 0 0 1 1 0 0 1 Bit 0 1 13786 Figure 39. Biphase modulation Timer 2 output mode 5: Manchester modulator: TOG2 SC Timer 2 modulates the SSI internal data output (SO) to Manchester code 8-bit SR-Data SO T2O 0 Bit 7 0 Bit 7 Data: 00110101 0 0 1 1 1 1 0 0 1 1 0 0 1 1 Bit 0 Bit 0 13787 Figure 40. Manchester modulation Rev. A2, 21-Nov-01 33 (60) M44C090-V Timer 2 output mode 7: PWM mode: Pulse-width modulation output on Timer 2 output pin (T2O) In this mode the timer overflow defines the period and the compare register defines the duty cycle. During one period only the first compare match occurence is used to toggle the timer output flip-flop, until the overflow all further compare match are ignored. This avoids the stuation that changing the compare register causes the occurence of several compare match during one period. The resolution at the pulse-width modulation Timer 2 mode 1 is 12-bit and all other Timer 2 modes are 8-bit. Input clock Counter 2/2 T2R 0 0 50 255 0 100 255 0 150 255 0 50 255 0 100 Counter 2/2 CM2 OVF2 INT4 T2O T1 T load the next compare value T2CO2=150 load load T2 T T3 T T1 T T2 T 13788 Figure 41. PWM modulation Timer 2 Registers Timer 2 has 6 control registers to configure the timer mode, the time interval, the input clock and its output function. All registers are indirectly addressed using extended addressing as described in section "Addressing peripherals". The alternate functions of the Ports BP41 or BP42 must be selected with the Port 4 control register P4CR, if one of the Timer 2 modes require an input at T2I/BP41 or an output at T2O/BP42. Timer 2 Control Register (T2C) Address: '7'hex - Subaddress: '0'hex A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A T2C T2CS1 T2CS0 T2TS T2R Reset value: 0000b T2CS1 T2CS0 Timer 2 Clock Select bit 1 Timer 2 Clock Select bit 0 T2CS1 0 0 1 1 T2CS0 0 1 0 1 Input Clock (CL 2/1) of Counter Stage 2/1 System clock (SYSCL) Output signal of Timer 1 (T1OUT) Internal shift clock of SSI (SCL) Reserved T2TS Timer 2 Toggle with Start T2TS = 0, the output flip-flop of Timer 2 is not toggled with the timer start T2TS = 1, the output flip-flop of Timer 2 is toggled when the timer is started with T2R T2R Timer 2 Run T2R = 0, Timer 2 stop and reset T2R = 1, Timer 2 run 34 (60) Rev. A2, 21-Nov-01 Bit 3 Bit 2 Bit 1 Bit 0 A A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA A A AA AA AAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAA AA AA A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAA A A A A A A AAA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A A AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A A AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A A A AAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA Duty-Cycle Generator Rev. A2, 21-Nov-01 The duty-cycle generator generates duty cycles from 25%, 33% or 50%. The frequency at the duty-cycle generator output depends on the duty cycle and the Timer 2 prescaler setting. The DCG-stage can also be used as additional programmable prescaler for Timer 2. Timer 2 Mode Register 1 (T2M1) T2MS0 T2MS1 T2D0 T2D1 T2M1 DCGO3 DCGO2 DCGO1 DCGO0 DCGIN Timer 2 Mode Select bit 0 Timer 2 Mode Select bit 1 Timer 2 Duty cycle bit 0 Timer 2 Duty cycle bit 1 Mode T2D1 4 3 2 1 0 0 1 1 T2MS1 T2D1 Bit 3 0 0 1 1 T2D0 0 1 0 1 T2MS0 T2D0 Bit 2 0 1 0 1 Duty cycle 1/3 (DCGO3) Duty cycle 1/2 (DCGO2) Duty cycle 1/1 (DCGO1) Bypassed (DCGO0) Function of Duty-Cycle Generator (DCG) 4-bit compare output (CM1) 4-bit compare output (CM1) 4-bit compare output (CM1) 4-bit counter overflow (OVF1) Figure 42. DCG output signals T2MS1 Bit 1 Clock Output (POUT) T2MS0 Bit 0 Address: '7'hex - Subaddress: '1'hex 8-bit compare counter clocked by SYSCL or the external clock input T2I, 4-bit prescaler stop and resets 8-bit compare counter clocked by SYSCL or the external clock input T2I, 4-bit prescaler run, the counter 2/1 starts after writing mode 3 8-bit compare counter with 4-bit programmable prescaler and dutycycle generator 12-bit compare counter, the DCG have to be bypassed in this mode M44C090-V Additional Divider Effect Timer 2 Modes Reset value: 1111b /4 /3 /2 /1 13807 35 (60) A A AAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A A A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A AAAAAAAAAAAAAAAAA A A A AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAA AAAAAAA A A A A A AAAAAAAAAAAAAAAAA A AAA A AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA AA AAAAAAAAAAAAAAAAAAAAAAAA AAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAA A A A A A AAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA A A A AA If one of these output modes is used the T2O alternate function of Port 4 must also be activated. Timer 2 Mode Register 2 (T2M2) M44C090-V 36 (60) T2OS0 T2OS1 T2OS2 T2TOP T2M2 Timer 2 Output Select bit 0 Timer 2 Output Select bit 1 Timer 2 Output Select bit 2 Timer 2 Toggle Output Preset This bit allows the programmer to preset the Timer 2 output T2O. T2TOP = 0, resets the toggle outputs with the write cycle (M2 = 0) T2TOP = 1, sets toggle outputs with the write cycle (M2 = 1) Note: If T2R = 1, no output preset is possible Output Mode 8 7 6 5 4 3 2 1 T2TOP Bit 3 T2OS2 0 0 0 0 1 1 1 1 T2OS2 Bit 2 T2OS1 0 0 1 1 0 0 1 1 T2OS1 T2OS0 Bit 1 0 1 0 1 0 1 0 1 Not allowed PWM mode: an 8/12-bit PWM mode T2OS0 Bit 0 SSI output: T2O is used directly as SSI internal data output (SO) Manchester modulator: Timer 2 modulates the SSI internal data output (SO) to Manchester code Biphase modulator: Timer 2 modulates the SSI internal data output (SO) to Biphase code Duty-cycle burst generator 2: the DCG output signal (DCGO) is given to the output and gated by the SSI internal data output (SO) Duty-cycle burst generator 1: the DCG output signal (DCG0) is given to the output and gated by the output flip-flop (M2) Toggle mode: a Timer 2 compare match toggles the output flip-flop (M2) -> T2O Clock Output (POUT) Address: '7'hex - Subaddress: '2'hex Reset value: 1111b Rev. A2, 21-Nov-01 M44C090-V Timer 2 Compare and Compare Mode Registers Timer 2 has two separate compare registers, T2CO1 for the 4-bit stage and T2CO2 for the 8-bit stage of Timer 2. The timer compares the contents of the compare register current counter value and if it matches it generates an output signal. Dependent on the timer mode, this signal is used to generate a timer interrupt, to toggle the output flip-flop as SSI clock or as a clock for the next counter stage. In the 12-bit timer mode, T2CO1 contains bits 0 to 3 and T2CO2 bits 4 to 11 of the 12-bit compare value. In all other modes, the two compare registers work independently as a 4- and 8-bit compare register. When assigned to the compare register a compare event will be supressed. Timer 2 Compare Mode Register (T2CM) Address: '7'hex - Subaddress: '3'hex AAAAAAAAA A AAAA A A AAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAA A A A AAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A A A A A A A A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAA Bit 3 Bit 2 Bit 1 Bit 0 T2CM T2OTM T2CTM T2RM T2IM Reset value: 0000b T2OTM Timer 2 Overflow Toggle Mask bit T2OTM = 0, disable overflow toggle T2OTM = 1, enable overflow toggle, a counter overflow (OVF2) toggles output flip-flop (TOG2). If the T2OTM-bit is set, only a counter overflow can generate an interrupt except on the Timer 2 output mode 7. T2CTM Timer 2 Compare Toggle Mask bit T2CTM = 0, disable compare toggle T2CTM = 1, enable compare toggle, a match of the counter with the compare register toggles output flip-flop (TOG2). In Timer 2 output mode 7 and when the T2CTM-bit is set, only a match of the counter with the compare register can generate an interrupt. Timer 2 Reset Mask bit T2RM = 0, disable counter reset T2RM = 1, enable counter reset, a match of the counter with the compare register resets the counter T2RM T2IM Timer 2 Interrupt Mask bit T2IM = 0, disable Timer 2 interrupt T2IM = 1, enable Timer 2 interrupt Timer 2 Output Mode 1, 2, 3, 4, 5 and 6 1, 2, 3, 4, 5 and 6 7 T2OTM 0 1 x T2CTM x x 1 Timer 2 Interrupt Source Compare match (CM2) Overflow (OVF2) Compare match (CM2) Timer 2 COmpare Register 1 (T2CO1) Address: '7'hex - Subaddress: '4'hex Reset value: 1111b T2CO1 Write cycle Bit 3 Bit 2 Bit 1 Bit 0 In prescaler mode the clock is bypassed if the compare register T2CO1 contains 0. Timer 2 COmpare Register 2 (T2CO2) Byte Write Address: '7'hex - Subaddress: '5'hex AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A AAAAAAAAA A AAAA A A AAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAA AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA T2CO2 First write cycle Bit 3 Bit 7 Bit 2 Bit 6 Bit 1 Bit 5 Bit 0 Bit 4 Reset value: 1111b Reset value: 1111b Second write cycle Rev. A2, 21-Nov-01 37 (60) M44C090-V 3.3.3 Synchronous Serial Interface (SSI) 2 and 3 wire NRZ 2 wire mode (I2C compatible) (additional internal 2 wire link for multi-chip packaging solutions) D With Timer 2: Biphase modulation Manchester modulation pulse-width demodulation Burst modulation (SI), a serial output data terminal (SO) and a shift clock (SC). The SSI uses BP40 as shift clock (SC), while the serial data input (SI) is applied to BP43 (configured in P4CR as input!). Serial output data (SO) in this case is passed through to BP42 (configured in P4CR to T2O) via the Timer 2 output stage (T2M2 configured in mode 6). c) Timer/SSI combined modes - the SSI used together with Timer 2 is capable of performing a variety of data modulation and functions (see Timer Section). The modulating data is converted by the SSI into a continuous serial stream of data which is in turn modulated in one of the timer functional blocks. d) Multi-chip link (MCL) - the SSI can also be used as an interchip data interface for use in single package multi-chip modules or hybrids. For such applications, the SSI is provided with two dedicated pads (MCL_SD and MCL_SC) which act as a two-wire chip-to-chip link. The MCL can be activated by the MCL control bit. Should these MCL pads be used by the SSI, the standard SD and SC pins are not required and the corresponding Port 4 ports are available as conventional data ports. SSI Features: SSI Peripheral Configuration The synchronous serial interface (SSI) can be used either for serial communication with external devices such as EEPROMs, shift registers, display drivers, other microcontrollers, or as a means for generating and capturing on-chip serial streams of data. External data communication takes place via the Port 4 (BP4) multi-functional port which can be software configured by writing the appropriate control word into the P4CR register. The SSI can be configured in any one of the following ways: a) 2-wire external interface for bidirectional data communication with one data terminal and one shift clock. The SSI uses the Port BP43 as a bidirectional serial data line (SD) and BP40 as shift clock line (SC). b) 3-wire external interface for simultaneous input and output of serial data, with a serial input data terminal I/O-bus General SSI Operation The SSI is comprised essentially of an 8-bit shift register with two associated 8-bit buffers - the receive buffer (SRB) for capturing the incoming serial data and a transmit buffer (STB) for intermediate storage of data to be serially output. Both buffers are directly accessable by software. Transferring the parallel buffer data into and out of the shift register is controlled automatically by the SSI control, so that both single byte transfers or continuous bit streams can be supported. Timer 2 SIC1 SIC2 SISC SO Control SC SSI-Control Output /2 Shift_CL SI SCI SC MCL_SC INT3 TOG2 POUT T1OUT SYSCL SO MSB 8-bit Shift Register LSB SI MCL_SD SD STB Transmit Buffer I/O-bus SRB Receive Buffer 14103 Figure 43. Block diagram of the synchronous serial interface 38 (60) Rev. A2, 21-Nov-01 M44C090-V The SSI can generate the shift clock (SC) either from one of several on-chip clock sources or accept an external clock. The external shift clock is output on, or applied to the Port BP40. Selection of an external clock source is performed by the Serial Clock Direction control bit (SCD). In the combinational modes, the required clock is selected by the corresponding timer mode. The SSI can operate in three data transfer modes - synchronous 8-bit shift mode, I2C compatible 9-bit shift modes or 8-bit pseudo I2C protocol (without acknowledge-bit). External SSI clocking is not supported in these modes. The SSI should thus generate and has full control over the shift clock so that it can always be regarded as an I2C Bus Master device. All directional control of the external data port used by the SSI is handled automatically and is dependent on the transmission direction set by the Serial Data Direction (SDD) control bit. This control bit defines whether the SSI is currently operating in Transmit (TX) mode or Receive (RX) mode. Serial data is organized in 8-bit telegrams which are shifted with the most significant bit first. In the 9-bit I2C mode, an additional acknowledge bit is appended to the end of the telegram for handshaking purposes (see I2C protocol). At the beginning of every telegram, the SSI control loads the transmit buffer into the shift register and proceeds immediately to shift data serially out. At the same time, incoming data is shifted into the shift register input. This incoming data is automatically loaded into the receive buffer when the complete telegram has been received. Data can, if required thus be simultaneously received and transmitted. Before data can be transferred, the SSI must first be activated. This is performed by means of the SSI reset control (SIR) bit. All further operation then depends on the data directional mode (TX/RX) and the present status of the SSI buffer registers shown by the Serial Interface Ready Status Flag (SRDY). This SRDY flag indicates the (empty/full) status of either the transmit buffer (in TX mode), or the receive buffer (in RX mode). The control logic ensures that data shifting is temporarily halted at any time, if the appropriate receive/transmit buffer is not ready (SRDY = 0). The SRDY status will then automatically be set back to `1' and data shifting resumed as soon as the application software loads the new data into the transmit register (in TX mode) or frees the shift register by reading it into the receive buffer (in RX mode). A further activity status (ACT) bit indicates the present status of the serial communication. The ACT bit remains high for the duration of the serial telegram or if I2C stop or start conditions are currently being generated. Both the current SRDY and ACT status can be read in the SSI status register. To deactivate the SSI, the SIR bit must be set high. 8-bit Synchronous Mode In the 8-bit synchronous mode, the SSI can operate as either a 2 or 3 wire interface (see SSI peripheral configuration). The serial data (SD) is received or transmitted in NRZ format, synchronised to either the rising or falling edge of the shift clock (SC). The choice of clock edge is defined by the Serial Mode Control bits (SM0,SM1). It should be noted that the transmission edge refers to the SC clock edge with which the SD changes. To avoid clock skew problems, the incoming serial input data is shifted in with the opposite edge. When used together with one of the timer modulator or demodulator stages, the SSI must be set in the 8-bit synchronous mode 1. SC (rising edge) SC (falling edge) DATA SD/TO2 0 Bit 7 0 Bit 7 Data: 00110101 0 1 1 0 1 0 0 1 1 0 1 0 1 Bit 0 1 Bit 0 13823 Figure 44. 8-bit synchronous mode Rev. A2, 21-Nov-01 39 (60) M44C090-V In RX mode, as soon as the SSI is activated (SIR= 0), 8 shift clocks are generated and the incoming serial data is shifted into the shift register. This first telegram is automatically transferred into the receive buffer and the SRDY set to 0 indicating that the receive buffer contains valid data. At the same time an interrupt (if enabled) is generated. The SSI then continues shifting in the following 8-bit telegram. If, during this time the first telegram has been read by the controller, the second telegram will also be transferred in the same way into the receive buffer and the SSI will continue clocking in the next telegram. Should, however, the first telegram not have been read (SRDY=1), then the SSI will stop, temporarily holding the second telegram in the shift SC msb SD tx data 1 SIR lsb 0 register until a certain point of time when the controller is able to service the receive buffer. In this way no data is lost or overwritten. Deactivating the SSI (SIR=1) in mid-telegram will immediately stop the shift clock and latch the present contents of the shift register into the receive buffer. This can be used for clocking in a data telegram of less than 8 bits in length. Care should be taken to read out the final complete 8-bit data telegram of a multiple word message before deactivating the SSI (SIR=1) and terminating the reception. After termination, the shift register contents will overwrite the receive buffer. msb tx data 2 lsb msb tx data 3 lsb 0 7654321 765432107654321 SRDY ACT Interrupt (IFN = 0) Interrupt (IFN = 1) Write STB (tx data 1) Write STB (tx data 2) Write STB (tx data 3) 13824 Figure 45. Example of 8-bit synchronous transmit operation SC msb lsb msb lsb 7654321076543210 rx data 1 SIR rx data 2 msb lsb 765432107654 rx data 3 SD SRDY ACT Interrupt (IFN = 0) Interrupt (IFN = 1) Read SRB Read SRB (rx data 1) (rx data 2) Read SRB (rx data 3) 13825 Figure 46. Example of 8-bit synchronous receive operation 40 (60) Rev. A2, 21-Nov-01 M44C090-V 9-bit Shift Mode (I2C compatible) In the 9-bit shift mode, the SSI is able to handle the I2C protocol (described below). It always operates as an I2C master device, i.e., SC is always generated and output by the SSI. Both the I2C start and stop conditions are automatically generated whenever the SSI is activated or deactivated by the SIR-bit. In accordance with the I2C protocol, the output data is always changed in the clock low phase and shifted in on the high phase. Before activating the SSI (SIR=0) and commencing an I2C dialog, the appropriate data direction for the first word must be set using the SDD control bit. The state of this bit controls the direction of the data port (BP43 or MCL_SD). Once started, the 8 data bits are, depending on the selected direction, either clocked into or out of the shift register. During the 9th clock period, the port direction is automatically switched over so that the Start SC msb SD lsb msb lsb corresponding acknowledge bit can be shifted out or read in. In transmit mode, the acknowledge bit received from the slave device is captured in the SSI Status Register (TACK ) where it can be read by the controller. and in receive mode, the state of the acknowledge bit to be returned to the slave device is predetermined by the SSI Status Register (RACK ). Changing the directional mode (TX/RX) should not be performed during the transfer of an I2C telegram. One should wait until the end of the telegram which can be detected using the SSI interrupt (IFN =1) or by interrogating the ACT status. A 9-bit telegram, once started will always run to completion and will not be prematurely terminated by the SIR bit. So, if the SIR-bit is set to `1' in mit telegram, the SSI will complete the current transfer and terminate the dialog with an I2C stop condition. Stop 76543210A tx data 1 76543210A tx data 2 SRDY ACT Interrupt (IFN = 0) Interrupt (IFN = 1) SIR SDD Write STB (tx data 1) Write STB (tx data 2) 13826 Figure 47. Example of I2C transmit dialog Rev. A2, 21-Nov-01 41 (60) M44C090-V Start SC msb SD lsb msb lsb Stop 76543210A tx data 1 76543210A rx data 2 SRDY ACT Interrupt (IFN = 0) Interrupt (IFN = 1) SIR SDD Write STB (tx data 1) Read SRB (rx data 2) 13827 Figure 48. Example of I2C receive dialog 8-bit Pseudo I2C Mode In this mode, the SSI exhibits all the typical I2C operational features except for the acknowledge-bit which is never expected or transmitted. I2C Bus Protocol The I2C protocol constitutes a simple 2-wire bidirectional communication highway via which devices can communicate control and data information. Although the I2C protocol can support multi-master bus configurations, the SSI, in I2C mode is intended for use purely as a master controller on a single master bus system. So all reference to multiple bus control and bus contention will be omitted at this point. All data is packaged into 8-bit telegrams plus a trailing handshaking or acknowledge-bit. Normally the communication channel is opened with a so-called start condition, which initializes all devices connected to the bus. This is then followed by a data telegram, transmitted by the master controller device. This telegram usually contains an 8-bit address code to activate a single slave device connected onto the I2C bus. Each slave receives this address and compares it with it's own unique address. The addressed slave device, if ready to receive data will respond by pulling the SD line low during the 9th clock pulse. This represents a so-called I2C acknowledge. The controller on detecting this affirmative acknowledge then opens a connection to the required slave. Data can then be passed back and forth by the master controller, each 8-bit telegram being acknowledged by the respective recipient. The communication is finally closed by the master device and the slave device put back into standby by applying a stop condition onto the bus. 42 (60) Rev. A2, 21-Nov-01 M44C090-V (1) SC (2) (4) (4) (3) (1) SD Start condition Data valid Data change Data valid Stop condition 13832 Figure 49. I2C bus protocol 1 Bus not busy (1) Both data and clock lines remain HIGH. Data valid (4) The state of the data line represents valid data when, after START condition, the data line is stable for the duration of the HIGH period of the clock signal. Start data transfer (2) A HIGH to LOW transition of the SD line while the clock (SC) is HIGH defines a START condition. Acknowledge All address and data words are serially transmitted to and from device in eight-bit words. The receiving device returns a zero on the data line during the ninth clock cycle to acknowledge word receipt. Stop data transfer (3) A LOW to HIGH transition of the SD line while the clock (SC) is HIGH defines a STOP condition. SC 1 n 8 9 SD Start 1st Bit 8th Bit ACK Stop 13833 Figure 50. I2C bus protocol 2 SSI Interrupt The SSI interrupt INT3 can be generated either by an SSI buffer register status (i.e., transmit buffer empty or receive buffer full) at the end of SSI data telegram or on the falling edge of the SC/SD pins on Port 4 (see P4CR). SSI interrupt selection is performed by the Interrupt FunctioN control bit (IFN). The SSI interrupt is usually used to synchronize the software control of the SSI and inform the controller of the present SSI status. The Port 4 interrupts can be used together with the SSI or, if the SSI itself is not required, as additional external interrupt sources. In either case this interrupt is capable of waking the controller out of sleep mode. Rev. A2, 21-Nov-01 To enable and select the SSI relevant interrupts use the SSI interrupt mask (SIM) and the Interrupt Function (IFN) while the Port 4 interrupts are enabled by setting appropriate control bits in P4CR register. Modulation If the shift register is used together with Timer 2 for modulation purposes, the 8-bit synchronous mode must be used. In this case, the unused Port 4 pins can be used as conventional bidirectional ports. The modulation stage, if enabled, operates as soon as the SSI is activated (SIR=0) and ceases when deactivated (SIR=1). 43 (60) M44C090-V Due to the byte-oriented data control, the SSI when running normally generates serial bit streams which are submultiples of 8 bits. An SSI output masking (OMSK) function permits, however, the generation of bit streams of any length. The OMSK signal is derived indirectly from the 4-bit prescaler of the Timer 2 and masks out a programmable number of unrequired trailing data bits during the shifting out of the final data word in the bit stream. The number of non-masked data bits is defined by the value pre-programmed in the prescaler compare register. To use output masking, the modulator stop mode bit (MSM) must be set to '0' before programming the final data word into the SSI transmit buffer. This in turn, enables shift clocks to the prescaler when this final word is shifted out. On reaching the compare value, the prescaler triggers the OMSK signal and all following data bits are blanked. Timer 2 CL2/1 SCL Compare 2/1 CM1 4-bit counter 2/1 OMSK Control SO SC SSI-control Output TOG2 POUT T1OUT SYSCL SO /2 Shift_CL MSB 8-bit shift register SI LSB 13834 Figure 51. SSI output masking function 44 (60) Rev. A2, 21-Nov-01 M44C090-V Serial Interface Registers Serial Interface Control Register 1 (SIC1) Auxiliary register address: '9'hex A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAA AA A A A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AA A A A A A A AAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A AA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAA A A A A A AA AA A AA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAA A A A AA A A A A AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A A AAAAAAAAAAAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAA A A AAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA AAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAA A A A A A AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAA SIC1 SIR SCD SCS1 SCS0 Reset value: 1111b SIR SCD Serial Interface Reset SIR = 1, SSI inactive SIR = 0, SSI active Serial Clock Direction SCD = 1, SC line used as output SCD = 0, SC line used as input Note: This bit has to be set to '1' during the I2C mode Serial Clock source Select bit 1 Serial Clock source Select bit 0 Note: with SCD = '0' the bits SCS1 SCS1 1 1 0 0 SCS1 SCS0 SCS0 1 0 1 0 Internal Clock for SSI SYSCL / 2 POUT / 2 TOG2 / 2 T1OUT / 2 and SCS0 are insignificant * * * In Transmit mode (SDD = 1) shifting starts only if the transmit buffer has been loaded (SRDY = 1). Setting SIR-bit loads the contents of the shift register into the receive buffer (synchronous 8-bit mode only). In I2C modes, writing a 0 to SIR generates a start condition and writing a 1 generates a stop condition. Bit 3 Bit 2 Bit 1 Bit 0 Serial Interface Control Register 2 (SIC2) Auxiliary register address: 'A'hex Bit 3 Bit 2 Bit 1 Bit 0 SIC2 MSM SM1 SM0 SDD Reset value: 1111b MSM Modular Stop Mode MSM = 1, modulator stop mode disabled (output masking off) MSM = 0, modulator stop mode enabled (output masking on) - used in modulation modes for generating bit streams which are not sub-multiples of 8 bit. Serial Mode control bit 1 Serial Mode control bit 0 Mode SM1 SM0 1 2 3 4 1 1 0 0 1 0 1 0 SSI Mode SM1 SM0 8-bit NRZ-Data changes with the rising edge of SC 9-bit two-wire I2C compatible 8-bit NRZ-Data changes with the falling edge of SC 8-bit two-wire pseudo I2C compatible (no acknowledge) SDD Serial Data Direction SDD = 1, transmit mode - SD line used as output (transmit data). SRDY is set by a transmit buffer write access. SDD = 0, receive mode - SD line used as input (receive data). SRDY is set by a receive buffer read access Note: SDD controls port directional control and defines the reset function for the SRDY-flag Rev. A2, 21-Nov-01 45 (60) M44C090-V Serial Interface Status and Control Register (SISC) Primary register address: 'A'hex Bit 3 SISC SISC write MCL --- Bit 2 RACK TACK Bit 1 SIM Bit 0 IFN Reset value: 1111b A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAA A A A A AA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAAAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AA A A A A AAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAA AAA read ACT SRDY Reset value: xxxxb MCL RACK TACK SIM IFN SRDY ACT Multi-Chip Link activation MCL = 1, multi-chip link disabled. MCL = 0, connnects SC and SD additional to the internal multi-chip link pads Receive ACKnowledge status/control bit for I2C mode RACK = 0, transmit acknowledge in next receive telegram RACK = 1, transmit no acknowledge in last receive telegram Transmit ACKnowledge status/control bit for I2C mode TACK = 0, acknowledge received in last transmit telegram TACK = 1, no acknowledge received in last transmit telegram Serial Interrupt Mask SIM = 1, disable interrupts SIM = 0, enable serial interrupt. An interrupt is generated. Interrupt FuNction IFN = 1, the serial interrupt is generated at the end of telegram IFN = 0, the serial interrupt is generated when the SRDY goes low (i.e., buffer becomes empty/full in transmit/receive mode) Serial interface buffer ReaDY status flag SRDY = 1, in receive mode: receive buffer empty in transmit mode: transmit buffer full SRDY = 0, in receive mode: receive buffer full in transmit mode: transmit buffer empty Transmission ACTive status flag ACT = 1, transmission is active, i.e., serial data transfer. Stop or start conditions are currently in progress. ACT = 0, transmission is inactive Serial Transmit Buffer (STB) - Byte Write Primary register address: '9'hex AAAAAAAAAAAAA A AA A A AAAAAAAAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAA AA A STB First write cycle Bit 3 Bit 7 Bit 2 Bit 6 Bit 1 Bit 5 Bit 0 Bit 4 Reset value: xxxxb Reset value: xxxxb Second write cycle The STB is the transmit buffer of the SSI. The SSI transfers the transmit buffer into the shift register and starts shifting with the most significant bit. 46 (60) Rev. A2, 21-Nov-01 M44C090-V Serial Receive Buffer (SRB) - Byte Read Primary register address: '9'hex AAAAAAAAA A AAAA A A AAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAA AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA A SRB First read cycle Bit 7 Bit 3 Bit 6 Bit 2 Bit 5 Bit 1 Bit 4 Bit 0 Reset value: xxxxb Reset value: xxxxb Second read cycle The SRB is the receive buffer of the SSI. The shift register clocks serial data in (most significant bit first) and loads content into the receive buffer when complete telegram has been received. 3.3.4 Combination Modes The UTCM consists of one timer (Timer 2) and a serial interface. There is a multitude of modes in which the timers and serial interface can work together. The 8-bit wide serial interface operates as shift register for modulation. The modulator units work together with the timer and shift the data bits into or out of the shift register. Combination Mode Timer 2 and SSI I/O-bus P4CR T2I T2M1 T2M2 DCGO SYSCL T1OUT reserved SCL CL2/1 4-bit Counter 2/1 RES OVF1 POUT CL2/2 T2O DCG 8-bit Counter 2/2 RES OVF2 TOG2 INT4 OUTPUT T2C Compare 2/1 POUT Timer 2 - control CM1 Compare 2/2 MOUT Biphase-, Manchester- modulator T2CO1 TOG2 T2CM T2CO2 SO Timer 2 modulator output-stage Control I/O-bus SIC1 TOG2 POUT T1OUT SYSCL SCLI SIC2 SISC Control INT3 SO SC SSI-control MCL_SC Output SO MSB SCL 8-bit shift register SI LSB MCL_SD SD Shift_CL STB Transmit buffer I/O-bus SRB Receive buffer 13397 Figure 52. Combination Timer 2 and SSI Rev. A2, 21-Nov-01 47 (60) M44C090-V Combination mode 1: Burst modulation SSI mode 1: 8-bit NRZ and internal data SO output to the Timer 2 modulator stage Timer 2 mode 1, 2, 3 or 4: 8-bit compare counter with 4-bit programmable prescaler and DCG Timer 2 output mode 3: Duty-cycle burst generator DCGO 1201201201201201201201201201201201201201 Counter 2 Counter = compare register (=2) TOG2 SO T2O 13785 Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7 Bit 8 Bit 9 Bit 10 Bit 11 Bit 12 Bit 13 Figure 53. Carrier frequency burst modulation with the SSI internal data output Combination mode 2: Biphase modulation 1 SSI mode 1: 8-bit shift register internal data output (SO) to the Timer 2 modulator stage Timer 2 mode 1, 2, 3 or 4: 8-bit compare counter with 4-bit programmable prescaler Timer 2 output mode 4: The modulator 2 of Timer 2 modulates the SSI internal data output to Biphase code TOG2 SC 8-bit SR-data SO T2O 0 Bit 7 0 Data: 00110101 0 0 1 1 1 1 0 0 1 1 0 0 1 Bit 0 1 13786 Figure 54. Biphase modulation 1 Combination mode 3: Manchester modulation 1 SSI mode 1: 8-bit shift register internal data output (SO) to the Timer 2 modulator stage Timer 2 mode 1, 2, 3 or 4: 8-bit compare counter with 4-bit programmable prescaler Timer 2 output mode 5: The modulator 2 of Timer 2 modulates the SSI internal data output to Manchester code TOG2 SC 8-bit SR-data SO T2O 0 Bit 7 0 Bit 7 Data: 00110101 0 0 1 1 1 1 0 0 1 1 0 0 1 1 Bit 0 Bit 0 13787 Figure 55. Manchester modulation 1 48 (60) Rev. A2, 21-Nov-01 M44C090-V Combination mode 4: Manchester modulation 2 SSI mode 1: Timer 2 mode 3: Timer 2 output mode 5: 8-bit shift register internal data output (SO) to the Timer 2 modulator stage 8-bit compare counter and 4-bit prescaler The modulator 2 of Timer 2 modulates the SSI data output to Manchester code The 4-bit stage can be used as prescaler for the SSI to generate the stop signal for modulator 2. The SSI has a special mode to supply the prescaler with the shift-clock. The control output signal (OMSK) of the SSI is used as stop signal for the modulator. This is an example for a 12-bit Manchester telegram: SCLI Buffer full SIR SO SC MSM Timer 2 Mode 3 SCL Counter 2/1 OMSK T2O 13837 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 Counter 2/1 = Compare Register 2/1 (= 4) 0 0 0 0 1 2 3 4 0 1 2 3 Figure 56. Manchester modulation 2 Combination mode 5: Biphase modulation 2 SSI mode 1: Timer 2 mode 3: Timer 2 output mode 4: 8-bit shift register internal data output (SO) to the Timer 2 modulator stage 8-bit compare counter and 4-bit prescaler The modulator 2 of Timer 2 modulates the SSI data output to Biphase code The 4-bit stage can be used as prescaler for the SSI to generate the stop signal for modulator 2. The SSI has a special mode to supply the prescaler via the shift-clock. The control output signal (OMSK) of the SSI is used as stop signal for the modulator. This is an example for a 13-bit Biphase telegram: SCLI Buffer full SIR SO SC MSM Timer 2 Mode 3 SCL Counter 2/1 OMSK T2O 13838 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0 0 0 0 0 0 Counter 2/1 = Compare Register 2/1 (= 5) 0 0 0 0 1 2 3 4 5 0 1 2 Figure 57. Biphase modulation Rev. A2, 21-Nov-01 49 (60) M44C090-V 4 4.1 Electrical Characteristics Absolute Maximum Ratings Parameters Symbol VDD VIN Value -0.3 to + 6.5 indefinite VSS -0.3 VIN VDD +0.3 Voltages are given relative to VSS Unit V V s AAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA AAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A A A A AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA AAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAA AAAAA A AAAA A AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A A AAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAA AAAAAAAAAAAAA A AAAAAAA A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA AAAAA A AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAA AA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAA A Supply voltage Input voltage (on any pin) Output short circuit duration Storage temperature range tshort Tstg Tsld Operating temperature range Thermal resistance (SSO20) Tamb -40 to +125 -40 to +130 140 260 C C C RthJA K/W Soldering temperature (t 10 s) Stresses greater than those listed under absolute maximum ratings may cause permanent damage to the device. This is a stress rating only and functional operation of the device at any condition above those indicated in the operational section of this specification is not implied. Exposure to absolute maximum rating condition for an extended period may affect device reliability. All inputs and outputs are protected against high electrostatic voltages or electric fields. However, precautions to minimize the build-up of electrostatic charges during handling are recommended. Reliability of operation is enhanced if unused inputs are connected to an appropriate logic voltage level (e.g. VDD). 4.2 DC Operating Characteristics Parameter Test Conditions / Pins Symbol VDD IDD Min. VPOR Typ. Max. 3.6 Unit V VDD = 2.0 V to 3.6 V, VSS = 0 V, Tamb = -40 to 125C unless otherwise specified. Power supply Active current CPU active Operating voltage at VDD fSYSCL = 1 MHz VDD = 2.0 V VDD = 3.0 V fSYSCL = 1 MHz VDD = 2.0 V VDD = 3.0 V VDD = 2.0 V VDD = 3.0 V 150 220 30 50 400 A A A A A A Power-down current (CPU sleep, RC oscillator active, 4-MHz quartz-osc. active) Sleep current (CPU sleep, IPD 120 ISleep 0.4 0.6 2.3 32-kHz quartz-osc. active 4-MHz quartz-osc. inactive) Sleep current (CPU sleep, VDD = 2.0 V ISleep 0.1 0.3 7 1.0 1.5 10 A A pF V V 32-kHz quartz-osc. inactive 4-MHz quartz-osc. inactive) VDD = 3.0 V Pin capacitance Any pin to VSS BOT = 1 BOT = 0 CL Power-on reset threshold voltage POR threshold voltage POR threshold voltage POR hysteresis VPOR VPOR VPOR 1.6 1.7 1.9 50 1.8 1.75 2.05 mV 50 (60) Rev. A2, 21-Nov-01 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AA A AAAAAAAAAAAAAAAAAAAA A A A AAAA A A A A AAAAA AAAAAAA A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAA A AAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAA A AAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAA A AAAAAAA A AAAAAAAAAAAA AAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA Note: The Pin BP20/NTE has a static pull-up resistor during the reset-phase of the microcontroller VDD = 2.0 V to 3.6 V, VSS = 0 V, Tamb = -40 to 125C unless otherwise specified. Rev. A2, 21-Nov-01 DC Operating Characteristics (continued) Output HIGH current Output LOW current Input leakage current Input leakage current Input LOW current (static pull-down) Input LOW current (static pull-up) Input HIGH current (switched pull-down) Input LOW current (switched pull-up) Input voltage HIGH Input voltage LOW All bidirectional ports VMI VMI External input voltage VM low threshold voltage VM low threshold voltage VM middle thresh. voltage VM middle thresh. voltage VM high threshold voltage VM high threshold voltage Voltage monitor threshold voltage Parameter VOH = 0.8 VDD VDD = 2.0 V VDD = 3.0 V VOL = 0.2 VDD VDD = 2.0 V VDD = 3.0 V VIH= VDD VIL= VSS VDD = 2.0 V, VDD = 3.0 V, VIH= VDD VDD = 2.0 V, VDD = 3.0 V, VIL= VSS VDD = 2.0 V, VDD = 3.0 V, VIH = VDD VDD = 2.0 V, VDD = 3.0 V, VIL= VSS VMI < VBG, VMS = 0 VMI > VBG, VMS = 1 VDD < VM, VMS = 0 VDD > VM, VMS = 1 VDD < VM, VMS = 0 VDD > VM, VMS = 1 VDD < VM, VMS = 0 VDD > VM, VMS = 1 Test Conditions / Pins Symbol VMThm VMThm VMThh VMThh VMThl VMThl VVMI VVMI VIH IOH VIL IOL IIH IIH IIH IIL IIL IIL 0.8* VDD Min. -0.5 -2 -1.4 -7 1.18 2.36 VSS -14 -60 0.5 2 1.5 7 14 60 M44C090-V -50 -160 Typ. -1.2 -5 50 160 -4 -20 1.2 5.0 1.3 1.3 2.2 2.2 2.6 2.6 3.0 3.0 4 20 0.2*VDDAAAA V Max. -100 -320 VDD -2.5 -8 3.25 100 100 100 320 -12 -40 2.5 8 1.4 2.4 2.8 12 40 51 (60) Unit mA mA mA mA A A A A A A A A V V V V V V V V V nA nA AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAA AAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAA AAAA AAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA AAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAA A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA AAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA AAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A VSS = 0 V Operation Cycle Time Supply voltage VDD = 2.0 to 3.6 V, VSS = 0 V, Tamb = 25C unless otherwise specified. Stability Start-up time Frequency 4-MHz crystal oscillator (operating range 2.2 V to 3.6 V) Stabilization time Stability Frequency RC oscillator 2 - external resistor Stability Frequency RC oscillator 1 Power-on reset time Reset timing Input HIGH time EXSCL at OSC1 input EXSCL at OSC1 input External system clock Int. request HIGH time Int. request LOW time Interrupt request input timing Timer 2 input HIGH time Timer 2 input LOW time Timer 2 input clock Timer 2 input timing Pin T2I System clock cycle Parameters VDD = 2.0 to 3.6 V Tamb = -40 to 125C VDD = 2.0 to 3.6 V Tamb = -40 to 125C VDD = 2.0 to 3.6 V Tamb = -40 to 125C Rext = 170 k VDD u VPOR Rise / fall time < 10 ns EMC = DI Rise / fall time < 10 ns EMC = EN Rise / fall time < 10 ns Rise / fall time < 10 ns Rise / fall time < 10 ns Rise / fall time < 10 ns Rise / fall time < 10 ns Test Conditions / Pins Symbol fRcOut2 fRcOut1 fEXSCL fEXSCL tSYSCL tT2IH tT2IL tPOR tIRH f/f f/f f/f tIRL fT2I tSQ tIH fX tS Min. 0.02 -10 100 100 100 100 500 0.1 0.5 Typ. 3.8 1.5 5 4 4 +/-15 +/-70 Max. 4000 10 10 5 4 4 5 4.3 M44C090-V 52 (60) AC Characteristics Parameters Test Conditions / Pins Symbol Min. Typ. Rev. A2, 21-Nov-01 Max. MHz MHz MHz MHz MHz MHz Unit Unit ms s s ns ns ns ns ns % % ppm ms AA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAAA A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAA A A A A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA A AAAA A A A A AAAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAA AAAA A A A A A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAA A AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAA Crystal Characteristics Supply voltage VDD = 2.0 to 3.6 V, VSS = 0 V, Tamb = 25C unless otherwise specified. Rev. A2, 21-Nov-01 AC Operating Characteristics (continued) Dynamic capacitance Static capacitance Serial resistance Frequency External 4-MHz ceramic resonator parameters Dynamic capacitance Static capacitance Serial resistance Crystal frequency External 4-MHz crystal parameters Dynamic capacitance Static capacitance Serial resistance Crystal frequency External 32-kHz crystal parameters Stability Start-up time Frequency 32-kHz crystal oscillator (operating range 2.0 V to 3.6 V) Parameters OSCIN SCLIN Test Conditions / Pins OSCOUT SCLOUT Figure 58. Crystal equivalent circuit Symbol f/f Equivalent circuit tSQ RS RS RS C1 C0 C1 C0 C1 C0 fX fX fX fX Min. -10 L C1 C0 M44C090-V 32.768 32.768 RS Typ. 4.4 4.0 1.4 4.0 1.5 0.5 36 40 30 8 3 3 Max. 150 45 20 50 10 3 96 11553 53 (60) MHz MHz Unit ppm kHz kHz k pF pF pF fF fF s fF M44C090-V 500 450 400 350 IDDact ( A ) 300 250 200 150 100 50 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 fSYSCLK ( MHz ) 2V Tamb = 25_C VDD = 3 V 140 130 120 IDDact ( mA ) 110 100 90 80 70 60 50 40 1.5 2.0 2.5 3.0 3.5 4.0 VDD ( V ) Tamb = 25_C fSYSCLK = 500 kHz Tamb = -40_C Figure 59. Active supply current vs. frequency 140 120 100 IPD ( A ) 80 3.0 V VDD = 3.6 V Tamb = 25_C Figure 62. Active supply current vs. VDD 40 Tamb = 25_C 35 30 IPD ( A ) 25 20 15 10 5 0 0.2 0.4 0.6 0.8 1.0 1.2 1.4 1.6 1.8 2.0 fSYSCLK ( MHz ) 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 3.8 VDD ( V ) 60 40 20 0 2.0 V Figure 60. Power-down supply current vs. frequency 0.5 0.4 IDDsleep ( A ) IDDsleep ( A ) 0.3 0.2 0.1 0.0 -40 -20 VDD = 3.0 V Figure 63. Power-down supply current vs. VDD 120 110 100 fsysd = 500 kHz VDD = 3.0 V 90 80 70 60 50 40 -40 -20 VDD = 2.0 V 0 20 40 60 80 100 120 0 20 40 60 80 100 120 Tamb ( _C ) Tamb ( _C ) Figure 61. Sleep current vs. Tamb Figure 64. Active supply current vs. Tamb 54 (60) Rev. A2, 21-Nov-01 M44C090-V 6.0 5.5 fRC_INT ( MHz ) 5.0 4.5 4.0 3.5 3.0 2.5 2.0 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 VDD ( V ) 125_C 25_C Tamb = -40_C 6.0 5.5 fRC_INT ( MHz ) 5.0 4.5 4.0 3.5 VDD = 2.0 V 3.0 2.5 2.0 -40 -20 0 20 40 60 80 100 120 Tamb ( _C ) Figure 65. Internal RC frequency vs. VDD M44C090-V 4.5 Rext = 170 kOhm Figure 68. Internal RC frequency vs. Tamb M44C090-V 4.6 Rext = 170 kOhm 4.3 fRC_EXT ( MHz ) fRC_EXT ( MHz ) Tamb = -40_C 4.4 4.2 4.0 3.8 3.6 3.4 -40-30-20-10 0 10 20 30 40 50 60 70 80 90 Tamb ( _C ) VDD = 3 V 2V 4.1 3.9 3.7 3.5 2.0 2.2 2.4 2.6 2.8 3.0 VDD ( V ) 3.2 3.4 3.6 25_C 125_C Figure 66. External RC frequency vs. VDD 10.00 7.5 SYSCLKmax fSYSCLK ( MHz ) 1.00 fRC_EXT ( MHz ) 6.5 5.5 4.5 3.5 2.5 SYSCLKmin 0.01 2.0 2.2 2.4 2.6 2.8 3.0 3.2 3.4 3.6 VDD ( V ) Figure 69. External RC frequency vs. Tamb Tamb = 25_C, VDD = 3 V 0.10 max. typ. min. 1.5 100 150 200 250 300 350 400 Rext ( Ohm ) Figure 67. System clock vs. VDD Figure 70. External RC frequency vs. Rext Rev. A2, 21-Nov-01 55 (60) M44C090-V 1000.00 VIL = VSS Tamb = 125_C RPU ( k ) RPD ( k ) 1000.00 VIH = VDD Tamb = 125_C 100.00 25_C -40_C 100.00 25_C -40_C 10.00 2.0 2.2 2.4 2.6 3.0 VDD ( V ) 2.8 3.2 3.4 3.6 10.00 2.0 2.2 2.4 2.6 2.8 3.0 VDD ( V ) 3.2 3.4 3.6 Figure 71. Pull-up resistor vs. VDD 60 50 40 Tamb = 125_C 30 20 -40_C 10 0 2.0 2.2 2.4 2.6 2.8 3.0 VDD ( V ) 3.2 3.4 3.6 10 0 25_C VIL = VSS 60 50 40 Figure 74. Pull-down resistor vs. VDD VIH = VDD RSPU ( k ) RSPD ( k ) Tamb = 125_C 30 20 -40_C 25_C 2.0 2.2 2.4 2.6 2.8 3.0 VDD ( V ) 3.2 3.4 3.6 Figure 72. Strong pull-up resistor vs. VDD 0 VDD = 2.0 V -5 IOH ( mA ) 3.0 V -10 IOL ( mA ) Figure 75. Strong pull-down resistor vs. VDD 20 Tamb = 25_C 15 VDD = 2.0 V 10 -15 Tamb = 25_C 3.6 V 5 3.0 V 3.6 V -20 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 VDD - VOH ( V ) 0 0.0 0.5 1.0 1.5 2.0 2.5 3.0 3.5 VOL ( V ) Figure 73. Output high current vs. VDD - output high voltage Figure 76. Output low current vs. output low voltage 56 (60) Rev. A2, 21-Nov-01 M44C090-V 10 8 max. IOL ( mA ) typ. 4 2 0 -40 -20 0 20 40 60 80 100 120 Tamb ( _C ) min. IOL ( mA ) 6 3 max. typ. 2 1 0 -40 -20 0 20 40 60 80 100 120 Tamb ( _C ) 5 4 min. Figure 77. Output low current vs. Tamb VDD = 3.0 V, VOL = 0.2 VDD 0 -2 -4 max. min. typ. Figure 79. Output low current vs. Tamb VDD = 2.0 V, VOL = 0.2 VDD 0 min. -1 -2 -3 -4 -5 -40 -20 typ. IOH ( mA ) IOH ( mA ) max. -6 -8 -10 -40 -20 0 20 40 60 80 100 120 0 20 40 60 80 100 120 Tamb ( _C ) Tamb ( _C ) Figure 78. Output high current vs. Tamb = 25_C VDD = 3.0 V, VOH = 0.8 VDD Figure 80. Output high current vs. Tamb = 25_C VDD = 2.0 V, VOH = 0.8 VDD Rev. A2, 21-Nov-01 57 (60) M44C090-V 5 Package Information 5.7 5.3 6.75 6.50 4.5 4.3 Package SSO20 Dimensions in mm 1.30 0.25 0.65 5.85 20 11 0.15 0.05 0.15 6.6 6.3 technical drawings according to DIN specifications 13007 1 10 58 (60) Rev. A2, 21-Nov-01 M44C090-V 6 Ordering Information Port52 Switched pull-up Switched pull-down Static pull-up Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Watchdog Please select the option setting from the list below and insert ROM CRC. Port 2 BP20 BP21 BP22 BP23 - CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] - BP50 BP51 BP52 BP53 - CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] CMOS Open drain [N] Open drain [P] - Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Switched pull-up Switched pull-down Static pull-up Static pull-down Port 4 BP40 BP41 BP42 BP43 - Clock used - External resistor External clock 32-kHz crystal 4-MHz crystal ECM(External clock monitor) Enable Disable - Softlock Hardlock File:____________. HEX CRC: _____________ HEX Approval Date: ____-____-____ Signature: _______________ Rev. A2, 21-Nov-01 59 (60) M44C090-V Ozone Depleting Substances Policy Statement It is the policy of Atmel Germany GmbH to 1. Meet all present and future national and international statutory requirements. 2. Regularly and continuously improve the performance of our products, processes, distribution and operating systems with respect to their impact on the health and safety of our employees and the public, as well as their impact on the environment. It is particular concern to control or eliminate releases of those substances into the atmosphere which are known as ozone depleting substances (ODSs). The Montreal Protocol (1987) and its London Amendments (1990) intend to severely restrict the use of ODSs and forbid their use within the next ten years. Various national and international initiatives are pressing for an earlier ban on these substances. Atmel Germany GmbH has been able to use its policy of continuous improvements to eliminate the use of ODSs listed in the following documents. 1. Annex A, B and list of transitional substances of the Montreal Protocol and the London Amendments respectively 2. Class I and II ozone depleting substances in the Clean Air Act Amendments of 1990 by the Environmental Protection Agency (EPA) in the USA 3. Council Decision 88/540/EEC and 91/690/EEC Annex A, B and C (transitional substances) respectively. Atmel Germany GmbH can certify that our semiconductors are not manufactured with ozone depleting substances and do not contain such substances. 11. We reserve the right to make changes to improve technical design and may do so without further notice. Parameters can vary in different applications. All operating parameters must be validated for each customer application by the customer. Should the buyer use Atmel Wireless & Microcontrollers products for any unintended or unauthorized application, the buyer shall indemnify Atmel Wireless & Microcontrollers against all claims, costs, damages, and expenses, arising out of, directly or indirectly, any claim of personal damage, injury or death associated with such unintended or unauthorized use. Data sheets can also be retrieved from the Internet: http://www.atmel-wm.com Atmel Germany GmbH, P.O.B. 3535, D-74025 Heilbronn, Germany Telephone: 49 (0)7131 67 2594, Fax number: 49 (0)7131 67 2423 60 (60) Rev. A2, 21-Nov-01 |
Price & Availability of M44C090-V
![]() |
|
|
All Rights Reserved © IC-ON-LINE 2003 - 2022 |
[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy] |
Mirror Sites : [www.datasheet.hk]
[www.maxim4u.com] [www.ic-on-line.cn]
[www.ic-on-line.com] [www.ic-on-line.net]
[www.alldatasheet.com.cn]
[www.gdcy.com]
[www.gdcy.net] |