PK-HCS12C32 SofTec Microsystems SRL, PK-HCS12C32 Datasheet

KIT STARTER USB FOR MC9S12C32

PK-HCS12C32

Manufacturer Part Number
PK-HCS12C32
Description
KIT STARTER USB FOR MC9S12C32
Manufacturer
SofTec Microsystems SRL
Datasheet

Specifications of PK-HCS12C32

Kit Contents
Emulator/Programmer
Evaluation Board For
Peak Reflow Compatible (260 C)
Leaded Process Compatible
No
Interface Type
Serial
For Use With
MC9S12C32 Microcontroller
Lead Free Status / RoHS Status
Contains lead / RoHS non-compliant
Other names
520-1015

Related parts for PK-HCS12C32

PK-HCS12C32 Summary of contents

Page 1

...

Page 2

... PK-HCS12C32 Starter Kit for Motorola MC9S12C32 User’s Manual Copyright © 2003 SofTec Microsystems DC00685 ® ...

Page 3

... Web: http://www.softecmicro.com Important SofTec Microsystems reserves the right to make improvements to the PK Series of Starter Kits, their documentation and software routines, without notice. Information in this manual is intended to be accurate and reliable. However, SofTec Microsystems assumes no responsibility for its use; nor for any infringements of rights of third parties which may result from its use ...

Page 4

... Contents 1. Overview What is the PK-HCS12C32 Starter Kit? Background Debug Module (BDM) PK-HCS12C32 Board Layout CodeWarrior Integrated Development Environment Recommended Reading Software Upgrades 2. Getting Started PK-HCS12C32 Components Host System Requirements Installing the Software Installing Metrowerks CodeWarrior IDE Installing SofTec Microsystems Additional Components ...

Page 5

... Microcontroller Peripheral Running when Execution is Stopped Real-Time Memory Update PLL Usage Hardware Breakpoints and Software Breakpoints Advanced Debugging Features DataBlaze Programming Utility DataBlaze Notes 5. Troubleshooting Common Problems and Solutions Communication Can’t Be Established with PK-HCS12C32 Stepping Execution is Slow Getting Technical Support Appendix A. Electrical and Physical Specifications ...

Page 6

... Overview What is the PK-HCS12C32 Starter Kit? The PK-HCS12C32 Starter Kit is an entry level tool which allows you to get started with the Motorola MC9S12C32 microcontroller. The main features of the MC9S12C32 microcontroller are: § High-performance 16-bit HCS12 core; § FLASH memory; § RAM; ...

Page 7

... Metrowerks CodeWarrior IDE (the same user interface of all Motorola tools), with editor, assembler, C compiler and debugger. Note: the PK-HCS12C32 starter kit has been designed for evaluation purposes only. Even though it has full-feature debugging options, its main limitations are: § The target microcontroller is fixed (soldered to the board). ...

Page 8

... A “USB to BDM Interface” section. It contains the circuitry needed to electrically and logically translate BDM-like commands sent by the host PC through the USB cable to the BDM interface of the microcontroller. The PK-HCS12C32 board is powered ( the USB bus “Demo” section. It features a RESET push-button, two user push-buttons, a potentiometer and eight user LEDs “ ...

Page 9

... Overview 1 CodeWarrior Integrated Development Environment PK-HCS12C32 comes with a free version of CodeWarrior Development Studio for HC(S)12 Microcontrollers, Special Edition. CodeWarrior Development Studio for HC(S) powerful and easy-to-use tool suite designed to increase your software development productivity. Its Integrated Development Environment (IDE) provides unrivaled features such as Processor Expert application design tool, full chip simulation, Data Visualization and project manager with templates to help you concentrate on the added value of your application ...

Page 10

... Motorola HCS12 Datasheets—Include detailed information on the devices’ background debug module. Software Upgrades The latest version of the PK-HCS12C32 system software is always available free of charge from our website: http://www.softecmicro.com. Metrowerks CodeWarrior upgrades can be found at http://www.metrowerks.com. PK-HCS12C32 User's Manual ...

Page 11

...

Page 12

... A “QuickStart Tutorial” color poster; 6. This user’s manual. Host System Requirements The PK-HCS12C32 in-circuit debugger is controlled by an Integrated Development Environment running under Windows (CodeWarrior HC(S)12). The following hardware and software are required to run the CodeWarrior HC(S)12 user interface together with PK- HCS12C32: 1 ...

Page 13

... Note: before to connect the PK-HCS12C32 board to the PC recommended that you 2 install all of the required software first (see below), so that the PK-HCS12C32 USB driver will be automatically found by Windows when you connect the board. PK-HCS12C32 requires that both Metrowerks CodeWarrior IDE and SofTec Microsystems PK-HCS12C32 additional components be installed in the host PC ...

Page 14

... Install all the required system software as described in the previous section. 2. Insert one end of the USB cable into a free USB port. 3. Insert the other end of the USB cable into the “USB” connector on the PK-HCS12C32 board. The green “POWER” LED on the instrument should turn on. Windows will automatically recognize the instrument and will load the appropriate USB driver ...

Page 15

... ADC peripheral) and displays this value on the LEDs. To execute the sample application, follow the next steps Ensure that the PK-HCS12C32 board is connected to the PC (via the USB cable). 2. Start the CodeWarrior HC(S)12 IDE by selecting Start > Programs > Metrowerks CodeWarrior > CW12 > CodeWarrior IDE. The CodeWarrior HC(S)12 IDE will open. ...

Page 16

... The Example’s Source Code 5. From the main menu, choose Project > Debug. This will compile the source code, generate an executable file and download it to the PK-HCS12C32 board new debugger environment will open. PK-HCS12C32 User's Manual Page 15 2 ...

Page 17

... Getting Started 2 7. From the main menu, choose Run > Start/Continue. The program will be executed in real-time. By rotating the potentiometer on the PK-HCS12C32 board, you affect the results of the A/D conversion, and the value of each conversion is displayed on the LEDs. 8. From the main menu, choose Run > Halt. The program execution will stop. The next instruction to be executed is highlighted in the Source window ...

Page 18

... For an in-depth guide of all of the user interface features, select Help > CodeWarrior Help from the CodeWarrior HC(S)12 IDE’s main menu. Additional Examples Additional examples can be found under the “\Program Files\Metrowerks\CodeWarrior CW12\(CodeWarrior_Examples)\MC9S12\SofTec Microsystems\PK-HCS12C32” directory. PK-HCS12C32 User's Manual Page 17 2 ...

Page 19

...

Page 20

... Contrariwise to traditional in-circuit emulation (where the target application is executed and emulated inside the emulator), PK-HCS12C32 uses the very same target microcontroller to carry on in-circuit execution. This means that all microcontroller’s peripherals (timers, A/D converters, I/O pins, etc.) are not reconstructed or simulated by an external device, but are the very same target microcontroller’ ...

Page 21

... Note: even though USB specifications require low-speed devices to be used only with a captive or manufacturer-specific USB cable, we have decided to use a standard USB cable. We therefore recommend that you use the PK-HCS12C32 board with the USB cable provided or, if you use another USB cable, ensure that the cable length does not exceed 2 meters ...

Page 22

... VRL (the reference voltages for the analog-to-digital converter) are connected and VSS, respectively. Prototype Area The prototype section features both a standard, thru-hole area (for mounting traditional components) and a SMD area (for soldering SMD components in SOIC package). PK-HCS12C32 User's Manual Page 21 3 ...

Page 23

...

Page 24

... From the main menu, select File > New dialog box will appear. Select “HC(S)12 New Project Wizard”. 3. Follow the Project Wizard steps, making sure you select the correct microcontroller derivative you are working with and the inDART-HCS12 board as emulator. PK-HCS12C32 User's Manual Page 23 4 ...

Page 25

... Debugging Features Note: in step 7 of the project wizard, make sure to select “inDART-HCS12 Hardware Debugging” as the connection for your project (the PK-HCS12C32 board is based on the SofTec Microsystems’ inDART debugging engine). 4 Starting your first Debugging Session The first time you enter a debugging session (by selecting Project > Debug from the CodeWarrior’ ...

Page 26

... Using Existing Projects with PK-HCS12C32 If your project has been targeted to an emulator/simulator other than PK-HCS12C32 and you wish to use PK-HCS12C32 as the debugger for your project, please do the following your project has been created with a version of CodeWarrior less than 3.0, make sure that the “ ...

Page 27

... A dialog box will appear asking you to locate the GDI DLL file needed to interface with 4 PK-HCS12C32. Select the SofTec_BDM12.dll file located into the \Program Files\Metrowerks\CodeWarrior CW12\prog\ directory. 4. The MCU Configuration dialog box will appear allowing you to select the PK-HCS12C32 board as the hardware debugger. Page 26 The Set Target Dialog Box ...

Page 28

... Note: when setting an instruction breakpoint on a RAM location, a software breakpoint is set (the opcode present at that location is automatically replaced by the BGND Assembly instruction). Therefore, no hardware breakpoints are wasted. PK-HCS12C32 User's Manual Page 27 4 ...

Page 29

Debugging Features Note: the Single Step command ( source code) and the Step Over and Step Out commands (both and Assembly source code) use one hardware breakpoint. Notes and Tips Entering Debug Session with ...

Page 30

... CLKSW bit in the Status register. If the CLKSW bit is set to 1, the BDM communication clock source is the microcontroller’s bus frequency; if the CLKSW bit is set to 0, the BDM communication clock source is a constant clock source (in the case of the MC9S12C32, half the frequency of the external oscillator). PK-HCS12C32 User's Manual Page 29 4 ...

Page 31

... PLL, since this will not affect the BDM communication. Note: PK-HCS12C32 uses the 16 MHz external oscillator as the clock source for the BDM communication. This value is fixed by design, and cannot be changed (you cannot replace the external oscillator). ...

Page 32

... One-button, multiple-operations programming (“Auto” feature); § Serial numbering. Note: due to the evaluation purposes of the PK-HCS12C32 starter kit (and therefore to the slow data transfer rate from the PC to the target and vice versa), the DataBlaze programming utility takes a long time to write to/read from the whole microcontroller memory ...

Page 33

Debugging Features 4 DataBlaze Notes § The “Mass Erase” operation always blanks the device (even if the device is protected or secured) and “unsecures” the device (the FLASH Options/Security Byte location is programmed with 0xFE). § The “Blank Check” ...

Page 34

... Options/Security Byte location. The bit 0 of this byte is always programmed any attempt to program will cause a verifying error. § In the “Auto” operation, a “Run” option is available which, if enabled, resets the microcontroller and runs the user application at the end of programming. PK-HCS12C32 User's Manual Page 33 4 ...

Page 35

...

Page 36

... This section reports some common problems that may arise during general use. Communication Can’t Be Established with PK-HCS12C32 1. Make sure the PK-HCS12C32 starter kit is connected to the PC and powered on. PK- HCS12C32 is powered by the USB connection you connected the PK-HCS12C32 board to the PC before installing the CodeWarrior user interface and the SofTec Microsystems Additional Components, the PK- HCS12C32 USB driver may not have been correctly installed on your system ...

Page 37

... SofTec Microsystems offers its customers a free technical support service at support@softecmicro.com. Before getting in contact with us, we advise you to check that you are working with the latest version of the PK-HCS12C32 system software (upgrades are available free of charge at http://www.softecmicro.com). Additional resources can be found on our HCS12 online discussion forum ...

Page 38

... Appendix A. Electrical and Physical Specifications Operating Voltage Power Consumption Dimensions Weight Operating Temperature Storage Temperature Humidity Electrical and Physical Specifications PK-HCS12C32 User's Manual 4. (provided by the USB connection) 200 mA (max) 137 ° °C -20 ° °C 90% (without condensation) A Page 37 ...

Page 39

...

Page 40

...

Page 41

...

Page 42

...

Related keywords