EME66xx Hardware - EM Microelectronic

EM MICROELECTRONIC - MARIN SA
EME66xx
Hardware Description
EM66xx IN-CIRCUIT EMULATOR
HARDWARE DESCRIPTION
Version 3.0
December 2010
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
1
www.emmicroelectronic.com
EME66xx
Hardware Description
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
2
www.emmicroelectronic.com
EME66xx
Hardware Description
1.
EM66xx Emulator hardware description ......................................................................................................4
1.1. Warning ....................................................................................................................................................4
1.2. Front panel ...............................................................................................................................................5
1.2.1.
ICE connector pin-out .......................................................................................................................6
1.2.2.
LCD Connector pin-out ** ..................................................................................................................6
1.3. Rear Panel................................................................................................................................................7
1.4. Switch settings..........................................................................................................................................8
2.
General operational points. ..........................................................................................................................9
2.1. Using external clock .................................................................................................................................9
2.2. Option Registers .......................................................................................................................................9
2.3. Watchdog timers ......................................................................................................................................9
2.4. Synchronous and asynchronous modes ..................................................................................................9
3.
Configuration resistors. ..............................................................................................................................10
3.1. Port Configuration...................................................................................................................................10
3.2. Pull-up and Pull-down Resistor placement. ............................................................................................10
4.
Emulator configurations .............................................................................................................................11
4.1. EM6607 ..................................................................................................................................................11
4.2. EM6621, EM6622, EM6625, EM6626 ..................................................................................................12
4.3. EM6627 ..................................................................................................................................................13
4.4. EM6580, EM6680, EM6682 ...................................................................................................................14
5.
EM66xx emulator upgrade procedure........................................................................................................18
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
3
www.emmicroelectronic.com
EME66xx
Hardware Description
1.
EM66xx Emulator hardware description
1.1.
Warning
When connecting or disconnecting the EM66xx emulator to the target system or when connecting
headers or LCD’s to the connectors on the front panel it is essential that the emulator is powered off.
Failure to do this could result in damage to the emulator hardware, which would require the system
being returned to EM Microelectronic for repair.
Please also be aware that when Port pins are set to input, any voltage greater that the V I/O level that
has been set (See Below) can also damage the emulator. This includes transitory switching spikes as
well as sustained over voltage conditions. It is recommended that any high levels driven onto the
emulator port pins for sustained periods should be set to approximately 10 percent below the set V I/O
level. So for example, if V I/O is set to 3.0V then to drive a high on to PortB the recommended level
would be around 2.7V. Alternatively V I/O can be set above the switching level applied to the emulator to
say 3.3V in the above example.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
4
www.emmicroelectronic.com
EME66xx
Hardware Description
1.2.
Front panel
PIN 40
ON/OFF
PIN 1
PIN 40
PIN 1
RESET
SVLD
LCD CONNECTOR
HALT
ICE CONNECTOR
DEBUG
BREAK
RESET
The RESET switch will perform a hardware reset to the entire emulator, however it will not reinitialise peripheral
RAM or trace and program memory. It will set peripheral registers to their reset values as specified in the
respective microcontroller data sheets.
The SVLD (Supply Voltage Level Detect) switch will return a failing result during software control of the SVLD
peripheral, i.e. simulating a battery or supply low condition.
The four green LED‟s indicate the following conditions. HALT LED will light when a HALT instruction is
executed. DEBUG LED will light when connection to the host is made and the core is in a BREAK state. When
the core is running this LED will go out. BREAK LED will light when the connection to the host has been made. If
this LED in not illuminated then there is no communication with the monitor. RESET LED will light when a
hardware reset is performed.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
5
www.emmicroelectronic.com
EME66xx
Hardware Description
1.2.1.
PIN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
SIGNAL
PORTA 0
PORTA 1
PORTA 2
PORTA 3
PORTB 0
PORTB 1
PORTB 2
PORTB 3
PORTC 0
PORTC 1
PORTC 2
PORTC 3
PORTD 0
PORTD 1
PORTD 2
PORTD 3
RESET IN
GROUND
STROBE / RESET OUT
ADC Din
1.2.2.
PIN
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ICE connector pin-out
PIN
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SIGNAL
BUZZER
ADC VGND
CLOCK OUT
ADC VREF
PORTS 3
ADC Cin
PORTS 0
ADC Bin
GROUND
OSC IN
PORTS 1 / SWB CLK
VIOSET
PORTS 2 / SWB DATA
PORTE 0
PORTE 1
PORTE 2
PORTE 3
PIN
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
SIGNAL
COL 13
COL 14
COL 15
COL 16
COL 17
COL 18
COL 19
COL 20
COL 21
COL 22
COL 23
COL 24
COL 25
COL 26
COL 27
COL 28
COL 29
COL 30
COL 31
COL 32
ADC Ain
LCD Connector pin-out **
SIGNAL
NO CONNECTION
NO CONNECTION
ROW 4
ROW 3
ROW 2
ROW 1
GROUND
NO CONNECTION
COL 1
COL 2
COL 3
COL 4
COL 5
COL 6
COL 7
COL 8
COL 9
COL 10
COL 11
COL 12
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
6
www.emmicroelectronic.com
EME66xx
Hardware Description
1.3.
Rear Panel
1 2 3 4 5 6 7 8
1 2 3 4 5 6 7 8
S3
V I/O
S4
VLCD
RS-232
POWER
The V I/O adjustment allows the user to change the output drive level and input switching level of the V66xx
emulator. Thus, if it is required that the emulator operate in a system where the supply voltage is 0 to 3 volts,
then the inputs and outputs can be easily configured for this. The input switching level is CMOS compatible and
is around 0.5Vdd. So if V I/O is set to 3v then when input a Port will change from a logic 0 to a logic 1 at about
1.5V. In output mode a logic 0 will be approximately 0V and a logic 1 will be at approximately 3.0V.
In order to set V I/O it is necessary to do the following. Set an output line to drive a logic 1, e.g.
PortB-1. Then connect a voltmeter between PortB-1 and Ground (emulator side), turning the V I/O with a pot
trimmer will cause the output on the port pin to change, until the required level is obtained. It is possible to vary
the output drive between 1.5V and 5.5V.
Adjustment of the LCD drive levels are also possible using the VLCD trimmer pot. The output levels can be set
using a similar method to that outlined above, i.e. by setting a particular LCD column line high and measuring
with a voltmeter. The VLCD level can also be changed dynamically such that when display data is being
updated and the emulator is in RUN mode, it is possible to vary VLCD and observe what is happening to the
contrast on the display.
The POWER supply of the emulator is 12V DC/1A
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
7
www.emmicroelectronic.com
EME66xx
Hardware Description
1.4.
Switch settings
When switch settings are changed an emulator hardware reset should be performed or the emulator should be
powered off then on again.
SWITCH
S4-1
S4-2
S4-3
S4-4
S4-5
S4-6
S4-7
S4-8
S3-1
S3-2
S3-3
S3-4
S3-5
S3-6
S3-7
S3-8
FUNCTION
RESERVED
RESERVED
RS-232 BAUD RATE (19.2K / 9.6K)
WATCHDOG ENABLE
BREAK PERIPHERY
RESERVED
RESERVED
RESERVED
CORE CLOCK
OSCILLATOR 0
OSCILLATOR 1
CLOCK DIVIDER
CLOCK DIVIDER
RESERVED
RESERVED
INTERNAL BUZZER
DEFAULT
RESERVED
RESERVED
19.2K
ENABLED
DISABLED
RESERVED
RESERVED
RESERVED
DISABLED
INTERNAL
OSCILLATOR
DIVIDED BY 1
DIVIDED BY 1
RESERVED
RESERVED
DISABLED
POSITION
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
UP
Note the following:
During BREAK, if switch S4-5 is in the up position the core will stop execution of instructions but the peripheral
components such as timers and serial interfaces will continue to run. If this switch is set down then all peripheral
functions will stop when the Core BREAKs.
Switch S4-4 enables or disable the internal watchdog timer. This will also be disabled on BREAK if S4-5 is in the
down position.
Switch S3-1 will output the internal core clock out to the target system if required. However, this switch should
not be put into the down position on a no load situation.
Switch S3-8 will route the buzzer tone to an internal buzzer.
Switches S3-4 and S3-5 can be set to give a core clock frequency which is a division of the fundamental
oscillator fitted in the emulator. Have a look into the specific emulator to find the clock table configuration.
Switches S3-2 and S3-3 can be set to select the clock mode. The following table shows the three available
modes. The default mode is the internal oscillator.
S3-2
S3-3
SELECTION
EM66xx
UP
UP
INTERNAL OSCILLATOR

DOWN
UP
EXTERNAL CLOCK

UP
DOWN
NOT AVAILABLE
DOWN
DOWN
SYNTHESISER
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
8
www.emmicroelectronic.com
EME66xx
Hardware Description
2.
General operational points.
2.1.
Using external clock
An external clock can be used to control the EM66xx core (see previous table for switches selection). The clock
signal must be between 0 to 5Volts and a 50% duty cycle.
2.2.
Option Registers
The EM66xx range of microcontrollers has two methods of customising functions; mask options and option
registers. In the emulator only some of these functions are directly implemented. For example the selection of
pull-up and pulldown resistors at port pins is implemented directly on the emulator system board as outlined in
the following section. The pull resistors can be disable by software ( if the register exist in the memory map of
the EM66xx microcontrollers).
However those functions that are internal (i.e. those not associated with I/O) such as interrupt edge selection,
debouncer selection, etc, are implemented by manipulation of the corresponding option register as they would
be in the normal operation of a microcontroller. Those option registers that change I/O characteristics still exist
within the emulator and can be written and read as normal, but they will perform no function otherwise. The
exception to this is the EM6622 emulation system, which due to system constraints, does not implement those
option registers that change pull-up and pulldown selects. Reading these registers will always produce a value
of „1111‟ on the data bus no matter what the written value was.
2.3.
Watchdog timers
Only the logic watchdog is implemented in the EM66xx emulation system. This watchdog will generate a reset
signal to the core every 2.5 - 3.5 seconds at a system clock of 32.768khz. If the watchdog is enabled on the
emulator and the system is running in asynchronous mode then the core will be reset periodically. This will also
be the case when the emulator is in BREAK mode, resulting in all internal registers being set to their default
values as defined in the specification for each microcontroller.
If the watchdog switch is enabled and the emulator is in synchronous mode then during a BREAK the watchdog
will not generate a reset since all peripheral timing functions are statically timed with the core. If the watchdog is
disabled and the core is running asynchronously then no reset will be generated however all other timers will be
active as normal during a BREAK.
The other watchdog in the EM range of microcontrollers is the analogue watchdog, which supervises the
oscillator. If oscillation stops then a reset will be generated (see the appropriate microcontroller specification).
This function is not implemented in the emulator.
2.4.
Synchronous and asynchronous modes
As outlined above, if the switch enabling synchronous mode is activated then all peripheral functions will stop
when the Core BREAKs. This is a useful feature if one wishes to examine the contents of counter registers for
example. The exception to this is if a LCD controller is being emulated. Since a frame the emulator for the
display generates clock then if the periphery is running synchronously with the core then the frame clock will
also stop and the display will fade. It is recommended that when using the LCD controller that the periphery is
run asynchronously from the core with the logic watchdog disabled.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
9
www.emmicroelectronic.com
EME66xx
Hardware Description
3.
Configuration resistors.
3.1.
Port Configuration
The table below gives the reference designators on the emulator PCB of the pull-up and pulldown resistors for
the port configurations on the EM66xx emulator. Any value can be fitted to give the desired configuration, but
since these are 1206 SMD resistors it recommended that only EM Microelectronic personnel or someone
qualified in SMD fabrication should attempt configuration. You should also find the location for each level
shifters used for each ports.
Bit3
Level Shifters
Bit2
Bit1
Bit0
PortA
PortB
PortC
PortD
PortE
PortS/PP
U63
U12
U15
U17
U58
U7
U62
U11
U15
U17
U57
U6
U61
U9
U14
U16
U56
U6
U60
U8
U14
U16
U55
U50
STRB
RESET
U18
U19
N/A
N/A
N/A
N/A
N/A
N/A
N/A
3.2.
Bit3
Up
R4
R8
R12
R16
R152
R34
N/A
N/A
N/A
Bit3
Down
R20
R24
R28
R32
R156
R38
N/A
N/A
N/A
Bit2
Up
R3
R7
R11
R15
R151
R36
N/A
N/A
N/A
Pull Resistors
Bit2
Bit1
Down
Up
R19
R1
R23
R5
R27
R9
R31
R13
R155 R150
R40
R37
N/A
N/A
N/A
N/A
N/A
N/A
Bit1
Down
R17
R21
R25
R29
R154
R41
N/A
N/A
N/A
Bit0
Up
R2
R6
R10
R14
R149
R35
N/A
N/A
N/A
Bit0
Down
R18
R22
R26
R30
R153
R39
N/A
N/A
N/A
Pull-up and Pull-down Resistor placement.
The following representation shows the positions of the configuration resistors given in the table above.
Reference designators are also shown on the silk screen of the PCB.
R
R
R
R
R
R
R
R
R
R
R
R
13
29
30
14
150
154
153
149
35
39
34
38
R
R
R
R
R
R
R
R
R
R
R
R
15
31
32
16
151
155
156
152
36
40
37
41
R
R
R
R
R
R
R
R
R
R
R
R
1
17
18
2
5
21
22
6
9
25
10
26
R
R
R
R
R
R
R
R
R
R
R
R
19
3
20
4
7
23
24
8
11
27
12
28
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
10
www.emmicroelectronic.com
EME66xx
Hardware Description
4.
Emulator configurations
4.1.
EM6607
PortA
PortB
PortC
PortD
PortE
PortS/PP
Bit3
Level Shifters
Bit2
Bit1
Bit0
U63
U12
U15
U17
U58
N/A
U62
U11
U15
U17
U57
N/A
U60
U8
U14
U16
U55
N/A
U61
U9
U14
U16
U56
N/A
N/A
STRB
U18
N/A
N/A
N/A
RESET
U19
N/A
N/A
N/A
Note: Default mounted Resistor are grey.
Bit3
Up
R4
R8
R12
R16
R152
N/A
N/A
N/A
N/A
Bit3
Down
R20
R24
R28
R32
R156
N/A
N/A
N/A
N/A
Bit2
Up
R3
R7
R11
R15
R151
N/A
N/A
N/A
N/A
Pull Resistors
Bit2
Bit1
Down
Up
R19
R1
R23
R5
R27
R9
R31
R13
R155 R150
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Bit1
Down
R17
R21
R25
R29
R154
N/A
N/A
N/A
N/A
Bit0
Up
R2
R6
R10
R14
R149
N/A
N/A
N/A
N/A
Bit0
Down
R18
R22
R26
R30
R153
N/A
N/A
N/A
N/A
Components present on board are:
Jumpers
JP19 & JP20 on Pos. 1-2
JP30–JP35 on Pos. 1-2
ADC
PAD8 on Pos. U54
Oscillator
U23
32,768KHz
Remark & Options:
Use the following table to set the input port A reset Combination option.
Option
A
B
C
D
S3-6
S3-7
Function
Up
Down
Up
Down
Up
Up
Down
Down
No Inputs Reset
Reset = PA0 * PA1
Reset = PA0 * PA1 * PA2
Reset = PA0 * PA1 * PA2 * PA*3
SVLD Level implemented on the emulator are (01=1.3V), (10=2V),(11=2.3V).
Use the input called SVLD on the ICE board to modify the SVLD level applied.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
11
www.emmicroelectronic.com
EME66xx
Hardware Description
4.2.
PortA
PortB
PortC
PortD
PortE
PortS/PP
EM6621, EM6622, EM6625, EM6626
Bit3
Level Shifters
Bit2
Bit1
Bit0
U63
U12
N/A
N/A
N/A
U7
U62
U11
N/A
N/A
N/A
U6
U60
U8
N/A
N/A
N/A
U50
U61
U9
N/A
N/A
N/A
U6
N/A
STRB
U18
N/A
N/A
N/A
RESET
U19
N/A
N/A
N/A
Note: Default mounted Resistor are grey.
Bit3
Up
R4
R8
N/A
N/A
N/A
R34
N/A
N/A
N/A
Bit3
Down
R20
R24
N/A
N/A
N/A
R38
N/A
N/A
N/A
Bit2
Up
R3
R7
N/A
N/A
N/A
R36
N/A
N/A
N/A
Pull Resistors
Bit2
Bit1
Down
Up
R19
R1
R23
R5
N/A
N/A
N/A
N/A
N/A
N/A
R40
R37
N/A
N/A
N/A
N/A
N/A
N/A
Bit1
Down
R17
R21
N/A
N/A
N/A
R41
N/A
N/A
N/A
Bit0
Up
R2
R6
N/A
N/A
N/A
R35
N/A
N/A
N/A
Bit0
Down
R18
R22
N/A
N/A
N/A
R39
N/A
N/A
N/A
Components present on board are:
Jumpers
JP19 & JP20 on Pos. 1-2
JP13 on Pos. 1-2
Oscillator
U23
3,2768MHz
6621/22/25/26
U53
4,096 MHz
6625/26
Remark & Options:
Options OPTNchOpDPB & OPTNchOpDPS are implemented as follow:
As soon as OPTNchOpDPX[X] is set to 1 and RegXXData[X] value is 1, the port is set as input, the high state
must be applied by the pull-up resistor. In case of low state of the RegXXData[X] the port is set as output low.
Due to hardware limitation on port S (only 3 level shifter for 4 pad), if any PortS[2:1] are set as Nchannel open
drain with a data set to High, these two ports are configured to inputs.
It‟s possible to emulate the metal option “MDeb” by using the switch S3-7. CK[11] is used as debouncer clock
when the switch is up, whereas CK14 is used when it‟s down.
On the EM6625 / EM6626, Peripheral Clock is automatically divided to 32kHz:
EM6625 / EM6626 base clock
S3-2
S3-3
S3-4
S3-5
DIVISOR U23 / 32,768KHz U53 / 4,096 MHz
UP
UP
UP
UP
1
32,768kHz
DOWN
DOWN
UP
DOWN
2
32 kHz
DOWN
DOWN DOWN
UP
1
64 kHz
DOWN
DOWN DOWN
DOWN
4
128 kHz
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
12
www.emmicroelectronic.com
EME66xx
Hardware Description
4.3.
PortA
PortB
PortC
PortD
PortE
PortS/PP
EM6627
Bit3
Level Shifters
Bit2
Bit1
Bit0
U63
U12
N/A
N/A
N/A
U7
U62
U11
N/A
N/A
N/A
U6
U60
U8
N/A
N/A
N/A
U50
U61
U9
N/A
N/A
N/A
U6
N/A
STRB
U18
N/A
N/A
N/A
RESET
U19
N/A
N/A
N/A
Note: Default mounted Resistor are grey.
Bit3
Up
N/A
N/A
R12
R16
R152
N/A
N/A
N/A
N/A
Bit3
Down
R20
R24
N/A
N/A
N/A
R38
N/A
N/A
N/A
Bit2
Up
N/A
N/A
R11
R15
R151
N/A
N/A
N/A
N/A
Pull Resistors
Bit2
Bit1
Down
Up
R19
N/A
R23
N/A
N/A
R9
N/A
R13
N/A
R150
R40
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Bit1
Down
R17
R21
N/A
N/A
N/A
R41
N/A
N/A
N/A
Bit0
Up
N/A
N/A
R10
R14
R149
N/A
N/A
N/A
N/A
Bit0
Down
R18
R22
N/A
N/A
N/A
R39
N/A
N/A
N/A
Components present on board are:
Jumpers
JP19 & JP20 on Pos. 1-2
JP13 on Pos. 1-2
Oscillator
U23
3,2768MHz
6627
U53
4,096 MHz
6627
Remark & Options:
Due to hardware limitation on port S (only 3 level shifter for 4 pad), if any PortS[2:1] are set as Nchannel open
drain with a data set to High, these two ports are configured to inputs.
On the EM6627, Peripheral clock is set by the register RegRCSel, refer to EM6627 datasheet for more detail.
RC frequency selection: MRCFrequ
EM6627 base clock
U23 / 32,768KHz U53 / 4,096 MHz
S3-4
S3-5
UP
UP
32,768kHz
UP
DOWN
32 kHz
DOWN
UP
128 kHz
DOWN
DOWN
512 kHz
Three registers are used to show the content of the EEPROM value for verification (not applicable on the reel
devices). The user should write the value of the desired address into the register 46H in the watch data window
when the emulator is in break mode, directly after this write both registers 47H & 48H are updated with the value
of the addressed EEprom location. The address writing operation is validated by the return key.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
13
www.emmicroelectronic.com
EME66xx
Hardware Description
4.4.
PortA
PortB
PortC
PortD
PortE
PortS/PP
EM6580, EM6680, EM6682
Bit3
Level Shifters
Bit2
Bit1
Bit0
U63
U12
U15
N/A
N/A
N/A
U62
U11
U15
N/A
N/A
N/A
U60
U8
U14
N/A
N/A
N/A
U61
U9
U14
N/A
N/A
N/A
N/A
STRB
U18
N/A
N/A
N/A
RESET
U19
N/A
N/A
N/A
Note: Default mounted Resistor are grey.
Bit3
Up
R4
R8
R12
N/A
N/A
N/A
N/A
N/A
N/A
Bit3
Down
R20
R24
R28
N/A
N/A
N/A
N/A
N/A
N/A
Pull-Down
PortA bit 0
R28
PortA bit 1
R27
PortA bit 2
R25
PortA bit 3
R26
PortA bit 4
R24 (default)
PortA bit 5
R23
Note: R24 or R8 not both at the same time.
Bit2
Up
R3
R7
R11
N/A
N/A
N/A
N/A
N/A
N/A
Pull Resistors
Bit2
Bit1
Down
Up
R19
R1
R23
R5
R27
R9
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
N/A
Bit1
Down
R17
R21
R25
N/A
N/A
N/A
N/A
N/A
N/A
Bit0
Up
R2
R6
R10
N/A
N/A
N/A
N/A
N/A
N/A
Bit0
Down
R18
R22
R26
N/A
N/A
N/A
N/A
N/A
N/A
Pull-Up
R2
R1
R3
R4
R8
R5
Components present on board are:
Jumpers
JP19 & JP20 on Pos. 1-2
JP30-JP35 on Pos. 1-2
ADC
PAD8 on Pos. U54
Oscillator
U23
U53
4.096MHz
8MHz
Remark & Options:
For the EM6x80, Two ways is available on the emulator to select the desired RC clock frequency.
The first solution is by hardware switches which represent the metal option present on the EM6680.
S3-6 is used to enable the switches metal option when it‟s down.
Use the following table to select the core clock value:
Pos.
1
2
3
4
5
6
7
8
9
10
S3-6
Down
Down
Down
Down
Down
Down
Down
Down
Down
Down
S3-5
Down
Down
Up
Up
Up
Down
Down
Up
Up
Up
S3-4
Down
Up
Down
Up
Up
Down
Up
Down
Up
Up
S3-3
Up
Up
Up
Up
Up
Down
Down
Down
Down
Down
S3-2
Up
Up
Up
Up
Up
Down
Down
Down
Down
Down
S3-7
X
X
X
UP
Down
X
X
X
Up
Down
RC Frequency
512kHz
256kHz
128kHz
32kHz
64kHz
800kHz
400kHz
200kHz
50kHz
100kHz
System clock is automatically set to base frequency like 32 or 50kHz.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
14
www.emmicroelectronic.com
EME66xx
Hardware Description
The second solution is to keep each S3-6, S3-3, S3-4 in up position and to work only with the register RegMFP1
to adjust the desired RC frequency. If one of the switches is down it force a condition which cannot modify by
the register.
The following table is showing the possible selection:
RegMFP1[3] RegMFP1[2] RegMFP1[1] RegMFP1[0]
Opt[7]
Opt[6]
Opt[5]
Opt[4]
0
0
0
0
0
0
0
1
0
0
1
0
0
0
1
1
0
1
0
0
1
0
0
0
1
0
0
1
1
0
1
0
1
0
1
1
1
1
0
0
Frequency of RCclk
Unit
32.00
64.00
128.00
256.00
512.00
50.00
100.00
200.00
400.00
800.00
kHz
kHz
kHz
kHz
kHz
kHz
kHz
kHz
kHz
kHz
RegMFP1[3] bit selects the base frequency, 512kHz or 800kHz.
RegMFP1[2:0] bit select the frequency divider rate, 1, 2, 4, 8, 16.
When the RC frequency is changed the system clock, sysClk, will be automatically close as possible to 32/50
kHz thanks to frequency dividers. It‟s possible to modify the RC CPU frequency on the fly from 32 to 800kHz.
A special Power on Reset switch is implemented on the EME6680 emulator to be able to generate a POR of the
device without disconnect the EME6680 from the PC. The Controller is fully reset like a POR, but you don‟t need
to reconnect the emulator and reload the software on it.
Have a look on the following drawing to see where is situated the Switch for POR.
ADC(PA4)
SVLD
POR Switch
PA0
PA1
PA2
PA3
PA4
PA5
PA5
PA4
PA3
PA2
PA1
PA0
The following switches are used to select different metal options on EM6682.
Switches
S4-6
S4-7
S4-8
S3-6
Options
Counter update option
SVLD level selection
Power check selection
RC frequency selection mode
S3-7
S3-8
Metal option for frequency selection
Power check level selection
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
Up pos.
RC
EM6681
After POR
Register option
as EM6580
32/50kHz
Level 5
15
Down pos.
RC/2
EM6680
After Reset
Metal option
as EM6680
64/100kHz
Level 9
www.emmicroelectronic.com
EME66xx
Hardware Description
The ADC/SVLD levels are the following when Vbat is 3V.
LEVEL
EM6681 EM6680
0
0.36
0.5
1
0.49
0.65
2
0.49
0.8
3
0.58
0.95
4
0.68
1.1
5
0.77
1.25
6
0.829
1.4
7
0.922
1.55
8
1.02
1.7
9
1.11
1.85
10
1.2
2
11
1.3
2.15
12
1.39
2.30
13
1.48
2.45
14
1.57
2.60
15
1.66
2.75
ADC PA4 ExtVcheck on Din
SVLD on Ain
The two following tables show the metal mask option of the EM6680 which are implemented in register like the
EM6580.
Register RegMFP0
Bit
Name
3
Opt[3]
2
Opt[2]
1
Opt[1]
@ addr. 121 decimal = 79 hex.
Reset
R/W
Description
0
R/W
Debouncer clock select “0” = ck[11], “1”=ck[14]
0
R/W
Must be kept to “0”
0
R/W
Counter Clock source 7 selection
"0" PA3/PA4, "1" RCclk/2
0
Opt[0]
0
R/W
No effect
Note: PA4 Pull resistor is located on the EME66xx PCB at location R24 and R8. (Detail on page 22)
The ADC/SVLD Voltage level option is not implemented on the emulator, But to used Bit of the following register
are use for emulate some specific metal options.
Bit3 of RegMFP2 is used to select the SCR timing value, IF „1‟ is set the EM6680 timing value are used, if „0‟ the
EM6682 timing value are set.
Bit2 of RegMFP2 is used to select the length of the counter, If „0‟ value is set the 10 bits counter is used, if „1‟
the 9 bits counter is used.
Register RegMFP2
Bit
Name
3
Opt[11]
2
Opt[10]
1
0
Opt[9]
Opt[8]
@ addr. 123 decimal = 7D hex.
Reset
R/W
Description
3
R/W
SCR Timing selection (not implemented on EM6580
silicon)
2
R/W
Counter length selection „0‟ is 10bits „1‟ is 9bits (not
implemented on EM6580 silicon)
?
R/W
not used
0
R/W
ADC/SVLD voltage level#15: "0" 2.75v, "1" 3v (not
implemented on the emulator)
The SCR Timing implemented on the emulator are the following:
SCRSel [1:0]
OPT[11] set to high
00
1.82S
01
224mS
10
25.6mS
11
2.6mS
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
16
OPT[11] set to low
10.3mS
102mS
910mS
7.24S
www.emmicroelectronic.com
EME66xx
Hardware Description
Keep Guard: The RegMFPX Registers cannot be used in final ROM version software for EM6680, All
three registers are metal option on the EM6680. Please contact EMMicroeletronic for more details.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
17
www.emmicroelectronic.com
EME66xx
Hardware Description
5.
EM66xx emulator upgrade procedure
When changing from one emulator system to another or upgrading the emulator the following procedure should
be performed.
1. Switch off power and remove power cable and RS-232 cable at the rear of the system.
2. Remove the four retaining screws on the front panel.
3. Remove front panel.
4. Slide emulator system board forward and out of the housing.
5. At the rear of the board is located an 8 pin DIP module at U42.
6. Carefully remove this device from its socket and replace it with the new ROM.
7. Slide board back into housing and replace front panel with retaining screws.
8. Reconnect power and RS-232 cables.
9. Switch on system and ensure that when the monitor connects to the emulator that both
the DEBUG and BREAK LED‟s are illuminated.
10. The emulator should now be upgraded.
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.
Copyright  2010, EM Microelectronic-Marin SA
EME66xx-MN01.doc, Version 3.0, 22-Dec-10
18
www.emmicroelectronic.com