This preview shows pages 1–3. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: Department of Electrical Engineering - Systems EE 459Lx - Embedded Systems Design Laboratory Programming the Freescale MC908JL16 in C (for CodeWarrior V6.x) by Allan G. Weber and Mark Redekopp 1 Introduction This document discusses the use of the CodeWarrior for Microcontrollers, Special Edition software for pro- gramming the Freescale HC08 microcontrollers in C. Much if this document is generic and applies to any processor in the HC08 family. However parts that discuss things like memory layout are specific to the processor currently being used in the class. The class is currently using the MC908JL16 (sometimes listed as MC68HC908JL16 .) If the CodeWarrior compiler is used for other HC08 processors the information in these areas will have to be adjusted to match the other processor. 2 Installation Instructions The CodeWarrior installation software can be obtained from the instructor if you wish to install the software on your own system. It should run on any Windows 2000, XP or Vista system. To install the software: Copy the installation file to your hard drive. Depending on the version it may have a name like CW_MCUs_V6_1.exe or CW_MCU_V6_2_SE_11262008.exe . Double-click on the file you just copied. There may also be some patch or updates file with it. Proceed through the series of questions and agreements posed to you. The program will try to install itself under the Program Files folder of your C drive. Feel free to change that if you desire. When you are asked what type of installation you desire, choose Complete. If there are any update files these can also be installed. After the installation is complete, reboot your system. The CodeWarrior application can be found in the Start menu under All Programs, Freescale Code- Warrior , CW for Microcontrollers V6.x, CodeWarrior IDE. You should now be ready to run the CodeWarrior development system to create software for your microcontroller. 3 Starting a New Project In order to create a program for your microcontroller, you must first have CodeWarrior create a project. A CodeWarrior project is a folder that contains all the necessary files and configuration information to build the project. Start CodeWarrior from the desktop icon or the Start menu and follow these steps. File...New Project.... This will bring up the new project wizard to gather information about your project. EE 459Lx, Rev. 1/14/09 1 On the Device and Connection screen select the microcontroller you will be using. For most of the class projects it should be the MC68HC908JL16 . Open up the HC08 list and then open the JK/JL Family list. Click on the microcontroller being used....
View Full Document
- Spring '11
- Electrical Engineering