ChipFind - документация

Электронный компонент: M6682

Скачать:  PDF   ZIP

Document Outline

R



EM6682
Copyright 2006, EM Microelectronic-Marin SA
1
www.emmicroelectronic.com
Ultra Low Power 8-pin Microcontroller


Features
True Low Power:
4.0 A active mode
3.0 A standby mode
0.35 A sleep mode
@ 1.5V, 32kHz, 25C
Low Supply Voltage 0.9 V to 5.5 V
Medium voltage version: 1.4V to 5.5V
Low voltage version: 0.9V to 1.8V
No external component needed
Available in TSSOP-8/14, SO-8/14 packages and die
4-bit ADC or 12 levels Supply Voltage Level
Detector (SVLD)
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))
Mask ROM 1536
16 bits
RAM 80
4 bits
Internal RC oscillator 32 kHz 800 kHz
2 clocks per instruction cycle
72 basic instructions
External CPU clock source possible
Watchdog timer (2 sec)
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)


Description
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
applications requiring an extended lifetime. A high
integration level make it an ideal choice for cost sensitive
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.
Tools include windows-based simulator and emulator.
The EM6682 simulator is usable for most of the
EM6682 functions.
Figure 1. Architecture
Core
EM6600
Stable
RC oscillator
32 - 800kHz
ROM
1536 x 16Bit
RAM
80 x 4Bit
Power Supply
Voltage reg.
Prescaler
10-Bit Univ
Count/Timer
Interrupt
Controller
Power on
Reset
Watchdog
V
DD
V
DD
Sleep Counter
Reset
* PA5 available only in 14-pin package and in die
4-bit ADC
SVLD check
PA1 & PA2: high-drive outputs (10mA)
Serial Interface
PA0 PA1 PA2 PA3 PA4 *PA5
Port A
Reset
Figure 2. Pin Configuration
PA0
1
PA1
2
PA2
3
PA3
4
8
V
DD
7
V
REG
6
PA4
(reset)
5
V
SS
EM6682
TSSOP-14, SO-14
NC
1
PA0
2
PA1
3
PA2
4
14
NC
13
V
DD
12
V
REG
11
PA5
10
PA4
(reset)
EM6682
PA3
5
NC
6
NC
7
9
V
SS
8
NC
TSSOP-8, SO-8
Typical Applications
Household appliances
Safety and security devices
Automotive controls
Sensor interfaces
Watchdog
Intelligent ADC
Driver (LED, triac)
EM MICROELECTRONIC -
MARIN SA
R



EM6682
Copyright
2005, EM Microelectronic-Marin SA
2
www.emmicroelectronic.com
EM6682 at a glance
Power Supply
- 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
@ 1.5V, 32kHz, 25C
RAM
- 80 x 4 bit, directly addressable
ROM
- 1536 x 16 bit (~3k Byte), metal mask programmable
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)
- 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
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)
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
- 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
- External clock source possible from PA1
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
- 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
- Weak pull-up selectable in Nch.
open drain
mode
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)
- Busy flag during measure
- Interrupt generated if SVLD measurement low
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
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
Sleep Counter Reset (SCR)
- wake up the EM6682 from sleep mode
- 4 timings selectable by register
- Inhibit SCR by register
Package form available
- TSSOP-8/14
- SO-8/14
- Die form (9 pin possible due to additional I/O pin)



NB: All frequencies written in this document are related to a typical system clock of 32 kHz !

R



EM6682
Copyright
2005, EM Microelectronic-Marin SA
3
www.emmicroelectronic.com
Table of Contents
FEATURES______________________________
1H1H
1
DESCRIPTION ___________________________
2H2H
1
EM6682 AT A GLANCE ____________________
3H3H
2
1.
PIN DESCRIPTION FOR EM6682 _______
4H4H
4
2.
OPERATING MODES ________________
5H5H
5
2.1
ACTIVE
M
ODE
_______________________
6H6H
5
2.2
STANDBY
(H
ALT
)
M
ODE
_______________
7H7H
5
2.3
SLEEP
M
ODE
_______________________
8H8H
5
3.
POWER SUPPLY____________________
9H9H
6
4.
RESET ____________________________
10H10H
7
4.1
POR
WITH
P
OWER
-C
HECK
R
ESET
_________
11H11H
8
4.2
I
NPUT
P
ORT
A
R
ESET
__________________
12H12H
9
4.3
D
IGITAL
W
ATCHDOG
T
IMER
R
ESET
________
13H13H
9
4.4
S
LEEP
C
OUNTER
R
ESET
_______________
14H14H
10
4.5
W
AKE
-U
P ON
C
HANGE
________________
15H15H
10
4.6
T
HE
CPU
S
TATE AFTER
R
ESET
__________
16H16H
10
5.
OSCILLATOR AND PRESCALER _____
17H17H
11
5.1
RC
O
SCILLATOR OR EXTERNAL
C
LOCK
_____
18H18H
11
5.2
S
PECIAL
4
STAGE
F
REQUENCY
D
IVIDER
____
19H19H
12
5.3
P
RESCALER
________________________
20H20H
13
6.
INPUT AND OUTPUT PORT A ________
21H21H
14
6.1
I
NPUT
/
O
UTPUT
P
ORT
O
VERVIEW
________
22H22H
14
6.2
P
ORT
A
AS
I
NPUT AND ITS
M
ULTIPLEXING
___
23H23H
15
6.2.1
Debouncer __________________________
24H24H
15
6.2.2
IRQ on Port A _______________________
25H25H
16
6.2.3
Pull-up/down ________________________
26H26H
16
6.2.4
Software test variables ________________
27H27H
17
6.2.5
Port A for 10-Bit Counter _______________
28H28H
17
6.2.6
Port A Wake-Up on change_____________
29H29H
17
6.2.7
Port A for Serial Interface ______________
30H30H
17
6.2.8
Port A for External Reset_______________
31H31H
17
6.2.9
Port PA[4] as Comparator Input _________
32H32H
17
6.2.10
Reset and Sleep on Port A _____________
33H33H
17
6.2.11
Port A Blocked Inputs _________________
34H34H
17
6.3
P
ORT
A
AS
O
UTPUT AND ITS
M
ULTIPLEXING
_
35H35H
18
6.3.1
CMOS / Nch. Open Drain Output ________
36H36H
18
6.4
P
ORT
A
REGISTERS
___________________
37H37H
19
7.
SERIAL PORT _____________________
38H38H
21
7.1
G
ENERAL
F
UNCTIONAL
D
ESCRIPTION
______
39H39H
22
7.2
D
ETAILED
F
UNCTIONAL
D
ESCRIPTION
______
40H40H
22
7.2.1
Output Modes _______________________
41H41H
23
7.3
S
ERIAL
I
NTERFACE
R
EGISTERS
__________
42H42H
24
8.
10-BIT COUNTER __________________
43H43H
25
8.1
F
ULL AND
L
IMITED
B
IT
C
OUNTING
________
44H44H
25
8.2
F
REQUENCY
S
ELECT AND
U
P
/D
OWN
C
OUNTING
45H45H
26
8.3
E
VENT
C
OUNTING
____________________
46H46H
27
8.4
P
ULSE
W
IDTH
M
ODULATION
(PWM) ______
47H47H
27
8.4.1
How the PWM Generator works. _________
48H48H
28
8.4.2
PWM Characteristics__________________
49H49H
29
8.4.3
PWM example _______________________
50H50H
29
8.5
C
OUNTER
S
ETUP
_____________________
51H51H
30
8.6
10-
BIT
C
OUNTER
R
EGISTERS
____________
52H52H
31
9.
SVLD / 4-BIT ADC __________________
53H53H
33
9.1
SVLD
TRIM
: ________________________
54H54H
35
F
IGURE
25.
SVLD
TIMING IN
"ADC"
MODE WHEN
SVLD
EN SET
@
"1" ___________________
55H55H
36
10.
RAM _____________________________
56H56H
37
11.
INTERRUPT CONTROLLER __________
57H57H
38
11.1
I
NTERRUPT CONTROL REGISTERS
_________
58H58H
39
12.
PERIPHERAL MEMORY MAP _________
59H59H
40
13.
ACTIVE SUPPLY CURRENT TEST _____
60H60H
43
14.
MASK OPTIONS____________________
61H61H
44
14.1
I
NPUT
/
O
UTPUT
P
ORTS
________________
62H62H
44
14.1.1
Port A Metal Options __________________
63H63H
44
14.1.2
RC oscillator Frequency Option _________
64H64H
46
14.1.3
Debouncer Frequency Option ___________
65H65H
46
14.1.4
Power-Check Level Option _____________
66H66H
46
14.1.5
ADC/SVLD Voltage Level #15___________
67H67H
46
14.1.6
Counter Update option ________________
68H68H
46
14.1.7
No regulator option ___________________
69H69H
47
14.1.8
SVLD level set_______________________
70H70H
47
14.1.9
Bit 0 don't care ______________________
71H71H
47
14.1.10
Counter clock source _________________
72H72H
48
14.1.11
Power check level init _________________
73H73H
48
15.
TYPICAL BEHAVIOUR_______________
74H74H
49
15.1
T
EMPERATURE
_______________________
75H75H
49
15.2
V
OLTAGE
___________________________
76H76H
50
16.
ELECTRICAL SPECIFICATION ________
77H77H
51
16.1
A
BSOLUTE
M
AXIMUM
R
ATINGS
___________
78H78H
51
16.2
H
ANDLING
P
ROCEDURES
_______________
79H79H
51
16.3
S
TANDARD
O
PERATING
C
ONDITIONS
_______
80H80H
51
16.4
DC
C
HARACTERISTICS
-
P
OWER
S
UPPLY
___
81H81H
52
16.5
ADC ______________________________
82H82H
53
16.6
SVLD _____________________________
83H83H
54
16.7
DC
CHARACTERISTICS
-
I/O
P
INS
_________
84H84H
55
16.8
RC
OSCILLATOR FREQUENCY
____________
85H85H
56
16.9
S
LEEP
C
OUNTER
R
ESET
-
SCR __________
86H86H
57
17.
DIE, PAD LOCATION AND SIZE _______
87H87H
58
18.
PACKAGE DIMENSIONS_____________
88H88H
59
18.1
SO-8/14 ___________________________
89H89H
59
18.2
TSSOP-8/14 _______________________
90H90H
60
19.
ORDERING INFORMATION___________
91H91H
61
19.1
P
ACKAGE
M
ARKING
___________________
92H92H
61
19.2
C
USTOMER
M
ARKING
__________________
93H93H
61
R



EM6682
Copyright
2005, EM Microelectronic-Marin SA
4
www.emmicroelectronic.com
1. Pin Description for EM6682

Table 1 EM6682 pin descriptions
# On
Chip
SO-8
Signal
Name
Description
1
1
PA0
General I/O, serial In, Wake-Up on Change, IRQ source,...
2
2
PA1
General I/O, serial CLK, timer source, external clock
3
3
PA2
General I/O, serial Out, freq. out, CPU reset status output,...
4
4
PA3
general I/O, serial Rdy/Cs, Interrupt source, Reset
5 5 V
ss
ground negative supply pin
6
6
PA4
general I, Reset, timer source, Interrupt source, Wake-Up, Compare I
7*
NC
PA5
general I/O, freq. Out, wake-up on change, IRQ source
8 7 V
reg
regulated voltage supported by 100nF tw. V
ss
9 8 V
dd
positive supply pin capacitance tw. V
dd
(C depends on V
dd
noise)
Figure 3. Typical configuration for medium voltage version from 1.4V to 5.5V
uPUS 4bits core
Digital peripherals
RAM 80 x 4 bits
ROM 1536 x 16 bits
Analog peripherals
RC oscillator
Power-on-Reset
Sleep Reset Cnt
SVLD
4-bit ADC
Voltage
regulator
Level Shifter
Vreg
Capacitor
100nF
C
Vreg
Vdd
I/O pad
Vss
Vbat
C
Vdd
For Vdd > 1.5V
Typ_config_vdd+15.vsd
1.5kOhm
Metal
option
Figure 4. Typical configuration for low voltage version from 0.9V to 1.8V
uPUS 4bits core
Digital peripherals
RAM 80 x 4 bits
ROM 1536 x 16 bits
Analog peripherals
RC oscillator
Power-on-Reset
Sleep Reset Cnt
SVLD
4-bit ADC
Voltage
regulator
Level Shifter
Vreg
Capacitor
100nF
C
Vreg
Vdd
I/O pad
Vss
Vbat
C
Vdd
For Vdd > 1.5V
Typ_config_vdd+15.vsd
1.5kOhm
Metal
option
NOTE: State of I/O pads may not be defined until V
reg
reaches typ. 0.8V and Power-On-Reset logic
supplied by V
reg
clears them to Inputs.
On I/O pins there are protective diodes towards V
dd
and V
ss
.
R



EM6682
Copyright
2005, EM Microelectronic-Marin SA
5
www.emmicroelectronic.com
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

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 level. 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").
START-UP
RESET
ACTIVE
or running
mode
STAND-BY
or HALT
mode
Clocks active
SLEEP
POWER-ON
Power-On-Reset & Power Check Level
POR static level
Power-Check Active
RC oscilator
running
8 oscillator
periods
reset synchronizer
and
Power-Check
8 CPU clock
periods
Reset-pad
WDreset
PORwPC
PORwPC
PORwPC
PORwPC
Everything stopped
Registers and
RAM keep their value
HALT instruction
interrupt/event
Sleep bit set
SleepResCnt
WakeUp on
Change
resetPortA
WDreset