|
Part Number |
EM6522 |
|
Manufacturer |
EM Microelectronic |
|
Semiconductor DataSheet |
|
DataSheet View |
|
R
www.DataSheet4U.com
EM MICROELECTRONIC - MARIN SA
EM6522
MFP version of EM6622 Ultra Low Power Microcontroller with 4x32 LCD Driver
Features
• Low Power - 11 µA active mode, LCD On - 1.8 µA standby mode, LCD Off - 0.1 µA sleep mode @ 3 V, 32 KHz, 25 ºC Large Voltage range, 2 to 5.5 V 2 clocks per instruction cycle 72 basic instructions EEPROM 4096 x 16 bits RAM 128 x 4 bits Max. 12 inputs ; port A, port B, port SP Max. 8 outputs ; port B, port SP Voltage Level Detector, 8 levels software selectable from 1.2 V up to 4.0 V Melody, 7 tones + silence inclusive 4-bit timer Universal 10-bit counter, PWM, event counter Prescaler down to 1 second ( crystal = 32 KHz ) 1/1000 sec 12 bit binary coded decimal counter with hard or software start/stop function LCD 32 Segments, 3 or 4 times multiplexed 3 wire serial port , 8 bit, master and slave mode 5 external interrupts (port A, serial interface) 8 internal interrupts (3x prescaler, BCD counter 2x10-bit counter, melody timer, serial interface) timer watchdog and oscillation supervisor Figure 2. Pin Configuration, TQFP64 10 x 10 x 1 mm Figure 1. Architecture
• • • • • • • • • • • • • • • • •
Description
The EM6522 is an advanced single chip CMOS 4bit microcontroller. It contains EEPROM, RAM, LCD driver, power on reset, watchdog timer, oscillation detection circuit, 10-bit up/down and event counter, 1ms BCD counter, prescaler, voltage level detector (Vld), serial interface and several clock functions. The low voltage feature and low power consumption make it the most suitable controller for battery, stand alone and mobile equipment. The EM6522 is manufactured using EM Microelectronic’s Advanced Low Power (ALP) CMOS Process.
Typical Applications
• • • • • • • • • Timing device Automotive controls with display Intelligent display driver Measurement equipment Domestic appliance Interactive system with display Timer / sports timing devices Bicycle computers Safety and security devices
Copyright © 2005, EM Microelectronic-Marin SA
1
www.emmicroelectronic.com
R
EM6522
EM6522 at a glance • Power Supply
- Low voltage low power architecture including internal voltage regulator - 2.0 … 5.5 V battery voltage - 11 µA in active mode (Xtal, LCD on, 25 °C) - 1.8 µA in standby mode (Xtal, LCD off, 25 °C) - 0.1 µA in sleep mode (25 °C) - 32 KHz Oscillator
• 4-Bit Input Port A
- Direct input read on the port terminals - Debouncer function available on all inputs - Interrupt request on positive or negative edge - Pull resistor selectable by register - Test variables (software) for conditional jumps - PA[0] and PA[3] are inputs for the event counter - PA[3] is Start/Stop input for the millisecond counter - Reset with input combination
• RAM
- 64 x 4 bit, direct addressable - 64 x 4 bit, indexed addressable
• 4-Bit Bi-directional Port B
- All different functions bit-wise selectable - Direct input read on the port terminals - Data output latches - CMOS or Nch. open drain outputs - Pull-down or pull-up selectable - Selectable PWM, 32kHz, 1kHz and 1Hz output
• EEPROM
- 4096 x 16 bit, metal mask programmable
• CPU
- 4-bit RISC architecture - 2 clock cycles per instruction - 72 basic instructions
• Prescaler
- 15 stage system clock divider down to 1Hz - 3 Interrupt requests; 1Hz, 32Hz or 8Hz, Blink - Prescaler reset (4kHz to 1Hz)
• Main Operating Modes and Resets
- Active mode (CPU is running) - Standby mode (CPU in halt) - Sleep mode (no clock, reset state) - Watchdog reset (logic and oscillation watchdogs) - Reset terminal and POR - Reset with input combination on port A (register selectable)
• Voltage Level Detector (SVLD)
- 8 different levels from 1.2 V to 4.0 V (ROM Version) - Busy flag during measure
• 10-Bit Universal Counter
- 10, 8, 6 or 4 bit up/down counting - Parallel load - Event counting (PA[0] or PA[3]) - 8 different input clocks - Full 10 bit or limited (8, 6, 4 bit) compare function - 2 interrupt requests (on compare and on 0) - Hi-frequency input on PA[3] and PA[0] - Pulse width modulation (PWM) output
• Liquid Crystal Display Driver (LCD)
- 32 Segments 3 or 4 times multiplexed - Internal or external voltage multiplier - Free Segment allocation architecture - LCD switch off for power save
• 8-Bit Serial Interface
- 3 wire master/slave mode - READY output during data transfer - Maximum shift clock is equal to system clock - Interrupt request to the CPU after 8 bits - Supports different serial formats - Can be configured as a parallel 4 bit I/O port - Direct input read on the port terminals - All outputs can be put tristate (default) - Selectable pull resistors in input mode - CMOS or Nch. open drain outputs
• Melody Generator
- Dedicated Buzzer terminal - 7 tones plus silence output - The output can be put tristate (default) - Internal 4-bit timer, usable also in standalone mode - 4 different timer input clocks - Timer with automatic reload or single run - Timer interrupt request when reaching 0
• Interrupt Controller
- 5 external and 8 internal interrupt request sources - Each interrupt request can individually be masked - Each interrupt flag can individually be reset - Automatic reset of each interrupt request after read - General interrupt request to CPU can be disabled - Automatic enabling of general interrupt request flag when going into HALT mode
• Millisecond Counter
- 3 digits binary coded decimal counter (12 bits) - PA[3] input pulse width and period measurement - Internal 1000 Hz clock generation - Hardware or software controlled start stop mode - Interrupt request on either 1/10 Sec or 1Sec
Copyright © 2005, EM Microelectronic-Marin SA
2
www.emmicroelectronic.com
R
EM6522
Table of Contents
Features
0H
1 1
1H
8.5.2
PWM Characteristics
56H
35
Description Typical Applications
2H
8.6 8.7 9
Counter Setup 10-bit Counter Registers
57H 58H 59H
36 36 38 38 38 39 39 41
60H 61H 62H 63H 64H
1 2
3H
EM6522 at a glance 1 2 Pin Description for EM6522 1.1 Programming Connections
4H 5H
4 6 7 7 7 7
6H 7H 8H 9H
Millisecond Counter 9.1 PA[3] Input for MSC 9.2 IRQ from MSC 9.3 MSC-Modes 9.4 Mode selection 9.5 Millisecond Counter Registers
65H
Operating Modes 2.1 Active Mode 2.2 Standby Mode 2.3 Sleep Mode Power Supply
10H
10 Interrupt Controller 10.1 Interrupt Control Registers
6H
42 43 44 44
67H 68H
3 4
8 9 10 10 10 11 11
1H 12H 13H 14H 15H 16H
11 Supply Voltage Level Detector 11.1 SVLD Register 12 Strobe Output 12.1 Strobe Register
69H 70H
Reset 4.1 Oscillation Detection Circuit 4.2 Reset Terminal 4.3 Input Port A Reset Function 4.4 Digital Watchdog Timer Reset 4.5 CPU State after Reset Oscillator and Prescaler 5.1 Oscillator 5.2 Prescaler
17H 18H 19H
45 45 46
71H
13
RAM
72H
5
12 12 12 14 14 15
20H 21H 2H
14 LCD Driver 14.1 LCD Control 14.2 LCD Addressing 14.3 Free Segment Allocation 14.4 LCD Registers
73H 74H 75H 76H
47 48 48 49 49 51
7H
6
Input and Output Ports 6.1 Ports Overview 6.2 Port A
6.2.1 6.2.2 6.2.3 6.2.4 IRQ on Port A Pull-up or Pull-down Software Test Variables Port A for 10-Bit Counter and MSC
15 16 17
Peripheral Memory Map Option Register Memory Map
78H
55 56
79H
15 16 16 16
23H 24H 25H 26H
Active Supply Current Test
80H
18 Mask Options 18.1 Input / Output Ports
81H
57 57
57 58 59 59 59 60
82H 83H 84H 85H 86H 87H
6.3 6.4
6.4.1 6.4.2 6.4.3 6.4.4
Port A Registers Port B
27H 28H
16 18
18 19 19 20
29H 30H 31H 32H
Input / Output Mode Pull-up or Pull-down CMOS / NCH. Open Drain Output PWM and Frequency Output
18.1.1 18.1.2 18.1.3 18.1.4 18.1.5 18.1.6
Port A Metal Options Port B Metal Options Port SP Metal Options Voltage Regulator Option Debouncer Frequency Option User defined LCD Segment Allocation
8H
6.5 6.6
6.6.1 6.6.2 6.6.3 6.6.4 6.6.5 6.6.6 6.6.7
Port B Registers Port Serial
3H 34H
20 21
21 22 23 23 24 24 25
35H 36H 37H 38H 39H 40H 41H
4-bit Parallel I/O Pull-up or Pull-down Nch. Open Drain Outputs General Functional Description Detailed Functional Description Output Modes Reset and Sleep on Port SP
19 Measured Electrical Behaviors 19.1 IDD Current 19.2 Regulator Voltage 19.3 Pull Resistors 19.4 Output currents
89H 90H 91H 92H
61 61 61 62 62 63 63 63 63 63 64 64 65 66 66 66 66
93H 94H 95H 96H 97H 98H 9H 10H 10H 102H 103H 104H
6.7 7
Serial Interface Registers
42H 43H
26 28 28
4H
Melody, Buzzer 7.1 4-Bit Timer
7.1.1 7.1.2 Single Run Mode Continuos Run Mode
29 29
45H 46H
7.2 7.3 8
Programming Order Melody Registers
47H 48H 49H
30 30 32 32 33 34 34 34
50H 51H 52H 53H 54H
10-bit Counter 8.1 Full and Limited Bit Counting 8.2 Frequency Select and Up/Down Counting 8.3 Event Counting 8.4 Compare Function 8.5 Pulse Width Modulation (PWM)
8.5.1 How the PWM Generator works.
20 EM6522 Electrical Specification 20.1 Absolute Maximum Ratings 20.2 Handling Procedures 20.3 Standard Operating Conditions 20.4 DC Characteristics - Power Supply 20.5 Supply Voltage Level Detector 20.6 Oscillator 20.7 DC characteristics - I/O Pins 20.8 LCD SEG[32:1] Outputs 20.9 LCD Com[4:1] Outputs 20.10 DC Output Component 20.11 LCD Voltage Multiplier 21 Pad Location Diagram
105H 106H
67 68 68
107H
23 Package & Ordering information 23.1 Ordering Information
35
5H
Copyright © 2005, EM Microelectronic-Marin SA
3
www.emmicroelectronic.com
R
EM6522
1
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
Pin Description for EM6522
Chip TQFP 64 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 DIL 64 62 63 64 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 Signal Name C2B C2A C1B C1A VL1 VL2 VL3 COM[1] COM[2] COM[3] COM[4] SEG[32] SEG[31] SEG[30] SEG[29] SEG[28] SEG[27] SEG[26] SEG[25] SEG[24] SEG[23] SEG[22] SEG[21] SEG[20] SEG[19] SEG[18] SEG[17] SEG[16] SEG[15] SEG[14] SEG[13] SEG[12] SEG[11] SEG[10] SEG[ |