Home
HC12 Welcome Kit V1.0 Manual EN
Contents
1. 12 Welcome Hardware Ver Monitor Ver 112 User Manual English Release October 7 1999 HC12 Welcome Kit Copyright C 1996 98 by MCT ElektronikladenGbR Hohe Str 9 13 D 04107 Leipzig Telefon 49 0 341 2118354 Fax 49 0 341 2118355 mailto leipzig elektronikladen de http www elektronikladen de mct This manual and the product described herein were designed carefully by the manufacturer We made every effort to avoid mistakes but we do not guarantee that it is 100 free of errors The manufacturers entire liability and your exclusive remedy shall be at the manufacturers option return of the price paid or repair or replacement of the product The manufacturer disclaims all other warranties either expressed or implied including but not limited to implied warranties of merchantability and fitness for a particular purpose with respect to the product including accompanying written material hardware and firmware In no event shall the manufacturer or its supplier be liable for any damages whatsoever including without limitation damages for loss of business profits business interruption loss of business information or other pecuniary loss arising out of the use of or inability to use the product even if the manufacturer has been advised of the possibility of such damages The product is not designed intended or authorized for use in applications in which the failure of the product could create a situation where
2. the contents of memory from 1000 17FF to F000 F7FF 17 12 Welcome Autostart function If you want that your user program beginning at 52000 starts automatically after reset then just connect the pins 35 PH7 and 37 PADO of connector ST6 The monitor detects this connection after reset and jumps directly to address F000 Pseudo Interrupt Vectors TwinPEEKs occupies the memory area which contains the interrupt vectors To give the user program access to interrupt vectors TwinPEEKs remaps all the ROM vectors to RAM locations This is equal to the pseudo vectors of the HC11 in Special Bootstrap Mode To use an interrupt vector in the user program you simply place a JMP instruction in the corresponding RAM interrupt vector Here is an example for the SPI daa 06 JMP Opcode staa 0BC7 SPI Pseudo Vector ldd isrFunc Jump Address std 0BC8 SPI Pseudo Vector 1 The following listing is part of the TwinPEEKs monitor program It shows which interrupt vector is placed as a pseudo vector at which address in RAM FFCE 0B B8 RAMTOP 72 KWUH FFDO 0B BB dc w RAMTOP 69 KWJ FFD2 0B BE dru RAMTOP 66 ATD 0B RAMTOP 63 i9 Cl FFD6 0B C4 dc w RAMTOP 60 501 SCIO 18 12 Welcome FF D8 FF DC FFDE 0 FFE4 FFE6 FFE8 BREE FF FO FFF2 FFF4 FFF6
3. PS5 TXD 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 28 24 25 26 27 28 29 30 1 32 33 35 36 37 38 39 40 a 42 43 44 45 46 47 48 49 50 ST5 LSTRB PE3 IRQ PE1 PC7 5 1 PD7 PD5 PD3 PD1 BKGD PG4 PG2 PGO PJ6 PJ4 PJ2 PJO PT6 RES_OUT HC12 Welcome Kit J umpers MODA MODB BKGD JP1 JP2 c 79 Operating Mode Special Single Chip Special Expanded Narrow Special Peripheral Special Expanded Wide Normal Single Chip Factory Default Normal Expanded Narrow Reserved Forced to Peripheral Normal Expanded Wide nun 10 12 Welcome Resource Registers 0000 01FF relocatable in 2KB steps 0800 0BFF RAM relocatable in 2KB steps 000 FFFF EEPROM Expanded Mode Resource Register 0000 01FF relocatable in 2KB steps 0800 0BFF RAM relocatable in 2KB steps 1000 1FFF EEPROM relocatable in 4KB steps 11 HC12 Welcome Kit Technical Data MCU 68HC812A4 16 MHz crystal clock 8 MHz interner clock 1024 bytes RAM e 4096 bytes EE
4. leaving these pins unterminated MC34164P3 PORTE CLOCK POWER SUPPLY c2 T2IN T20UT 1007 RIIN R20UT RZIN 232 ADDR_H ADDR_X CHIP SEL PORTS TIMER A D CONVERTER ADDR_L DATA_L KWD OATALH KWH HC812A4 Alle Prozessorsignale auPer XTAL und sind auf HC12 Welcome Kit 6 5 bau 676 je 2x25pol Stiftleiste herausgef hrt Copyright by MCT Lange amp Thamm Mikrocomputertechnik GbR ea 1 P2 MODB GE O O J el je R4 Parts Location Diagram HC12 Welcome Kit 12 Welcome Description Comment R1 10M Resistor axial R2 R4 47 Resistor axial R3 R7 R8 R9 4 7k Resistor axial R5 R10 22k Resistor axial C1 47 10V Electrolytic Capacitor 0 1 C2 C3 18pF Ceramic Capacitor 0 1 C6 C10 C11 C1A C1B C1C C1D C1E C1F 100nF Ceramic Capacitor 0 1 C7 C8 C9 25V Electrolytic Capacitor 0 1 Q1 16MHz Crystal HC49U 4 U1 68 812 4 MCU TQFP112 U2 MC34164P3 Reset Chip TO92 U3 MAX3232CPE RS232 Transceiver DIP16 JP1 JP2 JP3 Header1x3 Jumper JP4 Header1 x2 Jumper ST1 ST2 Header2x3 Header 6p ST3 ST4 Header2x5
5. Header 10p ST5 ST6 PF2x25 Header 50p ST7 SV_F35M Power Supply Connector BR1 BR2 Solder pads on solder side of PCB C4 C5 R6 Optional parts for the PLL not used here 2 Welcome Connectors BDM interface Input BKGD GND 4 RESET 6 571 5232 0 TXO 3 4 nc 5 6 nc 7 8 nc GND 9 10 nc ST3 Power Supply GND 2 n c 3 n c 4 ST7 BDM Out optional BKGD_OUT EB 3 4 5 6 ST2 RS232 1 3 4 5 6 7 8 9 10 ST4 GND RES_OUT VCC HC12 Welcome Kit MODB PE6 PBO PB2 PB4 PB6 2 4 PAG PFO PF2 PF4 PF6 1 H3 H5 H7 PADO PAD2 PAD4 PAD6 VDDA TXDO GND uU U U 3 4 5 6 7 8 9 10 11 12 i a 15 16 iv 19 20 ex ae ge zm 25 26 27 28 29 30 e se 84 85 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 ST6 EXTAL MODA PE5 ARST PE7 PB1 PB3 PB5 PB7 PAI PA3 5 7 1 5 PH2 PH4 PH6 VRH PAD1 PAD3 5 PAD7 RXDO vcc RW PE2 XIRQ PEO PC6 PC4 PC2 PCO PD6 PD4 PD2 PDO PGS PG3 PG1 PJ7 PJ5 PJ3 PJ1 PT7 BKGD OUT PT5 PT3 PT PS7
6. personal injury or death may occur Should you use the product for any such unintended or unauthorized application you shall indemnify and hold the manufacturer and its suppliers harmless against all claims even if such claim alleges that the manufacturer was negligent regarding the design or implementation of the product Product features and prices may change without notice All trademarks are properties of their respective holders HC12 Welcome Kit Contents Technical Support 2 Schematic 3 Parts Location Diagram 6 Connectors 8 Jumpers 10 Memory Map 11 Technical Data 12 TwinPEEKs Monitor 13 HC12 Welcome Kit Technical Support To receive technical support please contact your local Elektronikladen dealer You may also send email to the Elektronikladen support team via the following email address support elektronikladen de HC12 Welcome Kit Schematic The main component on the HC12 Welcome Kit board is an 68HC812A4 microcontroller U1 from Motorola The MCU is accompanied by a reset chip low voltage inhibitor U2 to avoid problems whenever the voltage is below operating level This device generates a reset if the voltage is below 2 8V The threshold level is set so low in order to operate the kit both with 5 and 3 volts Please note We recommend to operate the HC12 with 5V since Motorola deleted the 3V specification in newer issues of the HC812A4 Technical Data documents The RS232 level converter U
7. 3 was selected accordingly it works at both voltages too The MCU generates its clocks from a 16 MHz crystal connected to the XTAL and EXTAL pins The HC12 also has a PLL which is not used here If you would like to use the PLL feature you must replace the crystal and add the components C4 C5 and R6 Motorola has an application note about how to choose the appropriate values All controller signals except XTAL and XFC are available via two double row header connectors ST5 ST6 The connectors are not mounted as factory default to allow you to solder them up or downward depending on your application The jumpers JP1 JP2 and JP3 select the operating mode of the MCU See section Jumpers for details JP4 is not really a jumper but a connector for an external reset switch 1 and BR2 are solder pads on the solder side of the PCB They are closed by default You may open them if you want to supply VDDA and or VRH voltages different from VCC to the ADC subsystem STI is a Motorola compliant 6 pin header for the BDM interface of the HC12 You may use it to connect a BDM pod while debugging a program There is another 6 pin header ST2 which is an optional BDM output Presently ST2 has no 12 Welcome specific function the HC12 Welcome Kit apart from the fact that it carries two general purpose I O port pins of the MCU The I O pins of the HC812A4 have internal pull up resistors so there shouldn t be problems
8. FFF8 FFFA FFFC FFFE 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B 0B F8 C7 CA CD 00 03 06 09 0 DF 2 5 E8 EB EE F1 F4 F7 FA FD 00 dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc dc Se RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT RAMT OP OP OP OP OP OP OP OP OP OP OP OP OP OP OP OP 57 54 5 1 48 45 42 39 36 33 30 21 24 21 18 15 12 9 6 3 main SPI Pulse Accu Input Edge Pulse Accu Overflow imer Overflow 0 5 TC7 0 4 TC6 TOC3 TOC2 TC4 TOC1 TC3 TI C3 TQ TIC2 TCO IRQ KWUD XI RQ SW Illegal Opcode COP Fail Clock Monitor Fai Reset 19 12 Welcome Memory Usage First Last Memory Usage 0800 0AFF IRAM Available for user program 0BO0 0BB7 RAM Monitor Variables and Stack 0BB8 5 RAM Redirected Interrupt Vectors F000 F7FF EEPROM Available for user program F800 FFFF EEPROM TwinPEEKs Monitor Code 20
9. PROM e 8 channel 16 bit Timer e 16 Bit Pulse Accumulator Watchdog and Clock Monitor e 2xSCI 1 x SPI e channel 8 bit A D Converter e up to 24 Key Wakeup Ports 112 pin TQFP package Dimensions 86mm x 54 3 4 x 2 1 Power Supply e 4 5 5 5 V operating voltage e Typical current consumption 25mA 12 HC12 Welcome Kit TwinPEEKs Monitor Software Version 1 2 Overview Every HC12 Welcome Kit contains the TwinPEEKs software monitor TwinPEEKs starts automatically if you set the operating mode of the MCU to Normal Single Chip Mode TwinPEEKs occupies the upper half of the internal EEPROM space 2KB out of 4KB and 256 Bytes RAM so the first 768 Bytes are free The monitor protects itself from being deleted after every reset You will need a seperate BDM Downloader to replace the monitor software To communicate with a Host PC use the first RS232 channel SCIO of the HC12 Welcome Kit and set your PC terminal program to 9600 Baud 8N1 no handshake memory writes to the user EEPROM area the lower 2 KB will be handled by the monitor automatically Monitor Commands Monitor commands start with a single character for the specific command and one or more hexadecimal parameters seperated by a whitespace or comma The address range of the MCU is 64KB so addresses are up to 4 hex digits long Ending addresses are in the form Last address 1 The Example displays the memory contents from F100
10. essage Loading Now you can send the S Record file using the ASCII upload function of your terminal program The monitor does not echo the characters received The function aborts if a write error occurs The user may interrupt the function by pressing lt ESC gt The monitor can process SO S1 and S9 type records Please take care when writing to EEPROM locations Every write access can take up to 20ms 10ms erase time 10ms write time TwinPEEKs handles EEPROM write accesses but the user must not send the data faster than it can be written The easiest way to ensure the correct download timing is to use a line by line transmission For 16 HC12 Welcome Kit this purpose the monitor sends an acknowledge character after each S Record line that was processed Setup your PC terminal program in a way that it waits for this handshake character This option is available in most terminal programs even the TERMINAL EXE application from Windows 3 1 has such an option Another way to avoid timing problems is to load your code with full speed into RAM and then move it into EEPROM Here comes an example Your code occupies F000 F200 First load it into the RAM area 0800 0A00 using the load command with an offset of 1800 L 1800 Then you can move your program to the final EEPROM destination with M 0800 0A00 2000 M Move Memory Syntax lt AADR gt lt EADR gt lt ADR2 gt Examples 1000 1800 000
11. to D F100 F200 13 HC12 Welcome Kit D Dump Memory e Syntax D lt AADR gt EADR e Examples d 1000 1800 Display memory 000 to F7FF 4 1000 Display memory from 000 Stop 0100 Bytes after starting address d Display the next 0100 Bytes E Edit Memory e Syntax E lt AADR gt e Examples e 1000 Edit memory 000 Edit memory use last ending address In Edit Mode you can change a byte or use one of the following commands 14 12 Welcome ENTER Go to next memory location Go to previous memory location Re read the current memory location Quit Edit Mode Q Quit Edit Mode F Fill Memory e Syntax F lt AADR gt EADR BY Examples f f000 f800 ff Fill the memory area from F000 to F7FF with the value FF G Goto Address e Syntax lt AADR gt e Examples g f100 Call user program at 52100 9 Call user program at current address 15 HC12 Welcome Kit H Help Syntax H e Examples h Display help message L Load S Records e Syntax L lt OFFS gt Examples Load S Record file into memory e000 Load S Record file into memory and relocate all adresses in the S Re cord file by the offset E000 Usage First type in the load command The monitor displays the m
Download Pdf Manuals
Related Search
Related Contents
Philips MCD708/93 User's Manual Eglo 89348 ceiling lighting HeatSeeker 160 Termocamera ad immagini User guide - Steam Cleaner Reviews A Web-Configurable LabVIEW Virtual Instrument for a BL2600 and "user manual" Gestion du patrimoine communal - Centre Technique de la Forêt Copyright © All rights reserved.
Failed to retrieve file