-
4
pages
-
English
-
Documents
Description
ESE 350 Microcontroller Laboratory Lab 0: Part A – HC12 Software Tutorial For this tutorial you will execute the traditional “Hello, World!” application on your microcontroller. Let’s get started! 1. To create a new file a. Launch CodeWarrior IDE b. File > New The HC(S)12 New project Wizard will appear c. Select the name and the location of the file you wish to create. d. Click OK After each of the following settings, click Next to progress to the next window. e. Select the MC9S12C128 microcontroller f. Since we are programming in C, ensure that the checkbox next to it is selected g. Select No to Processor Expert h. Select No for OSEKturbo operating system i. Select No to PC-lint j. Select ANSI startup code k. Select None for floating point format l. Select Small memory model m. Select P&E Multilink CyclonePro n. Click Finish 2. Utilizing your newly created project files Now the project window appears. Select P&E Multilink CyclonePro. This ensures serial transmission and reception via the computer. 3. Editing your source code To edit the source code click the + sign next to the sources folder to reveal the files. Double-click on the main.c file. This is where you can actually change the code downloaded to the board. To save your changes select File > Save. For this tutorial you will execute the traditional “Hello, World!” application with the code below. #include #include #include "stdio.h" #include ...
-
Publié par
-
Langue
English