EM6682WW27 [EMMICRO]

Ultra Low Power 8-pin Microcontroller; 超低功耗的8引脚微控制器
EM6682WW27
型号: EM6682WW27
厂家: EM MICROELECTRONIC - MARIN SA    EM MICROELECTRONIC - MARIN SA
描述:

Ultra Low Power 8-pin Microcontroller
超低功耗的8引脚微控制器

微控制器
文件: 总61页 (文件大小:1744K)
中文:  中文翻译
下载:  下载PDF数据表文档文件
R
EM MICROELECTRONIC - MARIN SA  
EM6682  
Ultra Low Power 8-pin Microcontroller  
Features  
Figure 1. Architecture  
‰
True Low Power:  
4.0 µA active mode  
3.0 µA standby mode  
VDD  
VDD  
0.35 µA sleep mode  
ROM  
1536 x 16Bit  
RAM  
80 x 4Bit  
@ 1.5V, 32kHz, 25°C  
Power Supply  
Voltage reg.  
‰
Low Supply Voltage 0.9 V to 5.5 V  
Stable  
‰
‰
Medium voltage version: 1.4V to 5.5V  
Low voltage version: 0.9V to 1.8V  
RC oscillator  
32 - 800kHz  
Power on  
Reset  
‰
‰
‰
No external component needed  
Prescaler  
Available in TSSOP-8/14, SO-8/14 packages and die  
4-bit ADC or 12 levels Supply Voltage Level  
Detector (SVLD)  
Sleep Counter  
Reset  
Core  
EM6600  
10-Bit Univ  
Count/Timer  
Watchdog  
‰
‰
‰
Max 4 (5*) outputs with 2 high drive outputs of 10mA  
Max. 5 (6*) inputs  
Sleep Counter Reset (automatic wake-up from sleep  
mode (EM patent))  
4-bit ADC  
SVLD check  
Interrupt  
Controller  
‰
‰
‰
‰
‰
‰
‰
‰
‰
‰
‰
‰
‰
Mask ROM 1536 × 16 bits  
RAM 80 × 4 bits  
Internal RC oscillator 32 kHz – 800 kHz  
2 clocks per instruction cycle  
72 basic instructions  
Port A  
Serial Interface  
PA0 PA1  
Reset  
PA4  
PA2  
PA3  
*PA5  
External CPU clock source possible  
Watchdog timer (2 sec)  
PA1 & PA2: high-drive outputs (10mA)  
* PA5 available only in 14-pin package and in die  
Power-On-Reset with Power-Check on Start-Up  
3 wire serial port , 8 bit, master and slave mode  
Universal 10-bit counter, PWM, event counter  
Prescaler down to 1 Hz (freq. = 32 kHz)  
Frequency output 1Hz, 2048 Hz, Fosc, PWM  
6 internal interrupt sources ( 2×10-bit counter, 2×  
prescaler, SVLD, Serial Interface)  
2 external interrupt sources (port A)  
Figure 2. Pin Configuration  
PA0  
PA1  
PA2  
PA3  
1
2
3
4
8
7
6
5
VDD  
‰
VREG  
TSSOP-8, SO-8  
EM6682  
EM6682  
PA4 (reset)  
VSS  
Description  
NC  
PA0  
PA1  
PA2  
PA3  
NC  
1
2
3
4
5
6
7
14 NC  
The EM6682 is an ultra-low voltage, low power  
microcontroller coming in a package as small as 8-pin  
TSSOP and working up to 0.4 MIPS. It comes with an  
integrated 4-bit ADC and 2 high drive outputs of 10mA and  
it requires no external component. It has a sleep counter  
reset allowing automatic wake-up from sleep mode. It is  
designed for use in battery-operated and field-powered  
13 VDD  
12 VREG  
11 PA5  
TSSOP-14, SO-14  
10 PA4 (reset)  
9
8
VSS  
NC  
NC  
applications requiring an extended lifetime.  
A high  
integration level make it an ideal choice for cost sensitive  
applications.  
Typical Applications  
The EM6682 contains the equivalent of 3kB mask ROM  
and a RC oscillator with frequencies between 32 and  
800kHz selectable by metal option or register. It also has  
a power-on reset, watchdog timer, 10 bit up/down  
counter, PWM and several clock functions.  
‰
‰
‰
‰
‰
‰
‰
Household appliances  
Safety and security devices  
Automotive controls  
Sensor interfaces  
Watchdog  
Intelligent ADC  
Driver (LED, triac)  
Tools include windows-based simulator and emulator.  
The EM6682 simulator is usable for most of the  
EM6682 functions.  
Copyright © 2006, EM Microelectronic-Marin SA  
1
www.emmicroelectronic.com  
R
EM6682  
EM6682 at a glance  
‰ Power Supply  
‰ 4(5)-Bit I/O PA[3:0] & PA[4] / PA[5]*  
- Direct input read on the port terminals  
- 2 Debounce function available muxed on 4 inputs  
- 2 Interrupt request on positive or negative edge  
- Pull-up or pull-down or none selectable by register,  
except PA[4] where pullup/down is mask or register  
selection  
- Low voltage low power architecture  
including internal voltage regulator  
- 1.4 V to 5.5 V in medium voltage version  
- 0.9 V to 1.8 V in low voltage version  
- 4.0 µA in active mode  
- 3.5 µA in standby mode  
- 0.35 µA in sleep mode  
- 2 Test variables (software) for conditional jumps  
- PA[1] and PA[3/4] are inputs for the event counter  
- PA[3/4] Reset input (register selectable)  
- All outputs can be put tri-state (default)  
- Selectable pull-downs in input mode  
- CMOS or Nch. open drain outputs  
@ 1.5V, 32kHz, 25°C  
‰ RAM  
- 80 x 4 bit, directly addressable  
- Weak pull-up selectable in Nch. open drain  
mode  
‰ ROM  
- 1536 x 16 bit (~3k Byte), metal mask programmable  
‰ 4-bit ADC & Voltage Level Det. (SVLD)  
- External voltage compare from PA[4] input possible (low  
resolution 4 bit AD converter)  
- Levels above Vdd min are available for SVLD  
- Used for Power Check after POR (level 9 or level 5  
selectable by metal option)  
‰ CPU  
- 4-bit RISC architecture  
- 2 clock cycles per instruction (CPI=2)  
- 72 basic instructions  
‰ Main Operating Modes and Resets  
- Active mode (CPU is running)  
- Busy flag during measure  
- Interrupt generated if SVLD measurement low  
- Standby mode (CPU in halt, peripherals running)  
- Sleep mode (no clock, reset state, data kept)  
- Initial Power-On-Reset with Power-Check  
- power-check after any reset settable by metal option  
- Watchdog reset (logic)  
- Reset terminal (software option on PA[3/4])  
- Sleep Counter reset from Sleep mode  
- Wakeup on change from Sleep mode  
‰ 10-Bit Universal Counter  
- 10, 8, 6 or 4 bit up/down counting  
- Parallel load  
- Event counting (PA[1] or PA[3/4])  
- 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[1] and PA[3/4]  
- Pulse width modulation (PWM) output  
- Metal option for bit0 don’t care, reduces timer by 1 bit  
‰ Prescaler  
- Divider (4 stages) to best fit CPU clock (32kHz – 1MHz  
to 32kHz system clock to keep peripherals timing close  
to specification  
- 15 stage system clock divider from 32kHz down to 1Hz  
- 2 Interrupt requests (3 different frequencies)  
- Prescaler reset (4kHz to 1Hz)  
‰ Interrupt Controller  
- 2 external and 6 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  
‰ 8-Bit Serial Interface  
- 3 wire (Clock, DataIn , DataOut) master/slave mode  
- READY output during data transfer  
- Maximum shift clock is equal to the main system clock  
- Interrupt request to the CPU after 8 bit data transfer  
- Supports different serial formats  
‰ Sleep Counter Reset (SCR)  
- wake up the EM6682 from sleep mode  
- 4 timings selectable by register  
- Inhibit SCR by register  
- pins shared with general 4 bit PA[3:0] I/O port  
‰ Oscillator  
- RC Oscillator range: 32/50kHz to 500/800kHz  
(metal or register selectable from 32/50, 64/100,  
128/200, 256/400 or 500/800 kHz typ. for CPU clock)  
- No external components are necessary  
- Temperature compensated  
‰ Package form available  
- TSSOP-8/14  
- SO-8/14  
- Die form (9 pin possible due to additional I/O pin)  
- External clock source possible from PA1  
NB: All frequencies written in this document are related to a typical system clock of 32 kHz !  
2
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Table of Contents  
8.4.2  
8.4.3  
8.5  
8.6  
PWM Characteristics__________________29  
PWM example_______________________29  
COUNTER SETUP _____________________ 30  
10-BIT COUNTER REGISTERS ____________ 31  
FEATURES______________________________ 1  
DESCRIPTION ___________________________ 1  
EM6682 AT A GLANCE ____________________ 2  
9.  
9.1  
SVLD / 4-BIT ADC __________________ 33  
SVLD TRIM: ________________________ 35  
1.  
PIN DESCRIPTION FOR EM6682_______ 4  
2.  
OPERATING MODES ________________ 5  
ACTIVE MODE_______________________ 5  
STANDBY (HALT) MODE _______________ 5  
SLEEP MODE _______________________ 5  
FIGURE 25. SVLD TIMING IN “ADC” MODE WHEN  
SVLDEN SET @ “1” ___________________ 36  
2.1  
2.2  
2.3  
10.  
RAM _____________________________ 37  
11.  
INTERRUPT CONTROLLER __________ 38  
3.  
POWER SUPPLY____________________ 6  
11.1 INTERRUPT CONTROL REGISTERS _________ 39  
4.  
RESET ____________________________ 7  
POR WITH POWER-CHECK RESET_________ 8  
INPUT PORT A RESET __________________ 9  
DIGITAL WATCHDOG TIMER RESET ________ 9  
SLEEP COUNTER RESET _______________ 10  
WAKE-UP ON CHANGE ________________ 10  
THE CPU STATE AFTER RESET __________ 10  
12.  
13.  
14.  
PERIPHERAL MEMORY MAP _________ 40  
ACTIVE SUPPLY CURRENT TEST _____ 43  
MASK OPTIONS____________________ 44  
4.1  
4.2  
4.3  
4.4  
4.5  
4.6  
14.1 INPUT / OUTPUT PORTS ________________ 44  
14.1.1 Port A Metal Options __________________44  
14.1.2 RC oscillator Frequency Option _________46  
14.1.3 Debouncer Frequency Option ___________46  
14.1.4 Power-Check Level Option _____________46  
14.1.5 ADC/SVLD Voltage Level #15___________46  
14.1.6 Counter Update option ________________46  
14.1.7 No regulator option ___________________47  
14.1.8 SVLD level set_______________________47  
14.1.9 Bit 0 don’t care ______________________47  
14.1.10 Counter clock source _________________48  
14.1.11 Power check level init _________________48  
5.  
OSCILLATOR AND PRESCALER _____ 11  
RC OSCILLATOR OR EXTERNAL CLOCK_____ 11  
SPECIAL 4 STAGE FREQUENCY DIVIDER ____ 12  
PRESCALER ________________________ 13  
5.1  
5.2  
5.3  
6.  
6.1  
6.2  
INPUT AND OUTPUT PORT A ________ 14  
INPUT / OUTPUT PORT OVERVIEW ________ 14  
PORTA AS INPUT AND ITS MULTIPLEXING ___ 15  
Debouncer __________________________15  
IRQ on Port A _______________________16  
Pull-up/down ________________________16  
Software test variables ________________17  
Port A for 10-Bit Counter _______________17  
Port A Wake-Up on change_____________17  
Port A for Serial Interface ______________17  
Port A for External Reset_______________17  
Port PA[4] as Comparator Input _________17  
6.2.1  
6.2.2  
6.2.3  
6.2.4  
6.2.5  
6.2.6  
6.2.7  
6.2.8  
6.2.9  
15.  
TYPICAL BEHAVIOUR_______________ 49  
15.1 TEMPERATURE_______________________ 49  
15.2 VOLTAGE___________________________ 50  
16.  
ELECTRICAL SPECIFICATION ________ 51  
16.1 ABSOLUTE MAXIMUM RATINGS ___________ 51  
16.2 HANDLING PROCEDURES _______________ 51  
16.3 STANDARD OPERATING CONDITIONS_______ 51  
16.4 DC CHARACTERISTICS - POWER SUPPLY ___ 52  
16.5 ADC______________________________ 53  
16.6 SVLD _____________________________ 54  
16.7 DC CHARACTERISTICS - I/O PINS _________ 55  
16.8 RC OSCILLATOR FREQUENCY ____________ 56  
16.9 SLEEP COUNTER RESET - SCR __________ 57  
6.2.10 Reset and Sleep on Port A _____________17  
6.2.11 Port A Blocked Inputs _________________17  
6.3  
PORTA AS OUTPUT AND ITS MULTIPLEXING _ 18  
CMOS / Nch. Open Drain Output ________18  
PORT A REGISTERS___________________ 19  
6.3.1  
6.4  
7.  
7.1  
7.2  
SERIAL PORT _____________________ 21  
GENERAL FUNCTIONAL DESCRIPTION______ 22  
DETAILED FUNCTIONAL DESCRIPTION______ 22  
Output Modes _______________________23  
SERIAL INTERFACE REGISTERS __________ 24  
17.  
DIE, PAD LOCATION AND SIZE _______58  
18.  
PACKAGE DIMENSIONS_____________ 59  
7.2.1  
7.3  
18.1 SO-8/14 ___________________________ 59  
18.2 TSSOP-8/14 _______________________ 60  
8.  
10-BIT COUNTER __________________ 25  
19.  
ORDERING INFORMATION___________ 61  
8.1  
8.2  
8.3  
8.4  
FULL AND LIMITED BIT COUNTING ________ 25  
FREQUENCY SELECT AND UP/DOWN COUNTING26  
EVENT COUNTING____________________ 27  
PULSE WIDTH MODULATION (PWM) ______ 27  
How the PWM Generator works. _________28  
19.1 PACKAGE MARKING ___________________ 61  
19.2 CUSTOMER MARKING__________________ 61  
8.4.1  
3
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
1. Pin Description for EM6682  
Table 1 EM6682 pin descriptions  
# On  
Chip  
1
2
3
Signal  
Name  
PA0  
PA1  
PA2  
PA3  
Vss  
SO-8  
Description  
1
2
3
4
5
General I/O, serial In, Wake-Up on Change, IRQ source,…  
General I/O, serial CLK, timer source, external clock  
General I/O, serial Out, freq. out, CPU reset status output,…  
general I/O, serial Rdy/Cs, Interrupt source, Reset  
ground – negative supply pin  
4
5
6
7*  
8
6
NC  
7
PA4  
PA5  
Vreg  
general I, Reset, timer source, Interrupt source, Wake-Up, Compare I  
general I/O, freq. Out, wake-up on change, IRQ source  
regulated voltage supported by 100nF tw. Vss  
9
8
Vdd  
positive supply pin – capacitance tw. Vdd (C depends on Vdd noise)  
Figure 3. Typical configuration for medium voltage version from 1.4V to 5.5V  
Vdd  
Vdd  
Metal  
option  
1.5kOhm  
Voltage  
regulator  
Vreg  
Vbat  
SVLD  
4-bit ADC  
C
C
Vreg  
Capacitor  
100nF  
uPUS 4bits core  
Digital peripherals  
RAM 80 x 4 bits  
Analog peripherals  
RC oscillator  
Power-on-Reset  
Sleep Reset Cnt  
I/O pad  
Level Shifter  
ROM 1536 x 16 bits  
Vss  
For Vdd > 1.5V  
Typ_config_vdd+15.vsd  
Figure 4. Typical configuration for low voltage version from 0.9V to 1.8V  
Vdd  
Vdd  
Metal  
option  
1.5kOhm  
Voltage  
regulator  
Vreg  
Vbat  
SVLD  
4-bit ADC  
C
C
Vreg  
Capacitor  
100nF  
uPUS 4bits core  
Digital peripherals  
RAM 80 x 4 bits  
Analog peripherals  
RC oscillator  
Power-on-Reset  
Sleep Reset Cnt  
I/O pad  
Level Shifter  
ROM 1536 x 16 bits  
Vss  
For Vdd > 1.5V  
Typ_config_vdd+15.vsd  
NOTE: State of I/O pads may not be defined until Vreg reaches typ. 0.8V and Power-On-Reset logic  
supplied by Vreg clears them to Inputs.  
On I/O pins there are protective diodes towards Vdd and Vss.  
4
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
2. Operating modes  
The EM6682 can operate in three different modes of which 2 are low-power dissipation modes (Stand-By and Sleep). The  
modes and transitions between them are shown in Figure 5.  
1.) Active mode  
2.) Stand-By mode  
3.) Sleep mode  
Figure 5. EM6682 operating mode transitions  
POWER-ON  
START-UP  
Power-On-Reset & Power Check Level  
POR static level  
Power-Check Active  
RC oscilator  
running  
PORwPC  
8 oscillator  
periods  
PORwPC  
RESET  
reset synchronizer  
and  
PORwPC  
resetPortA  
WDreset  
PORwPC  
Power-Check  
8 CPU clock  
periods  
Reset-pad  
WDreset  
SleepResCnt  
WakeUp on  
Change  
SLEEP  
STAND-BY  
or HALT  
mode  
ACTIVE  
or running  
mode  
HALT instruction  
interrupt/event  
Everything stopped  
Registers and  
RAM keep their value  
Clocks active  
Sleep bit set  
It is possible to initiate Power-Check at every reset by metal option. In this case, in order to change from reset  
state to active state, the supply voltage must be higher than the active Power-Check selection lee. This  
selection level corresponds to the SVLD level 5 (default) after power-up or to the SVLD level selection active at  
the end of the reset state.  
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 to go into reset mode.  
2.2 STANDBY (Halt) Mode  
Executing a HALT instruction puts the EM6682 into standby mode. The voltage regulator, oscillator, watchdog  
timer, interrupts, timers and counters are operating. However, the CPU stops since the clock related to  
instruction execution stops. Registers, RAM and I/O pins retain their states prior to STANDBY mode. STANDBY  
is cancelled by a RESET or an Interrupt request if enabled.  
2.3 SLEEP Mode  
Writing to the Sleep bit in the RegSysCntl1 register puts the EM6682 in sleep mode. The oscillator stops and  
most functions of the EM6682 are inactive. To be able to write to the Sleep bit, the SleepEn bit in RegSysCntl2  
must first be set to "1". In SLEEP mode only the voltage regulator is active to maintain the RAM data integrity, all  
other functions are in reset state. SLEEP mode may be cancelled by Wake/Up on change, external reset or by  
Sleep Reset Counter if any of them is enabled.  
Waking up from sleep mode may takes some time to guarantee stable oscillation. Coming back from sleep mode  
puts the EM6682 in reset state and as such reinitializes all registers to their reset value. Waking up from sleep  
mode clears the Sleep flag but not the SleepEn bit. Inspecting the SleepEn allows to determine if the EM6682  
was powered up (SleepEn = "0") or woken from sleep mode (SleepEn = "1").  
5
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
After every sleep mode, a Power-Check can be performed depending on metal option. The systems will only resume to active  
mode if the Power-Check condition is full-filled. The SVLD level which was selected at the time one entered sleep mode will  
be used as Power-Check level (exception: if during Sleep one has a POR condition then the default SVLD level will be  
applied.)  
Table 2.3.1 Shows the Status of different EM6682 blocks in these three main operating modes.  
Peripheral /// EM6682 mode  
ACTIVE mode  
STAND-BY mode  
SLEEP mode  
POR (static)  
On  
On  
On  
Voltage regulator  
RC-oscillator  
On  
On  
On  
On  
On (Low-Power)  
Off  
Clocks (Prescaler & RC divider)  
CPU  
Peripheral register  
RAM  
On  
Running  
“On”  
“On”  
“On”  
can be activated  
Yes  
Yes - possible  
On  
Off  
Stopped  
retain value  
retain value  
stopped  
In HALT – Stopped  
“On” retain value  
retain value  
“On” if activated before  
“On” if activated before  
Yes  
Yes – possible  
On / Off (soft selectable)  
No  
Timer/Counter  
Supply Voltage Level Det.=SVLD  
PortA / Reset pad debounced  
Interrupts / events  
Watch-Dog timer  
Wake Up on Change PortA  
Sleep Reset Counter  
Off  
No  
No – not possible  
No  
On/Off (soft select.)  
On/Off (soft select.)  
On / Off (soft selectable)  
No  
Off  
Off  
3. Power Supply  
The EM6682 is supplied by a single external power supply between Vdd (VBAT) and VSS (ground). A built-in  
voltage regulator generates Vreg providing regulated voltage for the oscillator and the internal logic. The output  
drivers are supplied directly from the external supply VDD. Internal power configuration is shown in Figure 3 and  
Figure 4.  
To supply the internal core logic it is possible to use either the internal voltage regulator (Vreg < VDD) or directly (  
Vreg = VDD). The selection is done by metal 1 mask option. By default the voltage regulator is used. Refer to  
chapter 15 for the metal mask selection.  
The internal voltage regulator is chosen for high voltage systems. It saves power by reducing the internal core  
logic’s power supply to an optimum value. However, due to the inherent voltage drop over the regulator the  
minimal VDD value is restricted to 1.4V .  
A direct VDD connection can be selected for systems running on a 1.5V battery. The 1.5kΩ resistor together with  
the external capacitor on Vreg is filtering the Vdd supply to the internal core. In this case the minimum VDD value  
can be as low as 0.9V.  
6
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
4. Reset  
Figure 6. illustrates the reset structure of the EM6682. One can see that there are five possible reset sources :  
(1) Internal initial Power On Reset (POR) circuitry with Power-Check. Æ POR, ResetCold, System reset, ResetCPU  
(2) External reset from PA[3/4] if software enabled  
(3) Internal reset from the Digital Watchdog.  
(4) Internal reset from the Sleep Counter Reset.  
Æ System Reset, Reset CPU  
Æ System Reset, Reset CPU  
Æ System Reset, Reset CPU  
(5) Wake-Up on change from PA[0/5] or PA[3/4] if software enabled. Æ System Reset, Reset CPU  
Table 4.1 Reset sources that can be used in different Operating modes  
Reset Sources  
ACTIVE mode  
STAND-BY mode  
SLEEP mode  
POR (static) with Power Check  
Software enabled reset on PA[3/4]  
Digital Watch-Dog Timer  
Sleep Counter Reset  
Wake Up on Change from Sleep  
Going in Sleep mode  
Yes  
Yes  
Yes  
XS dig. debounce  
XS dig. debounce  
XS analog debounce  
XS  
No  
No  
XS  
No  
No  
No  
No  
XS  
XS  
No  
YES  
XS = software enable  
Figure 6. EM6682 Reset Structure  
RESETs generation logic diagram  
SCRsel[1:0]  
Ck[1]  
NoWDtim  
WDVal0  
WDVal1  
Write - Reset  
Read Statuts  
Watchdog  
times  
typ. 100Hz  
Sleep Counter  
Reset Oscillator  
Prescaler  
Write - Active  
Read Statuts  
SleepEn  
Sleep  
Sleep  
ResetCold  
System Reset  
Delay  
ResSys  
Peripherals  
&
Analog  
CPU  
Filter  
ck[15]  
WakeUp (on  
Change)  
Debounce  
POR &  
Power-Check  
POR  
InResAH  
ck[9]  
Set  
PORstatus  
Reset  
Rd RegSysCntl1  
PA[3]  
PA[4]  
PA[3/4]Resin  
All signals enter bottom, left, top and output on the right side of the boxes  
All reset sources activate the System Reset (ResSys). The ‘System Reset Delay’ ensures that the system reset remains active  
long enough for all system functions to be reset (active for N system clock cycles. CPU is reset by the same reset  
As well as activating the system reset, the POR also resets all bits in registers marked ‘p’ and the sleep enable (SleepEn)  
latch. System reset do not reset these registers bits, nor the sleep enable latch.  
7
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
4.1 POR with Power-Check Reset  
POR and Power-Check are supervising the Vreg(digital) which follows more or less the Vdd supply voltage on start-up to  
guarantee proper operation after Power-On. The power check initiates a resetcold signal, which gets released when Vdd  
supply voltage is enough for the IC to function correctly.  
Figure 7. EM6682 resetcold signal as a result of Power-On-Reset and Power-Check  
Vbat  
SVLD  
Vreg  
Voltage  
Regulator  
resetcold  
Bandgap Reference  
EN  
Vreg (digital)  
To SYSTEM  
Static POR  
POR  
PORstatic  
6
2
Vbat, Vreg  
3
Vbat  
Vreg  
~1.25V  
SVLD lev5  
SVLD lev4  
~1.2V  
~0.7V  
PRO level  
~0.6V  
1
4
5
7
time  
POR  
resetcold  
At power-on a POR cell with a static level of typ. 0.7V is checked. At time (1) in Figure 7. when the supply is increasing a  
power-check logic is switched-on with POR signal high. This logic enables the SVLD-level5 check which keeps resetcold  
active high until Vdd > SVLD-level5 (2). The circuit enters the active operating mode at (3). If afterwards Vdd drops below the  
selected SVLD-level4 (4) low supply will be detected, but this does not generate a POR signal. Low supply will be detected  
only if the measurement is done at time (4).  
If Vreg drops below the static POR level of 0.60V when Vdd Supply is going down (POR static level has a hysteresys) then the  
POR and resetcold signals go high immediately (5) , SVLD level5 gets forced and power check is switched on. Because POR  
was done, the Vld_lev[3:0] was reset to value 0101, and Power-check makes resetcold inactive low again at 1.25V at time  
(6).  
If there is only a very short Vdd drop (of few μs), below the POR level, POR will not react because Vreg is supported by  
external capacitance and it drops slower than Vdd and the logic still works (7).  
IMPORTANT: special care should be taken, when Power Supply starts to fall close to or below Vdd min. Frequent checking of  
the SVLD level must be done. Below the minimum Vdd level specified in table 16.3 and figure 29 minimum VDD =f(RC oscillator)  
on page 44 , the functionality of the circuit is not guaranteed.  
To distinguish between POR reset and all other types of reset, the PORstatus bit in RegSysCntl2 is set on at every POR and  
is cleared by writing the RegSysCntl1 register.  
With metal option SVLD level9 for power check @ 1.85V can be selected at higher RC oscillator frequencies to guarantee  
proper operation at higher frequencies.  
Above mentioned levels and voltages are for 3V application which uses the internal voltage regulator.  
When the EM6682 is in low voltage mode the following levels apply.  
POR (with hysteresis) typically 1.0V at rising and 0.7V at falling Vreg voltage  
PowerCheck level (default) SVLD_level_9 is 1.1 V  
8
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
4.2 Input Port A Reset  
By writing the PA[3/4]ResIn in RegFreqRst registers the PA[3] or PA[4] input becomes dedicated for external reset. This bit is  
cleared by POR only. Which input is selected is set by IrqPA[3l/4h] bit from RegPACntl2 register which is described in  
Chapter 6.  
Bit InResAH in the RegFreqRst register selects the PA[3/4] reset function in Active and standby (Halt) mode. If set to ‘0’ the  
PA[3/4] reset is inhibited. If Set to ‘1’ than PA[3/4] input goes through a debouncer and needs to respect timing associated  
with the debounce clock selection made by DebSel bit in RegPresc register.  
This InResetAH bit has no action in sleep mode, where a Hi pulse on PA[3/4] always immediately triggers a system reset.  
Overview of control bits and possible reset from PA[3] or PA[4] is specified in table 4.2.1 below.  
Table 4.2.1 Possible Reset from PA[3] or PA[4]  
PA[3/4]ResIn  
InResAH  
ACTIVE or STAND-BY mode  
SLEEP mode  
NO reset from PA[3] or PA[4]  
NO reset from PA[3] or PA[4]  
NO reset from PA[3] or PA[4]  
Debounce reset with debck of  
* Ck[14]/ Ck[11]/ Ck[8] needing  
0.25 ms / 2 ms / 16ms Hi pulse typ.  
0
1
1
X
0
1
Reset with small analog filter  
Reset with small analog filter  
* Ck[14]/ Ck[11]/ Ck[8] are explained in chapter 5.2 Prescaler.  
4.3 Digital Watchdog Timer Reset  
The Digital Watchdog is a simple, non-programmable, 2-bit timer, that counts on each rising edge of Ck[1]. It will generate  
a system reset if it is not periodically cleared. The watchdog timer function can be inhibited by activating an inhibit digital  
watchdog bit (NoWDtim) located in RegVLDCntl. At power up, and after any system reset, the watchdog timer is  
activated.  
If for any reason the CPU stops or stays in a loop where watchdog timer is not periodically cleared, it activates the system  
reset signal. This function can be used to detect program overrun, endless loops, etc. For normal operation, the watchdog  
timer must be reset periodically by software at least every 2.5 seconds (system clock = 32 KHz), or a system reset signal is  
generated.  
The watchdog timer is reset by writing a ‘1’ to the WDReset bit in the timer. This resets the timer to zero and timer  
operation restarts immediately. When a ‘0’ is written to WDReset there is no effect. The watchdog timer also operates in  
standby mode and thus, to avoid a system reset, standby should not be active for more than 2.5 seconds.  
From a System Reset state, the watchdog timer will become active after 3.5 seconds. However, if the watchdog timer is  
influenced from other sources (i.e. prescaler reset), then it could become active after just 2.5 seconds. It is therefore  
recommended to use the Prescaler IRQHz1 interrupt to periodically reset the watchdog every second.  
It is possible to read the current status of the watchdog timer in RegSysCntl2. After watchdog reset, the counting  
sequence is (on each rising edge of CK[1]) : ‘00’, ‘01’, ‘10’, ‘11’, {WDVal1 WDVal0}). When reaching the ‘11’ state, the  
watchdog reset will be active within ½ second. The watchdog reset activates the system reset which in turn resets the  
watchdog. If the watchdog is inhibited it’s timer is reset and therefore always reads ‘0’.  
Table 4.3.1 Watchdog timer register RegSysCntl2  
Bit  
3
Name  
Reset  
0
R/W  
Description  
WDReset  
W
Reset the Watchdog (The Read value is always '0')  
1 Æ Resets the Logic Watchdog  
0 Æ no action  
2
1
0
3
SleepEn  
WDVal1  
WDVal0  
0
0
0
R/W  
R
R
See Operating modes (sleep)  
Watchdog timer data 1/4 ck[1]  
Watchdog timer data 1/2 ck[1]  
PORstatus  
1 P*  
R
Power-On-Reset status  
1 P* POR sets the PORstatus bit which is cleared by writing register RegSysCntl1  
9
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
4.4 Sleep Counter Reset  
To profit the most from Low Power Sleep Mode and still supervise the circuit surrounding, one can enable the Sleep Counter  
Reset which only runs in Sleep mode and periodically wakes up the EM6682. Four (4) different Wake-Up periods are possible  
as seen in table below.  
Control bits SleepCntDis which is set to default ‘0’by POR enables the Sleep Counter when the circuit goes into Sleep mode.  
The SCRsel1, SCRsel0 bits that are used to determine Wake-Up period are in the RegSleepCR register. To disable the  
Sleep Counter in Sleep mode SleepCntDis must be set to ‘1’.  
Table 4.4.2 Register RegSleepCR  
Bit  
3
2
1
0
Name  
Reset  
0 por  
0 por  
0 por  
0 por  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
NoPullPA[4]  
SleepCntDis  
SCRsel1  
Remove pull-up/down from PA[4] input  
Disable Sleep Reset Counter when Hi  
Selection bit 1 for Sleep RCWake-Up period  
Selection bit 0 for Sleep RCWake-Up period  
SCRsel0  
Table 4.4.3 Wake-Up period from Sleep selection  
SCRsel1  
SCRsel0  
Sleep Reset Counter period (typ.)  
0
0
1
1
0
1
0
1
1.5 internal low speed RC clock periods  
15.5 internal low speed RC clock periods  
127.5 internal low speed RC clock periods  
1023.5 internal low speed RC clock periods  
Refer to the electrical specification for the actual timings  
Sleep Counter Reset (SCR) uses the same prescaler (see chapter 5.3) as the System Clock in Active and StandBy mode.  
Prescaler reset is made automatically just before going into Sleep mode if SCR is not disabled. This causes the Sleep  
Reset Counter to have its specified period.  
4.5 Wake-Up on Change  
By writing the WUchEn[0/5] and/or WUchEn[3/4] bit in RegPaCntl2 registers the PA[0] or PA[5] and/or PA[3] or PA[4] can  
generate a reset from sleep on any change on a selected pin. The post selection is defined with bits IRQPA[0l/5h] and  
IRQPA[3l/4h]. See chapter 6 and Figure 10 for more details.  
4.6 The CPU State after Reset  
Reset initializes the CPU as shown in Table 4.6.1 below.  
Table 4.6.1 Initial CPU value after Reset.  
Name  
Bits  
12  
12  
12  
2
Symbol  
PC0  
PC1  
PC2  
SP  
Initial Value  
$000 (as a result of Jump 0)  
Undefined  
Program counter 0  
Program counter 1  
Program counter 2  
Stack pointer  
Index register  
Carry flag  
Undefined  
SP[0] selected  
Undefined  
7
1
IX  
CY  
Undefined  
Zero flag  
1
Z
Undefined  
Halt  
1
16  
HALT  
IR  
0
Instruction register  
Jump 0  
Periphery registers  
4
Reg.....  
See peripheral memory map  
10  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
5. Oscillator and Prescaler  
5.1 RC Oscillator or external Clock  
EM6682 can use the internal RC oscillator or external clock source for its operation.  
The built-in RC oscillator without external components generates the system operating clock for the CPU and peripheral  
blocks. The RC oscillator is supplied by the regulated voltage in medium voltage version.  
The RC oscillator can generate 2 basic frequencies selectable by metal option or by registers 512kHz or 800kHz selected by  
RegMFP1[3].  
In the output of the RC oscillator, a selectable divider allows generating 512kHz, 256kHz, 128kHz, 64kHz or 32kHz. If the  
basic frequency is 800kHz the divider can generate 800kHz, 400kHz, 200kHz, 100kHz or 50kHz. The division factor is given  
by the register RegMFP1[2:0] (see table 5.2.1). These frequencies can be used for the CPU clock (if the external clock is not  
selected). Another divider generates automatically SysClk as close as possible to 32kHz or 50kHz depending on the basic  
frequency selected. This clock is used by the 15 stages prescaler that generated clock for the peripherals.  
For a full software compatibility with the EM6680 and EM6681, the division factor of the RC clock can be fix by metal option. It  
means that it is not necessary to set the RC frequency by software. To get a good frequency stability over the supply in  
low voltage it is possible, by metal option, to select a 128kHz (or 200kHz) RC oscillator. In this case the division  
factor is fixed to 1 meaning that the CPU runs at 128kHz (or 200kHz) and SysClk at 32kHz (or 50kHz). It is not  
permitted to use the EM6682 at LV over 128kHz.  
Please note that Vddmin must be higher when working with higher frequencies – see figure 30.  
After POR the circuit always starts with the internal RC oscillator, but it can be switched to the external clock by setting the  
ExtCPUclkON bit in the register RegPresc. The external clock is input at PA[1] and must be in range from min. 10Khz to  
max. 1MHz. With this external frequency input all timing for peripherals change and the special 4 stage freq. divider must be  
adapted to best suit the applied external frequency to keep 32/50kHz System clock as close as possible. The system clock  
must be less than 64kHz. The external clock source must be a square wave with full amplitude from Vss to Vdd. See Table  
5.2.2 for advised special divisions depending on the external clock frequency.  
Switching from internal RC oscillator to External clock or back from External clock to RC oscillator is made without generating  
a glitch on the internal clock. Once the circuit is running on the external Clock one can disable the RC oscillator by setting the  
RCoscOff bit in RegSCntl2 to ‘1’.  
In sleep mode the oscillator is stopped. It can be stopped also by setting the RCoscOff bit. This bit can be set only if  
ExtClkOn was set before, indicating that the CPUck was switched from the internal RC oscillator to the external clock which  
MUST be present. If the External Clock stops without going into Sleep mode first the EM6682 can block and only POR can  
reset it.  
Figure 8 below shows the connection of the RC oscillator and external clock and generation of CPUclk and System clock =  
SysClk which is divided by the special 4 stage Freq. Divider if needed as described in 5.2 and prescaler described in 5.3.  
Figure 8. Clock source for CPU or system peripherals  
RC SYSTEM  
OscTrim[7:0]  
RegOscTrim1  
[3:0]  
RC oscilator  
512kHz – 800kHz  
Frequency  
divider  
Metal option  
or register  
selector  
Metal option  
or register  
selector  
RegOscTrim1  
[3:0]  
RegMFP1  
[2:0]  
MUX  
RegMFP1  
[3]  
CPUclk  
MUX  
External clock  
10kHz – 1MHz  
PAout[2]  
foutSel[1:0]  
PA[1]  
MUX  
PA[5]  
PA[2]  
Frequency  
divider  
ExtCPUclkON  
MUX  
Sout  
Automatic clock selection  
SysClk = 32kHz or 50kHz  
MUX  
PAout[2]  
ResSys  
Ck[14]  
MUX  
Peripherals  
PRESCALER  
LOW 15 stages divider  
SysClk  
11  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
5.2 Special 4 stage Frequency Divider  
If an internal RC clock or external frequency higher than 32 kHz or 50 kHz is selected, then the special 4 stage  
Frequency Divider must be used to select a frequency close to 32 kHz or 50 kHz for the SysClk - system clock used  
by the Prescaler. This operation is done automatically depending on RegMFP1[2:0].  
Separate external clock and RC clock for explanation.  
Table 5.2.1 Division factor to generate SysClk  
Ext. clock  
RC frequency  
RC frequency or External freq.  
MUST be divided by  
RegMFP1[2:0]  
Typical SysClk  
Min. typ.Max. [kHz]  
(1)base (2) base  
RegMFP1  
[3] = ‘0’  
RegNMF  
P1[3] =  
‘1’  
No Division to SysClk  
000  
10 – 32 – 50  
10 kHz – 50 kHz  
32  
50  
001  
010  
011  
100  
27.5 – 32 – 50  
27.5 – 32 – 50  
27.5 – 32 – 50  
10 – 32 – 62.5  
55 kHz – 100 kHz  
110 kHz – 200 kHz  
220 kHz – 400 kHz  
400 kHz – 1 MHz  
64  
100  
200  
400  
800  
Divided by 2  
Divided by 4  
Divided by 8  
Divided by 16  
128  
256  
512  
Table 5.2.1 CPU and System clock frequency selection. RegMFP1[3:0]  
RegMFP1[3] RegMFP1[2] RegMFP1[1] RegMFP1[0] CPU clock frequency  
Opt[7] Opt[6] Opt[5] Opt[4]  
System clock frequency Unit  
0
0
0
0
32  
64  
128  
256  
512  
50  
100  
200  
400  
800  
32  
32  
32  
32  
32  
50  
50  
50  
50  
50  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
0
0
0
0
1
1
1
1
1
0
0
0
1
0
0
0
0
1
0
1
1
0
0
0
1
1
0
1
0
1
0
0
1
0
1
0
The RC oscillator can be trimmed in production on 8bits. The registers RegOscTrim1[3:0] and RegOscTrim2[3:0] are loaded  
with the trimming value at each reset. It is possible to change this value by software at any time.  
RC trimming registers  
RegOscTrim1[3]  
RegOscTrim1[2]  
RegOscTrim1[1]  
RegOscTrim1[0]  
RegOscTrim2[3]  
RegOscTrim2[2]  
RegOscTrim2[1]  
RegOscTrim2[0]  
8bits trimming word  
RegOscTrim[7] (MSB)  
RegOscTrim[7]  
RegOscTrim[7]  
RegOscTrim[7]  
RegOscTrim[7]  
RegOscTrim[7]  
RegOscTrim[7]  
RegOscTrim[7] (LSB)  
12  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
5.3 Prescaler  
The prescaler consists of a fifteen elements divider chain which delivers clock signals for the peripheral circuits such as  
timer/counter, debouncer and edge detectors, as well as generating prescaler interrupts. The input to the prescaler is the  
system clock signal closest to 32 kHz or 50 kHz which comes from the RC oscillator or external clock as divided by the  
preceding divider. Power on initializes the prescaler to Hex(0001).  
Table 5.3.1 Prescaler Clock Name Definition  
32 KHz  
SysClk  
50 KHz  
SysClk  
32 KHz  
SysClk  
128 Hz  
64 Hz  
32 Hz  
16 Hz  
8 Hz  
4 Hz  
2 Hz  
1 Hz  
50 KHz  
SysClk  
195 Hz  
97 Hz  
49 Hz  
24 Hz  
12 Hz  
6 Hz  
Function  
Name  
Function  
Name  
System clock  
System clock / 2  
System clock / 4  
System clock / 8  
System clock/ 16  
System clock / 32  
System clock / 64  
System clock / 128  
Ck[16]  
Ck[15]  
Ck[14]  
Ck[13]  
Ck[12]  
Ck[11]  
Ck[10]  
ck [9]  
32768 Hz  
16384 Hz  
8192 Hz  
4096 Hz  
2048 Hz  
1024 Hz  
512 Hz  
50000 Hz  
25000 Hz  
12500 Hz  
6250 Hz  
3125 Hz  
1562 Hz  
781 Hz  
System clock / 256  
System clock / 512  
System clock / 1024  
System clock / 2048  
System clock / 4096  
System clock / 8192  
System clock / 16384  
System clock / 32768  
Ck[8]  
Ck[7]  
Ck[6]  
Ck[5]  
Ck[4]  
Ck[3]  
Ck[2]  
Ck[1]  
3 Hz  
1.5 Hz  
256 Hz  
390 Hz  
Figure 9. Prescaler Frequency Timing  
Prescaler Reset  
SysClk = System clock Ck[16]  
Ck[15]  
Ck[14]  
Ck[13]  
Horizontal Scale change  
Ck[2]  
Ck[1]  
First positive edge of 1 Hz clock Ck[1] is 1 sec after the falling reset edge  
Table 5.3.2 Control of Prescaler Register RegPresc  
Bit  
3
2
Name  
ExtCPUclkON  
ResPresc  
Reset  
p
0
R/W  
R/W  
R/W  
Description  
Ext. Clock selection instead of RCosc.  
Write Reset prescaler  
1 Æ Reset the divider chain from Ck[14] to Ck[2], sets Ck[1]. 0 Æ  
No action. The Read value is always '0'  
1
0
PrIntSel  
DebSel  
0
0
R/W  
R/W  
Interrupt select. 0 Æ Interrupt from Ck[4] (typ. 8/12 Hz)  
1 Æ Interrupt from Ck[7] (typ. 64/97 Hz)  
Debounce clock select. 0 Æ Debouncer with Ck[8]  
1 Æ Debouncer with Ck[11] or Ck[14]  
With DebSel = 1 one may choose either the Ck[11] or Ck[14] debouncer frequency by selecting the corresponding metal mask  
option or by register RegMFP0 Opt[3] when this register is at ‘1’, the debouncer use Ck[14]. Relative to 32kHz the  
corresponding max. debouncer times are then 2 ms or 0.25 ms. For the metal mask selection refer to chapter 14.1.3  
Switching the PrIntSel may generate an interrupt request. Avoid it with MaskIRQ64/8 = 0 selection during the switching  
operation.  
The prescaler contains 2 interrupt sources:  
- IRQ64/8 ; this is Ck[7] or Ck[4] positive edge interrupt, the selection is depending on bit PrIntSel.  
- IRQHz1 ; this is Ck[1] positive edge interrupt  
There is no interrupt generation on reset.  
The first IRQHz1 Interrupt occurs typ. 1 sec (if SysClk = 32kHz) after reset. (0.65 sec if SysClk is 50kHz).  
NOTE: If not written explicitly all timing in peripherals is calculated for 32 kHz System Clock !  
13  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6. Input and Output port A  
The EM6682 has:  
- one 4-bit input/output port ( port A[3:0] )  
- one 1 bit input port. ( port PA[4] )  
- one optional 1 bit input/output ( port PA[5] ) available only in die form or SO14  
Pull-up and Pull-down resistors can be added to all these ports with metal and/or register options.  
6.1 Input / Output Port Overview  
Table 6.1.1 Input and Output port overview  
PA[0]  
1
PA[1]  
PA[2]  
3
PA[3]  
PA[4]  
PA[5]*  
NC*  
I/O  
Pin in 8pin package  
General I/O  
2
I/O  
4
I/O  
6
I
I/O  
I/O  
Serial interface  
--  
--  
Sin I  
yes* I  
yes  
--  
Sclk I/O  
--  
Sout O  
--  
Rdy/CS O  
yes* I  
yes  
WakeUp on change  
Softw. pullUp/Down  
yes* I  
yes  
yes  
yes* I  
yes  
--  
yes  
--  
yes  
--  
Metal option & Softw.  
pullUp/Down  
--  
Timer input  
--  
yes* I  
yes* I  
--  
--  
--  
yes* I  
yes* I  
--  
yes I  
yes* I  
yes* I  
yes* I  
--  
yes* I  
yes* I  
yes* I  
yes I  
yes* I  
--  
Irq debounce & edge select.  
CPU soft. variable input  
Analogue compare Input  
External reset input  
--  
--  
--  
--  
--  
--  
--  
--  
--  
--  
yes* I  
--  
External CPU clock input  
PWM timer out  
--  
--  
--  
yes I  
yes O  
--  
--  
--  
--  
--  
yes O  
--  
freq. Output (RC, 2kHz, 1Hz)  
CPU reset condition  
--  
--  
yes* O  
yes O  
yes* O  
--  
--  
--  
--  
--  
NC* – Pad PA[5] is Not Connected in 8-pin package, available only in die form or SO14  
Yes* ; The function is software selectable on one of PA[0], PA[5] or PA[3], PA[4], depending on the IrqPA[0l/5h]  
and IrqPA[3l/4h] settings.  
As shown in Figure 10, Logic for the Wake up on change reset which is possible only from Sleep mode, Debounce and IRQ  
function on Rising or falling edge are implemented only twice but can be attached and configured by registers to 4 different  
pads when used as inputs.  
Ports PA[0] and PA[5] can be configured to have wake up on Change, and debounced or non-debounced IRQ on the falling  
or rising edge. The same function is available on ports PA[3] or PA[4] which in addition can be dedicated to input reset .  
Registers RegPACntl1 and RegPACntl2 make this selection.  
Table 6.1.2 Register RegPACntl1  
Bit  
3
2
1
0
Name  
POR  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
DebounceNoPA[3/4]  
DebounceNoPA[0/5]  
EdgeFallingPA[3/4]  
EdgeFallingPA[0/5]  
0
0
0
0
Debounce on when Low for PA[3/4] input  
Debounce on when Low for PA[0/5] input  
IRQ edge selector for interrupt from PA[3/4] input  
IRQ edge selector for interrupt from PA[0/5] input  
* Default is debouncer On and Rising edge for IRQ  
Table 6.1.3 Register RegPACntl2  
Bit  
3
2
1
0
Name  
POR  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
WUchEnPA[3/4]  
WUchEnPA[0/5]  
IrqPA[3l/4h]  
0
0
0
0
Wake/Up on change EN on PA[3] or PA[4]  
Wake/Up on change EN on PA[0] or PA[5]  
PA[3] if Low / PA[4] if High for IRQ source  
PA[0] if Low / PA[5] if High for IRQ source  
IrqPA[0l/5h]  
* Default: No wake Up on change and IRQ source, or reset and timer input, would be PA[3], PA[0]  
14  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6.2 PortA as Input and its Multiplexing  
The EM6682 can have up to 5 (6* in Die form) 1-bit general purpose CMOS input ports. The port A input can be read at any  
time, pull-up or pull-down resistors can be chosen by software and metal options for PA[3:0] and PA[5] if available.  
PA[4] has pull-up or pull-down resistor selectable by metal option or RegMFP0[0] (pull-down if 0, pull-up if 1).  
Figure 10 explains how the inputs are treated with control signals and how they are distributed to different peripherals and the  
CPU. This is also listed in Table 6.1.1 Input and Output ports overview.  
Figure 10. EM6682 Multiplexed Inputs diagram  
PA[4]  
PA[1]  
extVcheck  
to SVLD Logic  
Input to peripherals is blocked if used for SVLD comparator input  
extVcheck  
TimCk0  
TimCk7  
to Timer / Event  
Counter  
Qdeb  
CkDeb  
Q
I0  
I1  
Debounce  
Serial Clock Input  
Serial Data Input  
PA[1]  
PA[0]  
Z
to Serial Interface  
QB  
S
I0  
PA[0]  
PA[5]  
debouncerYesPA[0/5]  
WakeUp on change  
Z
EdgeFallingPA[0/5]  
WUchEnPA[0/5]  
I1  
S
uPVar[1]  
irqPA[0l/5h]  
In  
to CPU  
Sleep  
Out  
uPVar[2]  
RdRegPA0  
PA[3:0]  
Internal Data Bus DB [3:0]  
RdRegPA1  
PA[5:4]  
Qdeb  
Q
CkDeb  
IRQPA[0/5]  
I0  
to Interrupt Logic  
Debounce  
Z
IRQPA[3/4]  
I0  
PA[3]  
PA[4]  
QB  
I1  
S
Z
debouncerYesPA[3/4]  
I1  
EdgeFallingPA[3/4]  
S
irqPA[3l/4h]  
Sleep  
WakeUp on change  
In  
Out  
WakeUp on Change  
to Reset Logic  
WUchEnPA[3/4]  
InResAH  
PA3/4_reset  
ResFlt  
Small Analogue Filter  
In  
ResDis  
Out  
PA3/4resln  
All signals enter bottom, left, top and output on the right side of the boxes  
Some Input functions are explained below.  
6.2.1 Debouncer  
The debouncer is clocked with one of the possible debounce clocks (Ck[14] / Ck[11] / Ck[8] and can be used only in Active or  
StandBy mode (as only in these two modes clocks are running). The input signal has to be stable on two successive  
debouncer rising clock edges and must not change between them.  
Figure 11. Debouncer function  
DEBOUNCER function (signal must be stable during two Deb Clk rising edges)  
15  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6.2.2 IRQ on Port A  
For interrupt request generation (IRQ) one can choose direct or debounced input and rising or falling edge IRQ triggering.  
With the debouncer selected debounceYesPA[x/y], the input must be stable for two rising edges of the selected debouncer  
clock CkDeb. This means a worst case of 16ms(default) or 2ms (0.25ms by metal mask) with a system clock of 32kHz.  
Either a rising or falling edge on the port A inputs - with or without debouncing - can generate an interrupt request. This  
selection is done by edgeFallingPA[x/y].  
PortA can generate max 2 different interrupt requests. Each has its own interrupt mask bit in the RegIRQMask1 register.  
When an IRQ occurs, inspection of the RegIRQ1 and RegIRQ2 registers allow the interrupt to be identified and treated.  
At power on or after any reset the RegIRQMask1 is set to 0, thus disabling any input interrupt. A new interrupt is only stored  
with the next active edge after the corresponding interrupt mask is cleared. See also the interrupt chapter 9.  
It is recommended to mask the port A IRQ’s while one changes the selected IRQ edge. Otherwise one may generate an  
unwanted IRQ (Software IRQ). I.e. if a bit PA[0/5] is ‘0’ then changing from positive to negative edge selection on PA[0/5] will  
immediately trigger an IRQPA[0/5] if the IRQ was not masked.  
6.2.3 Pull-up/down  
On Each terminal of PA[3:0] and PA[5] an internal pull-up (metal mask MAPU[n]) and pull-down (metal mask MAPD[n])  
resistor can be connected per metal mask option. By default the two resistors are in place. In this case one can choose by  
software to have either a pull-up, a pull-down or no resistor. See below for better understanding.  
With the mask option in place, the default pull value is Pull-Down (initialized by POR). Once the software up and running this  
may be changed to pull-up if needed.  
If the port is used also as output please check Chapter 6.3.1 CMOS / Nch. Open Drain Output.  
PA[4] can have only strong Pull-up or Pull-down resistor which can be removed by software in RegSleepCR register bit  
NoPull[4].  
Pull up or down direction is given by the metal mask selection OPT[0] in the register RegMFP0.  
For Metal mask selection and available resistor values refer to chapter 15.  
Pull-down ON:  
MAPD[n] must be in place ,  
with n=0, 1, 2, 3, 5  
AND bit NoPdPA[n] must be ‘0’ .  
Pull-down OFF: MAPD[n] is not in place,  
OR if MAPD[n] is in place NoPdPA[n] = ‘1’ cuts off the pull-down.  
OR selecting NchOpDrPA[n] = ‘1’ cuts off the pull-down.  
Pull-up ON * :  
Pull-up OFF* :  
MAPU[n] must be in place,  
AND bit NchOpDrPA[n] must be ‘1’ ,  
AND (bit OEnPA[n] = ‘0’ (input mode) OR if OEnPA[n] = ‘1’ while PAData[n] = 1. )  
MAPU[n] is not in place,  
OR if MAPU[n] is in place NchOpDrPA[n] = ‘0’ cuts off the pull-up,  
OR if MAPU[n] is in place and if NchOpDrPA[n] = ‘1’ then PAData[n] = 0 cuts off the pull-up.  
Never pull-up and pull-down can be active at the same time.  
Any port A input must never be left open (high impedance state, not connected, etc. ) unless the internal pull resistor is in  
place (mask option) and switched on (register selection). Any open input may draw a significant cross current which adds to  
the total chip consumption.  
Note: The mask settings MAPU[n]) and MAPD[n] do not define the default pull direction, but the pull possibilities. It is the  
software which defines the pull direction (pull-up or pull-down). The only exception is on PA[4] where the direction can be  
forced by metal option or by register RegMFP0[0]. If metal option solution is chosen, the selected pull direction will always be  
valid unless the software disconnects the pull resistor.  
16  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6.2.4 Software test variables  
As shown in Figure 10 PA[0/5] or PA[3/4] are also used as input conditions for conditional software branches. These CPU  
inputs are always debounced and non-inverted.  
debounced PA[0/5] is connected to CPU TestVar1  
debounced PA[3/4] is connected to CPU TestVar2  
CPU TestVar3 is connected to VSS and can not be used in Software.  
6.2.5 Port A for 10-Bit Counter  
The PA[1] and PA[3/4] inputs can be used as the clock input terminal for the 10 bit counter in "event count" mode.  
PA[1] is direct input only for timer clock source #0 ( no debouncer is possible).  
PA[3/4] is as for the IRQ generation debounced or input directly and non-inverted or inverted. This is defined with the  
register RegPaCntl1. Debouncing the input is always recommended.  
6.2.6 Port A Wake-Up on change  
In sleep mode if configured port PA[0/5] or PA[3/4] inputs are continuously monitored to wake up on change, which will  
immediately wake up the EM6682.  
6.2.7 Port A for Serial Interface  
When the serial interface is used in slave mode, PA[0] is used for serial data input and PA[1] for the serial clock.  
6.2.8 Port A for External Reset  
In Active and Stand-by (Halt) mode a positive debounced pulse on PA[3/4] can be the source of a reset when PA[3/4]ResIn  
and InResAH are set at ‘1’. When IrqPA[3l/4h] is ‘0’ than PA[3] is selected for Reset source and when IrqPA[3l/4h] is ‘1’  
than PA[4] is selected for Reset source.  
6.2.9 Port PA[4] as Comparator Input  
When using the PA[4] as an input to the internal SVLD comparator NO pull-up resistor should be connected on this terminal.  
Otherwise the device may draw excessive current.  
First PA[4] pull-up/down resistor should be disconnected by software and the ExtVcheck bit can be set to ‘1’. This dedicates  
PA[4] as SVLD resistor divider input to the SVLD comparator.  
At this point the measurements respect the same timing as any other SVLD measurements as explained in Chapter Supply  
Voltage Detector. It can also generate an IRQ if the input voltage is lower as Comparator level. Thus configured a direct read  
of PA[4] will result in reading ‘0’.  
6.2.10 Reset and Sleep on Port A  
During circuit initialization, all Control registers specifically marked to be initialized by POR are reset. PA[5] and  
PA[3:0] are input mode with pulldown resistors (if mask present). PA[4] is in input mode , pull-up or pulldown  
resistor is defined by the metal mask settings.  
During Sleep mode, the circuit retains its register values. As such the PA configurations remain active also during  
Sleep.  
Sleep mode is cancelled with any Reset. However the Reset State does not reset the registers bits which are  
specifically marked to be initialized by POR only. (Pull, Nch Open drain, Freq out, etc configurations).  
Sleep mode is cancelled with a Reset, all system register which are not specifically initialized by POR only will be  
initialized at this point.  
6.2.11 Port A Blocked Inputs  
In sleep mode if PortA inputs are not used and prepared for Wake-Up on Change or Reset these inputs are blocked. At that  
time port can be undefined from external and this will not generate an over-consumption.  
PA[0] : Blocked if Sleep bit set and no IRQ or Wake-up defined on this input  
PA[1] : Blocked if Sleep bit set  
PA[2] : Blocked if Sleep bit set  
PA[3] : Blocked if Sleep bit set and no IRQ or Wake-up defined on this input  
PA[4] : Blocked if Sleep bit set and no IRQ or Wake-up defined on this input  
Also blocked if External VLD check enabled  
PA[5] : Never blocked  
17  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6.3 PortA as Output and its Multiplexing  
The EM6682 can have up to 4 (5 in Die form or 14-pin package) bit general purpose CMOS or N-channel Open Drain Output  
ports. Table 6.1.1 Input and Output ports overview shows all the possibilities. Figure 12 shows the output architecture and  
possible output signals together with software controlled pull-up and pull-down resistors which are disconnected when the port  
is an output and in a defined state, to preclude additional consumption.  
The output multiplexing registers are RegPACntl3 and RegPACntl4.  
Figure 12. Port A Architecture (Outputs)  
Pull-down Register  
(No-PdpA[n])  
Open Drain Control  
Register (NchOpPA[n])  
OD[n]  
Pd[n]  
Vdd  
Output Enable Register  
(OEnPA[n])  
Active Pull-up  
in Nch. Open  
Drain Mode  
OE[n]  
Read Port A  
Port A  
Input / Output  
Control Logic  
Vdd  
Metal  
Option  
NAPD[n]  
Port A Data Register  
(Paout[n])  
Output Mux Registers  
mux[n]  
PA[5,3:0]  
out[n]  
Metal  
Option  
NAPD[n]  
Multiplexed Outputs from:  
- Serial Interface  
- PWM, frequency out.  
- System Reset  
Active  
Pull-up  
Read Port A  
Block Input (Low)  
6.3.1 CMOS / Nch. Open Drain Output  
The port A outputs can be configured as either CMOS or Nch. open drain outputs. In CMOS both logic ‘1’ and ‘0’ are driven  
out on the terminal. In Nch. Open Drain only the logic ‘0’ is driven on the terminal, the logic ‘1’ value is defined by the internal  
pull-up resistor (if implemented), or high impedance.  
Figure 13. CMOS or Nch. Open Drain Outputs  
CMOS Output  
Nchannel Open Drain Output  
Vdd  
Active Pull-up  
for High State  
Daout[n]  
Daout[n]  
PA[5,3:0]  
I/O Terminal  
PA[5,3:0]  
Mux  
Mux  
Tri-State Output  
Buffer : High  
Impedance for  
Data = ‘1’  
I/O Terminal  
Other Outputs  
Other Outputs  
Tri-State Output  
Buffer is Closed  
Out Mux Control  
Out Mux Control  
NOTE: State of I/O pads may not be defined until Vreg reaches typ. 0.8V and Power-On-Reset logic  
supplied by Vreg clears them to Inputs.  
This time depends on how fast capacitor on Vreg is charged and typ. it can be in range of couple of ms.  
18  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
6.4 Port A registers  
The two Control registers for Input control, RegPACntl1 and RegPACntl2, were already shown in chapter 6; Input / Output  
Ports Overview.  
Table 6.4.1 Register RegPA0  
Bit  
3
2
1
0
Name  
Reset  
R/W  
Description  
PAData[3]  
PAData[2]  
PAData[1]  
PAData[0]  
0
0
0
0
R* /W  
R* /W  
R* /W  
R* /W  
PA[3] input and PAout[3] output  
PA[2] input and PAout[2] output  
PA[1] input and PAout[1] output  
PA[0] input and PAout[0] output  
* Direct read on Port A terminals  
Table 6.4.2 Register RegPa0OE  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
OEnPA[3]  
OEnPA[2]  
OEnPA[1]  
OEnPA[0]  
0
0 P**  
0
I/O control for PA[3] , output when OEnPA[3] = Hi  
I/O control for PA[2] , output when OEnPA[2] = Hi  
I/O control for PA[1] , output when OEnPA[1] = Hi  
I/O control for PA[0] , output when OEnPA[0] = Hi  
0
P** On Reset PA[2] is forced to output if ( PA[0]=’0’, PA[1]=’1’, PA[4]=’1’, Sout/RstPA[2]=’1’ and  
freqOutPA[2]=’1’ ) until System reset is finished. Refer also to table Error! Reference source not  
found..  
After Reset is finished and circuit starts to execute instructions PA[2] becomes tri-state input with pull-  
down.  
Bit OEnPA[2] is reset to ‘0’ with every Reset.  
Table 6.4.3 Register Pa0noPDown  
Bit  
3
2
1
0
Name  
POR*  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
NoPdPA[3]  
NoPdPA[2]  
NoPdPA[1]  
NoPdPA[0]  
0
0
0
0
No pull-down on PA[3]  
No pull-down on PA[2]  
No pull-down on PA[1]  
No pull-down on PA[0]  
POR* Reset only with Power On Reset  
Table 6.4.4 Register Pa0NchOpenDr  
Bit  
3
2
1
0
Name  
POR*  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
NchOpDrPA[3]  
NchOpDrPA[2]  
NchOpDrPA[1]  
NchOpDrPA[0]  
0
0
0
0
Nch. Open Drain on PA[3]  
Nch. Open Drain on PA[2]  
Nch. Open Drain on PA[1]  
Nch. Open Drain on PA[0]  
* Reset only with Power On Reset, Default "0" is: CMOS on PA[3..0]  
Table 6.4.5 Register RegPA1  
Bit  
3
2
1
0
Name  
NchOpDrPA[5]  
OEnPA[5]  
PAData[5]  
PAData[4]*  
Reset  
p**  
0
0
0
R/W  
R* /W  
R* /W  
R* /W  
R*  
Description  
Nch. Open Drain on PA[5]  
I/O control for PA[5] , output when OEnPA[5] = Hi  
PA[5] input and PAout[5] output  
PA[4] input  
* Direct read on Port A terminals p** reset to ‘0’ by POR only  
Table 6.4.6 Register RegFreqRst  
Bit  
3
2
1
0
Name  
POR  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
InResAH  
PA3/4resIn  
foutSel[1]  
foutSel[0]  
p
p
x
x
Input reset On in Active and StandBy mode  
PA3/4 dedicated for Input reset when set at ‘1’  
Output Frequency selection (foutSel[1:0])  
(11) CPUClk, (10) SysClk, (01) 2kHz, (00) 1Hz  
Interrupt PortA Control bits MaskIRQPA[0/5] and MaskIRQPA[3/4] used to enable (Mask) the Interrupt ReQuest IRQ from  
PortA are in register RegIRQMask1.  
Interrupt status bits IRQPA[0/5] and IRQPA[3/4] used to signal the Interrupt from PortA are in register RegIRQ1. They are  
both shown in Chapter Interrupt Controller.  
Note: CPUClk = RCClk if no external clock used. In case of external clock, CPUClk is equal to the PA[1] input clock.  
19  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Output multiplexing registers are shown below.  
Table 6.4.7 Register RegPACntl3  
Bit  
3
2
1
0
Name  
POR  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
SerialStPA[3]  
SerialCkPA[1]  
PWMoutPA[1]  
PWMoutPA[0]  
0
0
0
0
Output selection for PA[3] when output  
Output selection for PA[1] when output  
Output selection for PA[1] when output  
Output selection for PA[0] when output  
Table 6.4.8 Register RegPACntl4  
Bit  
3
2
1
0
Name  
POR  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
No pull-down on PA[5]  
Output selection for PA[5] when output  
Output selection for PA[2] when output  
Output selection for PA[2] when output  
NoPdPA[5]  
freqOutPA[5]  
Sout/rstPA[2]  
freqOutPA[2]  
0
0
1
1
Table 6.4.9 PA[0] I/O status depending on its RegPACntl3 and RegPa0OE registers  
OEnPA[0]  
PWMoutPA[0]  
Description of PA[0] terminal  
Input  
PAout[0] general Output  
PWM Output from the 10-Bit Counter  
0
1
1
X
0
1
Table 6.4.10 PA[1] I/O status depending on its RegPACntl3 and RegPa0OE registers  
OEnPA[1]  
SerialCkPA[1]  
PWMoutPA[1]  
Description of PA[1] terminal  
Input  
PAout[1] general Output  
PWM Output from the 10-Bit Counter  
Sclk (Serial interface clock output)  
0
1
1
1
X
0
0
1
X
0
1
X
Table 6.4.11 PA[2] I/O status depending on its RegPACntl4 and RegPa0OE registers  
OEnPA[2]  
Sout/rstPA[2]  
freqOutPA[2]  
Description of PA[2] terminal  
0
1
1
1
X
0
0
1
X
0
1
0
Input  
PAout[2] general Output  
Freq. Output (CPUClk, SysClk, 2kHz, 1Hz)  
Sout (Serial interface data output)  
High level ‘1’ during Reset state output  
8kHz frequency output while out of reset state  
Low level ‘0’ output during sleep  
1
1
1
0
PA[0] = ‘1’  
PA[4] = ‘1’  
PA[1] = ‘0’  
Output: high level during Reset state  
Input: out of reset state and during sleep  
1
1
Frequency output is selected in 6.4.6 Register RegFreqRst  
Table 6.4.12 PA[3] I/O status depending on its RegPACntl3 and RegPa0OE registers  
OEnPA[3]  
SerialStPA[3]  
Description of PA[3] terminal  
Input  
PAout[3] general Output  
Rdy/CS (Serial interface status output)  
0
1
1
X
0
1
Table 6.4.13 PA[5] I/O status depending on its RegPACntl4 and RegPA1 registers  
OEnPA[5]  
freqOutPA[5]  
Description of PA[5] terminal  
Input  
PAout[5] general Output  
Freq. Output (CPUClk, SysClk, 2kHz, 1Hz)  
0
1
1
X
0
1
Frequency output is selected in 6.4.6 Register  
Note: CPUClk = RCClk if no external clock used. In case of external clock, CPUClk is equal to the PA[1] input clock.  
20  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
7. Serial Port  
The EM6682 contains a simple, half duplex three wire synchronous type serial interface., which can be used to program or  
read an external EEPROM, ADC, ... etc. Its I/O are multiplexed on Port A.  
For data reception, a shift-register converts the serial input data on the SIN(PA[0]) terminal to a parallel format, which is  
subsequently read by the CPU in registers RegSDataL and RegSDataH for low and high nibble. To transmit data, the CPU  
loads data into the shift register, which then serializes it on the SOUT(PA[2]) terminal. It is possible for the shift register to  
simultaneously shift data out on the SOUT terminal and shift data on the SIN terminal. In Master mode, the shifting clock is  
supplied internally by the Prescaler : one of three prescaler frequencies are available, Ck[16] or external clock (metal option to  
select between, Ck[15] or Ck[14]. In Slave mode, the shifting clock is supplied externally on the SCLKIn(PA[1]) terminal. In  
either mode, it is possible to program : the shifting edge, shift MSB first or LSB first and direct shift output. All these selection  
are done in register RegSCntl1 and RegSCntl2.  
Figure 14. Serial Interface Architecture  
Serial Master Clock Output  
SCLKout to SCLK PA[1]  
Serial Input Data  
Internal Master Clock  
Source (ck[16,15,14])  
from SIN PA[0]  
8-bit Shift Register  
Serial Output Data to  
SOUT PA[2]  
Mux  
Shift Ck  
Shift complete  
(8th Shift Clock)  
IRQSerial  
External Slave Clock Source  
(SCLKin from SCLK PA[1]  
Write Tx Read Tx  
Clock  
Enable  
Status to  
CS/Ready PA[3]  
Mode  
Direct  
Shift  
MSB;LSB  
First  
Start  
Control  
&
Status  
Status  
Status Registers  
ResetStart  
Control Logic  
The PA[3..0] terminal configuration is shown in Figure 10 and 12. When the Serial Interface is used then care should be taken  
not to use inputs and outputs needed for Serial Interface for other peripherals !:  
PA[0] {SIN} must be dedicated to Serial input if needed and can not be used for IRQ, Software Variable jumps or Output. It  
can be still used for Wake-Up on Change  
PA[1] {SCLK} is an output for Master mode {SCLKOut} and an input for Slave mode {SCLKIn}. But different functions can  
be Switched On/Off with care as they are needed.  
PA[2] {SOUT} must be dedicated to Serial Data Output if needed and can not be used for Analogue input, or other Output.  
PA[3] {CS / Ready} if used for serial Interface status output. When used for Serial Interface it can not be used for IRQ,  
Software Variable jumps or Output. It can be still used for Wake-Up on Change.  
Note:  
Before using the serial interface, the corresponding circuit terminals must be configured accordingly.  
21  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
7.1 General Functional Description  
After power on or after any reset the serial interface is in serial slave mode with Start and Status set to 0, LSB first, negative  
shift edge and all outputs are in high impedance state.  
When the Start bit is set, the shift operation is enabled and the serial interface is ready to transmit or receive data, eight shift  
operations are performed: 8 serial data values are read from the data input terminal into the shift register and the previous  
loaded 8-bits are send out via the data output terminal. After the eight shift operation, an interrupt is generated, and the Start  
bit is reset.  
Parallel to serial conversion procedure ( master mode example ).  
Write to RegSCntl1 serial control (clock freq. in master mode, edge and MSB/LSB select).  
Write to RegSDataL and RegSDataH (shift out data values).  
Write to RegSCntl2 (Start=1, mode select, status).  
Æ Starts the shift out  
After the eighth clock an interrupt is generated, Start becomes low. Then, interrupt handling  
Serial to parallel conversion procedure (slave mode example).  
Write to RegSCntl1 (slave mode, edge and MSB/LSB select).  
Write to RegSCntl2 (Start=1, mode select, status).  
After eight serial clocks an interrupt is generated, Start becomes low.  
Interrupt handling.  
Shift register RegSDataL and RegSDataH read.  
A new shift operation can be authorized.  
7.2 Detailed Functional Description  
Master or Slave mode is selected in the control register RegSCntl1.  
In Slave mode, the serial clock comes from an external device and is input via the PA[1] terminal as a synchronous clock  
(SCLKIn) to the serial interface. The serial clock is ignored as long as the Start bit is not set. After setting Start, only the eight  
following active edges of the serial clock input PA[1] are used to shift the serial data in and out. After eight serial clock edges  
the Start bit is reset. The PA[3] terminal is a copy of the (Start OR Status) bit values, it can be used to indicate to the  
external master, that the interface is ready to operate or it can be used as a chip select signal in case of an external slave.  
In Master mode, the synchronous serial clock is generated internally from the system clock. The frequency is selected from  
one out of three sources ( MS0 and MS1 bits in RegSCntl1) . The serial shifting clock is only generated during Start = high  
and is output to the SCLK terminal as the Master Clock (SCLKOut). When Start is low, the serial clock output on PA[1] is 0.  
An interrupt request IRQSerial is generated after the eight shift operations are done. This signal is set by the last negative  
edge of the serial interface clock on PA[1] (master or slave mode) and is reset to 0 by the next write of Start or by any reset.  
This interrupt can be masked with register RegIRQMask2. For more details about the interrupt handling see chapter 11.  
Serial data input on PA[0] is sampled by the positive or negative serial shifting clock edge, as selected by the Control Register  
POSnNeg bit. Serial data input is shifted in LSB first or MSB first, as selected by the Control Register MSBnLSB bit.  
22  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
7.2.1 Output Modes  
Serial data output is given out in two different ways. Refer also to Figures 15 and 16.  
Figure 15. Direct or Re-Synchronized Output  
Direct Shift Out  
Re-Synchronised Shift Out  
OM[0] = 0 :  
The serial output data is generated with the selected shift register clock (POSnNeg). The first data bit is available directly after  
the Start bit is set.  
OM[0] = 1 :  
The serial output data is re-synchronized by the positive serial interface clock edge, independent of the selected  
clock shifting edge. The first data bit is available on the first positive serial interface clock edge after Start=‘1’.  
Table 7.2.1 Output Mode Selection in RegSCntl2  
OM[0]  
Output mode  
Description  
0
1
Serial-Direct  
Direct shift pos. or neg. edge data out  
Re-synchronized positive edge data shift out  
Serial-Synchronized  
Figure 16. Shift Operation and IRQ Generation  
Note : A write operation in the control registers or in the data registers while Start is high will change internal values and may  
cause an error condition. The user must take care of the serial interface status before writing internal registers. In order to  
read the correct values on the data registers, the shift operation must be halted during the read accesses.  
23  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Figure 17. Example of Basic Serial Port Connections  
Master Mode  
Slave Mode  
EM6682  
External  
EM6682  
External  
PA[1] ; SCLKOut  
PA[2] ; SOUT  
PA[0] ; SIN  
Serial Clock In  
Serial Data In  
Serial Data Out  
Status Output  
CS  
PA[1] ; SCLKIn  
PA[2] ; SOUT  
PA[0] ; SIN  
Serial Clock In  
Serial Data In  
Serial Data Out  
Ready  
Ready  
PA[3] ; Status  
PA[3] ; Status  
optional connection  
7.3 Serial Interface Registers  
Table 7.3.1 Register RegSCntl1  
Bit  
3
2
1
0
Name  
MS1  
MS0  
POSnNeg  
MSBnLSB  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
Frequency selection  
Frequency selection  
0
0
0
0
Positive or negative clock edge selection for shift operation  
Shift MSB or LSB value first (0=LSB first)  
Default "0" is: Slave mode external clock, negative edge, LSB first  
Table 7.3.2 Frequency and Master Slave Mode Selection  
MS1  
MS0  
Description  
Slave mode: Clock from external  
Master mode: ck[14], System clock / 4  
Master mode: ck[15], System clock / 2  
Master mode: ck[16], System clock  
0
0
1
1
0
1
0
1
Table 7.3.3 Register RegSCntl2  
Bit  
3
2
1
0
Name  
Start  
Status  
RCoscOff  
OM[0]  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
Enabling the interface,  
Ready or Chip Select output on PA[3]  
RC oscillator off when set to ‘1’ and if ExtCPUclkON is ‘1’  
Direct shift output when ‘0’ ; Output re-synchronised when ‘1’  
0
0
0
0
Default "0" is: Interface disabled, status 0, direct shift output.  
Table 7.3.4 Register RegSDataL  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
SerDataL[3]  
SerDataL[2]  
SerDataL[1]  
SerDataL[0]  
0
0
0
0
Serial data low nibble  
Serial data low nibble  
Serial data low nibble  
Serial data low nibble  
Default "0" is: Data equal 0.  
Table 7.3.5 Register RegSDataH  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
SerDataH[3]  
SerDataH[2]  
SerDataH[1]  
SerDataH[0]  
0
0
0
0
Serial data high nibble  
Serial data high nibble  
Serial data high nibble  
Serial data high nibble  
Default "0" is: Data equal 0.  
24  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8. 10-bit Counter  
The EM6682 has a built-in universal cyclic counter. It can be configured as 10, 8, 6 or 4-bit counter. If 10-bits are selected we  
call that full bit counting, if 8, 6 or 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[1] (direct only) and PA[3/4] (direct or debounced). In this case the  
counter can be used as an event counter.  
The counter generates an interrupt request IRQCount0 every time it reaches 0 in down count mode or 3FF in up count mode.  
Another interrupt request IRQCntComp is generated in compare mode whenever the counter value matches the compare  
data register value. Each of this interrupt requests can be masked (default). See section 9 for more information about the  
interrupt handling.  
A 10-bit data register CReg[9:0] is used to initialize the counter at a specific value (load into Count[9:0]). This data register  
(CReg[9:0]) is also used to compare its value against Count[9:0] for equivalence.  
A Pulse-Width-Modulation signal (PWM) can be generated and output on port B terminal PA[0] or PA[1].A special metal option  
opt_LV_Bit0DontCare is implemented which makes the bit0 of the counter a don’t care bit. With this metal option in place  
the 10 bit counter becomes a 9 bit counter bit1 to bit9 and all PWM functions will be on either 9, 7, 5 or 3 bits. The counter bit0  
remains R/W but is not used for counting nor Compare functions. Refer also to 14.1.9.  
Figure 18. 10-bit Counter Block Diagram  
Comparator  
Up / Down Counter  
Data Registers  
Control Registers  
8.1 Full and Limited Bit Counting  
Table 8.1.1. Counter length selection  
In Full Bit Counting mode the counter uses its maximum of 10-  
bits length (default ). With the BitSel[1,0] bits in register  
RegCDataH one can lower the counter length, for IRQ  
generation, to 8, 6 or 4 bits. This means that actually the  
counter always uses all the 10-bits, but IRQCount0 generation  
is only performed on the number of selected bits. The unused  
counter bits may or may not be taken into account for the  
IRQComp generation depending on bit SelIntFull. Refer to  
chapter 8.4.  
BitSel[1] BitSel[0 ] counter length  
0
0
1
1
0
1
0
1
10-Bit  
8-Bit  
6-Bit  
4-Bit  
25  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8.2 Frequency Select and Up/Down Counting  
Eight (8) different input clocks can be selected to drive the Counter. The selection is done with bits CountFSel2…0 in register  
RegCCntl1. Six (6) of this input clocks are coming from the prescaler. The maximum prescaler clock frequency for the counter  
is half the system clock SysClk and the lowest is 1Hz typ. Therefore a complete counter roll over can take as much as 17.07  
minutes (1Hz clock, 10 bit length) or as little as 977 μs (Ck[15] typ 16.3kHz, 4 bit length). The IRQCount0, generated at each  
roll over, can be used for time bases, measurements length definitions, input polling, wake up from Halt mode, etc. The  
IRQCount0 and IRQComp are generated with the system clock Ck[16] rising edge. IRQCount0 condition in up count mode is  
: reaching 3FF if 10-bit counter length (or FF, 3F, F in 8, 6, 4-bit counter length). In down count mode the condition is reaching  
‘0’. The non-selected bits are ‘don’t care’. For IRQComp refer to section 8.4.  
The metal option CntF or the register RegMFP0 Opt[1] allows selecting the CPU clock divided by 2 which replace the external  
clock coming from Port A at selection 7 if Opt[1] = ‘1’.  
Note: The Prescaler and the Microprocessor clock’s are usually non-synchronous, therefore time bases generated are max.  
n, min. n-1 clock cycles long (n being the selected counter start value in count down mode). However the prescaler clock can  
be synchronized with µP commands using for instance the prescaler reset function.  
Figure 19. Counter Clock Timing  
Prescaler Frequencies or Debounced Port A Clocks  
System Clock  
Prescaler Clock  
Counting  
Counter IRQ’s  
Non Debounced Port A Clocks (System Clock Independent)  
System Clock  
Port A Clock  
Divided Clock  
Counting  
Counter IRQ’s  
The two remaining clock sources are coming from the PA[1] or PA[3/4] terminals. Refer to Figure 10 on page 15 for details.  
Input PA[1] can be only direct non-debounce input, second PA[3/4] can be either debounce (Ck[11] or Ck[8]) or direct input,  
the input polarity can also be chosen. The outputs for Timer clock inputs are named TimCk0 and TimCk7 respectively. For  
the debouncer and input polarity selection refer to chapter 6.  
In the case of port A input clock without debouncer, the counting clock frequency will be half the input clock on port A. The  
counter advances on every odd numbered port A negative edge ( divided clock is high level ). IRQCount0 and IRQComp will  
be generated on the rising PA[3/4] or PA[1] input clock edge. In this condition the EM6682 is able to count with a higher clock  
rate as the internal system clock (Hi-Frequency Input). Maximum port A input frequency is limited to 500kHz (@Vdd 1.5 V). If  
higher frequencies are needed, please contact EM Microelectronic’s.  
In both, up or down count (default) mode, the counter is cyclic. The counting direction is chosen in register RegCCntl1 bit  
Up/Down (default ‘0’ is down count). The counter increases or decreases its value with each positive clock edge of the  
selected input clock source. Start up synchronization is necessary because one can not always know the clock status when  
enabling the counter. With EvCount=0, the counter will only start on the next positive clock edge after a previously latched  
negative edge, while the Start bit was already set to ‘1’. This synchronization is done differently if event count mode (bit  
EvCount) is chosen. Refer also to Figure 20. Internal Clock Synchronization.  
26  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8.3 Event Counting  
The counter can be used in a special event count mode where a certain number of events (clocks) on the PA[1] (only non-  
debounced and only rising edge) or PA[3/4] input are counted. In this mode the counting will start directly on the next active  
clock edge on the selected port A input.  
Figure 20. Internal Clock Synchronization  
Ck  
Ck  
Start  
Ck  
Ck  
Start  
Start  
Start  
+ / - 1  
+ / - 1  
Count[9:0]  
+ / - 1  
Count[9:0]  
Count[9:0]  
Count[9:0]  
EvCount = 0  
EvCount = 0  
EvCount = 1  
EvCount = 1  
The Event Count mode is switched on by setting bit EvCount in the register RegCCntl2 to ‘1’. PA[3] or PA[4] input depending  
on IrqPA[3l/4h] bit in RegPaCntl1 can be inverted depending on edgeFallingPA[3/4] in register RegPaCntl1 and should be  
debounced. The debouncer is switched on with debounceNoPA[3/4] at ‘0’ in the same register. Its frequency depends on the  
bit DebSel from register RegPresc setting. Refer also to Figure 10 for PortA Inputs Function. As already said for other PA[1]  
input only possibility is to count rising non-debounced edges.  
A previously loaded register value (CReg[9:0]) can be compared against the actual counter value (Count[9:0]). If the two are  
matching (equality) then an interrupt (IRQComp) is generated. The compare function is switched on with the bit EnComp in  
the register RegCCntl2. With EnComp = 0 no IRQComp is generated. Starting the counter with the same value as the  
compare register is possible, no IRQ is generated on start. Full or Limited bit compare are possible, defined by bit SelIntFull  
in register RegSysCntl1.  
EnComp must be written after a load operation (Load = 1). Every load operation resets the bit EnComp.  
1. Full bit compare function.  
Bit SelIntFull is set to ‘1’. The function behaves as described above independent of the selected counter length. Limited bit  
counting together with full bit compare can be used to generate a certain amount of IRQCount0 interrupts until the counter  
generates the IRQComp interrupt. With PWMOn=‘1’ the counter would have automatically stopped after the IRQComp, with  
PWMOn=‘0’ it will continue until the software stops it. EnComp must be cleared before setting SelIntFull and before starting  
the counter again. Be careful, PWMoutPA[0] also redefines the port PA[0] or PWMoutPA[1] the PA[1] output data. (refer to  
section 0).  
The signal PWMOn is acombination of PWMOutPA[0], PWMOutPA[1], SerialCkPA[1]  
PWMOn = (PWMOutPA[0] OR PWMOutPA[1]) AND NOT(SeriaCktPA[1]))  
2. Limited bit compare  
With the bit SelIntFull set to ‘0’ (default) the compare function will only take as many bits into account as defined by the  
counter length selection BitSel[1:0] (see chapter 6.3).  
8.4 Pulse Width Modulation (PWM)  
The PWM generator uses the behavior of the Compare function (see above) so EnComp must be set to activate the PWM  
function.. At each Roll Over or Compare Match the PWM state - which is output on port PA[0] or PA[1] - will toggle. The start  
value on PA[0] or PA[1] is forced while EnComp is 0 the value is depending on the up or down count mode. Every counter  
value load operation resets the bit EnComp and therefore the PWM start value is reinstalled.  
One can output PWM signal to PA[0] or PA[1]. Setting PWMoutPA[0] to ‘1’ in register RegPaCntl3 routes the counter PWM  
output to PA[0]. Insure that PA[0] is set to output mode. Setting PWMoutPA[1] to ‘1’ in register RegPaCntl3 routes the  
counter PWM output to PA[1]. Insure that PA[1] is set to output mode. Refer to section 6.3 and 6.4 for the port A output setup.  
27  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
The PWM signal generation is independent of the limited or full bit compare selection bit SelIntFull. However if SelIntFull = 1  
(FULL) and the counter compare function is limited to lower than 10 bits one can generate a predefined number of output  
pulses. In this case, the number of output pulses is defined by the value of the unused counter bits. It will count from the start  
value until the IRQComp match.  
One must not use a compare value of hex 0 in up count mode nor a value of hex 3FF (or FF,3F, F if limited bit compare) in  
down count mode.  
For instance, loading the counter in up count mode with hex 000 and the comparator with hex C52 which will be identified as  
:
- bits[11:10] are limiting the counter to limits to 4 bits length, =03  
- bits [9:4] are the unused counter bits = hex 05 (bin 000101),  
- bits [3:0] (comparator value = 2).  
(BitSel[1,0])  
(number of PWM pulses)  
(length of PWM pulse)  
Thus after 5 PWM-pulses of 2 clocks cycles length the Counter generates an IRQComp and stops.  
The same example with SelIntFull=0 (limited bit compare) will produce an unlimited number of PWM at a length of 2 clock  
cycles.  
8.4.1 How the PWM Generator works.  
For Up Count Mode; Setting the counter in up count and PWM mode the PA[0] or PA[1] PWM output is defined to be 0  
(EnComp=0 forces the PWM output to 0 in upcount mode, 1 in downcount). Each Roll Over will set the output to ‘1’ and each  
Compare Match will set it back to ‘0’. The Compare Match for PWM always only works on the defined counter length. This,  
independent of the SelIntFull setting which is valid only for the IRQ generation. Refer also to the compare setup in chapter 0.  
In above example the PWM starts counting up on hex 0,  
2 cycles later compare match Æ PWM to ‘0’,  
14 cycles later roll over Æ PWM to ‘1’  
2 cycles later compare match Æ PWM to ‘0’ , etc. until the completion of the 5 pulses.  
The normal IRQ generation remains on during PWM output. If no IRQ’s are wanted, the corresponding masks need to be set.  
Figure 21. PWM Output in Up Count Mode  
Figure 22. PWM Output in Down Count Mode  
Clock  
Clock  
Count[9 :0]  
Roll-over  
001  
000  
3FF  
3FE  
...  
Data+1 Data  
Data-1 Data-2  
Count[9 :0]  
Roll-over  
Compare  
03E  
03F  
000  
001  
...  
Data-1  
Data  
Data+1 Data+2  
Compare  
IRQCount0  
IRQCount0  
IRQComp  
IRQComp  
PWM output  
PWM output  
In Down Count Mode everything is inverted. The  
PWM output starts with the ‘1’ value. Each Roll Over will set the output to ‘0’ and each Compare Match will set it  
back to ‘1’. Due to this, the positive pulse length is always longer by 1 selected clock period compared to written  
value. Example: for 25% positive pulse duty cycle on 4 bit counter one must write 3 in counter if down-count  
instead of value 4 in case of up-count.  
Note:  
In downcount mode and limited pulse generation one must load the complementary pulse number value. I.e. for  
5 pulses counting on 4 bits load bits[9 :4] with hex 3A (bin 111010).  
28  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8.4.2 PWM Characteristics  
PWM resolution is  
: 10bits (1024 steps), 8bits (256 steps), 6bits (64 steps) or 4 bits (16 steps)  
: 16 (4-bit) x Fmax* Æ 16 x 1/Ck[15] Æ 977 µs (32 KHz)  
: 1024 x Fmin* Æ 1024 x 1/Ck[1] Æ 1024 s (32 KHz)  
Æ 1 x 1/Ck[15] Æ 61 µs (32 KHz)  
the minimal signal period is  
the maximum signal period is  
the minimal pulse width is : 1 bit  
* This values are for Fmax or Fmin derived from the internal system clock (32kHz). Much shorter (and longer) PWM pulses  
can be achieved by using the port A or RCClk as frequency input.  
One must not use a compare value of hex 0 in up count mode nor a value of hex 3FF (or FF,3F, F if limited bit compare) in  
down-count mode.  
8.4.3 PWM example  
PWM on 4 bit setting and with option bit 0 don’t care set.  
RegCDataL  
PWM high level  
pwm in up count PWM in down count  
(nbr_cycles / % high) (nbr_cycles / % high)  
compare  
value  
0
PWM 4 bits  
3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
2
3
4
5
6
7
8
9
10  
11  
12  
13  
14  
15  
6.25  
12.5  
18.75  
25  
31.25  
37.5  
43.75  
50  
56.25  
62.5  
68.75  
75  
do not use  
6.25  
1
2
3
4
5
6
7
8
1
2
3
4
5
6
7
8
9
10  
11  
12  
13  
14  
15  
12.5  
18.75  
25  
31.25  
37.5  
43.75  
50  
56.25  
62.5  
68.75  
75  
9
10  
11  
12  
13  
14  
15  
81.25  
87.5  
93.75  
81.25  
87.5  
93.75  
do not use  
RegCDataL  
PWM high level  
pwm in up count PWM in down count  
(nbr_cycles / % high) (nbr_cycles / % high)  
PWM 4 bits  
compare  
value  
(bit 0 don't care)  
3
0
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
2
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
1
2
2
3
3
4
4
5
5
6
6
7
7
1
1
2
2
3
3
4
4
5
5
6
6
7
7
12.5  
12.5  
25  
do not use  
do not use  
1
1
2
2
3
3
4
4
5
5
6
6
7
7
12.5  
12.5  
25  
25  
37.5  
37.5  
50  
25  
37.5  
37.5  
50  
50  
62.5  
62.5  
75  
75  
87.5  
87.5  
50  
62.5  
62.5  
75  
75  
87.5  
87.5  
do not use  
do not use  
29  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8.5 Counter Setup  
RegCDataL[3:0], RegCDataM[3:0], RegCDataH[1:0] are used to store the initial count value called CReg[9:0] which is  
written into the count register bits Count[9:0] when writing the bit Load to ‘1’ in RegCCntl2. This bit is automatically reset  
thereafter. The counter value Count[9:0] can be read out at any time, except when using non-debounced high frequency port  
A input clock. To maintain data integrity the lower nibble Count[3:0] must always be read first. The ShCount[9:4] values are  
shadow registers to the counter. To keep the data integrity during a counter read operation (3 reads), the counter values [9:4]  
are copied into these registers with the read of the count[3:0] register. If using non-debounced high frequency port A input the  
counter must be stopped while reading the Count[3:0] value to maintain the data integrity.  
In down count mode an interrupt request IRQCount0 is generated when the counter reaches 0. In up count mode, an interrupt  
request is generated when the counter reaches 3FF (or FF,3F,F if limited bit counting).  
Never an interrupt request is generated by loading a value into the counter register.  
When the counter is programmed from up into down mode or vice versa, the counter value Count[9:0] gets inverted. As a  
consequence, the initial value of the counter must be programmed after the Up/Down selection.  
Loading the counter with hex 000 is equivalent to writing stop mode, the Start bit is reset, no interrupt request is generated.  
How to use the counter;  
If PWM output is required one has to decide first on which PA port to put it. After corresponding port Output Enable  
OEnPA[n] must be set PWMoutPA[n] = 1 in step 5. ( n= 0 or 1)  
1st,  
2nd,  
3rd,  
4th,  
5th,  
6th,  
7th,  
set the counter into stop mode (Start=0).  
select the frequency and up- or down count mode in RegCCntl1.  
write the data registers RegCDataL, RegCDataM, RegCDataH (counter start value and length)  
load the counter, Load=1, and choose the mode. (EvCount, EnComp=0)  
select bits PWMoutPA[n] in RegPaCntl3 and SelIntFull in RegSysCntl1  
if compare mode desired , then write RegCDataL, RegCDataM, RegCDataH (compare value)  
set bit Start and select EnComp in RegCCntl2.  
30  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
8.6 10-bit Counter Registers  
Table 8.6.1. Register RegCCntl1  
Bit  
3
2
1
0
Name  
Up/Down  
CountFSel2  
CountFSel1  
CountFsel0  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
0
0
0
0
Up or down counting  
Input clock selection  
Input clock selection  
Input clock selection  
Default : PA0 ,selected as input clock, Down counting  
Table 8.6.2. Counter Input Frequency Selection with CountFSel[2..0]  
CountFSel2  
CountFSel1  
CountFSel0  
clock source selection  
0
0
1
1
0
0
1
1
0
1
0
1
0
1
0
1
Port A PA[1] = non debounced only TimCk0  
Prescaler Ck[15] typ. 16 kHz  
Prescaler Ck[12] typ. 2 kHz  
Prescaler Ck[10] typ. 512 Hz  
Prescaler Ck[8] typ. 128 Hz  
Prescaler Ck[4] typ. 8 Hz  
0
0
0
0
1
1
1
1
Prescaler Ck[1] typ. 1 Hz  
Port A PA[3/4]  
Table 8.6.3. Register RegCCntl2  
Bit  
3
2
1
0
Name  
Start  
EvCount  
EnComp  
Load  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
0
0
0
0
Start/Stop control  
Event counter enable  
Enable comparator  
Write: load counter register;  
Read: always 0  
Default : Stop, no event count, no comparator, no load  
Table 8.6.4. System Control register RegSysCntl1  
Bit  
3
2
1
0
Name  
Reset  
0
0
0
p 0*  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
General interrupt enable  
Sleep mode  
IntEn  
Sleep  
SetIntFull  
ChTmDis  
Compare Interrupt select (note 1)  
Disable Test modes by setting it to 1 (MUST be DONE)  
p 0* ChTmDis is cleared on POR to be able to enter test modes at EM.  
Note:  
At program start the user must write the ChTmDis bit to ‘1’ to prevent from accidentally going into factory test mode.  
Setting this bit to ‘1’ must be done after a minimum number of instructions, see table 8.6.5 below. Additionally the Port PA0  
must not be declared as output before the same number of cycles are passed.  
These precautions are necessary to guarantee proper factory circuit testing.  
ChTmDis bit needs to be reconfirmed (write ‘1’ ) at every access to register RegSysCntl1  
Table 8.6.5. Number of instructions before cutting Test access  
Min Nb. of instructions before ChTmDis is set or  
PortPA[0] declared as an output  
CPU frequency  
Basic frequency (32 kHz or 50 kHz)  
Basic f. x 2 ( 64 kHz or 100 kHz)  
Basic f. x 4 ( 128 kHz or 200 kHz)  
Basic f. x 8 ( 256 kHz or 400 kHz)  
Basic f. x 16 (512 kHz or 800 kHz)  
4
8
16  
32  
64  
By writing to RegSysCntl1 – setting ChTmDis to 1 PORstatus will be cleared.  
Test mode is totally disabled also if PortPA[0] is declared as an output. OenPA[0] = ‘1’  
(note 1) Default : Interrupt on limited bit compare for Counter  
31  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Table 8.6.6. Register RegCDataL, Counter/Compare Low Data Nibble  
Bit  
3
2
1
0
3
2
1
0
Name  
Reset  
R/W  
W
W
W
W
R
R
R
R
Description  
CReg[3]  
CReg[2]  
CReg[1]  
CReg[0]  
Count[3]  
Count[2]  
Count[1]  
Count[0]  
0
0
0
0
0
0
0
0
Counter data bit 3  
Counter data bit 2  
Counter data bit 1  
Counter data bit 0  
Data register bit 3  
Data register bit 2  
Data register bit 1  
Data register bit 0  
Table 8.6.7. Register RegCDataM, Counter/Compare Middle Data Nibble  
Bit  
3
2
1
0
3
2
1
0
Name  
CReg[7]  
CReg[6]  
CReg[5]  
Reset  
R/W  
W
W
W
W
R
R
R
R
Description  
0
0
0
0
0
0
0
0
Counter data bit 7  
Counter data bit 6  
Counter data bit 5  
Counter data bit 4  
Data register bit 7  
Data register bit 6  
Data register bit 5  
Data register bit 4  
CReg[4]  
ShCount[7]  
ShCount[6]  
ShCount[5]  
ShCount[4]  
Table 8.6.8. Register RegCDataH, Counter/Compare High Data Nibble  
Bit  
3
2
1
0
Name  
BitSel[1]  
BitSel[0]  
CReg[9]  
CReg[8]  
ShCount[9]  
ShCount[8]  
Reset  
R/W  
R/W  
R/W  
W
W
R
Description  
0
0
0
0
0
0
Bit select for limited bit count/compare  
Bit select for limited bit count/compare  
Counter data bit 9  
Counter data bit 8  
Data register bit 9  
Data register bit 8  
1
0
R
Table 8.6.9. Counter Length Selection  
BitSel[1]  
BitSel[0 ]  
counter length  
10-Bit  
0
0
1
1
0
1
0
1
8-Bit  
6-Bit  
4-Bit  
32  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
9. SVLD / 4-bit ADC  
The EM6682 has a built-in circuitry made up of a comparator with band-gap reference and a resistor divider chain with 16  
terminals to detect levels within the voltage supply range.  
a. Supply Voltage Level Detector (SVLD) to compare the positive power supply level Vdd against levels which are in the  
range of Vddmin to Vddmax. In this case extVcheck must be cleared to ‘0’ (default).  
b. Simple 4-bit Analogue to Digital Converter – ADC. Setting the ExtVcheck bit to ‘1’ makes the PA[4] input an analog  
ADC input. PA[4] input voltage must not exceed VDD + 0.3V  
In Sleep mode both functions are disabled.  
Figure 23. SLVD / 4-bit ADC schematic with controls and timing  
Supply Voltage Level Detector & 4-bit ADC function  
SLVD level5 or SLVD level9 is used during Power On Reset for Power-Check to check the minimum operating voltage before  
the POR signal is released as described in Chapter 4.1.  
When used as a SVLD the ExtVCheck bit in register RegVldCntl must be cleared to ‘0’. Then Vdd is selected as the input to  
the resistive divider which provides the comparator inputs. The SVLD level must be selected by writing the RegSVLDlev  
register. For proper operation only levels above Vdd min can be selected. Then the CPU activates the voltage comparison by  
writing the VLDstart bit to ‘1’ in the register RegVLDCntl. The actual measurement starts on the next ck[14] (8kHz @ 32kHz  
SysClk) falling edge and lasts typ. 260 us. The busy flag VldBusy stays high from the time VLDStart is set to ‘1’ until the  
measurement is finished. The worst case time until the result is available is 3.125 * ck[14] prescaler clock periods (32kHz Æ  
382us). See figure 24 for details.  
During the actual measurement (typ. 260us) the device will draw typically an additional 4цA of IVDD current @ Vdd=1.5V. After  
the end of the measurement an interrupt request IRQVLD can be generated if Vdd is lower than the level which was selected.  
The interrupt is generated only if the mask IRQSvld bit is set to ‘1’. The result is available by inspection of the bit VLDResult.  
If the result is ’0’, then the power supply voltage was lower than the detection level value. If ‘1’ the power supply voltage was  
higher than the detection level value. The value of VLDResult is not guaranteed while VldBusy=1.  
An interrupt can be generated only if Vdd is lower than the selected level. IRQSvld bit is cleared by reading RegIRQ2.  
Table 9.1 register RegVldCntl  
Bit  
3
3
2
2
Name  
Reset  
R/W  
W
R*  
W
R
Description  
PA[4] as positive input of divider chain  
VLD result flag  
ExtVcheck  
VLDResult  
VLDStart  
VLDBusy  
SVLDen  
0
0
0
0
0
P
VLD start command  
VLD busy flag is on Until compare is finished  
SVLD comparator is On continuously  
No watchdog timer  
1
0
R/W  
R/W  
NoWDtim  
R*; VLDResult is not guaranteed while VLDBusy=1  
Note: The SVLD/ADC levels can be compatible with the low voltage specification. The metal option opt_LV_SVLD_level  
allows choosing the low voltage levels when it is at 1.  
Low voltage mode: 16 levels between 0 and 1.8V.  
Medium voltage mode: 16 levels between 0 and 3.0V.  
Refer to electrical specifications.  
33  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Figure 24. SVLD timing  
The VLDresult bit from the previous measurement stays in the register until the new measurements is finished.  
For good measurements external noise or CPU activity should be as low as possible during the comparison.  
Table 9.2 register RegSVLDlev  
Bit  
3
2
1
0
Name  
POR  
1*  
0*  
0
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
SVLDlev[3]  
SVLDlev[2]  
SVLDlev[1]  
SVLDlev[0]  
SVLD level select bit #3  
SVLD level select bit #2  
SVLD level select bit #1  
SVLD level select bit #0  
1
SVLDlev[3:2]initialization depends on Metal option for Power-Check level PClev.  
Level #9 is selected when PClev = ‘1’ (as describe in table 9.2).  
Level #5 is selected when PClev = ‘0’.  
Table 9.3.1 SVLD level selection (typical values VSVLDNom) ; medium voltage mode set by metal option  
SVLDlev[3:0]  
Nb.:  
ADC  
SVLD  
Description of specialitis  
MSB  
0
LSB  
0
Level #  
ADCNom SVLDNom  
0
0
0
0
1
1
1
1
0
0
0
0
1
1
1
1
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
1
1
0
1
2
3
4
5
6
7
8
0.5 V  
0.65 V  
0.80 V  
0.95 V  
1.10 V  
1.25 V  
1.40 V  
1.55 V  
1.70 V  
1.85 V  
2.00 V  
2.15 V  
2.30 V  
2.45 V  
2.60 V  
2.75 V  
3.00 V  
Do not set Do not use this level with SVLD  
Do not set Do not use this level with SVLD  
Do not set Do not use this level with SVLD  
Do not set Do not use this level with SVLD  
0
0
0
0
0
0
0
1
1
1
1
1
1
1
1
1
1
0
1
0
1
0
1
0
1
0
1
0
1
0
1
1
1.20 V Depends on ExtVCheck - ADC or SVLD  
1.25 V Default level after POR for Power Check  
1.40 V  
1.55 V  
1.70 V  
9
1.85 V Optional level after POR for Power Check  
2.00 V  
2.15 V  
2.30 V  
2.45 V  
2.60 V  
10  
11  
12  
13  
14  
15  
15b  
2.75 V Metal option or RegMFP2 Opt[8] allows  
selecting level 15 or 15b. Refer to chapter 15.  
3.00 V  
34  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Table 9.3.2 ADC/SVLD level selection in low voltage mode (typical values VSVLDNom)  
SVLDlev[3:0]  
Nb.:  
ADC  
SVLD  
Description of specialties  
@1.5V  
MSB  
LSB Level # ADCNom SVLDNom  
0
0
0
0
0
0
0
0
1
1
1
1
1
0
0
0
0
1
1
1
1
0
0
0
0
1
0
0
1
1
0
0
1
1
0
0
1
1
0
0
1
0
1
0
1
0
1
0
1
0
1
0
0
1
.35 V  
.49 V  
-
Do not use this level with SVLD  
Do not use this level with SVLD  
Do not use this level with SVLD  
Do not use this level with SVLD  
Do not use this level with SVLD  
Do not use this level with SVLD  
Do not use this level with SVLD  
-
-
-
-
-
2
3
4
5
6
7
8
9
.49 V  
0.58 V  
0.67 V  
0.77 V  
0.85 V  
0.94 V  
1.04V  
1.13 V  
1.22 V  
1.31 V  
1.40 V  
-
0.922V  
1.02V  
1.11V  
1.20V  
1.30V  
1.39V  
Optional level after POR for Power Check  
10  
11  
12  
1
1
1
1
1
1
0
1
1
1
0
1
13  
14  
15  
1.49 V  
1.58 V  
1.68 V  
1.49V  
1.58V  
1.69V  
External source is coming from PA[4] as explained in Chapter 6.2 and shown on figure 10.  
To implement a 4-bit ADC first ExtVcheck bit must be set to ‘1’, that PA[4] input is connected to positive side of resistor  
divider chain. To find the level as fast as possible with successive approximation for instance it is advised to Set SVLDen bit  
to ‘1’ to have comparator and resistive divider chain operational all the time when the PA[4] input is sampled with ck[15] (typ.  
16kHz @ 32kHz SysClk) frequency. With SVLDlev[3:0] we can select one of 16 possible levels to check and by making max.  
4 measurements at 4 different levels (if input PA[4] is stable) we have the result with successive approximation method.  
In this case PA[4] input is blocked for all other functions, because its level can be in a zone where logic ‘0’ or ‘1’ are not well  
defined and this would generate an over consumption otherwise. So it is dedicated only to SVLD comparator input to be  
compared with internal band-gap reference. NoPullPA[4] must be set to ‘1’ - Pull-UP/Down must be removed by register also.  
In both cases if Vdd or PA[4] level is tested lower than the selected level an IRQ can be generated if enabled.  
With SVLDen bit one can switch on the band-gap, resistive divider and Comparator continuously. Like that one can monitor  
VDD or PA[4] level continuously, at higher frequency (ck[15]). Only at the beginning after setting the SVLDen at ‘1’ one has to  
wait until VLDbusy drops to ‘0’ indicating that system is powered up (band-gap reference and resistor divider are stabilized  
and comparator is ready to give proper result). This will increase power consumption by typ. 4цA @ Vdd=1.5V while used.  
During continuously monitoring one can change RegSVLDlev register value on fly and the new result should be read only  
after about 1.5 * ck[15] to be sure it is a result of a new SVLDlev selection. Depending on CPUclk and divisions to obtained  
SysClk this can be 2 / 6 / 10 / 20 / 36 instruction after RegSVLDlev change for multiples by 1 / 2 / 4 / 8 / 16.  
When fast monitoring is not necessary any more one can remove it by clearing SVLDen to ‘0’.  
When SVLD logic is used for this fast monitoring IRQ can also be generated when checked level falls below its value.  
9.1 SVLD trim:  
A specific ADC or SVLD level can be factory trimmed to ±3%. Trimming will result in a specific use electrical specification for  
the intended ADC/SVLD levels and its usage. The trimming code is 4bits coded in RegSVLDTrim. (see memory map table in  
chapter 13). It is possible to modify by software this register. But after each POR its status will be refreshed with the factory  
trimming code automatically.  
35  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Figure 25. SVLD timing in “ADC” mode when SVLDen set @ “1”  
Due to IRQSvld which can come very fast – with ck[15] there is danger that immediately after coming out from IRQ subroutine  
new IRQSvld which came during that time put uC back in IRQ subroutine and software can be stacked at this place until  
checked input is lower then SVLD level. Otherwise IntEn register must be cleared in IRQ subroutine already !! or even better  
to use this function by reading the SVLD result only and not setting the MaskIRQSvld  
36  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
10. RAM  
The EM6682 has one 80x4 bit static RAM built-in located on addresses hex 0 to 4F. All the RAM nibbles are direct  
addressable.  
Figure 26. RAM Architecture  
RAM 80 x 4 = direct addressable  
Adr [hex]  
RAM location  
Read / Write  
4F  
RAM_79  
4 bit R/W  
4E  
RAM_78  
4 bit R/W  
4D  
RAM_77  
4 bit R/W  
4B  
RAM_76  
4 bit R/W  
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
04  
03  
02  
01  
00  
RAM_04  
RAM_03  
RAM_02  
RAM_01  
RAM_00  
4 bit R/W  
4 bit R/W  
4 bit R/W  
4 bit R/W  
4 bit R/W  
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.  
37  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
11. Interrupt Controller  
The EM6682 has 8 different interrupt request sources masked individually. These are:  
External (2)  
- Port A,  
- Compare  
PA[0/5] and PA[3/4] inputs  
PA[4] input  
Internal (6)  
- Prescaler (2x)  
- 10-bit Counter (2x)  
- SVLD (1)  
ck[1], 64Hz/8Hz  
Count0, CountComp  
End of measure when level is low  
8 bit transfered  
- Serial Interface (1)  
The SVLD and the PA[4] level check share the same interrupt line.  
Serial Interface could be put under Internal when Serial clock is coming form EM6682 or External when Serial clock is  
external.  
To be 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. The interrupt request flags can only be set by  
a positive edge of IRQxx with the corresponding mask register bit (MaskIRQxx) set to 1.  
Figure 27. Interrupt control logic for generating and clearing interrupts  
Interrupt control logic  
At power on or after any reset all interrupt request mask registers are cleared and therefore do not allow any interrupt request  
to be stored. Also the general interrupt enable IntEn is set to 0 (No IRQ to CPU) by reset.  
After each read operation on the interrupt request registers RegIRQ1 or RegIRQ2 the contents of the addressed register are  
reset. Therefore one has to make a copy of the interrupt request register if there was more than one interrupt to treat. Each  
interrupt request flag may also be reset individually by writing 1 into it (ClrIntBit).  
Interrupt handling priority must be resolved through software by deciding which register and which flag inside the register need  
to be serviced first.  
Since the CPU has only one interrupt subroutine and because the IRQxx registers are cleared after reading, the CPU does  
not miss any interrupt request which comes during the interrupt service routine. If any occurs during this time a new interrupt  
will be generated as soon as the software comes out of the current interrupt subroutine.  
Any interrupt request sent by a periphery cell while the corresponding mask is not set will not be stored in the interrupt request  
register. 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 EM6682 goes into HALT Mode the IntEn bit is automatically set to 1,  
thus allowing to resume from Halt Mode with an interrupt.  
38  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
11.1 Interrupt control registers  
Table 11.1.1 Register RegIRQ1  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W*  
R/W*  
R/W*  
R/W*  
Description  
IRQCount0  
IRQCntComp  
IRQPA[3/4]  
IRQPA[0/5]  
0
0
0
0
Counter interrupt request when at 0  
Counter interrupt request when compare True  
Port A PA[3/4] interrupt request  
Port A PA[0/5] interrupt request  
W*; Writing of 1 clears the corresponding bit.  
Table 11.1.2 Register RegIRQ2  
Bit  
3
2
1
0
Name  
IRQHz1  
IRQHz64/8  
IRQSvld  
IRQSerial  
Reset  
R/W  
R/W*  
R/W*  
R/W*  
R/W*  
Description  
0
0
0
0
Prescaler interrupt request of 1Hz  
Prescaler interrupt request of 64 Hz or 8 Hz  
SVLD or Compare interrupt request  
Serial interface interrupt request  
W*; Writing of 1 clears the corresponding bit.  
Table 11.1.3 Register RegIRQMask1  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
MaskIRQCount0  
MaskIRQCntComp  
MaskIRQPA[3/4]  
MaskIRQPA[0/5]  
0
0
0
0
Counter when at 0 interrupt mask  
Counter compare True interrupt mask  
Port A PA[3/4] interrupt mask  
Port A PA[0/5] interrupt mask  
Interrupt is not stored if the mask bit is 0.  
Table 11.1.4 Register RegIRQMask2  
Bit  
3
2
1
0
Name  
Reset  
R/W  
R/W  
R/W  
R/W  
R/W  
Description  
MaskIRQHz1  
MaskIRQHz64/8  
MaskIRQSvld  
MaskIRQSerial  
0
0
0
0
Prescaler 1Hz interrupt mask  
Prescaler 64 Hz or 8 Hz interrupt mask  
SVLD or Compare interrupt mask  
Serial interface interrupt mask  
Interrupt is not stored if the mask bit is 0.  
39  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
12. PERIPHERAL MEMORY MAP  
Reset values are valid after power up or after every system reset.  
Register  
Name  
Add Add  
Hex Dec.  
Reset  
Value  
b'3210  
Read Bits  
Write Bits  
Remarks  
Read / Write Bits  
0: Data0  
1: Data1  
2: Data2  
3: Data3  
0: Data0  
1: Data1  
2: Data2  
3: Data3  
Direct addressable  
Ram 80 x 4 bit  
Ram1_0  
00  
4F  
0
xxxx  
Direct addressable  
Ram 80 x 4 bit  
Ram1_63  
79  
xxxx  
0: PA[0]  
1: PA[1]  
2: PA[2]  
3: PA[3]  
0: PAout[0]  
1: PAout[1]  
2: PAout[2]  
3: PAout[3]  
PortA [3:0]  
Direct input read,  
Output data register  
RegPA0  
RegPa0OE  
50  
51  
52  
53  
54  
55  
56  
80  
81  
82  
83  
84  
85  
86  
0000  
0: OEnPA[0]  
1: OEnPA[1]  
2: OEnPA[2]  
3: OEnPA[3]  
0: EdgeFallingPA[0/5]  
1: EdgeFallingPA[3/4]  
2: debunceNoPA[0/5]  
3: debunceNoPA[3/4]  
0: IrqPA[0l/5h]  
PortA [3:0]  
Output enable active Hi,  
0000  
0 = after  
PORend  
PortA [3:0] control1  
Debounce Yes/No &  
Faling / Rising edge  
pppp  
RegPaCntl1  
RegPaCntl2  
Pa0noPDown  
Pa0NchOpenDr  
RegFreqRst  
p = POR  
PortA [3:0] control2  
WakeUp on change enable &  
Irq source from PA select  
pppp  
1: IrqPA[3l/4h]  
2: WUchEnPA[0/5]  
3: WUchEnPA[3/4]  
0: NoPdPA[0]  
1: NoPdPA[1]  
2: NoPdPA[2]  
p = POR  
Option register  
Pull/down selection on PA[3:0]  
Default : pull-down ON  
pppp  
p = POR  
3: NoPdPA[3]  
0: NchOpDrPA[0]  
1: NchOpDrPA[1]  
2: NchOpDrPA[2]  
3: NchOpDrPA[3]  
0: foutSel[0]  
1: foutSel[1]  
2: PA[3/4]resIn  
3: InResAH  
Option register  
N/channel Open Drain  
Output on PA[3:0]  
pppp  
p = POR  
Default : CMOS output  
Output Frequency select  
and Input reset Control  
ppxx  
0: MSBnLSB  
1: POSnNeg  
2: MS0  
3: MS1  
0: OM[0]  
1: RCoscOff  
2: Status  
3: Start  
0: SerDataL[0]  
1: SerDataL[1]  
2: SerDataL[2]  
3: SerDataL[3]  
0: SerDataH[0]  
1: SerDataH[1]  
2: SerDataH[2]  
3: SerDataH[3]  
0: CountFSel0  
1: CountFSel1  
2: CountFSel2  
3: Up/Down  
RegSCntl1  
RegSCntl2  
RegSDataL  
RegSDataH  
RegCCntl1  
57  
58  
59  
5A  
5B  
87  
88  
89  
90  
91  
0000  
0000  
0000  
0000  
0000  
Serial interface  
control 1  
Serial interface  
control 2  
Serial interface  
low data nibble  
Serial interface  
high data nibble  
10-bit counter  
control 1;  
frequency and up/down  
40  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Register  
Name  
Add Add  
Hex Dec.  
Reset  
Value  
b'3210  
Read Bits  
Write Bits  
Remarks  
Read / Write Bits  
0: '0'  
0: Load  
10-bit counter control 2;  
comparison, event counter and  
start  
1: EnComp  
2: EvCount  
3: Start  
1: EnComp  
2: EvCount  
3: Start  
RegCCntl2  
5C  
5D  
5E  
5F  
60  
61  
92  
93  
94  
95  
96  
97  
0000  
0000  
0000  
0000  
p000  
pppp  
0: Count[0]  
1: Count[1]  
2: Count[2]  
3: Count[3]  
0: Count[4]  
1: Count[5]  
2: Count[6]  
3: Count[7]  
0: Count[8]  
1: Count[9]  
2: BitSel[0]  
3: BitSel[1]  
0: PA[4]  
0: CReg[0]  
1: CReg[1]  
2: CReg[2]  
3: CReg[3]  
0: CReg[4]  
1: CReg[5]  
2: CReg[6]  
3: CReg[7]  
0: CReg[8]  
1: CReg[9]  
2: BitSel[0]  
3: BitSel[1]  
0: --  
RegCDataL  
RegCDataM  
RegCDataH  
RegPA1  
10-bit counter  
data low nibble  
10-bit counter  
data middle nibble  
10-bit counter  
data high bits  
PortA [5:4]  
1: PA[5]  
2: OEnPA[5]  
3: NchOpDrPA[5]  
1: PAout[5]  
2: OEnPA[5]  
3: NchOpDrPA[5]  
Direct input read,  
Output data register with  
Output enable active Hi  
0: PWMoutPA[0]  
PortA Control3  
Output distribution on PA[0],  
PA[1] and PA[3]  
1: PWMoutPA[1]  
2: SerialCkPA[1]  
3: SerialStPA[3]  
0: freqOutPA[2]  
1: Sout/rstPA[2]  
2: : freqOutPA[5]  
3: NoPdPA[5]  
RegPaCntl3  
PortA Control4  
Output distribution on PA[2]  
and PA[5]  
RegPaCntl4  
RegIRQMask1  
RegIRQMask2  
RegIRQ1  
62  
65  
66  
67  
68  
69  
6A  
6B  
98  
ppPP  
0000  
0000  
0000  
0000  
0: MaskIRQPA[0/5]  
1: MaskIRQPA[3/4]  
2: MaskIRQCntComp  
3: MaskIRQCount0  
0: MaskIRQSerial  
1: MaskIRQSvld  
2: MaskIRQHz64/8  
3: MaskIRQHz1  
Port A & Counter  
interrupt mask;  
masking active 0  
101  
102  
103  
104  
105  
106  
107  
Prescaler, SVLD & serial interf.  
interrupt mask;  
masking active low  
0: IRQPA[0/5]  
0:RIRQPA[0/5]  
1:RIRQPA[3/4]  
2:RIRQCntComp  
3:RIRQCount0  
0:RIRQSerial  
1:RIRQSvld  
2:RIRQHz64/8  
3:RIRQHz1  
0: ChTmDis  
1: SelIntFull  
2: Sleep  
Read: port A & Counter interrupt  
Write: Reset IRQ if data bit = 1.  
1: IRQPA[3/4]  
2: IRQCntComp  
3: IRQCount0  
0: IRQSerial  
1: IRQSvld  
2: IRQHz64/8  
3: IRQHz1  
0: ChTmDis  
1: SelIntFull  
2: '0'  
Read: Prescaler, SVLD & serial  
interface interrupt.  
Write: Reset IRQ if data bit = 1  
REgIRQ2  
System control 1;  
ChTmDis only usable only for  
EM test modes  
000p  
RegSysCntl1  
RegSysCntl2  
RegSleepCR  
p = POR  
3: IntEn  
3: IntEn  
0: WDVal0  
0: --  
System control 2;  
watchdog value and periodical  
reset, enable sleep mode  
Pp00  
1: WDVal1  
1: --  
2: SleepEn  
3: PORstatus  
0: SCRsel0  
1: SCRsel1  
2: SleepCntDis  
3: NoPullPA[4]  
2: SleepEn  
p = POR  
3: WDReset  
pppp  
Sleep Counter reset control  
p = POR  
41  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Register  
Name  
Add Add  
Hex Dec.  
Reset  
Value  
b'3210  
Read Bits  
Write Bits  
Remarks  
Read / Write Bits  
0: DebSel  
1: PrIntSel  
2: '0'  
0: DebSel  
1: PrIntSel  
2: ResPresc  
3: ExtCPUclkON  
Prescaler control;  
Debouncer, prescaler interrupt  
select and reset,  
RegPresc  
6C  
6E  
6F  
73  
74  
108  
110  
111  
115  
116  
0000  
3: ExtCPUclkON  
External CPU clock enable  
0: IXLow[0]  
Internal µP index  
register low nibble;  
for µP indexed addressing  
1: IXLow[1]  
2: IXLow[2]  
3: IXLow[3]  
IXLow  
xxxx  
0: IXHigh[4]  
0: IXHigh[4]  
1: IXHigh[5]  
2: IXHigh[6]  
3: --  
0: NoWDtim  
1: SVLDen  
2: VldStart  
3: ExtVcheck  
Internal µP index  
register high nibble;  
for µP indexed addressing  
1: IXHigh[5]  
2: IXHigh[6]  
3: '0'  
0: NoWDtim  
1: SVLDen  
2: VldBusy  
3: VldResult  
IXHigh  
xxxx  
RegVldCntl  
RegSVLDlev  
RegOscTrim1  
RegOscTrim2  
RegSVLDTrim  
RegMFP0  
000p  
pPpp  
0111*  
1111*  
1000*  
pppp  
pppp  
pppp  
pppp  
pppp  
Voltage level  
detector & RC osc. control  
0: SVLDlev[0]  
1: SVLDlev[1]  
2: SVLDlev[2]  
3: SVLDlev[3]  
SVLD test voltage level select  
Oscillator trimming word, MSB  
0: RegOscTrim[4]  
1: RegOscTrim[5]  
2: RegOscTrim[6]  
3: RegOscTrim[7]  
0: RegOscTrim[0]  
1: RegOscTrim[1]  
2: RegOscTrim[2]  
3: RegOscTrim[3]  
0: RegSVLDTrim[0]  
1: RegSVLDTrim[1]  
2: RegSVLDTrim[2]  
3: RegSVLDTrim[3]  
0:Opt[0]  
75 117  
76 118  
77 119  
Oscillator trimming word, LSB  
SVLD trimming word  
PA4 pull up/down selection  
Counter clock option  
Serial Interface clock  
Debouncer clock  
RC frequency base selection  
RC frequency selection  
RC frequency selection  
RC frequency selection  
ADC / SVLD level #5 selection  
Not used  
1:Opt[1]  
2:Opt[2]  
3:Opt[3]  
79  
121  
0:Opt[4]  
1:Opt[5]  
2:Opt[6]  
3:Opt[7]  
0:Opt[8]  
1:  
2:  
3:  
0: Tmsel[0]  
1: Tmsel[1]  
2: Tmsel[2]  
3: disablePOR  
0: OeTm0  
1: OeTm1  
2: TestResSys  
3: TestPOR  
RegMFP1  
7A 122  
7B 123  
7E 126  
7F 127  
RegMFP2  
Not used  
Not used  
For EM test only  
For EM test only  
RegTestEM1  
RegTestEM2  
p = defined by POR at ‘0’ (power on reset) only  
P = defined by POR at ‘1’ (power on reset) only  
x = undefined state by reset (register must be written before used)  
RegMFP0, RegMFP1 and RegMFP2 can be forced to 1 or 0 by metal option. (See metal option chapter 15).  
42  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
RegTestEm1 and RegTestEm2 can be written only if ChTmDis in RegSysCntl1 is ‘0’. They are used for EM test only and  
are Write only. At program start the user must write the ChTmDis bit to ‘1’ to prevent from accidentally going into factory test  
mode.  
Setting this bit to ‘1’ must be done after a minimum number of instructions, see table 8.6.5 below. Additionally the Port PA0  
must not be declared as output before the same number of cycles are passed.  
These precautions are necessary to guarantee proper factory circuit testing.  
ChTmDis bit needs to be reconfirmed (write ‘1’ ) at every access to register RegSysCntl1  
Table 11.1.5. Number of instructions before cutting Test access  
Min Nb. of instructions before ChTmDis is set or  
PortPA[0] declared as an output  
CPU frequency  
Basic frequency (32 kHz or 50 kHz)  
Basic f. x 2 ( 64 kHz or 100 kHz)  
Basic f. x 4 ( 128 kHz or 200 kHz)  
Basic f. x 8 ( 256 kHz or 400 kHz)  
Basic f. x 16 ( 512 kHz or 800 kHz)  
4
8
16  
32  
64  
13. Active Supply Current test  
For this purpose, five instructions at the end of the ROM will be added. This will be done at EM Marin.  
User can use only up to 1499 Instructions (the rest – 37 instructions are used for EM tests).  
TESTLOOP : STI  
00H, 0AH  
;TEST LOOP  
LDR 1BH  
NORX FFH  
JPZ TESTLOOP  
JMP  
0
To stay in the testloop, these values must be written in the corresponding addresses before jumping in the loop:  
1BH:  
32H:  
6EH:  
6FH:  
0101b  
1010b  
0010b  
0011b  
Free space after last instruction: JMP 00H (0000)  
Remark: empty space within the program are filled with NOP (FOFF).  
43  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
14. Mask Options  
Most options which in many µControllers are realized as metal mask options and directly user selectable with the control  
registers, therefore allowing a maximum freedom of choice. Some of these metal options can be set by registers. As describe  
in the following figures. It allows forcing the option to 1, 0 or to the related register. Maks option has priority against register  
settings, see figure 28.  
Figure 28. Metal option or register selection.  
Metal option  
switch  
RegMFPX  
Data bus  
Wr  
Opt[X]  
The following options can be selected at the time of programming the metal mask ROM.  
14.1 Input / Output Ports  
14.1.1 Port A Metal Options  
The portA5 and portA[3:0] inputs can have Pull-up or no pull-up and Pull-down or no pull-down. The pull-up is only active in  
Nch. open drain mode. Concerning portA4, it is possible to select pull-up or pull-down by metal option but a register is also  
available in RegMFP0[0].  
The total pull value (pull-up or pull-down) is a series resistance out of the resistance R1 (in range from 0 – 110 kΩ) and the  
switching transistor. As a switching transistor the user can choose between a high impedance (weak) or a low impedance  
(strong) switch. Weak , strong or none must be chosen. The default is strong. The default resistor R1 value is 100 kΩ.  
Figure 29. PA[5], PA[3:0] metal option architecture  
Vdd  
Vdd  
[n] = 0,1,2,3,5  
MAPUweak[n]  
Weak Pull-Up  
MAPUweak4  
Weak Pull-Up  
Pull-Up Control  
MAPUstrong[n]  
Strong Pull-Up  
MAPUstrong4  
Strong Pull-Up  
PA[5,3:0]  
No Pull-Up  
PA[4]  
No Pull-Up  
100 k  
100 k  
No Pull-Down  
No Pull-Down  
Block Input  
(low)  
Block Input  
(low)  
NoPullPA[4]  
RegMFP[0]  
MAPDstrong[n]  
Strong Pull-Down  
MAPDstrong4  
Strong Pull-Down  
Pull-Down Control  
MAPDweak[n]  
MAPDweak4  
Weak Pull-Down  
Weak Pull-Down  
Vss  
Vss  
44  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Table 14.1.1 Pull-down Metal mask Options  
Description  
Strong  
Pull-down  
1
Weak  
Pull-down  
2
R1 Value  
Typ.100k  
3
NO  
Pull-Down  
Option Name  
4
PA[5] input pull-down  
PA[4] input pull-down  
PA[3] input pull-down  
PA[2] input pull-down  
PA[1] input pull-down  
PA[0] input pull-down  
MAPD[5]  
MAPD[4]  
MAPD[3]  
MAPD[2]  
MAPD[1]  
MAPD[0]  
To select an option put an X in column 1,2 and 4 and reconfirm the R1 value in column 3.  
The default value is : strong pull-down with R1=100 kΩ  
Æ Total value of typ. 98 kΩ at Vdd =3.0V  
Table 14.1.2 Pull-up Metal mask Options  
Description  
Strong  
Pull-up  
1
Weak  
Pull-up  
2
R1 Value  
Typ.100k  
3
NO  
Pull-up  
4
Option Name  
MAPU[5]  
MAPU[4]  
MAPU[3]  
MAPU[2]  
MAPU[1]  
MAPU[0]  
PA[5] input pull-up  
PA[4] input pull-up  
PA[3] input pull-up  
PA[2] input pull-up  
PA[1] input pull-up  
PA[0] input pull-up  
To select an option put an X in column 1,2 and 4 and reconfirm the R1 value in column 3.  
The default value is : strong pull-up with R1=100 kΩ  
Æ Total value of typ. 99 kΩ at Vdd =3.0V  
PA[4] can have Pull-Up OR Pull-Down option selectable by metal option. In this case, the selected pull has effect  
before the software runs. Otherwise if the metal option is connected to the register RegMFP0[0] (see figure 28), it is  
possible to select the direction by software. In this case, it is not possible to set the direction before the software  
runs.  
.
45  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
14.1.2 RC oscillator Frequency Option  
By default the RC oscillator frequency is typ. 32 kHz With  
option RCfreq. Other possibilities are: 64kHz, 128kHz,  
256kHz and 500kHz or 50kHz, 100kHz, 200kHz, 400kHz  
or max. 800kHz. It is possible to use the register  
RegMFP1 Opt[7:4] to set the RC frequency by writing  
reg in user value. In low power mode only 128kHz,  
64kHz or 32kHz and 200kHz, 100kHz or 50kHz are  
available. Refer to chapter 5.2.  
Option  
Name  
Default  
Value  
A
User  
Value  
B
RC osc Frequency  
RCfreq  
32 kHz  
14.1.3 Debouncer Frequency Option  
By default the debouncer frequency is Ck[11]. The user  
may choose Ck[14] instead of Ck[11].  
Option  
Name  
Default  
Value  
User  
Value  
Ck[14 ]corresponds to maximum 0.25ms debouncer time  
in case of a 32kHz System Clock – SysClk. It is possible  
to use the register RegMFP0 Opt[3] to select the  
debouncer clock by writing reg in user value. Refer to  
chapter 5.3.  
A
B
Debouncer freq.  
MDeb  
Ck[11]  
14.1.4 Power-Check Level Option  
Higher frequency can not work well if Voltage is too low.  
So this option must be selected with help of EM to  
guarantee proper operation. Possible options are  
SVLD#5 (default – to be used with “low” frequency) and  
SVLD#9 for “high” frequency. For the voltage level  
reference see the electrical parameters in chapter 18.5.  
Option  
Name  
Default  
Value  
User  
Value  
B
A
Power-Check level  
PClev.  
#5  
14.1.5 ADC/SVLD Voltage Level #15  
By default the highest ADC/SVLD Voltage Level is #15  
but user can select also the level 15b. It is possible to  
use the register RegMFP2 Opt[8] to select the  
ADC/SVLD level #15 by writing reg in user value.  
When Opt[8] = ‘1’ the level 15b is selected. For the  
voltage level reference see the electrical  
parameters in chapter 18.5.  
Option  
Name  
Default  
Value  
A
User  
Value  
B
ADC/SVLD lev.#15  
HisvldLev.  
#15  
14.1.6 Counter Update option  
By default the counter is updated by Sysclk (32 or 50kHz  
typ) and the highest counter frequency is Sysclk/2 (16 or  
25kHz Typ). The other possibility is to select CPUclk/2 for  
counter update freq. Which gives a possibility to replace  
port A input at selection 7 by CPU clock divided by 2. It is  
possible to use the register RegMFP0 Opt[1] to select  
the counter update clock source by writing reg in user  
value. If DebouncerNoPA[3/4] in RegPACntl[1] is ‘1’  
then the resulting clock on timer selection 7 is CPUClk  
divided by 4. If DebouncerNoPA[3/4] is ‘0’ then the  
resulting clock is CpuClk divided by 2. Refer to chapter  
8.2.  
Option  
Name  
Default  
Value  
A
User  
Value  
B
Counter clock source  
selector  
CntF  
SysClk RCclk  
Note: when the option opt_LV_CntFrc1 is on RC, the CPUClk is not divided by two and when DebouncerNoPA[3/4] is ‘1’  
(debouncer off) the resulting clock is CPUClk divided by 2 instead of 4.  
Note: CPUClk = RCClk if no external clock used. In case of external clock, CPUClk is equal to the PA[1] input clock.  
46  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
14.1.7 No regulator option  
By default the regulator voltage is enable in the 6682. It  
possible to clamp it to Vdd with the option NoReg when  
Vdd goes below 1.5V. When 0.9 < Vdd < 1.8 the  
regulator must be off (Vreg connected to Vdd). When 1.5  
< Vdd < 5.5, the regulator must be enable.  
Option  
Name  
Default  
Value  
A
User  
Value  
B
Voltage regulator  
disable  
NoReg  
Enable  
Note: The minimum voltage is also depending to the maximum working frequency. Below is recommended minimum VDD  
voltage for different RC oscillator frequencies, which are CPU frequencies to guarantee proper operation. VDD must be  
above this proposed line in graph for selected frequency. Regulator must be adapted consequently.  
Please contact EM for proper selection. 3T (3 tresholds) must be used for frequencies above 300 kHz.  
Figure 30. Minimum VDD = f(RC oscillator)  
Rcfreq = CPU freq = f(Vddmin)  
1.9  
1.8  
1.7  
1.6  
1.5  
1.4  
1.3  
1.2  
1.1  
1
0
100  
200  
300  
400  
500  
600  
700  
800  
f [kHz]  
14.1.8 SVLD level set  
Option  
Name  
Default  
Value  
User  
Value  
A
B
SVLD & ADC  
level set  
opt_LV_SVLD_level  
MV  
By default the original medium voltage specification defines 16 voltage levels between 3V and VSS. The user may choose  
low voltage specification. In this case, the 16 levels are spread from 1.8V to VSS. See electrical chapter 18.5.  
14.1.9 Bit 0 don’t care  
Option  
Name  
Default  
Value  
User  
Value  
A
B
Counter Reg.  
level  
opt_Bit0DontCare  
Disable  
By default this option is disabled and timer runs on 10bits. When it is enabled, the timer bit0 has no action anymore. In this  
configuration, the timer acts as it would be a 9 bits timer with PWM on 9, 7, 8 or 3 bits.  
47  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
14.1.10 Counter clock source  
Option  
Name  
Default  
Value  
User  
Value  
A
B
Counter clock  
source option  
Opt_CntFrc1  
RC/2  
This option has a sense only if option CntF is set to RC oscillator. In this case Opt_CntFrc1 selects RC/2 or RC as counter  
clock source.  
14.1.11 Power check level init  
Option  
Name  
Default  
Value  
User  
Value  
A
B
PWRC active  
after reset  
Opt_Sleep_force_PWRC  
Disable  
By default this option is disable and the power check is made only on the start-up of the chip. When this option is enable,  
after each reset, a power check is done compare with the last SVLD level selction before the reset.  
Note: To get out from the sleep mode, the chip must be reset then if this option is enable, after each sleep a power check is  
done with the SVLD level selected before going in sleep mode.  
48  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
15. Typical Behaviour  
Following graphics show the typical temperature and voltage behaviour of selected parameters. All measures  
were performed at EM on EM6681 qualification parts.  
15.1 Temperature  
[uA]  
28.0  
IDD Run M ode 256kHz trimmed VDD=1.5V  
[uA]  
9.0  
IDD Halt M ode; 256kHz trimmed; VDD=1.5V  
20 40 60  
-20  
0
80  
8.0  
7.0  
6.0  
5.0  
26.0  
24.0  
22.0  
20.0  
[°C]  
-20  
0
20  
40  
60  
[°C]  
80  
[uA]  
1.10  
IDD Sleep M ode; VDD=1.5V  
1.0 0  
0.90  
0.80  
0.70  
0.60  
0.50  
-20  
0
20  
40  
60  
[°C] 80  
IVDD active mode, Standby mode, Sleep mode  
Pull-up and Pulldown resistance  
[kOhm]  
[KOhm]  
12 0  
Pull-down strong VDD=1.5V  
Pull-up strong VDD=1.5V  
12 0  
110  
110  
10 0  
10 0  
90  
90  
80  
70  
80  
70  
60  
60  
-20  
0
20  
40  
60  
[°C]  
80  
-20  
0
20  
40  
60  
[°C] 80  
RC oscillation frequency  
[KHz]  
RC Osc trimmed , VDD=1.5V  
290  
280  
270  
260  
250  
240  
230  
[°C]  
-20  
0
20  
40  
60  
80  
49  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
IOL on PA[2,1], IOL on PA[5,0], IOL on PA3, IOH on PA[2,1], IOH on PA[5,0], IOH on PA[3]  
IOH PA[1, 2], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
IOL PA[1, 2], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
[mA]  
0
[mA]  
20  
16  
12  
8
150 mV  
-2  
-4  
-6  
300mV  
500mV  
500mV  
300mV  
150 mV  
4
0
-8  
-20  
0
20  
40  
60  
[°C] 80  
-20  
0
20  
40  
60  
[°C] 80  
IOH PA[0,5], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
IOL PA[0,5], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
[mA]  
0
[mA]  
15  
-1  
-2  
-3  
-4  
150 mV  
300mV  
500mV  
12  
9
6
500mV  
300mV  
150 mV  
3
0
-5  
-20  
0
20  
40  
60  
[°C] 80  
-20  
0
20  
40  
60  
[°C] 80  
IOH PA[3], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
IOL PA[3], VDD=1.5V, Vds= 500mV / 100mV / 150mV  
[mA]  
0
[mA]  
15  
150 mV  
-1  
-2  
-3  
-4  
12  
9
300mV  
500mV  
500mV  
300mV  
6
3
150 mV  
0
-5  
-20  
0
20  
40  
60  
[°C] 80  
-20  
0
20  
40  
60  
[°C] 80  
15.2 Voltage  
RC frequency  
RC Osc trimmed, voltage dependency  
in %referred to 1.5V Temp=25°C  
[%]  
10  
8
6
4
2
0
-2  
-4  
-6  
-8  
-10  
1.2  
2.2  
3.2  
4.2  
[V] 5.2  
Pulldown, Pullup resistances  
[kOhm]  
[kOhm]  
300  
Pull-down strong Temp=25°C  
Pull-up strong Temp=25°C  
115  
10 5  
95  
250  
200  
150  
10 0  
50  
85  
75  
0
1.2  
2.2  
3.2  
4.2  
5.2 [V]  
1.2  
2.2  
3.2  
4.2  
5.2 [V]  
50  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
16. Electrical Specification  
16.1 Absolute Maximum Ratings  
Min.  
- 0.2  
Max.  
+ 5.5  
Units  
V
Power supply VDD-VSS  
Input voltage  
Storage temperature  
Electrostatic discharge to  
VSS – 0.2  
- 40  
-2000  
VDD+0.2  
+ 125  
+2000  
V
°C  
V
Mil-Std-883C method 3015.7 with ref. to VSS  
Maximum soldering conditions for green mold and lead  
free packages  
As per Jedec J-STD-020C  
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.  
16.2 Handling Procedures  
This device has built-in protection against high static voltages or electric fields; however, anti-static precautions should be  
taken as for any other CMOS component.  
Unless otherwise specified, proper operation can only occur when all terminal voltages are kept within the supply voltage  
range.  
16.3 Standard Operating Conditions  
Parameter  
Temperature  
Vdd _Range1  
Vdd _Range2  
Ivss max  
MIN  
-20  
1.4  
0.9  
TYP  
MAX  
85  
5.5  
1.8  
80  
Unit  
°C  
V
Description  
25  
3.0  
1.5  
with internal voltage regulator  
without internal voltage regulator  
Maximum current out of Vss Pin  
Maximum current into of Vdd Pin  
Reference terminal  
V
mA  
mA  
V
Ivdd max  
80  
VSS  
0
100  
30  
nF  
kHz  
regulated voltage capacitor  
Range of typ. RC frequency  
CVDDCA (note 1)  
fRC  
800  
Note 1: This capacitor filters switching noise from Vdd to keep it away from the internal logic cells.  
In noisy systems the capacitor should be chosen bigger than minimum value.  
51  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
16.4 DC Characteristics - Power Supply  
Conditions: Vdd =1.5V, T=25°C, RCfreq = 128 kHz .  
Parameter  
Conditions  
-20 ... 85°C  
-20 ... 85°C  
Symbol  
IVDDa1  
IVDDa1  
IVDDh1  
IVDDh1  
IVDDs1  
IVDDs1  
VPOR  
VPC5  
VPC9  
Vrd1  
Min.  
Typ.  
7.7  
Max.  
12  
12  
3.5  
3.5  
0.8  
2
0.85  
1.41  
2.09  
Unit  
ACTIVE Supply Current  
ACTIVE Supply Current  
STANDBY Supply Current  
STANDBY Supply Current  
SLEEP Supply Current  
SLEEP Supply Current  
POR static level  
μA  
μA  
μA  
μA  
μA  
μA  
V
V
V
V
1.7  
0.62  
-20 ... 85°C  
-20 ... 85°C  
-20 ... 85°C  
-20 ... 85°C  
0.7  
1.25  
1.85  
Power-Check level #5  
Power-Check level #9  
RAM data retention  
0.7  
VPOR Typ  
1.300  
1.200  
1.100  
1.000  
0.900  
0.800  
0.700  
-20  
0
20  
40  
60  
80  
temp [°C]  
Conditions: Vdd =3.0V, T=25°C, RCfreq = 256 kHz .  
Parameter  
Conditions  
-20 ... 85°C  
-20 ... 85°C  
-20 ... 85°C  
Symbol  
IVDDa2  
IVDDa2  
IVDDh2  
IVDDh2  
IVDDs2  
IVDDs2  
Vreg2  
Min.  
Typ.  
20  
Max.  
25  
30  
9
10  
0.8  
2
Unit  
ACTIVE Supply Current  
ACTIVE Supply Current  
STANDBY Supply Current  
STANDBY Supply Current  
SLEEP Supply Current  
SLEEP Supply Current  
Vreg  
μA  
μA  
μA  
μA  
μA  
μA  
V
5.5  
0.6  
1.67  
Idd @ Voltage regulator with 3T/W = f(freq[kHz])  
Idd @ Voltage regulator with 2T/W = f(freq[kHz])  
120  
30  
100  
80  
25  
20  
60  
15  
10  
5
40  
20  
halt  
run  
halt  
run  
0
0
200  
300  
400  
500  
600  
700  
800  
900  
0
50  
100  
150  
200  
250  
300  
f [kHz]  
f [kHz]  
52  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
16.5 ADC  
ADC levels, here below, are specified with a rising voltage on PA[4].  
Conditions: VDD=3.0V, T=25°C, in medium voltage mode with internal voltage regulator (unless otherwise specified)  
Devices trimmed  
Parameter  
Conditions  
Symbol  
Min.  
Typ.  
Max.  
Unit  
%/°C  
%/°C  
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
Temperature coefficient  
Temperature coefficient  
ADC voltage Level0  
ADC voltage Level1  
ADC voltage Level2  
ADC voltage Level3  
ADC voltage Level4  
ADC voltage Level5  
ADC voltage Level6  
ADC voltage Level7  
ADC voltage Level8  
ADC voltage Level9  
ADC voltage Level10  
ADC voltage Level11  
ADC voltage Level12  
ADC voltage Level13  
ADC voltage Level14  
ADC voltage Level15  
ADC voltage Level15b*  
0°C to 25°C  
25°C to 70°C  
25°C  
-0.046  
-0.030  
0.489  
0.619  
0.763  
0.914  
1.074  
1.221  
1.377  
1.504  
1.656  
1.795  
1.946  
2.093  
2.239  
2.392  
2.540  
2.672  
2.955  
0.046  
0.030  
0.541  
0.685  
0.843  
1.010  
1.140  
1.297  
1.463  
1.597  
1.758  
1.907  
2.066  
2.223  
2.377  
2.540  
2.698  
2.838  
3.137  
VVLD0  
VVLD1  
VVLD2  
VVLD3  
VVLD4  
VVLD5  
VVLD6  
VVLD7  
VVLD8  
VVLD9  
VVLD10  
VVLD11  
VVLD12  
VVLD13  
VVLD14  
VVLD15  
VVLD15b  
0.515  
0.652  
0.803  
0.962  
1.107  
1.259  
1.420  
1.550  
1.707  
1.851  
2.006  
2.158  
2.308  
2.466  
2.619  
2.755  
3.046  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
V
V
Conditions: VDD=1.5V, T=25°C, in low voltage mode without internal voltage regulator (unless otherwise specified)  
Devices trimmed  
Parameter  
Conditions  
Symbol  
Min.  
Typ.  
Max.  
Unit  
%/°C  
%/°C  
V
V
V
V
V
V
V
V
V
V
V
V
V
V
V
Temperature coefficient  
Temperature coefficient  
ADC voltage Level0  
ADC voltage Level1  
ADC voltage Level2  
ADC voltage Level3  
ADC voltage Level4  
ADC voltage Level5  
ADC voltage Level6  
ADC voltage Level7  
ADC voltage Level8  
ADC voltage Level9  
ADC voltage Level10  
ADC voltage Level11  
ADC voltage Level12  
ADC voltage Level13  
ADC voltage Level14  
ADC voltage Level15  
ADC voltage Level15b*  
0°C to 25°C  
25°C to 70°C  
25°C  
-0.046  
-0.030  
0.489  
0.619  
0.763  
0.914  
1.074  
1.221  
1.377  
1.504  
1.656  
1.795  
1.946  
2.093  
2.239  
2.392  
2.540  
2.672  
2.955  
0.046  
0.030  
0.541  
0.685  
0.843  
1.010  
1.140  
1.297  
1.463  
1.597  
1.758  
1.907  
2.066  
2.223  
2.377  
2.540  
2.698  
2.838  
3.137  
VVLD0  
VVLD1  
VVLD2  
VVLD3  
VVLD4  
VVLD5  
VVLD6  
VVLD7  
VVLD8  
VVLD9  
VVLD10  
VVLD11  
VVLD12  
VVLD13  
VVLD14  
VVLD15  
VVLD15b  
0.515  
0.652  
0.803  
0.962  
1.107  
1.259  
1.420  
1.550  
1.707  
1.851  
2.006  
2.158  
2.308  
2.466  
2.619  
2.755  
3.046  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
V
V
53  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
16.6 SVLD  
SVLD levels, here below, are specified with a rising voltage on VDD.  
Conditions: T=25°C, in medium voltage mode with internal voltage regulator (unless otherwise specified)  
Devices trimmed  
Parameter  
Conditions  
0°C to 25°C  
25°C to 70°C  
25°C  
Symbol  
Min.  
-0.046  
Typ.  
Max.  
0.046  
Unit  
%/°C  
Temperature coefficient  
Temperature coefficient  
SVLD voltage Level4  
SVLD voltage Level5  
SVLD voltage Level6  
SVLD voltage Level7  
SVLD voltage Level8  
SVLD voltage Level9  
SVLD voltage Level10  
SVLD voltage Level11  
SVLD voltage Level12  
SVLD voltage Level13  
SVLD voltage Level14  
SVLD voltage Level15  
SVLD voltage Level15b *  
-0.030  
1.074  
1.221  
1.377  
1.504  
1.656  
1.795  
1.946  
2.093  
2.239  
2.392  
2.540  
2.672  
2.955  
0.030  
1.140  
1.297  
1.463  
1.597  
1.758  
1.907  
2.066  
2.223  
2.377  
2.540  
2.698  
2.838  
3.137  
%/°C  
V
V
V
V
V
V
V
V
V
V
V
V
VVLD4a  
VVLD5  
VVLD6  
VVLD7  
VVLD8  
1.107  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
1.259  
1.420  
1.550  
1.707  
1.851  
2.006  
2.158  
2.308  
2.466  
2.619  
2.755  
3.046  
VVLD9  
VVLD10  
VVLD11  
VVLD12  
VVLD13  
VVLD14  
VVLD15  
VVLD15b  
V
Conditions: T=25°C, in low voltage mode without internal voltage regulator (unless otherwise specified)  
Devices trimmed  
Parameter  
Conditions  
0°C to 25°C  
25°C to 70°C  
25°C  
Symbol  
Min.  
-0.046  
Typ.  
Max.  
0.046  
Unit  
Temperature coefficient  
Temperature coefficient  
SVLD voltage Level4  
SVLD voltage Level5  
SVLD voltage Level6  
SVLD voltage Level7  
SVLD voltage Level8  
SVLD voltage Level9  
SVLD voltage Level10  
SVLD voltage Level11  
SVLD voltage Level12  
SVLD voltage Level13  
SVLD voltage Level14  
SVLD voltage Level15  
SVLD voltage Level15b *  
%/°C  
%/°C  
V
-0.030  
1.074  
1.221  
1.377  
1.504  
1.656  
1.795  
1.946  
2.093  
2.239  
2.392  
2.540  
2.672  
2.955  
0.030  
1.140  
1.297  
1.463  
1.597  
1.758  
1.907  
2.066  
2.223  
2.377  
2.540  
2.698  
2.838  
3.137  
VVLD4a  
VVLD5  
VVLD6  
VVLD7  
VVLD8  
1.107  
V
V
V
V
V
V
V
V
V
V
V
V
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
25°C  
1.259  
1.420  
1.550  
1.707  
1.851  
2.006  
2.158  
2.308  
2.466  
2.619  
2.755  
3.046  
VVLD9  
VVLD10  
VVLD11  
VVLD12  
VVLD13  
VVLD14  
VVLD15  
VVLD15b  
* SVLD Voltage Level 15 / 15b. For the highest ADC/SVLD level we have a metal option or RegMFP2 Opt[8] where user  
can select 2.75V typ. or 3.0V typ. This option does not have any influence on other ADC/SVLD levels. See chapter 15.1.5.  
54  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
16.7 DC characteristics - I/O Pins  
Conditions: T= -20 ... 85°C (unless otherwise specified)  
Vdd =1.5V means; measures without voltage regulator  
Vdd =3.0V means; measures with voltage regulator  
Parameter  
Conditions  
Symb.  
Min.  
Typ.  
Max.  
Unit  
Input Low voltage  
Port A[5:0]  
Vdd < 1.5V  
Vdd > 1.5V  
VIL  
VIL  
Vss  
Vss  
0.2 Vdd  
0.3 Vdd  
V
V
Port A[5:0]  
Input High voltage  
Port A[5:0]  
VIH  
RPD  
RPD  
RPU  
RPU  
RPD  
RPD  
RPU  
RPU  
IOL  
0.7 Vdd  
80k  
Vdd  
V
107k  
123k  
440k  
142k  
81k  
81k  
102k  
102k  
2.7  
250k  
250k  
900k  
220k  
122k  
122k  
127k  
127k  
Input Pull-down  
PA[5:0] (note 3) weak  
Input Pull-up  
Vdd =1.5V, Pin at 1.5V, 25°C  
Vdd =3.0V, Pin at 3.0V, 25°C  
Vdd =1.5V, Pin at 0.0V, 25°C  
Vdd =3.0V, Pin at 0.0V, 25°C  
Vdd =1.5V, Pin at 1.5V, 25°C  
Vdd =3.0V, Pin at 3.0V, 25°C  
Vdd =1.5V, Pin at 0.0V, 25°C  
Vdd =3.0V, Pin at 0.0V, 25°C  
Ω
80k  
Ω
300k  
100k  
50k  
Ω
PA[5:0] (note 3) weak  
Input Pull-down  
PA[5:0] (note 3) strong  
Input Pull-up  
Ω
Ω
50k  
Ω
81k  
Ω
81k  
PA[5:0] (note 3) strong  
Output Low Current  
PA[5,0]  
Ω
V
dd =1.5V , VOL=0.15V  
Vdd =1.5V , VOL =0.30V  
dd =1.5V , VOL =0.50V  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
IOL  
4.8  
V
IOL  
4.0  
7.3  
Vdd =3.0V , VOL =0.15V  
Vdd =3.0V , VOL =0.30V  
Vdd =3.0V , VOL =0.50V  
Vdd =3.0V , VOL =1.00V  
IOL  
5.5  
IOL  
9.9  
IOL  
12.0  
18.2  
29.1  
4.5  
IOL  
V
dd =1.5V , VOL =0.15V  
Vdd =1.5V , VOL =0.30V  
dd =1.5V , VOL =0.50V  
IOL  
Output Low Current  
PA[2,1]  
IOL  
8.1  
V
IOL  
7.0  
11.5  
8.1  
Vdd =3.0V , VOL =0.15V  
Vdd =3.0V , VOL =0.30V  
Vdd =3.0V , VOL =0.50V  
Vdd =3.0V , VOL =1.00V  
IOL  
IOL  
15.8  
26.5  
44.5  
3.2  
IOL  
16.0  
IOL  
V
dd =1.5V , VOL =0.15V  
Vdd =1.5V , VOL =0.30V  
dd =1.5V , VOL =0.50V  
IOL  
Output Low Current  
PA[3]  
IOL  
5.7  
V
IOL  
5.4  
8.0  
Vdd =3.0V , VOL =0.15V  
Vdd =3.0V , VOL =0.30V  
Vdd =3.0V , VOL =0.50V  
Vdd =3.0V , VOL =1.00V  
IOL  
6.1  
IOL  
11.8  
19.6  
32.4  
IOL  
12.0  
IOL  
Note 3 : Weak or strong are standing for weak pull or strong pull transistor. Values are for R1=100kΩ  
55  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Parameter  
Conditions  
Symb. Min.  
Typ.  
Max.  
Unit  
Output High Current  
Vdd =1.5V, VOH= Vdd -0.15V  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
IOH  
-1.1  
-1.8  
-2.55  
-2.4  
-4.6  
-7.6  
-12.8  
-2.0  
-3.6  
-5.0  
-4.4  
-8.5  
-14.7  
-23.8  
-1.4  
-2.4  
-3.9  
-3.1  
-5.9  
-9.7  
-16.5  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
mA  
PA[5,0]  
Vdd =1.5V, VOH = Vdd -0.30V  
Vdd =1.5V, VOH = Vdd -0.50V  
Vdd =3.0V, VOH = Vdd -0.15V  
Vdd =3.0V , VOH = Vdd -0.30V  
Vdd =3.0V , VOH = Vdd -0.50V  
Vdd =3.0V , VOH = Vdd -1.00V  
-1.5  
-2.5  
Output High Current  
Vdd =1.5V, VOH = Vdd -0.15V  
PA[2,1]  
Vdd =1.5V, VOH = Vdd -0.30V  
Vdd =1.5V, VOH = Vdd -0.50V  
Vdd =3.0V, VOH = Vdd -0.15V  
Vdd =3.0V , VOH = Vdd -0.30V  
Vdd =3.0V , VOH = Vdd -0.50V  
Vdd =3.0V , VOH = Vdd -1.00V  
-3.0  
-6.4  
Output High Current  
Vdd =1.5V, VOH = Vdd -0.15V  
PA[3]  
Vdd =1.5V, VOH = Vdd -0.30V  
Vdd =1.5V, VOH = Vdd -0.50V  
Vdd =3.0V, VOH = Vdd -0.15V  
Vdd =3.0V , VOH = Vdd -0.30V  
Vdd =3.0V , VOH = Vdd -0.50V  
Vdd =3.0V , VOH = Vdd -1.00V  
-2.0  
-3.2  
16.8 RC oscillator frequency  
Conditions: Vdd =3.0V, with internal voltage regulator. Vdd =1.5V, without internal voltage regulator. Untrimmed absolute RC  
frequency.  
Parameter  
Conditions  
Vdd =1.8 – 3.0 V  
Vdd =1.4 – 1.6 V  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
Symbol  
df/f x dU  
df/f x dU  
fb1  
fb1x2  
fb1x4  
fb1x8  
fb1x16  
fb2  
fb2x2  
fb2x4  
fb2x8  
fb2x16  
Min.  
Typ.  
0.4  
Max.  
1.0  
5.0  
Unit  
%/V  
Voltage stability (note 4)  
Voltage stability (note 5)  
Basic 32 kHz  
Basic 32 kHz x 2  
Basic 32 kHz x 4  
Basic 32 kHz x 8  
Basic 32 kHz x 16  
Basic 50 kHz  
Basic 50 kHz x 2  
Basic 50 kHz x 4  
Basic 50 kHz x 8  
Basic 50 kHz x 16  
%/V  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
-25%  
-25%  
-25%  
-25%  
-25%  
-25%  
-25%  
-25%  
-25%  
-25%  
32  
64  
128  
256  
500  
50  
100  
200  
400  
800  
+25%  
+25%  
+25%  
+25%  
+25%  
+25%  
+25%  
+25%  
+25%  
+25%  
Note 4 : Applicable only for the versions with the internal voltage regulator  
Note 5 : Applicable only for the versions without the internal voltage regulator.  
56  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
Conditions: Vdd =3.0V, with internal voltage regulator. Vdd =1.5V, without internal voltage regulator. Untrimmed absolute RC  
frequency. T=25°C otherwise specified.  
Parameter  
Conditions  
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
Symbol  
fb1  
fb1x2  
fb1x4  
Min.  
-10%  
-10%  
-10%  
Typ.  
32  
64  
Max.  
-10%  
-10%  
-10%  
Unit  
kHz  
kHz  
kHz  
Basic 32 kHz  
Basic 32 kHz x 2  
Basic 32 kHz x 4  
128  
Basic 32 kHz x 4,  
freq drift 1.5V to 0.9V (low volt.)  
25°C  
df/f  
-6  
-14  
%
Basic 32 kHz x 8  
Basic 32 kHz x 16  
Basic 50 kHz  
Basic 50 kHz x 2  
Basic 50 kHz x 4  
Basic 50 kHz x 8  
Basic 50 kHz x 16  
Oscillator start voltage  
fb1x8  
fb1x16  
fb2  
fb2x2  
fb2x4  
fb2x8  
fb2x16  
Ustart  
-10%  
-10%  
-10%  
-10%  
-10%  
-10%  
-10%  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
kHz  
V
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
-10 to 70°C  
Tstart < 10 ms  
-10%  
-10%  
-10%  
-10%  
-10%  
-10%  
-10%  
VDDmin  
256  
500  
50  
100  
200  
400  
800  
Oscillator start time  
Vdd > VDDMin  
Vdd > VDDMin  
tdosc  
tdsys  
0.1  
0.5  
5.0  
6.0  
ms  
ms  
System start time  
(oscillator + cold-start + reset)  
16.9 Sleep Counter Reset - SCR  
Conditions: Vdd =3.0V, with internal voltage regulator. Vdd =1.5V, without internal voltage regulator.  
Parameter  
Conditions  
Symbol  
tSCR00  
tSCR01  
tSCR10  
tSCR11  
Min.  
Typ.  
13  
Max.  
Unit  
SCR timeout 0  
SCR timeout 1  
SCR timeout of 2  
SCR timeout of 3  
ms  
ms  
s
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
-20 to 85°C  
130  
1.1  
8.8  
s
57  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
17. Die, Pad Location and Size  
Information upon request to EM Microelectronic-Marin S.A.  
58  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
18. Package Dimensions  
18.1 SO-8/14  
59  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
18.2 TSSOP-8/14  
4
B
1.00  
1.00 DIA.  
C
B
3
2
1
B
E/2  
1.00  
C
L
E
E1  
5
4X  
0.20  
H
C
A-B  
A-B  
D
D
N
0.20  
7
D
2X N/2 TIPS  
4
SEE  
DETAIL "A"  
A
4
TOP VIEW  
END VIEW  
THIS TABLE FOR 0.65mm PITCH  
S
COMMON  
DIMENSIONS  
NOM.  
NOTE  
VARI-  
5
7
Y
M
N
B
D
P
P1  
N
O
T
O
E
L
ATIONS  
AA/AAT  
AB-1/ABT  
AB/ABT  
AC/ACT  
AD/ADT  
AE/AET  
MIN.  
MAX.  
1.10  
0.15  
MAX.  
MAX.  
3.00 BSC  
5.00 BSC  
5.00 BSC  
6.50 BSC  
7.80 BSC  
9.70 BSC  
2.2  
3.2  
8
A
0.05  
0.85  
3.1  
3.0  
4.2  
5.5  
5.5  
3.0  
3.0  
3.0  
3.0  
3.0  
14  
16  
20  
24  
28  
A
A
1
0.90  
0.076  
-
0.22  
0.10  
-
0.95  
2
aaa  
b
b1  
bbb  
c
0.19  
0.19  
0.30  
0.25  
9
- DESIGNED BUT NOT TOOLED  
0.09  
0.09  
0.20  
0.16  
c1  
D
E1  
e
E
L
N
P
0.127  
5
5
SEE VARIATIONS  
4.30  
4.40  
0.65 BSC  
6.40 BSC  
0.60  
4.50  
0.70  
bbb  
M
C
A-B  
D
b
9
A2  
0.05  
C
6
7
0.50  
A
SEE VARIATIONS  
SEE VARIATIONS  
SEE VARIATIONS  
C
13  
13  
P1  
C
C
H
3
aaa  
OC  
8
0°  
8°  
e
A1  
SEATING  
PLANE  
(14°)  
5
D
0.25  
PARTING  
LINE  
H
L
6
e/2  
C
)
(
OC  
X
X = A AND B  
X
X = A AND B  
(1.00)  
ODD LEAD SIDES  
TOPVIEW  
EVEN LEAD SIDES  
TOPVIEW  
DETAIL 'A'  
(14°)  
(SCALE: 30/1)  
(VIEW ROTATED 90° C.W.)  
60  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  
R
EM6682  
19. Ordering Information  
Packaged Device:  
Device in DIE Form:  
EM6682 WS 11 %%%  
EM6682 SO8 A %%%  
-
-
Package:  
Die form:  
SO8 = 8 pin SOIC  
TP8 = 8 pin TSSOP  
DL8 = 8 pin DIP (note 1)  
SO14 = 14 pin SOIC  
TP14 = 14 pin TSSOP  
WW = Wafer  
WS = Sawn Wafer/Frame  
WP = Waffle Pack  
Thickness:  
11 = 11 mils (280um), by default  
27 = 27 mils (686um), not backlapped  
(for other thickness, contact EM)  
Delivery Form:  
A = Stick  
B = Tape&Reel (for SO8 and TP8 only)  
Customer Version:  
Customer Version:  
customer-specific number  
given by EM Microelectronic  
customer-specific number  
given by EM Microelectronic  
Note 1: Please contact EM Microelectronic-Marin S.A. for availability of DIP package for engineering samples. In its  
package form, EM6682 is available in Green mold / lead free.  
Ordering Part Number (selected examples)  
Package/Die  
Form  
Part Number  
Delivery Form/ Thickness  
EM6682SO8A-%%% +  
EM6682SO8B-%%% +  
EM6682SO14A-%%% +  
EM6682TP8A-%%%  
EM6682TP8B-%%%  
EM6682WS11-%%%  
EM6682WP11-%%%  
8 pin SOIC  
8 pin SOIC  
14 pin SOIC  
8 pin TSSOP  
8 pin TSSOP  
Sawn wafer  
Die in waffle pack  
Stick  
Tape&Reel  
Stick  
Stick  
Tape&Reel  
11 mils  
11 mils  
Please make sure to give the complete Part Number when ordering, including the 3-digit customer version. The customer  
version is made of 3 numbers %%% (e.g. 008 , 012, 131, etc.)  
19.1 Package Marking  
8-pin SOIC marking:  
8-pin TSSOP marking:  
First line:  
6
6
8
2 % % %  
6
6
8
2
Second line:  
Third line:  
P
P
P
P
P
P
Y
P
P
% %  
%
C
P
C C C  
14-pin SOIC marking:  
14-pin TSSOP marking:  
First line:  
Second line:  
Third line:  
E M  
6
P
6
P
8
P
2 %  
%
P
P
6
P
6
P
8
P
P
2
P
P
% %  
P
P
P
P
Y
P
P
P
Y
C C C C C C  
Where: %%% or %% = customer version, specific number given by EM (e.g. 008, 012, 131, etc.)  
PP…P = Production identification (date & lot number) of EM Microelectronic  
Y = year of assembly  
CC…C = Customer specific package marking on third line, selected by customer  
19.2 Customer Marking  
There are 3 digits available for customer marking on SO8, 1 for TSSOP8, 6 for SO14 and 0 for TSSOP14.  
Please specify the desired customer marking:  
EM Microelectronic-Marin SA (EM) makes no warranty for the use of its products, other than those expressly contained in the Company's  
standard warranty which is detailed in EM's General Terms of Sale located on the Company's web site. EM assumes no responsibility for  
any errors which may appear in this document, reserves the right to change devices or specifications detailed herein at any time without  
notice, and does not make any commitment to update the information contained herein. No licenses to patents or other intellectual  
property of EM are granted in connection with the sale of EM products, expressly or by implications. EM's products are not authorized for  
use as components in life support devices or systems.  
© EM Microelectronic-Marin SA, 01/06, Rev. B  
61  
www.emmicroelectronic.com  
Copyright © 2005, EM Microelectronic-Marin SA  

相关型号:

EM669325

4M x 32 Low Power SDRAM (LPSDRAM)
ETRON

EM669325BG-1H/LG

4M x 32 Low Power SDRAM (LPSDRAM)
ETRON

EM669325BG-7.5G

4M x 32 Low Power SDRAM (LPSDRAM)
ETRON

EM669325BG-8G

4M x 32 Low Power SDRAM (LPSDRAM)
ETRON

EM66932A

4M x 32 Hand-Held Low Power SDRAM (LPSDRAM)
ETRON

EM66932ABG-1H/LG

4M x 32 Hand-Held Low Power SDRAM (LPSDRAM)
ETRON

EM66932ABG-7.5G

4M x 32 Hand-Held Low Power SDRAM (LPSDRAM)
ETRON

EM66932ABG-8G

4M x 32 Hand-Held Low Power SDRAM (LPSDRAM)
ETRON

EM671

Single and dual output 1 to 1.5 Watt Nominal input DC/DC converters
ARTESYN

EM672

Single and dual output 1 to 1.5 Watt Nominal input DC/DC converters
ARTESYN

EM680FP16AS-45LF

64K x16 bit Super Low Power and Low Voltage Full CMOS Static RAM
EMLSI

EM680FP16AS-45LL

64K x16 bit Super Low Power and Low Voltage Full CMOS Static RAM
EMLSI