R
EM6812
2.2 Programming connections
The EM6812 embedded Flash program memory is programmed using standard microcontroller programmers available from
3rd parties.
Programmers which currently support the EM6812:
•
ELNEC (SmartProg / LabProg / JetProg)
For an updated list please consult:
www.elnec.com
www.elnec.com/sw/dev_html/em_microelectronic_dev.htm
Erase/Write:The programmer allows to erase/write the whole program memory at once (bulk erase). Typical erase time is
20ms for the whole Flash memory. Erase is immediately followed by write (writing 1 intruction after the other). Typical write
time is 60µs/word.
Code protection: The program memory content can not be read back, instead a checksum (CRC) is generated and
compared with the programmer’s CRC value.
Last Address read: The very last address of the program memory may be read back. (code identification)
Connection into the DIL connector is 1 to 1, DIL pin 1 goes to SO or TSSOP pin1 and so on. An adapter is needed for the
SO and TSSOP packages.
On-board programming is possible by connecting the 5 programming terminals directly onto the PCB. This can be done with
a DIL to PCB connecting cable (not furnished) or by using the on-board programming connector, which is present on some
of the programmers.
Figure 2. On-board programming with DIL-adapter cable
1
24
23
22
21
20
19
18
17
16
15
14
13
2
3
4
5
24 23 22 21 20 19 18 17 16 15 14 13
6
7
8
9
10
11
12
EM6812
1
2
3
4
5
6
7
8
9
10 11 12
Dil Footprint
EM6812 on
PCB
on
Programmer
The programming interface terminals PB5 and PB7 are automatically configured in input mode as soon as Test terminal
goes high. This allows the programmer to download the programming setup into the circuit. As soon as a valid programming
mode is recognized the circuit will enter a special state and allow only Flash programming and CRC check to be done.
During programming the PortA is configured as output driving VSS level, PB[4:0] is in input state, PB6 is output.
7
www.emmicroelectronic.com
Copyright © 2005, EM Microelectronic-Marin SA