Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Rev. 3
ETL 2002-2005
TABLE OF CONTENTS
1. PREFACE ...................................................................................................................................... 3
2. CHECKLIST AND REQUIREMENTS ........................................................................................ 3
3. INSTALLATION AND USE ........................................................................................................ 4
3.1 PROGRAMMER CHECK AND CONNECTION TO PC...................................................... 5
3.2 PROGRAMMER FIRMWARE UPDATE.............................................................................. 5
4. INTERFACE TYPES AND OPERATIONAL MODES............................................................... 5
4.1 IN-CIRCUIT PROGRAMMING............................................................................................. 6
4.2 ON-BOARD PROGRAMMING ............................................................................................. 6
4.3 MON08 MODE ....................................................................................................................... 6
4.4 AUTO SS MODE .................................................................................................................... 6
4.5 ENTER SS MODE .................................................................................................................. 7
5. WORKING WITH TARGET MCU.............................................................................................. 7
5.1 CUSTOMARY DEVICES....................................................................................................... 7
5.1.1 In-Circuit EEPROM reading example .............................................................................. 7
5.1.2 In-Circuit EEPROM programming example .................................................................... 8
5.1.3 On-Board EEPROM reading example.............................................................................. 8
5.1.4 On-Board EEPROM programming example .................................................................... 9
5.1.5 On-Board FLASH reading, programming ........................................................................ 9
5.1.5.1 Unsecure device using Auto SS mode ..................................................................... 10
5.1.5.2 Unsecure device using Enter SS mode .................................................................... 10
5.1.5.3 Unsecure device using FLASH Erase in Enter SS mode......................................... 11
5.2 ROM DEVICES..................................................................................................................... 11
5.3 MC68HC908AZ60 4J74Y MASKSET ................................................................................. 12
5.4 MC68HC08AZ60 1J35D MASKSET ................................................................................... 12
5.5 MC68HC08AZ32A 1L52H MASKSET................................................................................ 12
5.6 MC68HC05H12 0H57A MASKSET .................................................................................... 12
5.6.1 Working with EEPROM Options Register ..................................................................... 13
6. EEPROM STRUCTURE ............................................................................................................. 14
6.1 EEPROM BLOCK 1.............................................................................................................. 14
6.2 EEPROM BLOCK 2.............................................................................................................. 14
7. FLASH STRUCTURE................................................................................................................. 15
8. FILE OPERATIONS ................................................................................................................... 16
8.1 LOAD FILE INTO BUFFER ................................................................................................ 16
8.2 SAVE FILE FROM BUFFER ............................................................................................... 16
9. ERRORS AND TROUBLESHOOTING .................................................................................... 17
10. WARRANTY STATEMENT AND DISCLAIMER................................................................. 18
11. APPENDIX................................................................................................................................ 19
1. PREFACE
This manual will guide you through the installation and operation of the ETL
MC68HC908AZ60 Programmer Serial Port Version, referenced hereafter as the HC08Programmer.
The HC08-Programmer has been designed for Reading, Programming of FLASH, ROM,
EEPROM contents of the next Motorola Microcontroller Unit (MCU):
9 MC68HC908AZ60 (2J74Y)
9 MC68HC908AZ60 (4J74Y)
9 XC68HC908AZ60 (8H62A)*
9 MC68HC908AZ60A (3K85K)
9 MC68HC908AS60 (3J74Y)
9 MC68HC908AS60A (1L87J)
9 MC68HC908AB32 (3K56G)
9 MC68HC08AZ60 (1J35D)
9 MC68HC08AZ32 (0J66D)
9 MC68HC08AZ32 (1H56A)
9 MC68HC08AS20 (0H94K)
9 MC68HC08AZ32A (1L52H)
&
&
&
9 MC68HC05H12 (0H57A)
9 MC68HC08AB16A (0L72A)
Note: Most number of devices can be programmed in two operating modes InCircuit and On-Board. For full information about HC08-Programmer features
see Appendix Table 8.
Note: XC68HC908AZ60 device memory allocation and monitor ROM similar
to MC68HC908AS60 (3J74Y).
Note: Devices that not mentioned above in list cant be guaranteed of correct
reading, programming by HC08-Programmer.
&
HC08-Programmer is ready.
GREEN
GREEN Flashing
RED
HC08-Programmer is busy.
Error occurred while operation.
Table 2. LED2 color meaning
Jumper-1 (JP1) is intended for HC08-Programmer mode selection (see Table 4). JP2 and
JP3 reserved for future use.
JP1
2
JP1 JP
JP3
JP1
JP2
JP3
&
Note: When Service mode selected LED1 and LED2 will be RED.
JP1
JP2
JP3
1 pin-key
PTC1
PTC3
PTC0
HIGH1
OSC1
GND
PTA0
GND
GND
RES
IRQ
VCC
Additional
connector
for In-Circuit
Programming
Connector
for In-Circuit
Programming
Power supply
connector 12 V
&
&
&
&
Note: When target adaptor with MCU mounted check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Because of using additional SCI interface pins (TxD, RxD) reading, writing of MCU
performed on high speed.
&
&
After several seconds LED1 on HC08-Programmer became to orange light. That means
that +5 voltage regulator switched on.
Also LED3 on HC08-Programmer must light orange. That means that +5 V voltage
regulator OK and logic levels on PTC0, PTC1, PTC3 pins OK.
When LED2 on HC08-Programmer became permanent green, reading completed. Now
target MCU powered off.
After read sequence successfully completed it is necessarily to save memory dump to
file (see Section 8.2).
If some errors appeared during reading process refer to Section 9.
&
&
Note: Extra care must be taken when programming the EEPROM nonvolatile
registers (EENVR1, EENVR2, EE1DIV, EE2DIV). See Section 6 for details.
Note: Strongly recommended before EEPROM programming, for a first time,
read EEPROM contents and save it to file.
&
&
Note: When target MCU mounted on adaptor check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Note: During removing the adaptor with target MCU HC08-Programmer must
be powered off to avoid damaging of programmer and target MCU!
&
&
&
&
Note: When target MCU mounted on adaptor check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Note: During removing the adaptor with target MCU HC08-Programmer must
be powered off to avoid damaging of programmer and target MCU!
Note: Extra care must be taken when programming the EEPROM nonvolatile
registers (EENVR1, EENVR2, EE1DIV, EE2DIV). See Section 6 for details.
Note: Strongly recommended before EEPROM programming, for a first time,
read EEPROM contents and save it to file.
&
&
Note: When target MCU mounted on adaptor check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Note: During removing the adaptor with target MCU HC08-Programmer must
be powered off to avoid damaging of programmer and target MCU!
10
&
&
&
Note: When target MCU mounted on adaptor check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Note: During removing the adaptor with target MCU HC08-Programmer must
be powered off to avoid damaging of programmer and target MCU!
Note: For new, erased devices eight Security Sequence bytes equal to FLASH
erase state (see Table 6).
&
&
Note: After target MCU mounted on adaptor check contacts careful to avoid
short circuit. Otherwise HC08-Programmer voltage regulator can be damaged!
Note: During removing the adaptor with target MCU HC08-Programmer must
be powered off to avoid damaging of programmer and target MCU!
11
Program memory of these devices formed while manufacturing of MCU by Motorola. So any
attempts to reprogram ROM section will be failed. Only EEPROM reading, programming
operation is available for this type of devices. Working with EEPROM area not differs from work
with customary devices (see Section 5.1).
&
12
47
7
VREFH
PB4
PB5 /MISO
PB6 /MOSI
IRQ/VPP IRQ
PB7 /SCK
OSC2
OSC1
PD0/AN0
RESET RESET
PD1/AN1
PD2/AN2
PD3/AN3
VSS VSS
To lock area:
Load or enter desired data to EEPROM Area (see Section 8.1).
Complete write to EEPROM (On Program Sequence panel push Program
EEPROM button than Start button)
Set EEPROM cell $0400 to $FD in Hex Editor.
Complete write to EEPROM.
On next power On EEPROM area from $0480 to $04FF will be locked for
programming.
46
AVDD
PB2 HIGH1
VDD VDD
PB1
PC0/TCAP0
PB0 PTA0
PC1/TCAP1
PA7
MC68HC(7)05H12
PC2/TCAP2
PC3/TCAP3
PB3 PTC0
14
PA6
40
PC4/TCMP0
PA5
PA4
PC5/TCMP1
PA3
PC6/RDI
PA2
PC7/TDO
PA1
PVDD2
PA0
PE0
PE1
PE2
PE3
PF0
PF1
PF2
PF3
PE4
PE5
21
PVDD1
PVSS1
34
33
PE6
20
PE7
PVSS2
13
6. EEPROM STRUCTURE
All Motorola devices 08 family has same EEPROM structure shortly described below.
&
14
EE2DIVH
EE2DIVL
9
9 $FE1C $FE18
9
9 $FE1C $FE18
9
9 $FE1C $FE18
9
9 $FE1C $FE7C $FE10
9
9 $FE1C $FE18
9
9 $FE1C $FE7C $FE10
$FE1C
$FE10
9
$FE
1C
$F
E18
9
9
$FE1C
9
$FE1C
9
$FE1C
9
$FE1C
$FE10
9
$F
E1C
9
Table 5. 08 family EEPROM structure
MC68HC908AZ60 (2J74Y)
MC68HC908AZ60 (4J74Y)
XC68HC908AZ60 (8H62A)
MC68HC908AZ60A(3K85K)
MC68HC908AS60 (3J74Y)
MC68HC908AS60A (1L87J)
MC68HC908AB32 (3K56G)
MC68HC08AZ60 (1J35D)
MC68HC08AZ32 (0J66D)
MC68HC08AZ32 (1H56A)
MC68HC08AS20 (0H94K)
MC68HC08AZ32A (1L52H)
MC68HC08AB16A (0L72A)
EE1DIVL
EE1DIVH
EENVR2
EENVR1
EEPROM2
EEPROM1
Device
$FE11
$FF70
$FF71
$FE11
$FE11
$FF70
$FF71
$FE11
7. FLASH STRUCTURE
This section shortly describes the structure of the embedded FLASH memory. FLASH area
physically divided into separate blocks. These blocks can be protected from erase, write operations
with help of FLASH Block Protect Registers:
FLASH-1 Block Protect Register (FL1BPR)
FLASH-2 Block Protect Register (FL2BPR) Not present on some MCU (see Table 6).
There are no restrictions of programming of any FLASH area.
ERASE
STATE
9
9
9
9
9
9
9
FL2BPR
MC68HC908AZ60 (2J74Y)
MC68HC908AZ60 (4J74Y)
XC68HC908AZ60 (8H62A)
MC68HC908AZ60A(3K85K)
MC68HC908AS60 (3J74Y)
MC68HC908AS60 (1L87J)
MC68HC908AB32 (3K56G)
MC68HC08AZ60 (1J35D)
MC68HC08AZ32 (0J66D)
MC68HC08AZ32 (1H56A)
MC68HC08AS20 (0H94K)
MC68HC08AZ32A (1L52H)
MC68HC08AB16A (0L72A)
FL1BPR
Device
ROM
FLASH
&
$FF80
$FF80
$FF80
$FF80
$FF80
$FF80
$FF7E
$FF81
$FF81
$FF81
$FF81
$FF81
$FF81
$00
$00
$00
$FF
$00
$FF
$FF
9
9
9
9
9
9
Table 6. 08 family FLASH/ROM structure
15
8. FILE OPERATIONS
This section describes basic rules of working with files. Memory dump from Hex Editor
(Buffer) can be load/save from/to hard disk. Also short descriptions such as project name, MCU
type and memory cell assignment can be done for future fast remind. HC08-Programmer accepts
tree types of file formats:
9 BIN (Binary format)
9 S-Record (Motorola S19, S20 Records format)
9 EEF (Extended ETL Format)
&
Note: Use EEF Format for future Load File Into Buffer automatically
processing. Also, only in EEF Format Project Description, Device Name and
Memory Cells attributes can be saved.
16
17
&
18
11. APPENDIX
M68HC08
CNT1
1
PTA0
Gnd 2
Gnd 3
RESET
PTA0
VSSA
Gnd
VSS
RESET
IRQ
VCC 6
IRQ
VDDA
VDD
CNT2
PTC1
PTC3
PTC0
OSC1
PTC1
PTC3
PTC0
External Clock*
OSC1
908AZ60
programmer
1,6...16 MHz
OSC2
PTA0
PTC0
PTC1
PTC3
Vss
Vssa
Vdd
Vdda
OSC1
OSC2
QFP64
QFP100
PLCC52
IRQ
Note: If crystal resonator frequency smaller than 1.6 MHz use External Clock
from CNT2 connector. Any component on OSC1, OSC2 such as capacitors,
resistors and crystal resonator must be disconnected.
RST
&
3
3
10
2
2
9
26
44
27
60
96
4
61
97
5
63
99
7
21
30
25
56
92
52
22
31
26
55
91
51
59
95
3
58
94
2
19
PTC0
PTC1
PTC0
OSC1
OSC2
CGMXFC
V SSA
V DDA
V REFH
PTD7
PTD6/ATD14/TACLK
PTD5/ATD13
PTD4/ATD12/TBCLK
61
60
59
58
57
56
55
54
53
52
51
50
49 PTH1/KBD4
PTC1
PTC2/MCLK
62
PTC3
PTC3
63
64 PTC5
PTC4
48 PTH0/KBD3
IRQ
IRQ
47
PTD3/ATD11
RES
RST
46
PTD2/ATD10
PTF0/TACH2
45
AV SS /VREFL
PTF1/TACH3
44
V DDAREF
PTF2/TACH4
43
PTD1/ATD9
PTF3/TACH5
42
PTD0/ATD8
PTF4/TBCH0
41
PTB7/ATD7
CANRx
40
PTB6/ATD6
CANTx
10
39
PTB5/ATD5
PTF5/TBCH1
11
38
PTB4/ATD4
PTF6
12
37
PTB3/ATD3
PTE0/TxD
13
36
PTB2/ATD2
PTE1/RxD
14
35
PTB1/ATD1
PTE2/TACH0
15
34
PTB0/ATD0
20
21
22
23
24
25
26
27
28
29
30
31
PTE7/SPSCK
VSS
V DD
PTG0/KBD0
PTG1/KBD1
PTG2/KBD2
PTA0
PTA1
PTA2
PTA3
PTA4
PTA5
GND
VCC
PTA7
PTA6 32
19
PTE6/MOSI
33
PTA0
18
64 QFP
PTE5/MISO
16
PTE4/SS 17
PTE3/TACH1
MC68HC(9)08AZ32
MC68HC(9)08AZ32A
MC68HC(9)08AZ60
MC68HC(9)08AZ60A
Figure 4. In-Circuit wiring diagram for 68HC(9)08AZxx Series MCU, QFP 64 Package
20
PTC0
PTC1
PTC0
OSC1
OSC2
CGMXFC
V SSA
V DDA
V REFH
PTD7
PTD6/ATD14/TACLK
PTD5/ATD13
PTD4/ATD12
61
60
59
58
57
56
55
54
53
52
51
50
49 PTH1/KBD4
PTC1
PTC2/MCLK
62
PTC3
PTC3
63
PTC5
64
PTC4
48
PTH0/KBD3
IRQ
IRQ
47
PTD3/ATD11
RES
RST
46
PTD2/ATD10
PTF0/TACH2
45
AV SS /VREFL
PTF1/TACH3
44
VDDAREF
PTF2/TACH4
43
PTD1/ATD9
PTF3/TACH5
42
PTD0/ATD8
PTF4
41
PTB7/ATD7
BDRxD
40
PTB6/ATD6
BDTxD
10
39
PTB5/ATD5
PTF5
11
38
PTB4/ATD4
PTF6
12
37
PTB3/ATD3
PTE0/TxD
13
36
PTB2/ATD2
PTE1/RxD
14
35
PTB1/ATD1
PTE2/TACH0
15
34
PTB0/ATD0
20
21
22
23
24
25
26
27
28
29
30
31
PTE7/SPSCK
V SS
V DD
PTG0/KBD0
PTG1/KBD1
PTG2/KBD2
PTA0
PTA1
PTA2
PTA3
PTA4
PTA5
GND
VCC
PTA7
PTA6 32
19
PTE6/MOSI
33
PTA0
18
64 QFP
PTE5/MISO
16
PTE4/SS 17
PTE3/TACH1
MC68HC(9)08AS20
MC68HC(9)08AS20A
MC68HC(9)08AS60
MC68HC(9)08AS60A
Figure 5. In-Circuit wiring diagram for 68HC(9)08ASxx Series MCU, QFP 64 Package
21
PTD6/ATD1 4/TACLK
PTD5/ATD1 3
49
48
PTD4/ATD1 2
VRE FH
50
47
OSC2
2
VSSA /V REF L
OSC1
3
52
PTC0
4
CG MXFC
PTC0
PTC1
5
PTC1
PTC2/MCLK
6
PTC3
PTC3
7
PTC4 8
46
PTD3/ATD11
IRQ
IRQ
45
PTD2/ATD10
RES
RST
10
44
PTD1/ATD9
43
PTD0/ATD8
42
PTB7/ATD7
41
PTB6/ATD6
40
PTB5/ATD5
39
PTB4/ATD4
PTF0/TACH2
11
PTF1/TACH3
12
PTF2/TACH4
13
PTF3/TACH5
14
MC68HC(9)08AS20
MC68HC(9)08AS20A
MC68HC(9)08AS60
MC68HC(9)08AS60A
52 PLCC
BDRxD
15
BDTxD
16
38
PTB3/ATD3
PTE0/TxD
17
37
PTB2/ATD2
PTE1/RxD
18
36
PTB1/ATD1
PTE2/TACH0
19
35
PTB0/ATD0
PTE3/TACH1 20
23
24
25
26
27
28
29
30
31
32
33
P TE6/MO SI
PTE7 /S PSCK
VSS
VD D
PTA0
PTA1
PTA2
PTA3
PTA4
PTA5
PTA6
GND
VCC
PTA0
22
PTE5 /MISO
PTE4 /SS
21
34
PTA7
Figure 6. In-Circuit wiring diagram for 68HC(9)08ASxx Series MCU, PLCC 52 Package
22
PTC0
PTC1
PTC0
OSC1
OSC2
CGMXFC
VSSA
VDDA
VREFH
PTD7
PTD6/TACLK
PTD5
PTD4/TBCLK
61
60
59
58
57
56
55
54
53
52
51
50
49
PTH1/KBD4
PT C1
PTC2/MCLK
62
PTC3
PTC3
63
PTC5
64
PTC4 1
48 PTH0/KBD3
IRQ
IRQ
47
PTD3
RES
RST
46
PTD2
PTF0/TACH2
45
AVSS/VREFL
PTF1/TACH3
44
VDDAREF
PTF2/TBCH2
43
PTD1
PTF3/TBCH3
42
PTD0
PTF4/TBCH0
41
PTB7/ATD7
NC
40
PTB6/ATD6
MC68HC908AB32
MC68HC(9)08AB16A
64 QFP
30
31
PTA4
PTA5
PTA6
32
29
PTA3
33 PTA7
PTA0
PTE4/SS
17
PTE3/TACH1 16
28
PTB0/ATD0
PTA2
34
27
15
PTA1
PTE2/TACH0
26
PTB1/ATD1
PTA0
35
25
14
PTG2/KBD2
PTE1/RxD
24
PTB2/ATD2
PTG1/KBD1
36
23
13
PTG0/KBD0
PTE0/TxD
22
PTB3/ATD3
VDD
37
VCC
12
21
PTF6
VSS
PTB4/ATD4
GND
38
20
11
PTE7/SPSCK
PTF5/TBCH1
19
PTB5/ATD5
PTE6/MOSI
39
18
10
PTE5/MISO
PTF7
Figure 7. In-Circuit wiring diagram for 68HC(9)08ABxx Series MCU, QFP 64 Package
23
IRQ
RES
IRQ
RST
91
92
94
93
PTC0
OSC1
OSC2
CGMXFC
VSSA
VDDA
PT C0
PTC1
PTC1
97
96
95
PTC 3
PTC3
99
PIN 1
PIN 76
ORIENTATION
MARK
MC68HC08AZ32
LQFP 100
PIN 51
31
44
VDD
PTA0
VCC
PTA0
30
VSS
GN D
PIN 26
Figure 8.In-Circuit wiring diagram for 68HC08AZ32 MCU, LQFP 100 Package
24
VREFH
PB4
PB5/MISO
PB6/MOSI
PB7/SCK
IRQ
IRQ/VPP
OSC2
OSC1
RES
RESET
PD0/AN0
PD1/AN1
PD2/AN2
PD3/AN3
VSS
GND
47
7
1
46
AVDD
VCC
PB3
PB2/ECLK
VDD
PB1
PC0/TCAP0
PB0
PC1/TCAP1
PA7
MC68HC(7)05H12
A G R E E M E
PC2/TCAP2
PC3/TCAP3
40
52 PLCC
PTA0
PA5
PA4
PC5/TCMP1
PA3
PC6/RDI
PA2
PC7/TDO
PA1
S U R E
HIGH1
PA6
14
PC4/TCMP0
PA0
PVDD2
PE0
PE1
PE2
PE3
PF0
PF1
PF2
PF3
PE4
PE5
PVDD1
PVSS1
34
33
2127
PE6
20
PE7
PVSS2
PTC0
25
9
9
9
9
9
9
9
9
9
9
9
9
9
9
Reading
9
9
9
9
9
9
9
9
9
9
9
9
9
9
MC68HC908AZ60 (4J74Y)
XC68HC908AZ60 (8H62A)*
MC68HC908AZ60A (3K85K)
MC68HC908AS60 (3J74Y)
MC68HC908AS60A (1L87J)
MC68HC908AB32 (3K56G)
MC68HC08AZ60 (1J35D)
MC68HC08AZ32 (0J66D)
MC68HC08AZ32 (1H56A)
MC68HC08AS20 (0H94K)
MC68HC08AZ32A (1L52H)
MC68HC08AB16A (0L72A)
MC68HC05H12 (0H57A)
FLASH/ROM
Reading
Feature
9 9
Extended security.
9 9 9
9 9 9
9 9 9
9 9 9
9 9 9
Programming
MON08 Mode
In-Circuit
Programming
On-Board
Programming
Auto SS Mode
26
&Note: XC68HC908AZ60 device memory allocation and monitor ROM similar to MC68HC908AS60 (3J74Y).
Programming
MC68HC908AZ60 (2J74Y)
Device
EEPROM
Enter SS Mode