EM6520 EM Microelectronic, EM6520 Datasheet

no-image

EM6520

Manufacturer Part Number
EM6520
Description
MFP version of EM6620 Ultra Low Power Microcontroller 4x8 LCD Driver
Manufacturer
EM Microelectronic
Datasheet
www.DataSheet4U.com
Features
• Low Power
• Large Voltage range, 2 to 5.5 V
• SVLD, default (2.4V)
• EEPROM, 2048 × 16 bits
• RAM, 64 × 4 bits
• 2 clocks per instruction cycle
• 72 basic instructions
• Oscillation supervisor
• Timer watchdog (2 sec)
• Max. 8 inputs ; port A, port B
• max. 4 outputs ; port B
• LCD 8 segments, 3 or 4 times multiplexed
• Universal 10-bit counter, PWM, event counter
• Prescaler down to 1 Hz (crystal = 32 KHz)
• 1/1000 sec, 12 bit binary coded decimal counter
• Frequency output 1Hz, 2048 Hz, 32 KHz, PWM
• 7 internal interrupt sources (BCD counter,
• 2×10-bit counter, 3× prescaler, SVLD)
• 5 external interrupt sources (port A, compare)
Description
The EM6520 is an advanced single chip CMOS 4-
bit microcontroller. It contains EEPROM, RAM,
power
detection
Millisecond counter, prescaler, voltage level detec-
tor (SVLD), compare input, frequency output, LCD
driver 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 EM6520 is manufactured
using EM Microelectronic’s Advanced Low Power
(ALP) CMOS Process.
Typical Applications
Copyright  2002, EM Microelectronic-Marin SA
• Timing device
• Medical applications
• Domestic appliance
• Timer / sports timing devices
• Safety and security devices
• Automotive controls with display
• Measurement equipment
• Interactive system with display
• Bicycle computers
with hard or software start/stop function
on
Ultra Low Power Microcontroller 4x8 LCD Driver
circuit,
reset,
EM MICROELECTRONIC
- 8 µA
- 1.1 µA standby mode, LCD Off
- 0.1 µA sleep mode
@ 3 V, 32 kHz, 25°C
10
watchdog
bit
active mode, LCD On
up/down
MFP version of EM6620
timer,
oscillation
counter,
1
- MARIN SA
Figure 1. Architecture
Figure 2. Pin Configuration
www.emmicroelectronic.com
EM6520
03/02 REV. D/449

Related parts for EM6520

EM6520 Summary of contents

Page 1

... Frequency output 1Hz, 2048 Hz, 32 KHz, PWM • 7 internal interrupt sources (BCD counter, • 2×10-bit counter, 3× prescaler, SVLD) • 5 external interrupt sources (port A, compare) Description The EM6520 is an advanced single chip CMOS 4- bit microcontroller. It contains EEPROM, RAM, power on reset, ...

Page 2

... EM6520 at a glance Power Supply • - Low voltage low power architecture including internal voltage regulator - 2.0 ... 5.5 V battery voltage - 8 µA in active mode (Xtal, LCD on, 25°C) - 1.1 µA in standby mode (Xtal, LCD off, 25°C) - 0.1 µA in sleep mode (25° KHz Oscillator • RAM - bit, direct addressable • ...

Page 3

... Table of Contents Features Description Typical Applications EM6520 at a glance 1 Pin Description for EM6520 1.1 Programming Connections 2 Operating modes 2.1 ACTIVE Mode 2.2 STANDBY Mode 2.3 SLEEP Mode 3 Power Supply 4 Reset 4.1 Oscillation Detection Circuit 4.2 Input Port A Reset 4.3 Digital Watchdog Timer Reset 4.4 CPU State after Reset 5 Oscillator and Prescaler 5 ...

Page 4

... Pin Description for EM6520 Chip QFP DIL QFP Signal Name C2B C2A C1B C1A VL1 VL2 VL3 COM[ COM[ COM[2] ...

Page 5

... 1.1 Programming Connections The EM6520 can be programmed using the standard EM MFP programming box for 4 bit uControllers. The interface signals are listed in the table below. The circuit can be programmed on the programming box or directly on the PCB . For more information please refer to the MFP programmer’s manual. ...

Page 6

... Operating modes The EM6520 has two low power dissipation modes, standby and sleep. Figure transition diagram for these modes. 2.1 ACTIVE Mode The active mode is the actual CPU running mode. Instructions are read from the internal ROM and executed by the CPU. Leaving the active mode: via the halt instruction to go into standby mode, writing the SLEEP bit to go into Sleep mode or detecting the reset condition from port into reset mode ...

Page 7

... Power Supply The EM6520 is supplied by a single external power supply between V voltage regulator generates Vreg providing regulated voltage for the oscillator and the internal logic. The output drivers are supplied directly from the external supply V Figure 5. Internal Power Supply Connection T erm inal ...

Page 8

... Reset Figure 6 illustrates the reset structure of the EM6520. One can see that there are five possible reset sources : (1) Internal initial reset from the Power On Reset (POR) circuitry. (2) External reset by simultaneous high/low inputs to port A. (Combinations are defined in the registers OptInpRSel1 and OptInpRSel2 (3) Internal reset from the Digital Watchdog ...

Page 9

... At power on, the voltage regulator starts to follow the supply voltage and triggers the power on reset circuitry, and thus the system reset. The CPU of the EM6520 remains in the reset state for the ‘CPU Reset Delay’, to allow the oscillator to stabilize after power up. ...

Page 10

... Watchdog timer data 1/4 ck[ Watchdog timer data 1/2 ck[1] Bits Symbol 12 PC0 12 PC1 12 PC2 HALT Reg..... EM6520 Initial Value $000 (as a result of Jump 0) Undefined Undefined SP[0] selected Undefined Undefined Undefined 0 Jump 0 See peripheral memory map © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF ...

Page 11

... Hz System clock / 4096 1024 Hz System clock / 8192 512 Hz System clock / 16384 256 Hz System clock / 32768 Figure 8. Prescaler Frequency Timing Prescaler Reset System Clock from Ck[14] down to Ck[16] Ck[2], sets Ck[1]. Ck[15] Ck[14] or Ck[14], see below. 11 EM6520 Name 32 KHz Xtal Ck[8] 128 Hz Ck[ Ck[ Ck[ Ck[ Ck[ Ck[ Ck[ ...

Page 12

... There is no interrupt generation on reset. The first IRQHz1 Interrupt occurs 1 sec (32kHz) after reset. A possible application for the IRQBlink is LCD-Display blinking control together with IRQHz1. EM Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 EM6520 Figure 9. Prescaler Interrupts Ck[2] Ck[1] Hz1 IRQ IRQBlink © ...

Page 13

... Input and Output ports The EM6520 has: - one 4-bit input port ( port one 4-bit input/output port. ( port B ) Pull resistors can be added to all this ports with metal (Rom version only) and/or register options. 6.1 Ports overview Table 6.1.1 Input and Output ports overview Port Mode ...

Page 14

... Port A The EM6520 has one four bit general purpose CMOS input port. The port A input can be read at any time, pull pull-down resistors can be chosen by metal mask (ROM version only). All selections concerning port A are bit-wise executable. I.e. Pull-up on PA[2], pull-down on PA[0], positive IRQ edge on PA[0] but negative on PA[1], etc ...

Page 15

... Direct read on Port A terminals Copyright  2002, EM Microelectronic-Marin SA NoPullPA[n] value x no pull-up, no pull-down pull-up, no pull-down pull- pull-down x Reset R EM6520 Action with n=0…3 no pull-up, pull-down pull-up, no pull-down not allowed* Description PA[3] input status PA[2] input status PA[1] input status PA[0] input status 03/02 REV. D/449 www.emmicroelectronic.com ...

Page 16

... R/W 0 R/W power on R/W value 0 R/W 0 R/W 0 R/W 0 R/W EM6520 Description Interrupt mask for PA[3] input Interrupt mask for PA[2] input Interrupt mask for PA[1] input Interrupt mask for PA[0] input Description Interrupt request on PA[3] Interrupt request on PA[2] Interrupt request on PA[1] Interrupt request on PA[0] Description Interrupt edge select for PA[3] Interrupt edge select for PA[2] Interrupt edge select for PA[1] ...

Page 17

... Port B The EM6520 has one four bit general purpose I/O port. Each bit can be configured individually by software for input/output, pull-up, pull-down and CMOS or Nch. open drain output type. The port outputs either data, frequency or PWM signals. 6.4.1 Input / Output Mode Each port B terminal is bit-wise bi-directional. The input or output mode on each port B terminal is set by writing the corresponding bit in the RegPBCntl control register ...

Page 18

... EM Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 EM6520 tiv llu ...

Page 19

... PWM output on PB[3] with bit PWMOn 6.5 PB[0] Dynamic Input Comparator The EM6520 has one dynamic input comparator on PB[0], such that PB[0] input voltage level is compared at regular intervals (ck[12] clock period) with the SVLD detection level (default : 2.4V). To select this function, the bit PB0CompSelect in register RegPB0Comp must be set to “1. If using the Dynamic Input Comparator one must put the PB[0] in CMOS input mode and should not use any pull resistor on this terminal ...

Page 20

... Default "0" is: Power supply voltage level detection Table 6.6.4 register OPTFSelPB Bit Name 3 PB1HzOut 2 PB2kHzOut 1 PB32kHzOut 0 NoInputRes Default "0" is: No frequency output, Port A can reset the EM6520. Table 6.6.5 option register OPTNoPdPB Bit Name 3 NoPdPB[3] 2 NoPdPB[2] 1 NoPdPB[1] 0 NoPdPB[0] Default "0" is: Pull-down on Table 6 ...

Page 21

... Counter The EM6520 has a built-in universal cyclic counter. It can be configured as 10 4-bit counter. If 10-bits are selected we call that full bit counting 4-bits are selected we call that limited bit counting. The counter works in up- or down count mode. Eight clocks can be used as the input clock source, six of them are prescaler frequencies and two are coming from the input pads PA[0] and PA[3] ...

Page 22

... EvCount ) is chosen. Refer also to Figure 15. Internal Clock Synchronization. EM Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 ≥ 2 V). If higher frequencies are needed, please contact EM- DD © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF EM6520 For the ...

Page 23

... One must not use a compare value of hex count mode nor a value of hex 3FF (or FF,3F limited bit compare) in down count mode. Copyright  2002, EM Microelectronic-Marin SA Ck Start ] + / - 1 ] Count[9:0 EvCount = 0 EvCount = 1 With PWMOn =‘1’ the counter would have 23 EM6520 Ck Start + / - 1 ] Count[9:0 EvCount = 1 03/02 REV. D/449 www.emmicroelectronic.com ...

Page 24

... Figure 17. PWM Output in Down Count Mode Clock Count[9 :0] 001 000 Data Data+1 Data+2 Roll-over Compare IRQCount0 IRQComp PWM output -> 1/Ck[15] -> 1024 x 1/Ck[1] -> 1/Ck[15] EM6520 (BitSel[1,0]) (number of PWM pulses) (length of PWM pulse) 3FF 3FE ... Data+1 Data Data-1 Data-2 -> 977 µs (32 KHz) -> 1024 s (32 KHz) -> 61 µs (32 KHz) © ...

Page 25

... Copyright  2002, EM Microelectronic-Marin SA Reset R/W 0 R/W 0 R/W 0 R/W 0 R/W CountFSel0 EM6520 Description Up or down counting Input clock selection Input clock selection Input clock selection clock source selection Port A PA[0] Prescaler Ck[15] Prescaler Ck[12] Prescaler Ck[10] Prescaler Ck[8] Prescaler Ck[4] Prescaler Ck[1] Port A PA[3] 03/02 REV. D/449 www.emmicroelectronic.com ...

Page 26

... Bit select for limited bit count/compare 10-Bit 8-Bit 6-Bit 4-Bit EM6520 Description Start/Stop control Event counter enable Enable comparator Read: always 0 Description General interrupt enable Sleep mode Compare Interrupt select For EM test only Description Counter data bit 3 ...

Page 27

... Millisecond Counter The EM6520 has a built-in millisecond binary coded decimal counter. It can be used to measure the time elapsed between two events (hardware or software events). With a system clock of 32kHz, the counter generates every 1/10 second or every second an interrupt request. The counter value read on registers RegMSCDataL , RegMSCDataM and RegMSCDataH is in binary coded decimal format (000 to 999) ...

Page 28

... As soon as the CPU writes the start bit RunEn/Stop =1 the counter starts up counting until the CPU clears the start bit. The bit PA3/uP is ‘0’ for this mode. Figure 19. CPU controlled Start Stop CPU write RunEn/Stop Counter EM Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 Start Stop Counting EM6520 © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF ...

Page 29

... Figure 21. dT/MSC behavior PA3 internal with PA3Edge =0 Counter RunEn PA3 internal Counter RunEn 29 EM6520 µ ...

Page 30

... Reset R EM6520 Description Enable counter Pulse-width measurement Reset if write of 1 Read value is always 0 Description Debouncer frequency select PA[3] edge selection Interrupt source selection Seconds flag Description Description 1/100 Seconds BCD value 3 1/100 Seconds BCD value 2 1/100 Seconds BCD value 1 ...

Page 31

... Interrupt Controller The EM6520 has 12 different interrupt request sources individually maskable. These are: External(5) - Port A, - Compare Internal(8) - Prescaler - Millisecond Counter - 10-bit Counter - SVLD The SVLD and the Compare share the same interrupt line able to send an interrupt to the CPU, at least one of the interrupt request flags must be set ( IRQxx ) and the general interrupt enable bit IntEn located in the register RegSysCntl1 must be set to 1 ...

Page 32

... All interrupt requests are stored in their IRQxx registers depending only on their corresponding mask setting and not on the general interrupt enable status. Whenever the EM6520 goes into HALT Mode the IntEn bit is automatically set to 1, thus allowing to resume from Halt Mode with an interrupt. ...

Page 33

... Supply Voltage Level Detector The EM6520 has a built-in Supply Voltage Level Detector (SVLD), such that the CPU can compare the supply voltage against a pre-selected value. During Sleep Mode this function is inhibited. The CPU activates the supply voltage level detector by writing VldStart =1 in the register RegVldCntl ...

Page 34

... RAM The EM6520 has one 64x4 bit RAM built-in located on addresses hex 0 to 3F. All the RAM nibbles are direct addressable direct addressable RAM1 RAM1_63 RAM1_62 RAM1_61 RAM1_60 RAM1_3 RAM1_2 RAM1_1 RAM1_0 RAM Extension : Unused R/W Registers can often be used as possible RAM extension. Be careful not to use registers which start, stop, or reset some functions ...

Page 35

... LCD Driver The EM6520 has a built-in Liquid Crystal Display driver. A maximum of 32 segments can be displayed using the 8 segment driver outputs (SEG[8:1) in 4:1 multiplex - 24 segments in the case of 3:1 multiplex - and the 4 back-planes (COM[4:1]). The LCD driver has its own voltage regulator (1.05 Volt) and voltage multiplier to generate the driver bias voltages VL1, VL2 and VL3 (VLCD) ...

Page 36

... EM6520 power . ...

Page 37

... Ck[10] 0 Ck[9] 1 Ck[8] 1 Ck[7] Reset R/W 1 R/W 1 R/W 1 R/W X R/W external supply for VL1, VL2 and VL3 (0 on POR) 37 EM6520 COM[3] COM[4] DB[2], LCDAdr[0] DB[3], LCDAdr[0] DB[2], LCDAdr[1] DB[3], LCDAdr[1] DB[2], LCDAdr[2] DB[3], LCDAdr[2] ... ... DB[2], LCDAdr[5] DB[3], LCDAdr[5] DB[2], LCDAdr[6] DB[3], LCDAdr[6] DB[2], LCDAdr[7] DB[3], LCDAdr[7] Description LCD multiplier clock select LCD multiplier clock select on 32 KHz operation ...

Page 38

... VL3 VL2 value = VL1 hex SEG[5] VL3 VL2 value = VL1 hex Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 EM6520 SEG[1] SEG[2] SEG[3] COM1 COM2 COM3 COM4 COM1 VL3 - VL2 ] SEG[1 VL1 V SS -VL1 ...

Page 39

... CountFSel0 1: CountFSel1 2: CountFSel2 3: UP/Down 0: ' Load 1: EnComp 1: EnComp 2: EvCount 2: EvCount 3: Start 3: Start 39 EM6520 Remarks Direct addressable Ram 64x4 ... Direct addressable Ram 64x4 Direct addressable LCD Direct addressable LCD Read port A directly Port B Control Default: input mode Port B data output Pin port B read ...

Page 40

... RIRQPA[2] 3:IRQPA[3] 3: RIRQPA[3] 0: IRQPB0Comp 0: RIRQPB0Comp 1: IRQBlink 1: RIRQBlink 0000 2: IRQHz32/8 2: RIRQHz32/8 3: IRQHz1 3: RIRQHz1 EM6520 Remarks 10 bit counter data low bits 10 bit counter data middle bits 10 bit counter data high bits Millisecond counter control register 1; Reset, delta time, control source Millisecond counter control register 2 ...

Page 41

... LCDOff 3: LCDBlank 0: NoLogicWD 0: NoLogicWD 1: NoOscWD 1: NoOscWD 2: VldBusy 2: VldStart 3: VLDResult EM6520 Remarks Read: 10 bit counter, millisecond counter, serial interrupt Write: Reset if data bit =1. System control 1 ChTmDis only usable for Em test modes with Test=1 System control 2; watchdog value and periodical reset, enable sleep mode Prescaler control ...

Page 42

... PB2kHzOut 3: PB1HzOut 0: InpRes1PA[0] 1: InpRes1PA[1] 2: InpRes1PA[2] 3: InpRes1PA[3] 0: InpRes2PA[0] 1: InpRes2PA[1] 2: InpRes2PA[2] 3: InpRes2PA[3] ---- ---- accu EM6520 Remarks Option register; debouncer on Port A for interrupt gen. default: debouncer on Option register; interrupt edge select on port A default: pos. edge option register; pull-down selection on port A default: pull-down Option register; pull-down selection on port B default: pull-down Option register ...

Page 43

... To stay in the testloop, these values must be written in the corresponding addresses before jumping in the loop: 1BH: 0101b 32H: 1010b 6EH: 0010b 6FH: 0011b Free space after last instruction: JMP 00H (0000) Remark: empty space within the program are filled with NOP (FOFF). Copyright  2002, EM Microelectronic-Marin SA EM6520 43 www.emmicroelectronic.com 03/02 REV. D/449 ...

Page 44

... The following options can be selected at the time of programming the metal mask ROM, except the LCD Segment allocation which is defined using the interconnect metal2 mask. The EM6520 is delivered with the default metal mask settings. If you need other mask settings please contact EM Marin. ...

Page 45

... R1 NO Pull-up value Pull-up and 4 and reconfirm the R1 value in column Typ. 100k The default value is : Strong pull-up with x 100k R1=100 KOhm x 100k x 100k x 100k 45 EM6520 VBAT MPBPUstrong[n] Strong Pull-up No Pull-up 100 KOhm No Pull-down MPBPDstrong[n] Strong Pull-down 03/02 REV. D/449 www.emmicroelectronic.com ...

Page 46

... ROM Version) By default the debouncer Default user value frequency is ck[11]. The user may choose ck[14] value instead of ck[11 Ck[14 ]corresponds to maximum 0.25ms debouncer ck[11] time in case of a 32kHz oscillator. COM[2] COM[2] EM6520 COM[3] COM[4] COM[3] -- © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF ...

Page 47

... Ohm ] 125 100 [°C] 80 -20 47 EM6520 [° [° [° reg Tem p = 25°C 2 2 ull-Up P ortB ; V DD= 3.0V [° ...

Page 48

... -12 IOH P ortB ; V DD= 3.0V =0.15/0.3/0.5/1.0V - 1.0 -4 0.5 -6 0 [°C] IOH P ortB ; V DD=5. 0.15/0.3/0.5/1.0V - 1.0 -6 0.5 0 [°C] EM6520 0.15V 0.3V 0. [°C] 0.15 0.3 0.5 1 [°C] 0.15 0.3 0.5 1.0 © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF ...

Page 49

... EM6520 Electrical specifications 18.1 Absolute maximum ratings Power supply VDD-VSS Input voltage Storage temperature Electrostatic discharge to Mil-Std-883C Method 3015.7 with ref. to VSS Maximum soldering conditions Stresses above these listed maximum ratings may cause permanent damage to the device. Exposure beyond specified electrical characteristics may affect device reliability or cause malfunction. ...

Page 50

... EM Microelectronic-Marin SA CH-2074 Marin, Switzerland, Tel. +41 32 755 51 11, Fax. +41 32 755 Symb. Min SVLDN SVLD V 0. SVLDN SVLD dVSVLD/dVDD Symb. Min. df Cin 5,6 Cout 12,1 Gm 2.5 Ustart VDDmin tdosc tdsys t DetFreq EM6520 Typ. Max. Unit 1. SVLD SVLDN NOM 1. SVLD SVLDN NOM -35 mV/V Typ. Max. Unit 0,3 ppm /° 15,9 pF 15.0 ...

Page 51

... Input Pull-down VDD=3.0V, Pin at 3.0V, 25 ° C Test VDD=3.0V, Pin at 3.0V, 25 ° C Input Pull-down Port A,B Input Pull-up VDD=3.0V, Pin at 0.0V, 25 ° C Port A,B Note 7 ; QOUT (OSC2) is used only with Quartz. Copyright  2002, EM Microelectronic-Marin SA EM6520 Symb Min. Typ. V Vss 0.3VDD IL V Vss 0.1VREG V ...

Page 52

... R comVL1 R comVL2 RcomVL3 Symb. Min. Typ. ± V DC_com Symb. Min. Typ. V 0.95 1.05 VL1 V 2.10 VL2 V 3.15 VL3 dV /dT -4.9 VL1 © EM Microelectonic-Marin SA , 12/98 Rev. A/246 A COMPANY OF EM6520 Max. Unit 20 kOhm 20 kOhm 20 kOhm 20 kOhm Max. Unit 10 kOhm 10 kOhm 10 kOhm 10 kOhm Max. Unit 20 mV Max. Unit 1. ...

Page 53

... Pad Location Diagram Copyright  2002, EM Microelectronic-Marin SA EM6520 53 www.emmicroelectronic.com 03/02 REV. D/449 ...

Page 54

... A 1 SEE DETAIL "B" 0.08/0. 0-7° L 1.00/0.10 MM FORM, 1.00 MM THICK PACKAGE OUTLINE, TQFP, 10X10 MM BODY, Delivery Form/ Thickness Trays (Plate) 11 mils EM6520 EVEN LEAD SIDES b DETAIL "A" TQFP44 ALL DIMENSIONS IN MILLIMETERS MIN. TYP. MAX. 1.20 0.05 0.15 0.95 1.00 1.05 12.00 BSC. 10.00 BSC. 0.45 0.60 0.75 44 ...

Page 55

... You are strongly urged to ensure that the information given has not been superseded by a more up-to-date version. Copyright  2002, EM Microelectronic-Marin SA EM6520 New text Initial Version New header: For Engineering only Temp range 0 to 60° ...

Related keywords