Engineering Technical Laboratory Rev.
TABLE OF CONTENTS 1. PREFACE ...................................................................................................................................... 3 2. CHECKLIST AND REQUIREMENTS ........................................................................................ 3 3. INSTALLATION AND USE ........................................................................................................ 4 3.1 PROGRAMMER CHECK AND CONNECTION TO PC.....................................................
1. PREFACE This manual will guide you through the installation and operation of the ETL MC68HC912/9S12 Programmer, referenced hereafter as the HC912-Programmer.
3. INSTALLATION AND USE The HC912-Programmer includes two LED’s and mode jumper (Figure 1). Color LED’s indicates programmer state and external power supply voltage (Table 1, 2). HC912-Programmer is ready. GREEN GREEN Flashing RED DARK HC912-Programmer is busy. Error occurred while operation. Voltage applied to HC912-Programmer lower than 6 Volt. Table 1. LED D1 color meaning Motorola device powered on. Motorola device powered off. Table 2.
3.1 PROGRAMMER CHECK AND CONNECTION TO PC Connect the power supply source to HC912-Programmer (an external 12 V DC power supply source is required). Attach a COM port cable to the 9-pin connector on the programmer and to a COM port on the PC. Insert jumper JP1 (see Figure 1). Remove any adaptor from Motorola device socket. Turn On power supply source and make sure that LED D1 appear green. Start HC912-Programmer software.
4. INTERFACE TYPES This section describes two interfaces, In-Circuit Programming (ICP) and On-Board Programming (OBP) of HC912-Programmer. 4.1 IN-CIRCUIT PROGRAMMING In-Circuit programming interface is basic for HC912-Programmer. With this interface HC912Programmer automatically detects target MCU bus speed. Ceramic resonator connected to target MCU must be in range from 2 MHz to 16 MHz.
5. WORKING WITH TARGET MCU This section contains overall information about Motorola MCUs supported by HC912Programmer. When HC912-Programmer successfully installed (see Section 3) target devices can be read, program and verify. 5.
Load EEPROM/FLASH data from file (see Section 6.1) or enter data to Hex Editor. Select “Program Sequence” panel in HC912-Programmer software. Press “EEPROM/FLASH” button. Press “Start” button. LED D4 on HC912-Programmer became to green light. That means that +5 voltage regulator switched on and VCC applied to target MCU. Now HC912-Programmer automatically detects MCU bus speed. When LED D1 on HC912-Programmer became permanent green, programming completed. Target MCU powered off.
Select “Program Sequence” panel in HC912-Programmer software. Press “EEPROM/FLASH” button. Press “Start” button. LED D4 on HC912-Programmer became to green light. That means that +5 voltage regulator switched on and VCC applied to target MCU. When LED D1 on HC912-Programmer became permanent green light, programming completed. If some errors appeared during programming process refer to Section 7. & & & & Note: When target MCU mounted on adaptor check contacts careful to avoid short circuit.
is some problem exists with running of Sector Erase and Program Commands when MCU secured. Only Bulk Erase of FLASH and EEPROM command possible. In many cases this problem can be solved by disabling of security via Backdoor Access Key. HC912-Programmer automatically read this key and passes the security sequence. But if Backdoor Access Key disabled there is no possibilities to disable security. To solve this problem the second method of security disabling must be used.
6. FILE OPERATIONS This section describes basic rules 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. HC912-Programmer accepts tree types of file formats: 9 BIN (Binary format) 9 Motorola S-Record (4 byte address) 9 Motorola S-Record (6 byte address) 9 EEF (Extended ETL Format) 6.1 LOAD FILE INTO BUFFER Select “File>Open” menu item.
7. ERRORS AND TROUBLESHOOTING This section describes most recently encountered problems, errors and fixing solutions. Problem: LED D1 (see Figure 1) Dark. Causes: This problem can accrue when external power supply connected to HC912Programmer is damaged or connected in wrong polarity. Solutions: Check voltage on HC912-Programmer power clamps. It must be 12 V +/- 1V. Problem: LED D1 (see Figure 1) Red.
Error Message: BDM Speed Auto Detection failed Causes: This message can appear in In-Circuit programming interface if target MCU not connected correctly to HC912-Programmer or MCU secured. Solutions: Check contacts between HC912-Programmer and MCU pins. If this error not disappeared, place MCU on corresponding QFP adaptor and use OnBoard programming interface. Error Message: BDM Activation Error Causes: This message can appear when wrong Device selected.
Error Message: Device still locked Causes: This message can appear in On-Board programming interface when target MCU secured. Solutions: Check accuracy of device type selected; take attention on MCU maskset. Try to reconnect to target MCU. Error Message: Device can't be unsecured Causes: This message can appear in In-Circuit programming interface when MCU EEPROM/FLASH erased (all data equal to $FF) and accordingly device still secured. Solutions: Check voltage on VCC pins.
9. APPENDIX HC912 Programmer HC912/9S12 MCU BKGD BKGD 1 Gnd 2 VSS Gnd RESET 4 P5 RESET VDD 6 1K 1K VDD Logic level on this pin must be “LOW” MODA Logic level on this pin must be “LOW” MODB Gnd External circuit * >1 K Note: To avoid damaging of ECLK pin it must be connected to external circuit via resistor equal or grater than 1 Kohm. ECLK EXTAL XTAL 2...16 MHz Figure 2.
PS0 / RxD PS2 PS1 / TxD PS3 PS5 / SDO/MOSI PS4 / SDI/MISO PS6 / SCK PS7 / CS /SS PDLC6 VFP PDLC4 PDLC5 PDLC2 PDLC3 PDLC1 / DLCTx PDLC0 / DLCRx VSSX PP7 VDDX PP6 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 PP5 PP4 PW3 / PP3 PW2 / PP2 PW1/ PP1 PW0/ PP0 IOC0 / PT0 IOC1 / PT1 IOC2 / PT2 VDD VSS IOC3 / PT3 IOC4 / PT4 IOC5 / PT5 IOC6 / PT6 PAI / IOC7 / PT7 BKGD SMODN / TAGHI/ BKGD ADDR0 / DATA0 / PB0 ADDR1 / DATA1 / PB1 MC68HC912B32 80 QFP 60 59 58 57 56 55 54 53 52 51 50 49 48
PP 3/PW3 PK 0/PIX0 PK 1/PIX1 PK 2/PIX2 PK 7/ECS VDDX VSSX RxCAN0 TxCA N0 RxCAN1 TxCA N1 PIB4 PIB5 PIB6/SDA PIB7/SCL VFP* PS 7/SS PS 6/SCK PS 5/SDO/MOSI PS 4/SDI/MISO PS 3/TxD1 PS 2/RxD1 PS 1/TxD0 PS 0/RxD0 VSSA VRL1 VRH1 VDDA MC68HC912 D60/DG128 112TQFP 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 PAD17/AN17
PP3/PW3 PK0/PIX0 PK1/PIX1 PK2/PIX2 PK7/ECS VDDX VSSX RxCAN0 TxCAN0 RxCAN1 TxCAN1 PIB4 PIB5 PIB6/SDA PIB7/SCL TEST PS7/SS PS6/SCK PS5/SDO/MOSI PS4/SDI/MISO PS3/TxD1 PS2/RxD1 PS1/TxD0 PS0/RxD0 VSSA VRL1 VRH1 VDDA 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 MC68HC912 D60A/DG128A 112 LQFP 84 83 82 81 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 60 59 58 57 PAD17/AN17 PAD07/AN07 PAD16/AN16 PAD06/AN06 PAD15/AN15 PAD05/AN05 PAD14/AN14 PAD04/AN04 PAD13/AN13 PAD03/AN
80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 PP3/PW3 PP4 PP5 PP6 PP7 VDDX VSSX PCAN0/RxCAN PCAN1/TxCAN VFP* PS7/SS PS6/SCK PS5/SDO/MOSI PS4/SDI/MISO PS3/TxD1 PS2/RxD1 PS1/TxD0 PS0/RxD0 VSSAD VDDAD External +12V for FLASH Programming MC68HC(9)12D60 80 QFP 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 PAD07/AN07 PAD06/AN06 PAD05/AN05 PAD04/AN04 PAD03/AN03 PAD02/AN02 PAD01/AN01 PAD00/AN00 VRL0 VRH0 VSS VDD PA7/ADDR15/DATA15/DATA7 PA6/ADDR14/DATA14/DATA6 PA5/ADDR13/DATA13/DATA5
PP3/PW3 PP4 PP5 PP6 PP7 VDDX VSSX PCAN0/RxCAN PCAN1/TxCAN TEST PS7/SS PS6/SCK PS5/SDO/MOSI PS4/SDI/MISO PS3/TxD1 PS2/RxD1 PS1/TxD0 PS0/RxD0 VSSAD VDDAD 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 MC68HC912D60A 80 QFP 60 59 58 57 56 55 54 53 52 51 50 49 48 47 46 45 44 43 42 41 PAD07/AN07 PAD06/AN06 PAD05/AN05 PAD04/AN04 PAD03/AN03 PAD02/AN02 PAD01/AN01 PAD00/AN00 VRL0 VRH0 VSS VDD PA7/ADDR15/DATA15/DATA7 PA6/ADDR14/DATA14/DATA6 PA5/ADDR13/DATA13/DATA5 PA4/ADDR12/DATA12/DATA4 PA3/ADDR11/DAT
PP4/KWP4/PWM4 PP5/KWP5/PWM5 PP7/KWP7/PWM7 VDDX VSSX PM0/RXCAN0/RXB PM1/TXCAN0/TXB PM2/RXCAN1/RXCAN0/MISO0 PM3/TXCAN1/TXCAN0/SS0 PM4/RXCAN0/RXCAN4/MOSI0 PM5/TXCAN0/TXCAN4/SCK0 PJ6/KWJ6/RXCAN4/SDA/RXCAN0 PJ7/KWJ7/TXCAN4/SCL/TXCAN0 VREGEN PS3/TXD1 PS2//RXD1 PS1/TXD0 PS0/RXD0 VSSA VRL 80 79 78 77 76 75 74 73 72 71 70 69 68 67 66 65 64 63 62 61 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 MC9S12 D64/DG64 MC9S12 DT128/DG128/DJ128/DB128 MC9S12 DT256/DG256/DJ256/DB256 80 QFP 60 59 58 57 56 55 54 53 52 51
PP4/KWP4/PWM4 PP5/KPW5/PWM5 PP6/KWP6/PWM6 PP7/KWP7/PWM7 PK7/ECS/ROMCTL VDDX VSSX PM0/RXCAN0/RXB PM1/TXCAN0/TXB PM2/RX_BF/RXCAN1/RXCAN0/MISO0 PM3/TX_BF/TXCAN1/TXCAN0/SS0 PM4/BF_PSYN/RXCAN0/RXCAN4/MOSI0 PM5/BF_PROK/TXCAN0/TXCAN4/SCK0 PJ6/KWJ6/RXCAN4/SDA/RXCAN0 PJ7/KWJ7/TXCAN4/SCL/TXCAN0 VREGEN PS7/SS0 PS6/SCK0 PS5/MOSI0 PS4/MISO0 PS3/TXD1 PS2/RXD1 PS1/TXD0 PS0/RXD0 PM6/BF_PERR/RXCAN4 PM7/BF_PSLM/TXCAN4 VSSA VRL 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95 94 93 92 91 90 89 88 87 86 85 M
PT7/IOC7 PT6/IOC6 PT5/IOC5 PT4/IOC4 PT3/IOC3/FP27 PT2/IOC2/FP26 PT1/IOC1/FP25 PT0/IOC0/FP24 VSSX1 VDD X1 PK7/ECS/ROMONE/FP23 PE7/NOACC/XCLKS/FP22 PE3/LSTRB/TAGLO/FP21 PE2/R/W/FP20 PL3/FP19 PL2/FP18 PL1/FP17 PL0/FP16 PA7/ADDR15/D ATA15/FP15 PA6/ADDR14/D ATA14/FP14 PA5/ADDR13/D ATA13/FP13 PA4/ADDR12/D ATA12/FP12 PA3/ADDR11/D ATA11/FP11 PA2/ADDR10/D ATA10/FP10 PA1/ADDR9/D ATA9/FP9 PA0/ADDR8/D ATA8/FP8 PB7/ADDR7/D ATA7/FP7 PB6/ADDR6/D ATA6/FP6 112 111 110 109 108 107 106 105 104 103 102 101 100 99 98 97 96 95
PT7/IOC7 PT6/IOC6 PT5/IOC5 PT4/IOC4 PT3/IOC3/FP27 PT2/IOC2/FP26 PT1/IOC1/FP25 PT0/IOC0/FP24 PJ 3/KWJ 3 PJ 2/KWJ 2 PJ 1/KWJ 1 PJ 0/KWJ 0 VSSX1 VDDX1 PK7/ECS/ROMONE/FP23 PE7/NOACC/XCLKS/FP22 PE3/LSTRB/TAGLO/FP21 PE2/R/W/FP20 PL7/FP31 PL6/FP30 PL5/FP29 PL4/FP28 PL3/FP19 PL2/FP18 PL1/FP17 PL0/FP16 PA7/ADDR15/DATA15/FP15 PA6/ADDR14/DATA14/FP14 PA5/ADDR13/DATA13/FP13 PA4/ADDR12/DATA12/FP12 PA3/ADDR11/DATA11/FP11 PA2/ADDR10/DATA10/FP10 PA1/ADDR9/DATA9/FP9 PA0/ADDR8/DATA8/FP8 PB7/ADDR7/DATA7/FP7 PB6/ADDR6/DATA6/FP6